2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.5.0.
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.0'
594 PACKAGE_STRING='libpipeline 1.5.0'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
638 ac_subst_vars='gltests_LTLIBOBJS
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
759 HAVE_DECL_LOCALTIME_R
765 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
771 WINDOWS_64_BIT_ST_SIZE
772 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
775 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
782 NEXT_AS_FIRST_DIRECTIVE_STRING_H
784 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
786 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
788 GL_GENERATE_STDINT_H_FALSE
789 GL_GENERATE_STDINT_H_TRUE
798 HAVE_SIGNED_SIG_ATOMIC_T
801 BITSIZEOF_SIG_ATOMIC_T
807 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
812 HAVE_UNSIGNED_LONG_LONG_INT
814 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
816 GL_GENERATE_STDDEF_H_FALSE
817 GL_GENERATE_STDDEF_H_TRUE
822 GL_GENERATE_STDBOOL_H_FALSE
823 GL_GENERATE_STDBOOL_H_TRUE
825 GL_GENERATE_STDARG_H_FALSE
826 GL_GENERATE_STDARG_H_TRUE
828 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
837 REPLACE_STDIO_WRITE_FUNCS
838 REPLACE_STDIO_READ_FUNCS
847 REPLACE_OBSTACK_PRINTF
872 HAVE_DECL_OBSTACK_PRINTF
878 GNULIB_VSPRINTF_POSIX
882 GNULIB_VFPRINTF_POSIX
889 GNULIB_STDIO_H_SIGPIPE
890 GNULIB_STDIO_H_NONBLOCKING
905 GNULIB_OBSTACK_PRINTF_POSIX
906 GNULIB_OBSTACK_PRINTF
931 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
934 REPLACE_PTHREAD_SIGMASK
936 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
937 HAVE_STRUCT_SIGACTION_SA_SIGACTION
943 HAVE_POSIX_SIGNALBLOCKING
946 GNULIB_SIGNAL_H_SIGPIPE
948 GNULIB_PTHREAD_SIGMASK
949 APPLE_UNIVERSAL_BUILD
950 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1037 REPLACE_CANONICALIZE_FILE_NAME
1042 HAVE_STRUCT_RANDOM_DATA
1064 HAVE_DECL_GETLOADAVG
1065 HAVE_CANONICALIZE_FILE_NAME
1076 GNULIB_SECURE_GETENV
1079 GNULIB_REALLOC_POSIX
1096 GNULIB_CANONICALIZE_FILE_NAME
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1142 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1144 REPLACE_STRUCT_TIMEVAL
1145 REPLACE_GETTIMEOFDAY
1153 GL_GENERATE_FLOAT_H_FALSE
1154 GL_GENERATE_FLOAT_H_TRUE
1156 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1158 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1175 GL_GENERATE_ERRNO_H_FALSE
1176 GL_GENERATE_ERRNO_H_TRUE
1178 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1181 PRAGMA_SYSTEM_HEADER
1182 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1184 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1185 UNISTD_H_HAVE_WINSOCK2_H
1206 REPLACE_GETDTABLESIZE
1207 REPLACE_GETDOMAINNAME
1218 HAVE_DECL_SETHOSTNAME
1219 HAVE_DECL_GETUSERSHELL
1220 HAVE_DECL_GETPAGESIZE
1221 HAVE_DECL_GETLOGIN_R
1222 HAVE_DECL_GETDOMAINNAME
1261 GNULIB_UNISTD_H_SIGPIPE
1262 GNULIB_UNISTD_H_NONBLOCKING
1288 GNULIB_GETDTABLESIZE
1289 GNULIB_GETDOMAINNAME
1305 GL_GENERATE_ALLOCA_H_FALSE
1306 GL_GENERATE_ALLOCA_H_TRUE
1309 GL_COND_LIBTOOL_FALSE
1310 GL_COND_LIBTOOL_TRUE
1369 MAINTAINER_MODE_FALSE
1370 MAINTAINER_MODE_TRUE
1372 AM_DEFAULT_VERBOSITY
1383 INSTALL_STRIP_PROGRAM
1426 program_transform_name
1439 enable_option_checking
1441 enable_maintainer_mode
1442 enable_dependency_tracking
1455 enable_socketpair_pipe
1457 ac_precious_vars='build_alias
1474 # Initialize some variables set by options.
1476 ac_init_version=false
1477 ac_unrecognized_opts=
1478 ac_unrecognized_sep=
1479 # The variables have the same names as the options, with
1480 # dashes changed to underlines.
1481 cache_file=/dev/null
1488 program_transform_name=s,x,x,
1496 # Installation directory options.
1497 # These are left unexpanded so users can "make install exec_prefix=/foo"
1498 # and all the variables that are supposed to be based on exec_prefix
1499 # by default will actually change.
1500 # Use braces instead of parens because sh, perl, etc. also accept them.
1501 # (The list follows the same order as the GNU Coding Standards.)
1502 bindir='${exec_prefix}/bin'
1503 sbindir='${exec_prefix}/sbin'
1504 libexecdir='${exec_prefix}/libexec'
1505 datarootdir='${prefix}/share'
1506 datadir='${datarootdir}'
1507 sysconfdir='${prefix}/etc'
1508 sharedstatedir='${prefix}/com'
1509 localstatedir='${prefix}/var'
1510 runstatedir='${localstatedir}/run'
1511 includedir='${prefix}/include'
1512 oldincludedir='/usr/include'
1513 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1514 infodir='${datarootdir}/info'
1519 libdir='${exec_prefix}/lib'
1520 localedir='${datarootdir}/locale'
1521 mandir='${datarootdir}/man'
1527 # If the previous option needs an argument, assign it.
1528 if test -n "$ac_prev"; then
1529 eval $ac_prev=\$ac_option
1535 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1540 # Accept the important Cygnus configure options, so we can diagnose typos.
1542 case $ac_dashdash$ac_option in
1546 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1548 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1549 bindir=$ac_optarg ;;
1551 -build | --build | --buil | --bui | --bu)
1552 ac_prev=build_alias ;;
1553 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1554 build_alias=$ac_optarg ;;
1556 -cache-file | --cache-file | --cache-fil | --cache-fi \
1557 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1558 ac_prev=cache_file ;;
1559 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1560 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1561 cache_file=$ac_optarg ;;
1563 --config-cache | -C)
1564 cache_file=config.cache ;;
1566 -datadir | --datadir | --datadi | --datad)
1568 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1569 datadir=$ac_optarg ;;
1571 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1572 | --dataroo | --dataro | --datar)
1573 ac_prev=datarootdir ;;
1574 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1575 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1576 datarootdir=$ac_optarg ;;
1578 -disable-* | --disable-*)
1579 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1580 # Reject names that are not valid shell variable names.
1581 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582 as_fn_error $? "invalid feature name: $ac_useropt"
1583 ac_useropt_orig=$ac_useropt
1584 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585 case $ac_user_opts in
1587 "enable_$ac_useropt"
1589 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1590 ac_unrecognized_sep=', ';;
1592 eval enable_$ac_useropt=no ;;
1594 -docdir | --docdir | --docdi | --doc | --do)
1596 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1597 docdir=$ac_optarg ;;
1599 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1601 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1602 dvidir=$ac_optarg ;;
1604 -enable-* | --enable-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error $? "invalid feature name: $ac_useropt"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1613 "enable_$ac_useropt"
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1618 eval enable_$ac_useropt=\$ac_optarg ;;
1620 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1621 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1622 | --exec | --exe | --ex)
1623 ac_prev=exec_prefix ;;
1624 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1625 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1626 | --exec=* | --exe=* | --ex=*)
1627 exec_prefix=$ac_optarg ;;
1629 -gas | --gas | --ga | --g)
1630 # Obsolete; use --with-gas.
1633 -help | --help | --hel | --he | -h)
1634 ac_init_help=long ;;
1635 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1636 ac_init_help=recursive ;;
1637 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1638 ac_init_help=short ;;
1640 -host | --host | --hos | --ho)
1641 ac_prev=host_alias ;;
1642 -host=* | --host=* | --hos=* | --ho=*)
1643 host_alias=$ac_optarg ;;
1645 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1647 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1649 htmldir=$ac_optarg ;;
1651 -includedir | --includedir | --includedi | --included | --include \
1652 | --includ | --inclu | --incl | --inc)
1653 ac_prev=includedir ;;
1654 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1655 | --includ=* | --inclu=* | --incl=* | --inc=*)
1656 includedir=$ac_optarg ;;
1658 -infodir | --infodir | --infodi | --infod | --info | --inf)
1660 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1661 infodir=$ac_optarg ;;
1663 -libdir | --libdir | --libdi | --libd)
1665 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1666 libdir=$ac_optarg ;;
1668 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1669 | --libexe | --libex | --libe)
1670 ac_prev=libexecdir ;;
1671 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1672 | --libexe=* | --libex=* | --libe=*)
1673 libexecdir=$ac_optarg ;;
1675 -localedir | --localedir | --localedi | --localed | --locale)
1676 ac_prev=localedir ;;
1677 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1678 localedir=$ac_optarg ;;
1680 -localstatedir | --localstatedir | --localstatedi | --localstated \
1681 | --localstate | --localstat | --localsta | --localst | --locals)
1682 ac_prev=localstatedir ;;
1683 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1684 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1685 localstatedir=$ac_optarg ;;
1687 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1689 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1690 mandir=$ac_optarg ;;
1692 -nfp | --nfp | --nf)
1693 # Obsolete; use --without-fp.
1696 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1697 | --no-cr | --no-c | -n)
1700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1704 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1705 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1706 | --oldin | --oldi | --old | --ol | --o)
1707 ac_prev=oldincludedir ;;
1708 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1709 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1710 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1711 oldincludedir=$ac_optarg ;;
1713 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1715 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1716 prefix=$ac_optarg ;;
1718 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1719 | --program-pre | --program-pr | --program-p)
1720 ac_prev=program_prefix ;;
1721 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1722 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1723 program_prefix=$ac_optarg ;;
1725 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1726 | --program-suf | --program-su | --program-s)
1727 ac_prev=program_suffix ;;
1728 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1729 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1730 program_suffix=$ac_optarg ;;
1732 -program-transform-name | --program-transform-name \
1733 | --program-transform-nam | --program-transform-na \
1734 | --program-transform-n | --program-transform- \
1735 | --program-transform | --program-transfor \
1736 | --program-transfo | --program-transf \
1737 | --program-trans | --program-tran \
1738 | --progr-tra | --program-tr | --program-t)
1739 ac_prev=program_transform_name ;;
1740 -program-transform-name=* | --program-transform-name=* \
1741 | --program-transform-nam=* | --program-transform-na=* \
1742 | --program-transform-n=* | --program-transform-=* \
1743 | --program-transform=* | --program-transfor=* \
1744 | --program-transfo=* | --program-transf=* \
1745 | --program-trans=* | --program-tran=* \
1746 | --progr-tra=* | --program-tr=* | --program-t=*)
1747 program_transform_name=$ac_optarg ;;
1749 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1751 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1752 pdfdir=$ac_optarg ;;
1754 -psdir | --psdir | --psdi | --psd | --ps)
1756 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1763 -runstatedir | --runstatedir | --runstatedi | --runstated \
1764 | --runstate | --runstat | --runsta | --runst | --runs \
1765 | --run | --ru | --r)
1766 ac_prev=runstatedir ;;
1767 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1768 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1769 | --run=* | --ru=* | --r=*)
1770 runstatedir=$ac_optarg ;;
1772 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1774 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1776 sbindir=$ac_optarg ;;
1778 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1779 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1780 | --sharedst | --shareds | --shared | --share | --shar \
1782 ac_prev=sharedstatedir ;;
1783 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1784 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1785 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1787 sharedstatedir=$ac_optarg ;;
1789 -site | --site | --sit)
1791 -site=* | --site=* | --sit=*)
1794 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1796 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1797 srcdir=$ac_optarg ;;
1799 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1800 | --syscon | --sysco | --sysc | --sys | --sy)
1801 ac_prev=sysconfdir ;;
1802 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1803 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1804 sysconfdir=$ac_optarg ;;
1806 -target | --target | --targe | --targ | --tar | --ta | --t)
1807 ac_prev=target_alias ;;
1808 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1809 target_alias=$ac_optarg ;;
1811 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1814 -version | --version | --versio | --versi | --vers | -V)
1815 ac_init_version=: ;;
1818 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1819 # Reject names that are not valid shell variable names.
1820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1821 as_fn_error $? "invalid package name: $ac_useropt"
1822 ac_useropt_orig=$ac_useropt
1823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1824 case $ac_user_opts in
1828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1829 ac_unrecognized_sep=', ';;
1831 eval with_$ac_useropt=\$ac_optarg ;;
1833 -without-* | --without-*)
1834 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1835 # Reject names that are not valid shell variable names.
1836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1837 as_fn_error $? "invalid package name: $ac_useropt"
1838 ac_useropt_orig=$ac_useropt
1839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1840 case $ac_user_opts in
1844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1845 ac_unrecognized_sep=', ';;
1847 eval with_$ac_useropt=no ;;
1850 # Obsolete; use --with-x.
1853 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1854 | --x-incl | --x-inc | --x-in | --x-i)
1855 ac_prev=x_includes ;;
1856 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1857 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1858 x_includes=$ac_optarg ;;
1860 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1861 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1862 ac_prev=x_libraries ;;
1863 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1864 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1865 x_libraries=$ac_optarg ;;
1867 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1868 Try \`$0 --help' for more information"
1872 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1873 # Reject names that are not valid shell variable names.
1874 case $ac_envvar in #(
1875 '' | [0-9]* | *[!_$as_cr_alnum]* )
1876 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1878 eval $ac_envvar=\$ac_optarg
1879 export $ac_envvar ;;
1882 # FIXME: should be removed in autoconf 3.0.
1883 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1884 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1885 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1886 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1892 if test -n "$ac_prev"; then
1893 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1894 as_fn_error $? "missing argument to $ac_option"
1897 if test -n "$ac_unrecognized_opts"; then
1898 case $enable_option_checking in
1900 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1901 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1905 # Check all directory arguments for consistency.
1906 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1907 datadir sysconfdir sharedstatedir localstatedir includedir \
1908 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1909 libdir localedir mandir runstatedir
1911 eval ac_val=\$$ac_var
1912 # Remove trailing slashes.
1915 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1916 eval $ac_var=\$ac_val;;
1918 # Be sure to have absolute directory names.
1920 [\\/$]* | ?:[\\/]* ) continue;;
1921 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1923 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1926 # There might be people who depend on the old broken behavior: `$host'
1927 # used to hold the argument of --host etc.
1928 # FIXME: To remove some day.
1931 target=$target_alias
1933 # FIXME: To remove some day.
1934 if test "x$host_alias" != x; then
1935 if test "x$build_alias" = x; then
1936 cross_compiling=maybe
1937 elif test "x$build_alias" != "x$host_alias"; then
1943 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1945 test "$silent" = yes && exec 6>/dev/null
1948 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1949 ac_ls_di=`ls -di .` &&
1950 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1951 as_fn_error $? "working directory cannot be determined"
1952 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1953 as_fn_error $? "pwd does not report name of working directory"
1956 # Find the source files, if location was not specified.
1957 if test -z "$srcdir"; then
1958 ac_srcdir_defaulted=yes
1959 # Try the directory containing this script, then the parent directory.
1960 ac_confdir=`$as_dirname -- "$as_myself" ||
1961 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1962 X"$as_myself" : 'X\(//\)[^/]' \| \
1963 X"$as_myself" : 'X\(//\)$' \| \
1964 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1965 $as_echo X"$as_myself" |
1966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1984 if test ! -r "$srcdir/$ac_unique_file"; then
1988 ac_srcdir_defaulted=no
1990 if test ! -r "$srcdir/$ac_unique_file"; then
1991 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1992 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1994 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1996 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1998 # When building in place, set srcdir=.
1999 if test "$ac_abs_confdir" = "$ac_pwd"; then
2002 # Remove unnecessary trailing slashes from srcdir.
2003 # Double slashes in file names in object file debugging info
2004 # mess up M-x gdb in Emacs.
2006 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2008 for ac_var in $ac_precious_vars; do
2009 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2010 eval ac_env_${ac_var}_value=\$${ac_var}
2011 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2012 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2016 # Report the --help message.
2018 if test "$ac_init_help" = "long"; then
2019 # Omit some internal or obsolete options to make the list less imposing.
2020 # This message is too long to be a string in the A/UX 3.1 sh.
2022 \`configure' configures libpipeline 1.5.0 to adapt to many kinds of systems.
2024 Usage: $0 [OPTION]... [VAR=VALUE]...
2026 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2027 VAR=VALUE. See below for descriptions of some of the useful variables.
2029 Defaults for the options are specified in brackets.
2032 -h, --help display this help and exit
2033 --help=short display options specific to this package
2034 --help=recursive display the short help of all the included packages
2035 -V, --version display version information and exit
2036 -q, --quiet, --silent do not print \`checking ...' messages
2037 --cache-file=FILE cache test results in FILE [disabled]
2038 -C, --config-cache alias for \`--cache-file=config.cache'
2039 -n, --no-create do not create output files
2040 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2042 Installation directories:
2043 --prefix=PREFIX install architecture-independent files in PREFIX
2044 [$ac_default_prefix]
2045 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2048 By default, \`make install' will install all the files in
2049 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2050 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2051 for instance \`--prefix=\$HOME'.
2053 For better control, use the options below.
2055 Fine tuning of the installation directories:
2056 --bindir=DIR user executables [EPREFIX/bin]
2057 --sbindir=DIR system admin executables [EPREFIX/sbin]
2058 --libexecdir=DIR program executables [EPREFIX/libexec]
2059 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2060 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2061 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2062 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2063 --libdir=DIR object code libraries [EPREFIX/lib]
2064 --includedir=DIR C header files [PREFIX/include]
2065 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2066 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2067 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2068 --infodir=DIR info documentation [DATAROOTDIR/info]
2069 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2070 --mandir=DIR man documentation [DATAROOTDIR/man]
2071 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2072 --htmldir=DIR html documentation [DOCDIR]
2073 --dvidir=DIR dvi documentation [DOCDIR]
2074 --pdfdir=DIR pdf documentation [DOCDIR]
2075 --psdir=DIR ps documentation [DOCDIR]
2081 --program-prefix=PREFIX prepend PREFIX to installed program names
2082 --program-suffix=SUFFIX append SUFFIX to installed program names
2083 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2086 --build=BUILD configure for building on BUILD [guessed]
2087 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2091 if test -n "$ac_init_help"; then
2092 case $ac_init_help in
2093 short | recursive ) echo "Configuration of libpipeline 1.5.0:";;
2098 --disable-option-checking ignore unrecognized --enable/--with options
2099 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2100 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2101 --enable-silent-rules less verbose build output (undo: "make V=1")
2102 --disable-silent-rules verbose build output (undo: "make V=0")
2103 --enable-maintainer-mode
2104 enable make rules and dependencies not useful (and
2105 sometimes confusing) to the casual installer
2106 --enable-dependency-tracking
2107 do not reject slow dependency extractors
2108 --disable-dependency-tracking
2109 speeds up one-time build
2110 --enable-static[=PKGS] build static libraries [default=no]
2111 --enable-shared[=PKGS] build shared libraries [default=yes]
2112 --enable-fast-install[=PKGS]
2113 optimize for fast installation [default=yes]
2114 --disable-libtool-lock avoid locking (might break parallel builds)
2115 --disable-largefile omit support for large files
2116 --enable-threads={posix|solaris|pth|windows}
2117 specify multithreading API
2118 --disable-threads build without multithread safety
2119 --disable-rpath do not hardcode runtime library paths
2120 --enable-socketpair-pipe
2121 Use socketpair(2) as fast replacement for pipe(2)
2124 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2125 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2126 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2128 --with-aix-soname=aix|svr4|both
2129 shared library versioning (aka "SONAME") variant to
2130 provide on AIX, [default=aix].
2131 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2132 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2133 compiler's sysroot if not specified).
2134 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2135 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2136 --without-libpth-prefix don't search for libpth in includedir and libdir
2138 Some influential environment variables:
2139 CC C compiler command
2140 CFLAGS C compiler flags
2141 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2142 nonstandard directory <lib dir>
2143 LIBS libraries to pass to the linker, e.g. -l<library>
2144 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2145 you have headers in a nonstandard directory <include dir>
2148 User-defined run-time library search path.
2149 PKG_CONFIG path to pkg-config utility
2151 directories to add to pkg-config's search path
2153 path overriding pkg-config's built-in search path
2155 C compiler flags for CHECK, overriding pkg-config
2156 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2158 Use these variables to override the choices made by `configure' or to help
2159 it to find libraries and programs with nonstandard names/locations.
2161 Report bugs to <cjwatson@debian.org>.
2166 if test "$ac_init_help" = "recursive"; then
2167 # If there are subdirs, report their specific --help.
2168 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2169 test -d "$ac_dir" ||
2170 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2178 # A ".." for each directory in $ac_dir_suffix.
2179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2180 case $ac_top_builddir_sub in
2181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2185 ac_abs_top_builddir=$ac_pwd
2186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2187 # for backward compatibility:
2188 ac_top_builddir=$ac_top_build_prefix
2191 .) # We are building in place.
2193 ac_top_srcdir=$ac_top_builddir_sub
2194 ac_abs_top_srcdir=$ac_pwd ;;
2195 [\\/]* | ?:[\\/]* ) # Absolute name.
2196 ac_srcdir=$srcdir$ac_dir_suffix;
2197 ac_top_srcdir=$srcdir
2198 ac_abs_top_srcdir=$srcdir ;;
2200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2201 ac_top_srcdir=$ac_top_build_prefix$srcdir
2202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2206 cd "$ac_dir" || { ac_status=$?; continue; }
2207 # Check for guested configure.
2208 if test -f "$ac_srcdir/configure.gnu"; then
2210 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2211 elif test -f "$ac_srcdir/configure"; then
2213 $SHELL "$ac_srcdir/configure" --help=recursive
2215 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2217 cd "$ac_pwd" || { ac_status=$?; break; }
2221 test -n "$ac_init_help" && exit $ac_status
2222 if $ac_init_version; then
2224 libpipeline configure 1.5.0
2225 generated by GNU Autoconf 2.69
2227 Copyright (C) 2012 Free Software Foundation, Inc.
2228 This configure script is free software; the Free Software Foundation
2229 gives unlimited permission to copy, distribute and modify it.
2234 ## ------------------------ ##
2235 ## Autoconf initialization. ##
2236 ## ------------------------ ##
2238 # ac_fn_c_try_compile LINENO
2239 # --------------------------
2240 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_c_try_compile ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 rm -f conftest.$ac_objext
2245 if { { ac_try="$ac_compile"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252 (eval "$ac_compile") 2>conftest.err
2254 if test -s conftest.err; then
2255 grep -v '^ *+' conftest.err >conftest.er1
2256 cat conftest.er1 >&5
2257 mv -f conftest.er1 conftest.err
2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260 test $ac_status = 0; } && {
2261 test -z "$ac_c_werror_flag" ||
2262 test ! -s conftest.err
2263 } && test -s conftest.$ac_objext; then :
2266 $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 as_fn_set_status $ac_retval
2274 } # ac_fn_c_try_compile
2276 # ac_fn_c_try_cpp LINENO
2277 # ----------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 if { { ac_try="$ac_cpp conftest.$ac_ext"
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2291 if test -s conftest.err; then
2292 grep -v '^ *+' conftest.err >conftest.er1
2293 cat conftest.er1 >&5
2294 mv -f conftest.er1 conftest.err
2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; } > conftest.i && {
2298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2299 test ! -s conftest.err
2303 $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 as_fn_set_status $ac_retval
2313 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2314 # -------------------------------------------------------
2315 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2316 # the include files in INCLUDES and setting the cache variable VAR
2318 ac_fn_c_check_header_mongrel ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 if eval \${$3+:} false; then :
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 $as_echo_n "checking for $2... " >&6; }
2324 if eval \${$3+:} false; then :
2325 $as_echo_n "(cached) " >&6
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2331 # Is the header compilable?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2333 $as_echo_n "checking $2 usability... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 ac_header_compiler=yes
2342 ac_header_compiler=no
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2346 $as_echo "$ac_header_compiler" >&6; }
2348 # Is the header present?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2350 $as_echo_n "checking $2 presence... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2355 if ac_fn_c_try_cpp "$LINENO"; then :
2356 ac_header_preproc=yes
2358 ac_header_preproc=no
2360 rm -f conftest.err conftest.i conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2362 $as_echo "$ac_header_preproc" >&6; }
2364 # So? What about this header?
2365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2368 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2370 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2374 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2376 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2378 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2380 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2383 ( $as_echo "## ---------------------------------- ##
2384 ## Report this to cjwatson@debian.org ##
2385 ## ---------------------------------- ##"
2386 ) | sed "s/^/$as_me: WARNING: /" >&2
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390 $as_echo_n "checking for $2... " >&6; }
2391 if eval \${$3+:} false; then :
2392 $as_echo_n "(cached) " >&6
2394 eval "$3=\$ac_header_compiler"
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 } # ac_fn_c_check_header_mongrel
2404 # ac_fn_c_try_run LINENO
2405 # ----------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2407 # that executables *can* be run.
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 if { { ac_try="$ac_link"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>&5
2420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2422 { { case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_try") 2>&5
2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431 test $ac_status = 0; }; }; then :
2434 $as_echo "$as_me: program exited with status $ac_status" >&5
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2438 ac_retval=$ac_status
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 as_fn_set_status $ac_retval
2446 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2447 # -------------------------------------------------------
2448 # Tests whether HEADER exists and can be compiled using the include files in
2449 # INCLUDES, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_compile ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2463 if ac_fn_c_try_compile "$LINENO"; then :
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475 } # ac_fn_c_check_header_compile
2477 # ac_fn_c_try_link LINENO
2478 # -----------------------
2479 # Try to link conftest.$ac_ext, and return whether this succeeded.
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 rm -f conftest.$ac_objext conftest$ac_exeext
2484 if { { ac_try="$ac_link"
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_link") 2>conftest.err
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest$ac_exeext && {
2503 test "$cross_compiling" = yes ||
2504 test -x conftest$ac_exeext
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2513 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2514 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2515 # interfere with the next link command; also delete a directory that is
2516 # left behind by Apple's compiler. We do this before executing the actions.
2517 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 as_fn_set_status $ac_retval
2521 } # ac_fn_c_try_link
2523 # ac_fn_c_check_func LINENO FUNC VAR
2524 # ----------------------------------
2525 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2526 ac_fn_c_check_func ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2536 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2538 #define $2 innocuous_$2
2540 /* System header to define __stub macros and hopefully few prototypes,
2541 which can conflict with char $2 (); below.
2542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543 <limits.h> exists even on freestanding compilers. */
2546 # include <limits.h>
2548 # include <assert.h>
2553 /* Override any GCC internal prototype to avoid an error.
2554 Use char because int might match the return type of a GCC
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined __stub_$2 || defined __stub___$2
2575 if ac_fn_c_try_link "$LINENO"; then :
2580 rm -f core conftest.err conftest.$ac_objext \
2581 conftest$ac_exeext conftest.$ac_ext
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588 } # ac_fn_c_check_func
2590 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2591 # -------------------------------------------
2592 # Tests whether TYPE exists after having included INCLUDES, setting cache
2593 # variable VAR accordingly.
2594 ac_fn_c_check_type ()
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if eval \${$3+:} false; then :
2600 $as_echo_n "(cached) " >&6
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2615 if ac_fn_c_try_compile "$LINENO"; then :
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2628 if ac_fn_c_try_compile "$LINENO"; then :
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 } # ac_fn_c_check_type
2644 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2645 # --------------------------------------------
2646 # Tries to find the compile-time value of EXPR in a program that includes
2647 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2649 ac_fn_c_compute_int ()
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 if test "$cross_compiling" = yes; then
2653 # Depending upon the size, compute the lo and hi bounds.
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2660 static int test_array [1 - 2 * !(($2) >= 0)];
2662 return test_array [0];
2668 if ac_fn_c_try_compile "$LINENO"; then :
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2677 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2679 return test_array [0];
2685 if ac_fn_c_try_compile "$LINENO"; then :
2686 ac_hi=$ac_mid; break
2688 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2689 if test $ac_lo -le $ac_mid; then
2693 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2704 static int test_array [1 - 2 * !(($2) < 0)];
2706 return test_array [0];
2712 if ac_fn_c_try_compile "$LINENO"; then :
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2721 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2723 return test_array [0];
2729 if ac_fn_c_try_compile "$LINENO"; then :
2730 ac_lo=$ac_mid; break
2732 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2733 if test $ac_mid -le $ac_hi; then
2737 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 # Binary search between lo and hi bounds.
2748 while test "x$ac_lo" != "x$ac_hi"; do
2749 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2756 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2758 return test_array [0];
2764 if ac_fn_c_try_compile "$LINENO"; then :
2767 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2779 static long int longval () { return $2; }
2780 static unsigned long int ulongval () { return $2; }
2787 FILE *f = fopen ("conftest.val", "w");
2792 long int i = longval ();
2795 fprintf (f, "%ld", i);
2799 unsigned long int i = ulongval ();
2802 fprintf (f, "%lu", i);
2804 /* Do not output a trailing newline, as this causes \r\n confusion
2805 on some platforms. */
2806 return ferror (f) || fclose (f) != 0;
2812 if ac_fn_c_try_run "$LINENO"; then :
2813 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2818 conftest.$ac_objext conftest.beam conftest.$ac_ext
2822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2823 as_fn_set_status $ac_retval
2825 } # ac_fn_c_compute_int
2827 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2828 # ---------------------------------------------
2829 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2831 ac_fn_c_check_decl ()
2833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2834 as_decl_name=`echo $2|sed 's/ *(.*//'`
2835 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2837 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2838 if eval \${$3+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2847 #ifndef $as_decl_name
2849 (void) $as_decl_use;
2851 (void) $as_decl_name;
2859 if ac_fn_c_try_compile "$LINENO"; then :
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2868 $as_echo "$ac_res" >&6; }
2869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2871 } # ac_fn_c_check_decl
2873 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2874 # ----------------------------------------------------
2875 # Tries to find if the field MEMBER exists in type AGGR, after including
2876 # INCLUDES, setting cache variable VAR accordingly.
2877 ac_fn_c_check_member ()
2879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2881 $as_echo_n "checking for $2.$3... " >&6; }
2882 if eval \${$4+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2898 if ac_fn_c_try_compile "$LINENO"; then :
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2908 if (sizeof ac_aggr.$3)
2914 if ac_fn_c_try_compile "$LINENO"; then :
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2925 $as_echo "$ac_res" >&6; }
2926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2928 } # ac_fn_c_check_member
2929 cat >config.log <<_ACEOF
2930 This file contains any messages produced by compilers while
2931 running configure, to aid debugging if configure makes a mistake.
2933 It was created by libpipeline $as_me 1.5.0, which was
2934 generated by GNU Autoconf 2.69. Invocation command line was
2946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2953 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2955 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2956 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2958 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2959 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2960 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2961 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 $as_echo "PATH: $as_dir"
2986 # Keep a trace of the command line.
2987 # Strip out --no-create and --no-recursion so they do not pile up.
2988 # Strip out --silent because we don't want to record it for future runs.
2989 # Also quote any args containing shell meta-characters.
2990 # Make two passes to allow for proper duplicate-argument suppression.
2994 ac_must_keep_next=false
3000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3002 | -silent | --silent | --silen | --sile | --sil)
3005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3010 as_fn_append ac_configure_args1 " '$ac_arg'"
3011 if test $ac_must_keep_next = true; then
3012 ac_must_keep_next=false # Got value, back to normal.
3015 *=* | --config-cache | -C | -disable-* | --disable-* \
3016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3018 | -with-* | --with-* | -without-* | --without-* | --x)
3019 case "$ac_configure_args0 " in
3020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3023 -* ) ac_must_keep_next=true ;;
3026 as_fn_append ac_configure_args " '$ac_arg'"
3031 { ac_configure_args0=; unset ac_configure_args0;}
3032 { ac_configure_args1=; unset ac_configure_args1;}
3034 # When interrupted or exit'd, cleanup temporary files, and complete
3035 # config.log. We remove comments because anyway the quotes in there
3036 # would cause problems or look ugly.
3037 # WARNING: Use '\'' to represent an apostrophe within the trap.
3038 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3039 trap 'exit_status=$?
3040 # Save into config.log some information that might help in debugging.
3044 $as_echo "## ---------------- ##
3045 ## Cache variables. ##
3046 ## ---------------- ##"
3048 # The following way of writing the cache mishandles newlines in values,
3050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3051 eval ac_val=\$$ac_var
3055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3059 _ | IFS | as_nl) ;; #(
3060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3061 *) { eval $ac_var=; unset $ac_var;} ;;
3066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3067 *${as_nl}ac_space=\ *)
3069 "s/'\''/'\''\\\\'\'''\''/g;
3070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3080 $as_echo "## ----------------- ##
3081 ## Output variables. ##
3082 ## ----------------- ##"
3084 for ac_var in $ac_subst_vars
3086 eval ac_val=\$$ac_var
3088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3090 $as_echo "$ac_var='\''$ac_val'\''"
3094 if test -n "$ac_subst_files"; then
3095 $as_echo "## ------------------- ##
3096 ## File substitutions. ##
3097 ## ------------------- ##"
3099 for ac_var in $ac_subst_files
3101 eval ac_val=\$$ac_var
3103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3105 $as_echo "$ac_var='\''$ac_val'\''"
3110 if test -s confdefs.h; then
3111 $as_echo "## ----------- ##
3118 test "$ac_signal" != 0 &&
3119 $as_echo "$as_me: caught signal $ac_signal"
3120 $as_echo "$as_me: exit $exit_status"
3122 rm -f core *.core core.conftest.* &&
3123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3126 for ac_signal in 1 2 13 15; do
3127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3132 rm -f -r conftest* confdefs.h
3134 $as_echo "/* confdefs.h */" > confdefs.h
3136 # Predefined preprocessor variables.
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_NAME "$PACKAGE_NAME"
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_STRING "$PACKAGE_STRING"
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_URL "$PACKAGE_URL"
3163 # Let the site file select an alternate cache file if it wants to.
3164 # Prefer an explicitly selected file to automatically selected ones.
3167 if test -n "$CONFIG_SITE"; then
3168 # We do not want a PATH search for config.site.
3169 case $CONFIG_SITE in #((
3170 -*) ac_site_file1=./$CONFIG_SITE;;
3171 */*) ac_site_file1=$CONFIG_SITE;;
3172 *) ac_site_file1=./$CONFIG_SITE;;
3174 elif test "x$prefix" != xNONE; then
3175 ac_site_file1=$prefix/share/config.site
3176 ac_site_file2=$prefix/etc/config.site
3178 ac_site_file1=$ac_default_prefix/share/config.site
3179 ac_site_file2=$ac_default_prefix/etc/config.site
3181 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3183 test "x$ac_site_file" = xNONE && continue
3184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3186 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3187 sed 's/^/| /' "$ac_site_file" >&5
3189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "failed to load site script $ac_site_file
3192 See \`config.log' for more details" "$LINENO" 5; }
3196 if test -r "$cache_file"; then
3197 # Some versions of bash will fail to source /dev/null (special files
3198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3201 $as_echo "$as_me: loading cache $cache_file" >&6;}
3203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3204 *) . "./$cache_file";;
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3209 $as_echo "$as_me: creating cache $cache_file" >&6;}
3213 gl_header_list="$gl_header_list unistd.h"
3214 gl_func_list="$gl_func_list symlink"
3215 gl_header_list="$gl_header_list sys/time.h"
3216 gl_header_list="$gl_header_list sys/socket.h"
3217 gl_func_list="$gl_func_list gettimeofday"
3218 gl_func_list="$gl_func_list lstat"
3219 gl_header_list="$gl_header_list sys/mman.h"
3220 gl_func_list="$gl_func_list mprotect"
3221 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3222 gl_header_list="$gl_header_list sys/param.h"
3223 gl_func_list="$gl_func_list secure_getenv"
3224 gl_func_list="$gl_func_list setenv"
3225 gl_func_list="$gl_func_list sigaction"
3226 gl_func_list="$gl_func_list sigaltstack"
3227 gl_func_list="$gl_func_list siginterrupt"
3228 gl_func_list="$gl_func_list snprintf"
3229 gl_header_list="$gl_header_list wchar.h"
3230 gl_header_list="$gl_header_list stdint.h"
3231 gl_func_list="$gl_func_list strndup"
3232 gl_header_list="$gl_header_list sys/select.h"
3233 gl_header_list="$gl_header_list sys/stat.h"
3234 gl_header_list="$gl_header_list sys/wait.h"
3235 gl_func_list="$gl_func_list vasnprintf"
3236 gl_header_list="$gl_header_list features.h"
3237 # Check that the precious variables saved in the cache have kept the same
3239 ac_cache_corrupted=false
3240 for ac_var in $ac_precious_vars; do
3241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3242 eval ac_new_set=\$ac_env_${ac_var}_set
3243 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3244 eval ac_new_val=\$ac_env_${ac_var}_value
3245 case $ac_old_set,$ac_new_set in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3249 ac_cache_corrupted=: ;;
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3253 ac_cache_corrupted=: ;;
3256 if test "x$ac_old_val" != "x$ac_new_val"; then
3257 # differences in whitespace do not lead to failure.
3258 ac_old_val_w=`echo x $ac_old_val`
3259 ac_new_val_w=`echo x $ac_new_val`
3260 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3263 ac_cache_corrupted=:
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3267 eval $ac_var=\$ac_old_val
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3275 # Pass precious variables to config.status.
3276 if test "$ac_new_set" = set; then
3278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3279 *) ac_arg=$ac_var=$ac_new_val ;;
3281 case " $ac_configure_args " in
3282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3283 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3287 if $ac_cache_corrupted; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3294 ## -------------------- ##
3295 ## Main body of script. ##
3296 ## -------------------- ##
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 for ac_dir in build-aux "$srcdir"/build-aux; do
3307 if test -f "$ac_dir/install-sh"; then
3309 ac_install_sh="$ac_aux_dir/install-sh -c"
3311 elif test -f "$ac_dir/install.sh"; then
3313 ac_install_sh="$ac_aux_dir/install.sh -c"
3315 elif test -f "$ac_dir/shtool"; then
3317 ac_install_sh="$ac_aux_dir/shtool install -c"
3321 if test -z "$ac_aux_dir"; then
3322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3325 # These three variables are undocumented and unsupported,
3326 # and are intended to be withdrawn in a future Autoconf release.
3327 # They can cause serious problems if a builder's source tree is in a directory
3328 # whose full name contains unusual characters.
3329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3334 am__api_version='1.15'
3336 # Find a good install program. We prefer a C program (faster),
3337 # so one script is as good as another. But avoid the broken or
3338 # incompatible versions:
3339 # SysV /etc/install, /usr/sbin/install
3340 # SunOS /usr/etc/install
3341 # IRIX /sbin/install
3343 # AmigaOS /C/install, which installs bootblocks on floppy discs
3344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3347 # OS/2's system install, which has a completely different semantic
3348 # ./install, which can be erroneously created by make from ./install.sh.
3349 # Reject install programs that cannot install multiple files.
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3351 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3352 if test -z "$INSTALL"; then
3353 if ${ac_cv_path_install+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 # Account for people who put trailing slashes in PATH elements.
3362 case $as_dir/ in #((
3363 ./ | .// | /[cC]/* | \
3364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3365 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3368 # OSF1 and SCO ODT 3.0 have their own names for install.
3369 # Don't use installbsd from OSF since it installs stuff as root
3371 for ac_prog in ginstall scoinst install; do
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3374 if test $ac_prog = install &&
3375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3376 # AIX install. It has an incompatible calling convention.
3378 elif test $ac_prog = install &&
3379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3380 # program-specific install script used by HP pwplus--don't use.
3383 rm -rf conftest.one conftest.two conftest.dir
3384 echo one > conftest.one
3385 echo two > conftest.two
3387 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3388 test -s conftest.one && test -s conftest.two &&
3389 test -s conftest.dir/conftest.one &&
3390 test -s conftest.dir/conftest.two
3392 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3405 rm -rf conftest.one conftest.two conftest.dir
3408 if test "${ac_cv_path_install+set}" = set; then
3409 INSTALL=$ac_cv_path_install
3411 # As a last resort, use the slow shell script. Don't cache a
3412 # value for INSTALL within a source directory, because that will
3413 # break other packages using the cache if that directory is
3414 # removed, or if the value is a relative name.
3415 INSTALL=$ac_install_sh
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3419 $as_echo "$INSTALL" >&6; }
3421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3422 # It thinks the first close brace ends the variable substitution.
3423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3430 $as_echo_n "checking whether build environment is sane... " >&6; }
3431 # Reject unsafe characters in $srcdir or the absolute working directory
3432 # name. Accept space and tab only in the latter.
3436 *[\\\"\#\$\&\'\`$am_lf]*)
3437 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3440 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3441 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3444 # Do 'set' in a subshell so we don't clobber the current shell's
3445 # arguments. Must try -L first in case configure is actually a
3446 # symlink; some systems play weird games with the mod time of symlinks
3447 # (eg FreeBSD returns the mod time of the symlink's containing
3451 for am_try in 1 2; do
3452 echo "timestamp, slept: $am_has_slept" > conftest.file
3453 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3454 if test "$*" = "X"; then
3456 set X `ls -t "$srcdir/configure" conftest.file`
3458 if test "$*" != "X $srcdir/configure conftest.file" \
3459 && test "$*" != "X conftest.file $srcdir/configure"; then
3461 # If neither matched, then we have a broken ls. This can happen
3462 # if, for instance, CONFIG_SHELL is bash and it inherits a
3463 # broken ls alias from the environment. This has actually
3464 # happened. Such a system could not be considered "sane".
3465 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3466 alias in your environment" "$LINENO" 5
3468 if test "$2" = conftest.file || test $am_try -eq 2; then
3475 test "$2" = conftest.file
3481 as_fn_error $? "newly created file is older than distributed files!
3482 Check your system clock" "$LINENO" 5
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3486 # If we didn't sleep, we still need to ensure time stamps of config.status and
3487 # generated files are strictly newer.
3489 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3496 test "$program_prefix" != NONE &&
3497 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3498 # Use a double $ so make ignores it.
3499 test "$program_suffix" != NONE &&
3500 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3501 # Double any \ or $.
3502 # By default was `s,x,x', remove it if useless.
3503 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3504 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3506 # Expand $ac_aux_dir to an absolute path.
3507 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3509 if test x"${MISSING+set}" != xset; then
3512 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3514 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3517 # Use eval to expand $SHELL
3518 if eval "$MISSING --is-lightweight"; then
3519 am_missing_run="$MISSING "
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3523 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3526 if test x"${install_sh+set}" != xset; then
3529 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3531 install_sh="\${SHELL} $am_aux_dir/install-sh"
3535 # Installed binaries are usually stripped using 'strip' when the user
3536 # run "make install-strip". However 'strip' might not be the right
3537 # tool to use in cross-compilation environments, therefore Automake
3538 # will honor the 'STRIP' environment variable to overrule this program.
3539 if test "$cross_compiling" != no; then
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}strip; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_STRIP+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$STRIP"; then
3549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 STRIP=$ac_cv_prog_STRIP
3569 if test -n "$STRIP"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3571 $as_echo "$STRIP" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3579 if test -z "$ac_cv_prog_STRIP"; then
3581 # Extract the first word of "strip", so it can be a program name with args.
3582 set dummy strip; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$ac_ct_STRIP"; then
3589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_STRIP="strip"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3609 if test -n "$ac_ct_STRIP"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3611 $as_echo "$ac_ct_STRIP" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3617 if test "x$ac_ct_STRIP" = x; then
3620 case $cross_compiling:$ac_tool_warned in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned=yes ;;
3629 STRIP="$ac_cv_prog_STRIP"
3633 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3636 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3637 if test -z "$MKDIR_P"; then
3638 if ${ac_cv_path_mkdir+:} false; then :
3639 $as_echo_n "(cached) " >&6
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3645 test -z "$as_dir" && as_dir=.
3646 for ac_prog in mkdir gmkdir; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3649 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3650 'mkdir (GNU coreutils) '* | \
3651 'mkdir (coreutils) '* | \
3652 'mkdir (fileutils) '4.1*)
3653 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3663 test -d ./--version && rmdir ./--version
3664 if test "${ac_cv_path_mkdir+set}" = set; then
3665 MKDIR_P="$ac_cv_path_mkdir -p"
3667 # As a last resort, use the slow shell script. Don't cache a
3668 # value for MKDIR_P within a source directory, because that will
3669 # break other packages using the cache if that directory is
3670 # removed, or if the value is a relative name.
3671 MKDIR_P="$ac_install_sh -d"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3675 $as_echo "$MKDIR_P" >&6; }
3677 for ac_prog in gawk mawk nawk awk
3679 # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_AWK+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 if test -n "$AWK"; then
3687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_AWK="$ac_prog"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$AWK"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3709 $as_echo "$AWK" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3716 test -n "$AWK" && break
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 cat >conftest.make <<\_ACEOF
3729 @echo '@@@%%%=$(MAKE)=@@@%%%'
3731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3734 eval ac_cv_prog_make_${ac_make}_set=yes;;
3736 eval ac_cv_prog_make_${ac_make}_set=no;;
3740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 SET_MAKE="MAKE=${MAKE-make}"
3750 rm -rf .tst 2>/dev/null
3751 mkdir .tst 2>/dev/null
3752 if test -d .tst; then
3757 rmdir .tst 2>/dev/null
3759 # Check whether --enable-silent-rules was given.
3760 if test "${enable_silent_rules+set}" = set; then :
3761 enableval=$enable_silent_rules;
3764 case $enable_silent_rules in # (((
3765 yes) AM_DEFAULT_VERBOSITY=0;;
3766 no) AM_DEFAULT_VERBOSITY=1;;
3767 *) AM_DEFAULT_VERBOSITY=1;;
3769 am_make=${MAKE-make}
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3771 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3772 if ${am_cv_make_support_nested_variables+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 if $as_echo 'TRUE=$(BAR$(V))
3781 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3782 am_cv_make_support_nested_variables=yes
3784 am_cv_make_support_nested_variables=no
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3788 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3789 if test $am_cv_make_support_nested_variables = yes; then
3791 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3793 AM_V=$AM_DEFAULT_VERBOSITY
3794 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3798 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3799 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3800 # is not polluted with repeated "-I."
3801 am__isrc=' -I$(srcdir)'
3802 # test to see if srcdir already configured
3803 if test -f $srcdir/config.status; then
3804 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3808 # test whether we have cygpath
3809 if test -z "$CYGPATH_W"; then
3810 if (cygpath --version) >/dev/null 2>/dev/null; then
3811 CYGPATH_W='cygpath -w'
3818 # Define the identity of the package.
3819 PACKAGE='libpipeline'
3823 cat >>confdefs.h <<_ACEOF
3824 #define PACKAGE "$PACKAGE"
3828 cat >>confdefs.h <<_ACEOF
3829 #define VERSION "$VERSION"
3832 # Some tools Automake needs.
3834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3848 # For better backward compatibility. To be removed once Automake 1.9.x
3849 # dies out for good. For more background, see:
3850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3852 mkdir_p='$(MKDIR_P)'
3854 # We need awk for the "check" target (and possibly the TAP driver). The
3855 # system "awk" is bad on some platforms.
3856 # Always define AMTAR for backward compatibility. Yes, it's still used
3857 # in the wild :-( We should find a proper way to deprecate it ...
3861 # We'll loop over all known methods to create a tar archive until one works.
3862 _am_tools='gnutar pax cpio none'
3864 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3871 # POSIX will say in a future version that running "rm -f" with no argument
3872 # is OK; and we want to be able to make that assumption in our Makefile
3873 # recipes. So use an aggressive probe to check that the usage we want is
3874 # actually supported "in the wild" to an acceptable degree.
3875 # See automake bug#10828.
3876 # To make any issue more visible, cause the running configure to be aborted
3877 # by default if the 'rm' program in use doesn't match our expectations; the
3878 # user can still override this though.
3879 if rm -f && rm -fr && rm -rf; then : OK; else
3883 Your 'rm' program seems unable to run without file operands specified
3884 on the command line, even when the '-f' option is present. This is contrary
3885 to the behaviour of most rm programs out there, and not conforming with
3886 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3888 Please tell bug-automake@gnu.org about your system, including the value
3889 of your $PATH and any error possibly output before this message. This
3890 can help us improve future automake versions.
3893 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3894 echo 'Configuration will proceed anyway, since you have set the' >&2
3895 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3899 Aborting the configuration process, to ensure you take notice of the issue.
3901 You can download and install GNU coreutils to get an 'rm' implementation
3902 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3904 If you want to complete the configuration process using your problematic
3905 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3906 to "yes", and re-run configure.
3909 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3916 # Check whether --enable-maintainer-mode was given.
3917 if test "${enable_maintainer_mode+set}" = set; then :
3918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3920 USE_MAINTAINER_MODE=no
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3925 if test $USE_MAINTAINER_MODE = yes; then
3926 MAINTAINER_MODE_TRUE=
3927 MAINTAINER_MODE_FALSE='#'
3929 MAINTAINER_MODE_TRUE='#'
3930 MAINTAINER_MODE_FALSE=
3933 MAINT=$MAINTAINER_MODE_TRUE
3936 # Check whether --enable-silent-rules was given.
3937 if test "${enable_silent_rules+set}" = set; then :
3938 enableval=$enable_silent_rules;
3941 case $enable_silent_rules in # (((
3942 yes) AM_DEFAULT_VERBOSITY=0;;
3943 no) AM_DEFAULT_VERBOSITY=1;;
3944 *) AM_DEFAULT_VERBOSITY=0;;
3946 am_make=${MAKE-make}
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3948 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3949 if ${am_cv_make_support_nested_variables+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if $as_echo 'TRUE=$(BAR$(V))
3958 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3959 am_cv_make_support_nested_variables=yes
3961 am_cv_make_support_nested_variables=no
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3965 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3966 if test $am_cv_make_support_nested_variables = yes; then
3968 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3970 AM_V=$AM_DEFAULT_VERBOSITY
3971 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3977 DEPDIR="${am__leading_dot}deps"
3979 ac_config_commands="$ac_config_commands depfiles"
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3985 @echo this is the am__doit target
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from 'make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then :
4023 enableval=$enable_dependency_tracking;
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4031 if test "x$enable_dependency_tracking" != xno; then
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4084 if test -z "$ac_cv_prog_CC"; then
4086 # Extract the first word of "gcc", so it can be a program name with args.
4087 set dummy gcc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 if test -n "$ac_ct_CC"; then
4094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_ac_ct_CC="gcc"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114 if test -n "$ac_ct_CC"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116 $as_echo "$ac_ct_CC" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4122 if test "x$ac_ct_CC" = x; then
4125 case $cross_compiling:$ac_tool_warned in
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned=yes ;;
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_CC="${ac_tool_prefix}cc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4178 if test -z "$CC"; then
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198 ac_prog_rejected=yes
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 if test $ac_prog_rejected = yes; then
4210 # We found a bogon in the path, so make sure we never use it.
4211 set dummy $ac_cv_prog_CC
4213 if test $# != 0; then
4214 # We chose a different compiler from the bogus one.
4215 # However, it has the same basename, so the bogon will be chosen
4216 # first if we set CC to just the basename; use the full file name.
4218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4234 if test -z "$CC"; then
4235 if test -n "$ac_tool_prefix"; then
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$CC"; then
4246 ac_cv_prog_CC="$CC" # Let the user override the test.
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 if test -n "$CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 $as_echo "$CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$CC" && break
4278 if test -z "$CC"; then
4280 for ac_prog in cl.exe
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$ac_ct_CC" && break
4322 if test "x$ac_ct_CC" = x; then
4325 case $cross_compiling:$ac_tool_warned in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error $? "no acceptable C compiler found in \$PATH
4341 See \`config.log' for more details" "$LINENO" 5; }
4343 # Provide some information about the compiler.
4344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4347 for ac_option in --version -v -V -qversion; do
4348 { { ac_try="$ac_compiler $ac_option >&5"
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4357 if test -s conftest.err; then
4359 ... rest of stderr output deleted ...
4360 10q' conftest.err >conftest.er1
4361 cat conftest.er1 >&5
4363 rm -f conftest.er1 conftest.err
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 ac_clean_files_save=$ac_clean_files
4380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381 # Try to create an executable without -o first, disregard a.out.
4382 # It will help us diagnose broken compilers, and finding out an intuition
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4388 # The possible output files:
4389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4392 for ac_file in $ac_files
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4401 if { { ac_try="$ac_link_default"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link_default") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4417 for ac_file in $ac_files ''
4419 test -f "$ac_file" || continue
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4424 # We found the default executable, but exeext='' is most
4428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4442 test "$ac_cv_exeext" = no && ac_cv_exeext=
4447 if test -z "$ac_file"; then :
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error 77 "C compiler cannot create executables
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462 $as_echo_n "checking for C compiler default output file name... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464 $as_echo "$ac_file" >&6; }
4465 ac_exeext=$ac_cv_exeext
4467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4468 ac_clean_files=$ac_clean_files_save
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470 $as_echo_n "checking for suffix of executables... " >&6; }
4471 if { { ac_try="$ac_link"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_link") 2>&5
4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; then :
4482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4484 # work properly (i.e., refer to `conftest.exe'), while it won't with
4486 for ac_file in conftest.exe conftest conftest.*; do
4487 test -f "$ac_file" || continue
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499 See \`config.log' for more details" "$LINENO" 5; }
4501 rm -f conftest conftest$ac_cv_exeext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4505 rm -f conftest.$ac_ext
4506 EXEEXT=$ac_cv_exeext
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4514 FILE *f = fopen ("conftest.out", "w");
4515 return ferror (f) || fclose (f) != 0;
4521 ac_clean_files="$ac_clean_files conftest.out"
4522 # Check that the compiler produces executables we can run. If not, either
4523 # the compiler is broken, or we cross compile.
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525 $as_echo_n "checking whether we are cross compiling... " >&6; }
4526 if test "$cross_compiling" != yes; then
4527 { { ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_link") 2>&5
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }
4538 if { ac_try='./conftest$ac_cv_exeext'
4539 { { case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; }; then
4551 if test "$cross_compiling" = maybe; then
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot run C compiled programs.
4557 If you meant to cross compile, use \`--host'.
4558 See \`config.log' for more details" "$LINENO" 5; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563 $as_echo "$cross_compiling" >&6; }
4565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566 ac_clean_files=$ac_clean_files_save
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if ${ac_cv_objext+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try="$ac_compile"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_compile") 2>&5
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }; then :
4595 for ac_file in conftest.o conftest.obj conftest.*; do
4596 test -f "$ac_file" || continue;
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4604 $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of object files: cannot compile
4610 See \`config.log' for more details" "$LINENO" 5; }
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if ${ac_cv_c_compiler_gnu+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4637 if ac_fn_c_try_compile "$LINENO"; then :
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if ${ac_cv_prog_cc_g+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 ac_save_c_werror_flag=$ac_c_werror_flag
4661 ac_c_werror_flag=yes
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_c_werror_flag=$ac_save_c_werror_flag
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_c_try_compile "$LINENO"; then :
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_c_werror_flag=$ac_save_c_werror_flag
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719 CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721 if test "$GCC" = yes; then
4727 if test "$GCC" = yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if ${ac_cv_prog_cc_c89+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 ac_cv_prog_cc_c89=no
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4746 struct buf { int x; };
4747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748 static char *e (p, i)
4754 static char *f (char * (*g) (char **, int), char **p, ...)
4759 s = g (p, va_arg (v,int));
4764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4765 function prototypes and stuff, but not '\xHH' hex character constants.
4766 These don't provoke an error unfortunately, instead are silently treated
4767 as 'x'. The following induces an error, until -std is added to get
4768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4769 array size at least. It's necessary to write '\x00'==0 to get something
4770 that's true only with -std. */
4771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774 inside strings and character constants. */
4776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4778 int test (int i, double x);
4779 struct s1 {int (*f) (int a);};
4780 struct s2 {int (*f) (double a);};
4781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 CC="$ac_save_CC $ac_arg"
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_prog_cc_c89=$ac_arg
4799 rm -f core conftest.err conftest.$ac_objext
4800 test "x$ac_cv_prog_cc_c89" != "xno" && break
4802 rm -f conftest.$ac_ext
4807 case "x$ac_cv_prog_cc_c89" in
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; } ;;
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 $as_echo "unsupported" >&6; } ;;
4815 CC="$CC $ac_cv_prog_cc_c89"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4819 if test "x$ac_cv_prog_cc_c89" != xno; then :
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4835 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4836 if ${am_cv_prog_cc_c_o+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4850 # Make sure it works both with $CC and with simple cc.
4851 # Following AC_PROG_CC_C_O, we do the test twice because some
4852 # compilers refuse to overwrite an existing .o file with -o,
4853 # though they will create one.
4854 am_cv_prog_cc_c_o=yes
4856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } \
4861 && test -f conftest2.$ac_objext; then
4864 am_cv_prog_cc_c_o=no
4868 rm -f core conftest*
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4873 if test "$am_cv_prog_cc_c_o" != yes; then
4874 # Losing compiler, so override with the script.
4875 # FIXME: It is wrong to rewrite CC.
4876 # But if we don't then we get into trouble of one sort or another.
4877 # A longer-term fix would be to have automake use am__CC in this case,
4878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879 CC="$am_aux_dir/compile $CC"
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 depcc="$CC" am_compiler_list=
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896 # We make a subdir and do the tests there. Otherwise we can end up
4897 # making bogus files that we don't know about and never remove. For
4898 # instance it was reported that on HP-UX the gcc test will end up
4899 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # Copy depcomp to subdir because otherwise we won't find it if we're
4904 # using a relative directory.
4905 cp "$am_depcomp" conftest.dir
4907 # We will build objects and dependencies in a subdirectory because
4908 # it helps to detect inapplicable dependency modes. For instance
4909 # both Tru64's cc and ICC support -MD to output dependencies as a
4910 # side effect of compilation, but ICC will put the dependencies in
4911 # the current directory while Tru64 will put them in the object
4915 am_cv_CC_dependencies_compiler_type=none
4916 if test "$am_compiler_list" = ""; then
4917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4920 case " $depcc " in #(
4921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4924 for depmode in $am_compiler_list; do
4925 # Setup a source with many dependencies, because some compilers
4926 # like to wrap large dependency lists on column 80 (with \), and
4927 # we should not choose a depcomp mode which is confused by this.
4929 # We need to recreate these files for each test, as the compiler may
4930 # overwrite some of them when testing with obscure command lines.
4931 # This happens at least with the AIX C compiler.
4933 for i in 1 2 3 4 5 6; do
4934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936 # Solaris 10 /bin/sh.
4937 echo '/* dummy */' > sub/conftst$i.h
4939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942 # mode. It turns out that the SunPro C++ compiler does not properly
4943 # handle '-M -o', and we need to detect this. Also, some Intel
4944 # versions had trouble with output in subdirs.
4945 am__obj=sub/conftest.${OBJEXT-o}
4946 am__minus_obj="-o $am__obj"
4949 # This depmode causes a compiler race in universal mode.
4950 test "$am__universal" = false || continue
4953 # After this tag, mechanisms are not by side-effect, so they'll
4954 # only be used when explicitly requested.
4955 if test "x$enable_dependency_tracking" = xyes; then
4961 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962 # This compiler won't grok '-c -o', but also, the minuso test has
4963 # not run yet. These depmodes are late enough in the game, and
4964 # so weak that their functioning should not be impacted.
4965 am__obj=conftest.${OBJEXT-o}
4970 if depmode=$depmode \
4971 source=sub/conftest.c object=$am__obj \
4972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974 >/dev/null 2>conftest.err &&
4975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979 # icc doesn't choke on unknown options, it will just issue warnings
4980 # or remarks (even with -Werror). So we grep stderr for any message
4981 # that says an option was ignored or not supported.
4982 # When given -MP, icc 7.0 and 7.1 complain thusly:
4983 # icc: Command line warning: ignoring option '-M'; no argument required
4984 # The diagnosis changed in icc 8.0:
4985 # icc: Command line remark: option '-MP' not supported
4986 if (grep 'ignoring option' conftest.err ||
4987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988 am_cv_CC_dependencies_compiler_type=$depmode
4997 am_cv_CC_dependencies_compiler_type=none
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5006 test "x$enable_dependency_tracking" != xno \
5007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5009 am__fastdepCC_FALSE='#'
5011 am__fastdepCC_TRUE='#'
5012 am__fastdepCC_FALSE=
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5024 # On Suns, sometimes $CPP names a directory.
5025 if test -n "$CPP" && test -d "$CPP"; then
5028 if test -z "$CPP"; then
5029 if ${ac_cv_prog_CPP+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 # Double quotes because CPP needs to be expanded
5033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5036 for ac_c_preproc_warn_flag in '' yes
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
5042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5047 # include <limits.h>
5049 # include <assert.h>
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5056 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 #include <ac_nonexistent.h>
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: success on invalid input.
5071 # Passes both tests.
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.i conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5095 for ac_c_preproc_warn_flag in '' yes
5097 # Use a header file that comes with gcc, so configuring glibc
5098 # with a fresh cross-compiler works.
5099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100 # <limits.h> exists even on freestanding compilers.
5101 # On the NeXT, cc -E runs the code through the compiler's parser,
5102 # not just through cpp. "Syntax error" is here to catch this case.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 # include <limits.h>
5108 # include <assert.h>
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5115 # Broken: fails on valid input.
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5120 # OK, works on sane cases. Now check whether nonexistent headers
5121 # can be detected and how.
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <ac_nonexistent.h>
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127 # Broken: success on invalid input.
5130 # Passes both tests.
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.i conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then :
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145 See \`config.log' for more details" "$LINENO" 5; }
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157 if ${ac_cv_path_GREP+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -z "$GREP"; then
5161 ac_path_GREP_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in grep ggrep; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_GREP" || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173 # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5179 $as_echo_n 0123456789 >"conftest.in"
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 $as_echo 'GREP' >> "conftest.nl"
5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_GREP="$ac_path_GREP"
5192 ac_path_GREP_max=$ac_count
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200 $ac_path_GREP_found && break 3
5205 if test -z "$ac_cv_path_GREP"; then
5206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5209 ac_cv_path_GREP=$GREP
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214 $as_echo "$ac_cv_path_GREP" >&6; }
5215 GREP="$ac_cv_path_GREP"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219 $as_echo_n "checking for egrep... " >&6; }
5220 if ${ac_cv_path_EGREP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224 then ac_cv_path_EGREP="$GREP -E"
5226 if test -z "$EGREP"; then
5227 ac_path_EGREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in egrep; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237 as_fn_executable_p "$ac_path_EGREP" || continue
5238 # Check for GNU ac_path_EGREP and select it if it is found.
5239 # Check for GNU $ac_path_EGREP
5240 case `"$ac_path_EGREP" --version 2>&1` in
5242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5245 $as_echo_n 0123456789 >"conftest.in"
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 $as_echo 'EGREP' >> "conftest.nl"
5252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_EGREP="$ac_path_EGREP"
5258 ac_path_EGREP_max=$ac_count
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5266 $ac_path_EGREP_found && break 3
5271 if test -z "$ac_cv_path_EGREP"; then
5272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5275 ac_cv_path_EGREP=$EGREP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281 $as_echo "$ac_cv_path_EGREP" >&6; }
5282 EGREP="$ac_cv_path_EGREP"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5286 $as_echo_n "checking for ANSI C header files... " >&6; }
5287 if ${ac_cv_header_stdc+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_header_stdc=yes
5308 ac_cv_header_stdc=no
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 if test $ac_cv_header_stdc = yes; then
5313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "memchr" >/dev/null 2>&1; then :
5323 ac_cv_header_stdc=no
5329 if test $ac_cv_header_stdc = yes; then
5330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "free" >/dev/null 2>&1; then :
5340 ac_cv_header_stdc=no
5346 if test $ac_cv_header_stdc = yes; then
5347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5348 if test "$cross_compiling" = yes; then :
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5355 #if ((' ' & 0x0FF) == 0x020)
5356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5359 # define ISLOWER(c) \
5360 (('a' <= (c) && (c) <= 'i') \
5361 || ('j' <= (c) && (c) <= 'r') \
5362 || ('s' <= (c) && (c) <= 'z'))
5363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5371 for (i = 0; i < 256; i++)
5372 if (XOR (islower (i), ISLOWER (i))
5373 || toupper (i) != TOUPPER (i))
5378 if ac_fn_c_try_run "$LINENO"; then :
5381 ac_cv_header_stdc=no
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5384 conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5390 $as_echo "$ac_cv_header_stdc" >&6; }
5391 if test $ac_cv_header_stdc = yes; then
5393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5399 inttypes.h stdint.h unistd.h
5401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5405 cat >>confdefs.h <<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5416 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5423 if test "$MINIX" = yes; then
5425 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5431 $as_echo "#define _MINIX 1" >>confdefs.h
5434 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5440 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5441 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5447 # define __EXTENSIONS__ 1
5448 $ac_includes_default
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_safe_to_define___extensions__=yes
5460 ac_cv_safe_to_define___extensions__=no
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5465 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5466 test $ac_cv_safe_to_define___extensions__ = yes &&
5467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5471 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5480 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5481 if ${ac_cv_should_define__xopen_source+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 ac_cv_should_define__xopen_source=no
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5498 if ac_fn_c_try_compile "$LINENO"; then :
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 #define _XOPEN_SOURCE 500
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 ac_cv_should_define__xopen_source=yes
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5523 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5524 test $ac_cv_should_define__xopen_source = yes &&
5525 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5529 if test -n "$ac_tool_prefix"; then
5530 for ac_prog in ar lib "link -lib"
5532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_AR+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 if test -n "$AR"; then
5540 ac_cv_prog_AR="$AR" # Let the user override the test.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 if test -n "$AR"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5562 $as_echo "$AR" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5569 test -n "$AR" && break
5572 if test -z "$AR"; then
5574 for ac_prog in ar lib "link -lib"
5576 # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$ac_ct_AR"; then
5584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_ac_ct_AR="$ac_prog"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5604 if test -n "$ac_ct_AR"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5606 $as_echo "$ac_ct_AR" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 test -n "$ac_ct_AR" && break
5616 if test "x$ac_ct_AR" = x; then
5619 case $cross_compiling:$ac_tool_warned in
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5632 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5633 if ${am_cv_ar_interface+:} false; then :
5634 $as_echo_n "(cached) " >&6
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642 am_cv_ar_interface=ar
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int some_variable = 0;
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5650 (eval $am_ar_try) 2>&5
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }
5654 if test "$ac_status" -eq 0; then
5655 am_cv_ar_interface=ar
5657 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5659 (eval $am_ar_try) 2>&5
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }
5663 if test "$ac_status" -eq 0; then
5664 am_cv_ar_interface=lib
5666 am_cv_ar_interface=unknown
5669 rm -f conftest.lib libconftest.a
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_cpp='$CPP $CPPFLAGS'
5675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5681 $as_echo "$am_cv_ar_interface" >&6; }
5683 case $am_cv_ar_interface in
5687 # Microsoft lib, so override with the ar-lib wrapper script.
5688 # FIXME: It is wrong to rewrite AR.
5689 # But if we don't then we get into trouble of one sort or another.
5690 # A longer-term fix would be to have automake use am__AR in this case,
5691 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5693 AR="$am_aux_dir/ar-lib $AR"
5696 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5703 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5708 macro_version='2.4.6'
5709 macro_revision='2.4.6'
5723 ltmain=$ac_aux_dir/ltmain.sh
5725 # Make sure we can run config.sub.
5726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5727 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5730 $as_echo_n "checking build system type... " >&6; }
5731 if ${ac_cv_build+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 ac_build_alias=$build_alias
5735 test "x$ac_build_alias" = x &&
5736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5737 test "x$ac_build_alias" = x &&
5738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5744 $as_echo "$ac_cv_build" >&6; }
5745 case $ac_cv_build in
5747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5750 ac_save_IFS=$IFS; IFS='-'
5756 # Remember, the first character of IFS is used to create $*,
5757 # except with old shells:
5760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5764 $as_echo_n "checking host system type... " >&6; }
5765 if ${ac_cv_host+:} false; then :
5766 $as_echo_n "(cached) " >&6
5768 if test "x$host_alias" = x; then
5769 ac_cv_host=$ac_cv_build
5771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5777 $as_echo "$ac_cv_host" >&6; }
5780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5783 ac_save_IFS=$IFS; IFS='-'
5789 # Remember, the first character of IFS is used to create $*,
5790 # except with old shells:
5793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5796 # Backslashify metacharacters that are still active within
5797 # double-quoted strings.
5798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5800 # Same as above, but do not quote variable references.
5801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5803 # Sed substitution to delay expansion of an escaped shell variable in a
5804 # double_quote_subst'ed string.
5805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5807 # Sed substitution to delay expansion of an escaped single quote.
5808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5810 # Sed substitution to avoid accidental globbing in evaled expressions
5811 no_glob_subst='s/\*/\\\*/g'
5813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5818 $as_echo_n "checking how to print strings... " >&6; }
5819 # Test print first, because it will be a builtin if present.
5820 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5821 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5826 # Use this function as a fallback that always works.
5827 func_fallback_echo ()
5829 eval 'cat <<_LTECHO_EOF
5833 ECHO='func_fallback_echo'
5836 # func_echo_all arg...
5837 # Invoke $ECHO with all args, space-separated.
5844 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5845 $as_echo "printf" >&6; } ;;
5846 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5847 $as_echo "print -r" >&6; } ;;
5848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5849 $as_echo "cat" >&6; } ;;
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5866 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5867 if ${ac_cv_path_SED+:} false; then :
5868 $as_echo_n "(cached) " >&6
5870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5871 for ac_i in 1 2 3 4 5 6 7; do
5872 ac_script="$ac_script$as_nl$ac_script"
5874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5875 { ac_script=; unset ac_script;}
5876 if test -z "$SED"; then
5877 ac_path_SED_found=false
5878 # Loop through the user's path and test for each of PROGNAME-LIST
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_prog in sed gsed; do
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5887 as_fn_executable_p "$ac_path_SED" || continue
5888 # Check for GNU ac_path_SED and select it if it is found.
5889 # Check for GNU $ac_path_SED
5890 case `"$ac_path_SED" --version 2>&1` in
5892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5895 $as_echo_n 0123456789 >"conftest.in"
5898 cat "conftest.in" "conftest.in" >"conftest.tmp"
5899 mv "conftest.tmp" "conftest.in"
5900 cp "conftest.in" "conftest.nl"
5901 $as_echo '' >> "conftest.nl"
5902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5904 as_fn_arith $ac_count + 1 && ac_count=$as_val
5905 if test $ac_count -gt ${ac_path_SED_max-0}; then
5906 # Best one so far, save it but keep looking for a better one
5907 ac_cv_path_SED="$ac_path_SED"
5908 ac_path_SED_max=$ac_count
5910 # 10*(2^10) chars as input seems more than enough
5911 test $ac_count -gt 10 && break
5913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5916 $ac_path_SED_found && break 3
5921 if test -z "$ac_cv_path_SED"; then
5922 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5930 $as_echo "$ac_cv_path_SED" >&6; }
5931 SED="$ac_cv_path_SED"
5934 test -z "$SED" && SED=sed
5935 Xsed="$SED -e 1s/^X//"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5948 $as_echo_n "checking for fgrep... " >&6; }
5949 if ${ac_cv_path_FGREP+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5953 then ac_cv_path_FGREP="$GREP -F"
5955 if test -z "$FGREP"; then
5956 ac_path_FGREP_found=false
5957 # Loop through the user's path and test for each of PROGNAME-LIST
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5962 test -z "$as_dir" && as_dir=.
5963 for ac_prog in fgrep; do
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5966 as_fn_executable_p "$ac_path_FGREP" || continue
5967 # Check for GNU ac_path_FGREP and select it if it is found.
5968 # Check for GNU $ac_path_FGREP
5969 case `"$ac_path_FGREP" --version 2>&1` in
5971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5974 $as_echo_n 0123456789 >"conftest.in"
5977 cat "conftest.in" "conftest.in" >"conftest.tmp"
5978 mv "conftest.tmp" "conftest.in"
5979 cp "conftest.in" "conftest.nl"
5980 $as_echo 'FGREP' >> "conftest.nl"
5981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5983 as_fn_arith $ac_count + 1 && ac_count=$as_val
5984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5985 # Best one so far, save it but keep looking for a better one
5986 ac_cv_path_FGREP="$ac_path_FGREP"
5987 ac_path_FGREP_max=$ac_count
5989 # 10*(2^10) chars as input seems more than enough
5990 test $ac_count -gt 10 && break
5992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5995 $ac_path_FGREP_found && break 3
6000 if test -z "$ac_cv_path_FGREP"; then
6001 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 ac_cv_path_FGREP=$FGREP
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6010 $as_echo "$ac_cv_path_FGREP" >&6; }
6011 FGREP="$ac_cv_path_FGREP"
6014 test -z "$GREP" && GREP=grep
6034 # Check whether --with-gnu-ld was given.
6035 if test "${with_gnu_ld+set}" = set; then :
6036 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6042 if test yes = "$GCC"; then
6043 # Check if gcc -print-prog-name=ld gives a path.
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6045 $as_echo_n "checking for ld used by $CC... " >&6; }
6048 # gcc leaves a trailing carriage return, which upsets mingw
6049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6054 # Accept absolute paths.
6056 re_direlt='/[^/][^/]*/\.\./'
6057 # Canonicalize the pathname of ld
6058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6062 test -z "$LD" && LD=$ac_prog
6065 # If it fails, then pretend we aren't using GCC.
6069 # If it is relative, then search for the first ld in PATH.
6073 elif test yes = "$with_gnu_ld"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6075 $as_echo_n "checking for GNU ld... " >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6078 $as_echo_n "checking for non-GNU ld... " >&6; }
6080 if ${lt_cv_path_LD+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 if test -z "$LD"; then
6084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6085 for ac_dir in $PATH; do
6087 test -z "$ac_dir" && ac_dir=.
6088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6089 lt_cv_path_LD=$ac_dir/$ac_prog
6090 # Check to see if the program is GNU ld. I'd rather use --version,
6091 # but apparently some variants of GNU ld only accept -v.
6092 # Break only if it was the GNU/non-GNU ld that we prefer.
6093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6094 *GNU* | *'with BFD'*)
6095 test no != "$with_gnu_ld" && break
6098 test yes != "$with_gnu_ld" && break
6105 lt_cv_path_LD=$LD # Let the user override the test with a path.
6110 if test -n "$LD"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6112 $as_echo "$LD" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6120 if ${lt_cv_prog_gnu_ld+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126 lt_cv_prog_gnu_ld=yes
6129 lt_cv_prog_gnu_ld=no
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6147 if ${lt_cv_path_NM+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$NM"; then
6151 # Let the user override the test.
6154 lt_nm_to_check=${ac_tool_prefix}nm
6155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6156 lt_nm_to_check="$lt_nm_to_check nm"
6158 for lt_tmp_nm in $lt_nm_to_check; do
6159 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6162 test -z "$ac_dir" && ac_dir=.
6163 tmp_nm=$ac_dir/$lt_tmp_nm
6164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6165 # Check to see if the nm accepts a BSD-compat flag.
6166 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6167 # nm: unknown option "B" ignored
6168 # Tru64's nm complains that /dev/null is an invalid object file
6169 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6171 mingw*) lt_bad_file=conftest.nm/nofile ;;
6172 *) lt_bad_file=/dev/null ;;
6174 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6175 *$lt_bad_file* | *'Invalid file or object type'*)
6176 lt_cv_path_NM="$tmp_nm -B"
6180 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6182 lt_cv_path_NM="$tmp_nm -p"
6186 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6187 continue # so that we can try to find one that supports BSD flags
6196 : ${lt_cv_path_NM=no}
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6200 $as_echo "$lt_cv_path_NM" >&6; }
6201 if test no != "$lt_cv_path_NM"; then
6204 # Didn't find any BSD compatible name lister, look for dumpbin.
6205 if test -n "$DUMPBIN"; then :
6206 # Let the user override the test.
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in dumpbin "link -dump"
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if ${ac_cv_prog_DUMPBIN+:} false; then :
6216 $as_echo_n "(cached) " >&6
6218 if test -n "$DUMPBIN"; then
6219 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 DUMPBIN=$ac_cv_prog_DUMPBIN
6239 if test -n "$DUMPBIN"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6241 $as_echo "$DUMPBIN" >&6; }
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6248 test -n "$DUMPBIN" && break
6251 if test -z "$DUMPBIN"; then
6252 ac_ct_DUMPBIN=$DUMPBIN
6253 for ac_prog in dumpbin "link -dump"
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$ac_ct_DUMPBIN"; then
6263 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6283 if test -n "$ac_ct_DUMPBIN"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6285 $as_echo "$ac_ct_DUMPBIN" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6292 test -n "$ac_ct_DUMPBIN" && break
6295 if test "x$ac_ct_DUMPBIN" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6304 DUMPBIN=$ac_ct_DUMPBIN
6308 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6310 DUMPBIN="$DUMPBIN -symbols -headers"
6318 if test : != "$DUMPBIN"; then
6322 test -z "$NM" && NM=nm
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6330 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6331 if ${lt_cv_nm_interface+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 lt_cv_nm_interface="BSD nm"
6335 echo "int some_variable = 0;" > conftest.$ac_ext
6336 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6337 (eval "$ac_compile" 2>conftest.err)
6338 cat conftest.err >&5
6339 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6340 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6341 cat conftest.err >&5
6342 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6343 cat conftest.out >&5
6344 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6345 lt_cv_nm_interface="MS dumpbin"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6350 $as_echo "$lt_cv_nm_interface" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6353 $as_echo_n "checking whether ln -s works... " >&6; }
6355 if test "$LN_S" = "ln -s"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6357 $as_echo "yes" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6360 $as_echo "no, using $LN_S" >&6; }
6363 # find the maximum length of command line arguments
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6365 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6366 if ${lt_cv_sys_max_cmd_len+:} false; then :
6367 $as_echo_n "(cached) " >&6
6374 # On DJGPP, this test can blow up pretty badly due to problems in libc
6375 # (any single argument exceeding 2000 bytes causes a buffer overrun
6376 # during glob expansion). Even if it were fixed, the result of this
6377 # check would be larger than it should be.
6378 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6382 # Under GNU Hurd, this test is not required because there is
6383 # no limit to the length of command line arguments.
6384 # Libtool will interpret -1 as no limit whatsoever
6385 lt_cv_sys_max_cmd_len=-1;
6388 cygwin* | mingw* | cegcc*)
6389 # On Win9x/ME, this test blows up -- it succeeds, but takes
6390 # about 5 minutes as the teststring grows exponentially.
6391 # Worse, since 9x/ME are not pre-emptively multitasking,
6392 # you end up with a "frozen" computer, even though with patience
6393 # the test eventually succeeds (with a max line length of 256k).
6394 # Instead, let's just punt: use the minimum linelength reported by
6395 # all of the supported platforms: 8192 (on NT/2K/XP).
6396 lt_cv_sys_max_cmd_len=8192;
6400 # On MiNT this can take a long time and run out of memory.
6401 lt_cv_sys_max_cmd_len=8192;
6405 # On AmigaOS with pdksh, this test takes hours, literally.
6406 # So we just punt and use a minimum line length of 8192.
6407 lt_cv_sys_max_cmd_len=8192;
6410 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6411 # This has been around since 386BSD, at least. Likely further.
6412 if test -x /sbin/sysctl; then
6413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6414 elif test -x /usr/sbin/sysctl; then
6415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6417 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6419 # And add a safety zone
6420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6425 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6426 lt_cv_sys_max_cmd_len=196608
6430 # The test takes a long time on OS/2.
6431 lt_cv_sys_max_cmd_len=8192
6435 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6436 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6437 # nice to cause kernel panics so lets avoid the loop below.
6438 # First set a reasonable default.
6439 lt_cv_sys_max_cmd_len=16384
6441 if test -x /sbin/sysconfig; then
6442 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6443 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6448 lt_cv_sys_max_cmd_len=102400
6450 sysv5* | sco5v6* | sysv4.2uw2*)
6451 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6452 if test -n "$kargmax"; then
6453 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6455 lt_cv_sys_max_cmd_len=32768
6459 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6460 if test -n "$lt_cv_sys_max_cmd_len" && \
6461 test undefined != "$lt_cv_sys_max_cmd_len"; then
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6465 # Make teststring a little bigger before we do anything with it.
6466 # a 1K string should be a reasonable start.
6467 for i in 1 2 3 4 5 6 7 8; do
6468 teststring=$teststring$teststring
6470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471 # If test is not a shell built-in, we'll probably end up computing a
6472 # maximum length that is only half of the actual maximum length, but
6474 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6475 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6476 test 17 != "$i" # 1/2 MB should be enough
6479 teststring=$teststring$teststring
6481 # Only check the string length outside the loop.
6482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6484 # Add a significant safety factor because C++ compilers can tack on
6485 # massive amounts of additional arguments before passing them to the
6486 # linker. It appears as though 1/2 is a usable value.
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6494 if test -n "$lt_cv_sys_max_cmd_len"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6496 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6499 $as_echo "none" >&6; }
6501 max_cmd_len=$lt_cv_sys_max_cmd_len
6512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6522 # test EBCDIC or ASCII
6523 case `echo X|tr X '\101'` in
6524 A) # ASCII based system
6525 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6526 lt_SP2NL='tr \040 \012'
6527 lt_NL2SP='tr \015\012 \040\040'
6529 *) # EBCDIC based system
6530 lt_SP2NL='tr \100 \n'
6531 lt_NL2SP='tr \r\n \100\100'
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6544 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6545 if ${lt_cv_to_host_file_cmd+:} false; then :
6546 $as_echo_n "(cached) " >&6
6551 *-*-mingw* ) # actually msys
6552 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6555 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6557 * ) # otherwise, assume *nix
6558 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6564 *-*-mingw* ) # actually msys
6565 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6568 lt_cv_to_host_file_cmd=func_convert_file_noop
6570 * ) # otherwise, assume *nix
6571 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6575 * ) # unhandled hosts (and "normal" native builds)
6576 lt_cv_to_host_file_cmd=func_convert_file_noop
6582 to_host_file_cmd=$lt_cv_to_host_file_cmd
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6584 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6591 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6592 if ${lt_cv_to_tool_file_cmd+:} false; then :
6593 $as_echo_n "(cached) " >&6
6595 #assume ordinary cross tools, or native build.
6596 lt_cv_to_tool_file_cmd=func_convert_file_noop
6600 *-*-mingw* ) # actually msys
6601 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6609 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6611 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6618 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6619 if ${lt_cv_ld_reload_flag+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 lt_cv_ld_reload_flag='-r'
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6625 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6626 reload_flag=$lt_cv_ld_reload_flag
6627 case $reload_flag in
6629 *) reload_flag=" $reload_flag" ;;
6631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6633 cygwin* | mingw* | pw32* | cegcc*)
6634 if test yes != "$GCC"; then
6639 if test yes = "$GCC"; then
6640 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OBJDUMP+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$OBJDUMP"; then
6664 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 OBJDUMP=$ac_cv_prog_OBJDUMP
6684 if test -n "$OBJDUMP"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6686 $as_echo "$OBJDUMP" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_OBJDUMP"; then
6695 ac_ct_OBJDUMP=$OBJDUMP
6696 # Extract the first word of "objdump", so it can be a program name with args.
6697 set dummy objdump; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$ac_ct_OBJDUMP"; then
6704 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6724 if test -n "$ac_ct_OBJDUMP"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6726 $as_echo "$ac_ct_OBJDUMP" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_OBJDUMP" = x; then
6735 case $cross_compiling:$ac_tool_warned in
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6741 OBJDUMP=$ac_ct_OBJDUMP
6744 OBJDUMP="$ac_cv_prog_OBJDUMP"
6747 test -z "$OBJDUMP" && OBJDUMP=objdump
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6758 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6759 if ${lt_cv_deplibs_check_method+:} false; then :
6760 $as_echo_n "(cached) " >&6
6762 lt_cv_file_magic_cmd='$MAGIC_CMD'
6763 lt_cv_file_magic_test_file=
6764 lt_cv_deplibs_check_method='unknown'
6765 # Need to set the preceding variable on all platforms that support
6766 # interlibrary dependencies.
6767 # 'none' -- dependencies not supported.
6768 # 'unknown' -- same as none, but documents that we really don't know.
6769 # 'pass_all' -- all dependencies passed with no checks.
6770 # 'test_compile' -- check by making test program.
6771 # 'file_magic [[regex]]' -- check by looking for files in library path
6772 # that responds to the $file_magic_cmd with a given extended regex.
6773 # If you have 'file' or equivalent on your system and you're not sure
6774 # whether 'pass_all' will *always* work, you probably want this one.
6778 lt_cv_deplibs_check_method=pass_all
6782 lt_cv_deplibs_check_method=pass_all
6786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6787 lt_cv_file_magic_cmd='/usr/bin/file -L'
6788 lt_cv_file_magic_test_file=/shlib/libc.so
6792 # func_win32_libid is a shell function defined in ltmain.sh
6793 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6794 lt_cv_file_magic_cmd='func_win32_libid'
6798 # Base MSYS/MinGW do not provide the 'file' command needed by
6799 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6800 # unless we find 'file', for example because we are cross-compiling.
6801 if ( file / ) >/dev/null 2>&1; then
6802 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6803 lt_cv_file_magic_cmd='func_win32_libid'
6805 # Keep this pattern in sync with the one in func_win32_libid.
6806 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6807 lt_cv_file_magic_cmd='$OBJDUMP -f'
6812 # use the weaker test based on 'objdump'. See mingw*.
6813 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6814 lt_cv_file_magic_cmd='$OBJDUMP -f'
6817 darwin* | rhapsody*)
6818 lt_cv_deplibs_check_method=pass_all
6821 freebsd* | dragonfly*)
6822 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6825 # Not sure whether the presence of OpenBSD here was a mistake.
6826 # Let's accept both of them until this is cleared up.
6827 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6828 lt_cv_file_magic_cmd=/usr/bin/file
6829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6833 lt_cv_deplibs_check_method=pass_all
6838 lt_cv_deplibs_check_method=pass_all
6841 hpux10.20* | hpux11*)
6842 lt_cv_file_magic_cmd=/usr/bin/file
6845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6846 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6849 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]'
6850 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6854 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6860 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6864 irix5* | irix6* | nonstopux*)
6866 *-32|*"-32 ") libmagic=32-bit;;
6867 *-n32|*"-n32 ") libmagic=N32;;
6868 *-64|*"-64 ") libmagic=64-bit;;
6869 *) libmagic=never-match;;
6871 lt_cv_deplibs_check_method=pass_all
6874 # This must be glibc/ELF.
6875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6876 lt_cv_deplibs_check_method=pass_all
6879 netbsd* | netbsdelf*-gnu)
6880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6889 lt_cv_file_magic_cmd=/usr/bin/file
6890 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6894 lt_cv_deplibs_check_method=pass_all
6898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6905 osf3* | osf4* | osf5*)
6906 lt_cv_deplibs_check_method=pass_all
6910 lt_cv_deplibs_check_method=pass_all
6914 lt_cv_deplibs_check_method=pass_all
6917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6918 lt_cv_deplibs_check_method=pass_all
6922 case $host_vendor in
6924 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]'
6925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6928 lt_cv_deplibs_check_method=pass_all
6931 lt_cv_file_magic_cmd='/bin/file'
6932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6935 lt_cv_file_magic_cmd='/bin/file'
6936 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6937 lt_cv_file_magic_test_file=/lib/libc.so
6940 lt_cv_deplibs_check_method=pass_all
6943 lt_cv_deplibs_check_method=pass_all
6949 lt_cv_deplibs_check_method=pass_all
6952 lt_cv_deplibs_check_method=pass_all
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6958 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6962 if test "$build" = "$host"; then
6965 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6968 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6974 file_magic_cmd=$lt_cv_file_magic_cmd
6975 deplibs_check_method=$lt_cv_deplibs_check_method
6976 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_DLLTOOL+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 if test -n "$DLLTOOL"; then
7008 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 DLLTOOL=$ac_cv_prog_DLLTOOL
7028 if test -n "$DLLTOOL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7030 $as_echo "$DLLTOOL" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7038 if test -z "$ac_cv_prog_DLLTOOL"; then
7039 ac_ct_DLLTOOL=$DLLTOOL
7040 # Extract the first word of "dlltool", so it can be a program name with args.
7041 set dummy dlltool; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 if test -n "$ac_ct_DLLTOOL"; then
7048 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7068 if test -n "$ac_ct_DLLTOOL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7070 $as_echo "$ac_ct_DLLTOOL" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test "x$ac_ct_DLLTOOL" = x; then
7079 case $cross_compiling:$ac_tool_warned in
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7085 DLLTOOL=$ac_ct_DLLTOOL
7088 DLLTOOL="$ac_cv_prog_DLLTOOL"
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7103 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7104 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 lt_cv_sharedlib_from_linklib_cmd='unknown'
7110 cygwin* | mingw* | pw32* | cegcc*)
7111 # two different shell functions defined in ltmain.sh;
7112 # decide which one to use based on capabilities of $DLLTOOL
7113 case `$DLLTOOL --help 2>&1` in
7114 *--identify-strict*)
7115 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7118 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7123 # fallback: assume linklib IS sharedlib
7124 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7130 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7131 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7132 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7140 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_AR+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$AR"; then
7151 ac_cv_prog_AR="$AR" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 if test -n "$AR"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7173 $as_echo "$AR" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7180 test -n "$AR" && break
7183 if test -z "$AR"; then
7187 # Extract the first word of "$ac_prog", so it can be a program name with args.
7188 set dummy $ac_prog; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$ac_ct_AR"; then
7195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_ac_ct_AR="$ac_prog"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215 if test -n "$ac_ct_AR"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7217 $as_echo "$ac_ct_AR" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7224 test -n "$ac_ct_AR" && break
7227 if test "x$ac_ct_AR" = x; then
7230 case $cross_compiling:$ac_tool_warned in
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7254 $as_echo_n "checking for archiver @FILE support... " >&6; }
7255 if ${lt_cv_ar_at_file+:} false; then :
7256 $as_echo_n "(cached) " >&6
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7270 if ac_fn_c_try_compile "$LINENO"; then :
7271 echo conftest.$ac_objext > conftest.lst
7272 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7274 (eval $lt_ar_try) 2>&5
7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277 test $ac_status = 0; }
7278 if test 0 -eq "$ac_status"; then
7279 # Ensure the archiver fails upon bogus file names.
7280 rm -f conftest.$ac_objext libconftest.a
7281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7282 (eval $lt_ar_try) 2>&5
7284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7285 test $ac_status = 0; }
7286 if test 0 -ne "$ac_status"; then
7290 rm -f conftest.* libconftest.a
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7297 $as_echo "$lt_cv_ar_at_file" >&6; }
7299 if test no = "$lt_cv_ar_at_file"; then
7302 archiver_list_spec=$lt_cv_ar_at_file
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}strip; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_STRIP+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$STRIP"; then
7320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 STRIP=$ac_cv_prog_STRIP
7340 if test -n "$STRIP"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7342 $as_echo "$STRIP" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7350 if test -z "$ac_cv_prog_STRIP"; then
7352 # Extract the first word of "strip", so it can be a program name with args.
7353 set dummy strip; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$ac_ct_STRIP"; then
7360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_STRIP="strip"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7380 if test -n "$ac_ct_STRIP"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7382 $as_echo "$ac_ct_STRIP" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7388 if test "x$ac_ct_STRIP" = x; then
7391 case $cross_compiling:$ac_tool_warned in
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned=yes ;;
7400 STRIP="$ac_cv_prog_STRIP"
7403 test -z "$STRIP" && STRIP=:
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_RANLIB+:} false; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$RANLIB"; then
7419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 RANLIB=$ac_cv_prog_RANLIB
7439 if test -n "$RANLIB"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7441 $as_echo "$RANLIB" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_RANLIB"; then
7450 ac_ct_RANLIB=$RANLIB
7451 # Extract the first word of "ranlib", so it can be a program name with args.
7452 set dummy ranlib; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$ac_ct_RANLIB"; then
7459 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_ac_ct_RANLIB="ranlib"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7479 if test -n "$ac_ct_RANLIB"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7481 $as_echo "$ac_ct_RANLIB" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_RANLIB" = x; then
7490 case $cross_compiling:$ac_tool_warned in
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7496 RANLIB=$ac_ct_RANLIB
7499 RANLIB="$ac_cv_prog_RANLIB"
7502 test -z "$RANLIB" && RANLIB=:
7509 # Determine commands to create old-style static archives.
7510 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7511 old_postinstall_cmds='chmod 644 $oldlib'
7512 old_postuninstall_cmds=
7514 if test -n "$RANLIB"; then
7517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7520 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7523 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7528 lock_old_archive_extraction=yes ;;
7530 lock_old_archive_extraction=no ;;
7571 # If no C compiler was specified, use CC.
7574 # If no C compiler flags were specified, use CFLAGS.
7575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7577 # Allow CC to be a program name with arguments.
7581 # Check for command to grab the raw symbol name followed by C symbol from nm.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7583 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7584 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7585 $as_echo_n "(cached) " >&6
7588 # These are sane defaults that work on at least a few old systems.
7589 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7591 # Character class describing NM global symbol codes.
7592 symcode='[BCDEGRST]'
7594 # Regexp to match symbols that can be accessed directly from C.
7595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7597 # Define system-specific variables.
7602 cygwin* | mingw* | pw32* | cegcc*)
7603 symcode='[ABCDGISTW]'
7606 if test ia64 = "$host_cpu"; then
7607 symcode='[ABCDEGRST]'
7611 symcode='[BCDEGRST]'
7614 symcode='[BCDEGQRST]'
7625 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7633 # If we're using GNU nm, then use its standard symbol codes.
7634 case `$NM -V 2>&1` in
7635 *GNU* | *'with BFD'*)
7636 symcode='[ABCDGIRSTW]' ;;
7639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7640 # Gets list of data symbols to import.
7641 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7642 # Adjust the below global symbol transforms to fixup imported variables.
7643 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7644 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7645 lt_c_name_lib_hook="\
7646 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7647 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7649 # Disable hooks by default.
7650 lt_cv_sys_global_symbol_to_import=
7656 # Transform an extracted symbol line into a proper C declaration.
7657 # Some systems (esp. on ia64) link data and code symbols differently,
7658 # so use this general approach.
7659 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7661 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7662 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7664 # Transform an extracted symbol line into symbol name and symbol address
7665 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7667 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7668 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7670 # Transform an extracted symbol line into symbol name with lib prefix and
7672 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7673 $lt_c_name_lib_hook\
7674 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7675 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7676 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7678 # Handle CRLF in mingw tool chain
7682 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7686 # Try without a prefix underscore, then with it.
7687 for ac_symprfx in "" "_"; do
7689 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7690 symxfrm="\\1 $ac_symprfx\\2 \\2"
7692 # Write the raw and C identifiers.
7693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7694 # Fake it for dumpbin and say T for any non-static function,
7695 # D for any global variable and I for any imported variable.
7696 # Also find C++ and __fastcall symbols from MSVC++,
7697 # which start with @ or ?.
7698 lt_cv_sys_global_symbol_pipe="$AWK '"\
7699 " {last_section=section; section=\$ 3};"\
7700 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7701 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7702 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7703 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7704 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7705 " \$ 0!~/External *\|/{next};"\
7706 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7707 " {if(hide[section]) next};"\
7708 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7709 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7710 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7711 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7712 " ' prfx=^$ac_symprfx"
7714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7716 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7718 # Check to see that the pipe works correctly.
7722 cat > conftest.$ac_ext <<_LT_EOF
7727 void nm_test_func(void);
7728 void nm_test_func(void){}
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 # Now try to grab the symbols.
7742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7743 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; } && test -s "$nlist"; then
7747 # Try sorting and uniquifying the output.
7748 if sort "$nlist" | uniq > "$nlist"T; then
7749 mv -f "$nlist"T "$nlist"
7754 # Make sure that we snagged all the symbols we need.
7755 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7756 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7757 cat <<_LT_EOF > conftest.$ac_ext
7758 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7759 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7760 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7761 relocations are performed -- see ld's documentation on pseudo-relocs. */
7762 # define LT_DLSYM_CONST
7763 #elif defined __osf__
7764 /* This system does not cope well with relocations in const data. */
7765 # define LT_DLSYM_CONST
7767 # define LT_DLSYM_CONST const
7775 # Now generate the symbol file.
7776 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7778 cat <<_LT_EOF >> conftest.$ac_ext
7780 /* The mapping between symbol names and symbols. */
7781 LT_DLSYM_CONST struct {
7785 lt__PROGRAM__LTX_preloaded_symbols[] =
7787 { "@PROGRAM@", (void *) 0 },
7789 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7790 cat <<\_LT_EOF >> conftest.$ac_ext
7794 /* This works around a problem in FreeBSD linker */
7795 #ifdef FREEBSD_WORKAROUND
7796 static const void *lt_preloaded_setup() {
7797 return lt__PROGRAM__LTX_preloaded_symbols;
7805 # Now try linking the two files.
7806 mv conftest.$ac_objext conftstm.$ac_objext
7807 lt_globsym_save_LIBS=$LIBS
7808 lt_globsym_save_CFLAGS=$CFLAGS
7809 LIBS=conftstm.$ac_objext
7810 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7812 (eval $ac_link) 2>&5
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7818 LIBS=$lt_globsym_save_LIBS
7819 CFLAGS=$lt_globsym_save_CFLAGS
7821 echo "cannot find nm_test_func in $nlist" >&5
7824 echo "cannot find nm_test_var in $nlist" >&5
7827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7830 echo "$progname: failed program was:" >&5
7831 cat conftest.$ac_ext >&5
7833 rm -rf conftest* conftst*
7835 # Do not use the global_symbol_pipe unless it works.
7836 if test yes = "$pipe_works"; then
7839 lt_cv_sys_global_symbol_pipe=
7845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7846 lt_cv_sys_global_symbol_to_cdecl=
7848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7850 $as_echo "failed" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7853 $as_echo "ok" >&6; }
7856 # Response file support.
7857 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7858 nm_file_list_spec='@'
7859 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7860 nm_file_list_spec='@'
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7900 $as_echo_n "checking for sysroot... " >&6; }
7902 # Check whether --with-sysroot was given.
7903 if test "${with_sysroot+set}" = set; then :
7904 withval=$with_sysroot;
7911 case $with_sysroot in #(
7913 if test yes = "$GCC"; then
7914 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7918 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7924 $as_echo "$with_sysroot" >&6; }
7925 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7930 $as_echo "${lt_sysroot:-no}" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7937 $as_echo_n "checking for a working dd... " >&6; }
7938 if ${ac_cv_path_lt_DD+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 printf 0123456789abcdef0123456789abcdef >conftest.i
7942 cat conftest.i conftest.i >conftest2.i
7944 if test -z "$lt_DD"; then
7945 ac_path_lt_DD_found=false
7946 # Loop through the user's path and test for each of PROGNAME-LIST
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_prog in dd; do
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7955 as_fn_executable_p "$ac_path_lt_DD" || continue
7956 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7957 cmp -s conftest.i conftest.out \
7958 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7960 $ac_path_lt_DD_found && break 3
7965 if test -z "$ac_cv_path_lt_DD"; then
7969 ac_cv_path_lt_DD=$lt_DD
7972 rm -f conftest.i conftest2.i conftest.out
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7975 $as_echo "$ac_cv_path_lt_DD" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7979 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7980 if ${lt_cv_truncate_bin+:} false; then :
7981 $as_echo_n "(cached) " >&6
7983 printf 0123456789abcdef0123456789abcdef >conftest.i
7984 cat conftest.i conftest.i >conftest2.i
7986 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7987 cmp -s conftest.i conftest.out \
7988 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7990 rm -f conftest.i conftest2.i conftest.out
7991 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7994 $as_echo "$lt_cv_truncate_bin" >&6; }
8002 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8005 for cc_temp in $*""; do
8007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8013 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8016 # Check whether --enable-libtool-lock was given.
8017 if test "${enable_libtool_lock+set}" = set; then :
8018 enableval=$enable_libtool_lock;
8021 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8023 # Some flags need to be propagated to the compiler or linker for good
8027 # Find out what ABI is being produced by ac_compile, and set mode
8028 # options accordingly.
8029 echo 'int i;' > conftest.$ac_ext
8030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8031 (eval $ac_compile) 2>&5
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 case `/usr/bin/file conftest.$ac_objext` in
8047 # Find out what ABI is being produced by ac_compile, and set linker
8048 # options accordingly.
8049 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8051 (eval $ac_compile) 2>&5
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; }; then
8055 if test yes = "$lt_cv_prog_gnu_ld"; then
8056 case `/usr/bin/file conftest.$ac_objext` in
8058 LD="${LD-ld} -melf32bsmip"
8061 LD="${LD-ld} -melf32bmipn32"
8064 LD="${LD-ld} -melf64bmip"
8068 case `/usr/bin/file conftest.$ac_objext` in
8085 # Find out what ABI is being produced by ac_compile, and set linker
8086 # options accordingly.
8087 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8089 (eval $ac_compile) 2>&5
8091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092 test $ac_status = 0; }; then
8094 case `/usr/bin/file conftest.$ac_objext` in
8102 case `/usr/bin/file conftest.$ac_objext` in
8104 emul="${emul}btsmip"
8107 emul="${emul}ltsmip"
8110 case `/usr/bin/file conftest.$ac_objext` in
8115 LD="${LD-ld} -m $emul"
8120 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8121 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8122 # Find out what ABI is being produced by ac_compile, and set linker
8123 # options accordingly. Note that the listed cases only cover the
8124 # situations where additional linker options are needed (such as when
8125 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8126 # vice versa); the common cases where no linker options are needed do
8127 # not appear in the list.
8128 echo 'int i;' > conftest.$ac_ext
8129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130 (eval $ac_compile) 2>&5
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 case `/usr/bin/file conftest.o` in
8137 x86_64-*kfreebsd*-gnu)
8138 LD="${LD-ld} -m elf_i386_fbsd"
8141 case `/usr/bin/file conftest.o` in
8143 LD="${LD-ld} -m elf32_x86_64"
8146 LD="${LD-ld} -m elf_i386"
8150 powerpc64le-*linux*)
8151 LD="${LD-ld} -m elf32lppclinux"
8154 LD="${LD-ld} -m elf32ppclinux"
8157 LD="${LD-ld} -m elf_s390"
8160 LD="${LD-ld} -m elf32_sparc"
8166 x86_64-*kfreebsd*-gnu)
8167 LD="${LD-ld} -m elf_x86_64_fbsd"
8170 LD="${LD-ld} -m elf_x86_64"
8173 LD="${LD-ld} -m elf64lppc"
8176 LD="${LD-ld} -m elf64ppc"
8178 s390*-*linux*|s390*-*tpf*)
8179 LD="${LD-ld} -m elf64_s390"
8182 LD="${LD-ld} -m elf64_sparc"
8192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8194 CFLAGS="$CFLAGS -belf"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198 $as_echo_n "(cached) " >&6
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 lt_cv_cc_needs_belf=yes
8220 lt_cv_cc_needs_belf=no
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233 if test yes != "$lt_cv_cc_needs_belf"; then
8234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8239 # Find out what ABI is being produced by ac_compile, and set linker
8240 # options accordingly.
8241 echo 'int i;' > conftest.$ac_ext
8242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8243 (eval $ac_compile) 2>&5
8245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246 test $ac_status = 0; }; then
8247 case `/usr/bin/file conftest.o` in
8249 case $lt_cv_prog_gnu_ld in
8252 i?86-*-solaris*|x86_64-*-solaris*)
8253 LD="${LD-ld} -m elf_x86_64"
8256 LD="${LD-ld} -m elf64_sparc"
8259 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8260 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8265 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8277 need_locks=$enable_libtool_lock
8279 if test -n "$ac_tool_prefix"; then
8280 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}mt; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8285 $as_echo_n "(cached) " >&6
8287 if test -n "$MANIFEST_TOOL"; then
8288 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8308 if test -n "$MANIFEST_TOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8310 $as_echo "$MANIFEST_TOOL" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8318 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8319 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8320 # Extract the first word of "mt", so it can be a program name with args.
8321 set dummy mt; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8325 $as_echo_n "(cached) " >&6
8327 if test -n "$ac_ct_MANIFEST_TOOL"; then
8328 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8348 if test -n "$ac_ct_MANIFEST_TOOL"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8350 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8356 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8359 case $cross_compiling:$ac_tool_warned in
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363 ac_tool_warned=yes ;;
8365 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8368 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8371 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8373 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8374 if ${lt_cv_path_mainfest_tool+:} false; then :
8375 $as_echo_n "(cached) " >&6
8377 lt_cv_path_mainfest_tool=no
8378 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8379 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8380 cat conftest.err >&5
8381 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8382 lt_cv_path_mainfest_tool=yes
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8387 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8388 if test yes != "$lt_cv_path_mainfest_tool"; then
8398 rhapsody* | darwin*)
8399 if test -n "$ac_tool_prefix"; then
8400 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8405 $as_echo_n "(cached) " >&6
8407 if test -n "$DSYMUTIL"; then
8408 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8428 if test -n "$DSYMUTIL"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8430 $as_echo "$DSYMUTIL" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8438 if test -z "$ac_cv_prog_DSYMUTIL"; then
8439 ac_ct_DSYMUTIL=$DSYMUTIL
8440 # Extract the first word of "dsymutil", so it can be a program name with args.
8441 set dummy dsymutil; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8445 $as_echo_n "(cached) " >&6
8447 if test -n "$ac_ct_DSYMUTIL"; then
8448 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8457 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8468 if test -n "$ac_ct_DSYMUTIL"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8470 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8476 if test "x$ac_ct_DSYMUTIL" = x; then
8479 case $cross_compiling:$ac_tool_warned in
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8483 ac_tool_warned=yes ;;
8485 DSYMUTIL=$ac_ct_DSYMUTIL
8488 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_NMEDIT+:} false; then :
8497 $as_echo_n "(cached) " >&6
8499 if test -n "$NMEDIT"; then
8500 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 NMEDIT=$ac_cv_prog_NMEDIT
8520 if test -n "$NMEDIT"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8522 $as_echo "$NMEDIT" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8530 if test -z "$ac_cv_prog_NMEDIT"; then
8531 ac_ct_NMEDIT=$NMEDIT
8532 # Extract the first word of "nmedit", so it can be a program name with args.
8533 set dummy nmedit; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 if test -n "$ac_ct_NMEDIT"; then
8540 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8560 if test -n "$ac_ct_NMEDIT"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8562 $as_echo "$ac_ct_NMEDIT" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8568 if test "x$ac_ct_NMEDIT" = x; then
8571 case $cross_compiling:$ac_tool_warned in
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8577 NMEDIT=$ac_ct_NMEDIT
8580 NMEDIT="$ac_cv_prog_NMEDIT"
8583 if test -n "$ac_tool_prefix"; then
8584 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_prog_LIPO+:} false; then :
8589 $as_echo_n "(cached) " >&6
8591 if test -n "$LIPO"; then
8592 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 LIPO=$ac_cv_prog_LIPO
8612 if test -n "$LIPO"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8614 $as_echo "$LIPO" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 if test -z "$ac_cv_prog_LIPO"; then
8624 # Extract the first word of "lipo", so it can be a program name with args.
8625 set dummy lipo; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8629 $as_echo_n "(cached) " >&6
8631 if test -n "$ac_ct_LIPO"; then
8632 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8641 ac_cv_prog_ac_ct_LIPO="lipo"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8652 if test -n "$ac_ct_LIPO"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8654 $as_echo "$ac_ct_LIPO" >&6; }
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8660 if test "x$ac_ct_LIPO" = x; then
8663 case $cross_compiling:$ac_tool_warned in
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8672 LIPO="$ac_cv_prog_LIPO"
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}otool; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_OTOOL+:} false; then :
8681 $as_echo_n "(cached) " >&6
8683 if test -n "$OTOOL"; then
8684 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 OTOOL=$ac_cv_prog_OTOOL
8704 if test -n "$OTOOL"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8706 $as_echo "$OTOOL" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 if test -z "$ac_cv_prog_OTOOL"; then
8716 # Extract the first word of "otool", so it can be a program name with args.
8717 set dummy otool; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$ac_ct_OTOOL"; then
8724 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_ac_ct_OTOOL="otool"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8744 if test -n "$ac_ct_OTOOL"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8746 $as_echo "$ac_ct_OTOOL" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8752 if test "x$ac_ct_OTOOL" = x; then
8755 case $cross_compiling:$ac_tool_warned in
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8764 OTOOL="$ac_cv_prog_OTOOL"
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_OTOOL64+:} false; then :
8773 $as_echo_n "(cached) " >&6
8775 if test -n "$OTOOL64"; then
8776 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 OTOOL64=$ac_cv_prog_OTOOL64
8796 if test -n "$OTOOL64"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8798 $as_echo "$OTOOL64" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8806 if test -z "$ac_cv_prog_OTOOL64"; then
8807 ac_ct_OTOOL64=$OTOOL64
8808 # Extract the first word of "otool64", so it can be a program name with args.
8809 set dummy otool64; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$ac_ct_OTOOL64"; then
8816 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_ac_ct_OTOOL64="otool64"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8836 if test -n "$ac_ct_OTOOL64"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8838 $as_echo "$ac_ct_OTOOL64" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8844 if test "x$ac_ct_OTOOL64" = x; then
8847 case $cross_compiling:$ac_tool_warned in
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8853 OTOOL64=$ac_ct_OTOOL64
8856 OTOOL64="$ac_cv_prog_OTOOL64"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8886 $as_echo_n "checking for -single_module linker flag... " >&6; }
8887 if ${lt_cv_apple_cc_single_mod+:} false; then :
8888 $as_echo_n "(cached) " >&6
8890 lt_cv_apple_cc_single_mod=no
8891 if test -z "$LT_MULTI_MODULE"; then
8892 # By default we will add the -single_module flag. You can override
8893 # by either setting the environment variable LT_MULTI_MODULE
8894 # non-empty at configure time, or by adding -multi_module to the
8896 rm -rf libconftest.dylib*
8897 echo "int foo(void){return 1;}" > conftest.c
8898 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8899 -dynamiclib -Wl,-single_module conftest.c" >&5
8900 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8901 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8903 # If there is a non-empty error log, and "single_module"
8904 # appears in it, assume the flag caused a linker warning
8905 if test -s conftest.err && $GREP single_module conftest.err; then
8906 cat conftest.err >&5
8907 # Otherwise, if the output was created with a 0 exit code from
8908 # the compiler, it worked.
8909 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8910 lt_cv_apple_cc_single_mod=yes
8912 cat conftest.err >&5
8914 rm -rf libconftest.dylib*
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8922 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8923 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 lt_cv_ld_exported_symbols_list=no
8927 save_LDFLAGS=$LDFLAGS
8928 echo "_main" > conftest.sym
8929 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 lt_cv_ld_exported_symbols_list=yes
8944 lt_cv_ld_exported_symbols_list=no
8946 rm -f core conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LDFLAGS=$save_LDFLAGS
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8952 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8955 $as_echo_n "checking for -force_load linker flag... " >&6; }
8956 if ${lt_cv_ld_force_load+:} false; then :
8957 $as_echo_n "(cached) " >&6
8959 lt_cv_ld_force_load=no
8960 cat > conftest.c << _LT_EOF
8961 int forced_loaded() { return 2;}
8963 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8964 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8965 echo "$AR cru libconftest.a conftest.o" >&5
8966 $AR cru libconftest.a conftest.o 2>&5
8967 echo "$RANLIB libconftest.a" >&5
8968 $RANLIB libconftest.a 2>&5
8969 cat > conftest.c << _LT_EOF
8970 int main() { return 0;}
8972 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8973 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8975 if test -s conftest.err && $GREP force_load conftest.err; then
8976 cat conftest.err >&5
8977 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8978 lt_cv_ld_force_load=yes
8980 cat conftest.err >&5
8982 rm -f conftest.err libconftest.a conftest conftest.c
8983 rm -rf conftest.dSYM
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8987 $as_echo "$lt_cv_ld_force_load" >&6; }
8989 rhapsody* | darwin1.[012])
8990 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8992 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8993 darwin*) # darwin 5.x on
8994 # if running on 10.5 or later, the deployment target defaults
8995 # to the OS version, if on x86, and 10.4, the deployment
8996 # target defaults to 10.4. Don't you love it?
8997 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8998 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8999 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9001 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9003 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9007 if test yes = "$lt_cv_apple_cc_single_mod"; then
9008 _lt_dar_single_mod='$single_module'
9010 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9011 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9013 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9015 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9016 _lt_dsymutil='~$DSYMUTIL $lib || :'
9023 # func_munge_path_list VARIABLE PATH
9024 # -----------------------------------
9025 # VARIABLE is name of variable containing _space_ separated list of
9026 # directories to be munged by the contents of PATH, which is string
9029 # string "DIR[ DIR]" will be prepended to VARIABLE
9031 # string "DIR[ DIR]" will be appended to VARIABLE
9032 # "DIRP[:DIRP]::[DIRA:]DIRA"
9033 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9034 # "DIRA[ DIRA]" will be appended to VARIABLE
9036 # VARIABLE will be replaced by "DIR[ DIR]"
9037 func_munge_path_list ()
9043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9046 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9049 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9050 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9058 for ac_header in dlfcn.h
9060 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9062 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_DLFCN_H 1
9076 # Check whether --enable-static was given.
9077 if test "${enable_static+set}" = set; then :
9078 enableval=$enable_static; p=${PACKAGE-default}
9080 yes) enable_static=yes ;;
9081 no) enable_static=no ;;
9084 # Look at the argument we got. We use all the common list separators.
9085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9086 for pkg in $enableval; do
9088 if test "X$pkg" = "X$p"; then
9114 # Check whether --enable-shared was given.
9115 if test "${enable_shared+set}" = set; then :
9116 enableval=$enable_shared; p=${PACKAGE-default}
9118 yes) enable_shared=yes ;;
9119 no) enable_shared=no ;;
9122 # Look at the argument we got. We use all the common list separators.
9123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9124 for pkg in $enableval; do
9126 if test "X$pkg" = "X$p"; then
9147 # Check whether --with-pic was given.
9148 if test "${with_pic+set}" = set; then :
9149 withval=$with_pic; lt_p=${PACKAGE-default}
9151 yes|no) pic_mode=$withval ;;
9154 # Look at the argument we got. We use all the common list separators.
9155 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9156 for lt_pkg in $withval; do
9158 if test "X$lt_pkg" = "X$lt_p"; then
9176 # Check whether --enable-fast-install was given.
9177 if test "${enable_fast_install+set}" = set; then :
9178 enableval=$enable_fast_install; p=${PACKAGE-default}
9180 yes) enable_fast_install=yes ;;
9181 no) enable_fast_install=no ;;
9183 enable_fast_install=no
9184 # Look at the argument we got. We use all the common list separators.
9185 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9186 for pkg in $enableval; do
9188 if test "X$pkg" = "X$p"; then
9189 enable_fast_install=yes
9196 enable_fast_install=yes
9206 shared_archive_member_spec=
9207 case $host,$enable_shared in
9208 power*-*-aix[5-9]*,yes)
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9210 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9212 # Check whether --with-aix-soname was given.
9213 if test "${with_aix_soname+set}" = set; then :
9214 withval=$with_aix_soname; case $withval in
9218 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9221 lt_cv_with_aix_soname=$with_aix_soname
9223 if ${lt_cv_with_aix_soname+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 lt_cv_with_aix_soname=aix
9229 with_aix_soname=$lt_cv_with_aix_soname
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9233 $as_echo "$with_aix_soname" >&6; }
9234 if test aix != "$with_aix_soname"; then
9235 # For the AIX way of multilib, we name the shared archive member
9236 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9237 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9238 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9239 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9240 if test 64 = "${OBJECT_MODE-32}"; then
9241 shared_archive_member_spec=shr_64
9243 shared_archive_member_spec=shr
9261 # This can be used to rebuild libtool when needed
9262 LIBTOOL_DEPS=$ltmain
9264 # Always use our own libtool.
9265 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9296 test -z "$LN_S" && LN_S="ln -s"
9311 if test -n "${ZSH_VERSION+set}"; then
9312 setopt NO_GLOB_SUBST
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9316 $as_echo_n "checking for objdir... " >&6; }
9317 if ${lt_cv_objdir+:} false; then :
9318 $as_echo_n "(cached) " >&6
9320 rm -f .libs 2>/dev/null
9321 mkdir .libs 2>/dev/null
9322 if test -d .libs; then
9325 # MS-DOS does not allow filenames that begin with a dot.
9328 rmdir .libs 2>/dev/null
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9331 $as_echo "$lt_cv_objdir" >&6; }
9332 objdir=$lt_cv_objdir
9338 cat >>confdefs.h <<_ACEOF
9339 #define LT_OBJDIR "$lt_cv_objdir/"
9347 # AIX sometimes has problems with the GCC collect2 program. For some
9348 # reason, if we set the COLLECT_NAMES environment variable, the problems
9349 # vanish in a puff of smoke.
9350 if test set != "${COLLECT_NAMES+set}"; then
9352 export COLLECT_NAMES
9359 can_build_shared=yes
9361 # All known linkers require a '.a' archive for static linking (except MSVC,
9362 # which needs '.lib').
9365 with_gnu_ld=$lt_cv_prog_gnu_ld
9370 # Set sane defaults for various variables
9371 test -z "$CC" && CC=cc
9372 test -z "$LTCC" && LTCC=$CC
9373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9374 test -z "$LD" && LD=ld
9375 test -z "$ac_objext" && ac_objext=o
9377 func_cc_basename $compiler
9378 cc_basename=$func_cc_basename_result
9381 # Only perform the check for file, if the check method requires it
9382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9383 case $deplibs_check_method in
9385 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9387 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9389 $as_echo_n "(cached) " >&6
9393 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9396 lt_save_MAGIC_CMD=$MAGIC_CMD
9397 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9399 for ac_dir in $ac_dummy; do
9401 test -z "$ac_dir" && ac_dir=.
9402 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9403 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9404 if test -n "$file_magic_test_file"; then
9405 case $deplibs_check_method in
9407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9408 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9410 $EGREP "$file_magic_regex" > /dev/null; then
9415 *** Warning: the command libtool uses to detect shared libraries,
9416 *** $file_magic_cmd, produces output that libtool cannot recognize.
9417 *** The result is that libtool may fail to recognize shared libraries
9418 *** as such. This will affect the creation of libtool libraries that
9419 *** depend on shared libraries, but programs linked with such libtool
9420 *** libraries will work regardless of this problem. Nevertheless, you
9421 *** may want to report the problem to your system manager and/or to
9422 *** bug-libtool@gnu.org
9432 MAGIC_CMD=$lt_save_MAGIC_CMD
9437 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9438 if test -n "$MAGIC_CMD"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9440 $as_echo "$MAGIC_CMD" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9450 if test -z "$lt_cv_path_MAGIC_CMD"; then
9451 if test -n "$ac_tool_prefix"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9453 $as_echo_n "checking for file... " >&6; }
9454 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9455 $as_echo_n "(cached) " >&6
9459 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9462 lt_save_MAGIC_CMD=$MAGIC_CMD
9463 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9464 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9465 for ac_dir in $ac_dummy; do
9467 test -z "$ac_dir" && ac_dir=.
9468 if test -f "$ac_dir/file"; then
9469 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9470 if test -n "$file_magic_test_file"; then
9471 case $deplibs_check_method in
9473 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9474 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9476 $EGREP "$file_magic_regex" > /dev/null; then
9481 *** Warning: the command libtool uses to detect shared libraries,
9482 *** $file_magic_cmd, produces output that libtool cannot recognize.
9483 *** The result is that libtool may fail to recognize shared libraries
9484 *** as such. This will affect the creation of libtool libraries that
9485 *** depend on shared libraries, but programs linked with such libtool
9486 *** libraries will work regardless of this problem. Nevertheless, you
9487 *** may want to report the problem to your system manager and/or to
9488 *** bug-libtool@gnu.org
9498 MAGIC_CMD=$lt_save_MAGIC_CMD
9503 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9504 if test -n "$MAGIC_CMD"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9506 $as_echo "$MAGIC_CMD" >&6; }
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9522 # Use C for the default configuration in the libtool script
9526 ac_cpp='$CPP $CPPFLAGS'
9527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532 # Source file extension for C test sources.
9535 # Object file extension for compiled C test sources.
9539 # Code to be used in simple compile tests
9540 lt_simple_compile_test_code="int some_variable = 0;"
9542 # Code to be used in simple link tests
9543 lt_simple_link_test_code='int main(){return(0);}'
9551 # If no C compiler was specified, use CC.
9554 # If no C compiler flags were specified, use CFLAGS.
9555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9557 # Allow CC to be a program name with arguments.
9560 # Save the default compiler, since it gets overwritten when the other
9561 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9562 compiler_DEFAULT=$CC
9564 # save warnings/boilerplate of simple test code
9565 ac_outfile=conftest.$ac_objext
9566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9568 _lt_compiler_boilerplate=`cat conftest.err`
9571 ac_outfile=conftest.$ac_objext
9572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9574 _lt_linker_boilerplate=`cat conftest.err`
9579 ## There is no encapsulation within the following macros, do not change
9580 ## the running order or otherwise move them around unless you know exactly
9581 ## what you are doing...
9582 if test -n "$compiler"; then
9584 lt_prog_compiler_no_builtin_flag=
9586 if test yes = "$GCC"; then
9587 case $cc_basename in
9589 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9591 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9595 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9596 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9597 $as_echo_n "(cached) " >&6
9599 lt_cv_prog_compiler_rtti_exceptions=no
9600 ac_outfile=conftest.$ac_objext
9601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9602 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9603 # Insert the option either (1) after the last *FLAGS variable, or
9604 # (2) before a word containing "conftest.", or (3) at the end.
9605 # Note that $ac_compile itself does not contain backslashes and begins
9606 # with a dollar sign (not a hyphen), so the echo should work correctly.
9607 # The option is referenced via a variable to avoid confusing sed.
9608 lt_compile=`echo "$ac_compile" | $SED \
9609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9611 -e 's:$: $lt_compiler_flag:'`
9612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9613 (eval "$lt_compile" 2>conftest.err)
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 if (exit $ac_status) && test -s "$ac_outfile"; then
9618 # The compiler can only warn and ignore the option if not recognized
9619 # So say no if there are warnings other than the usual output.
9620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9623 lt_cv_prog_compiler_rtti_exceptions=yes
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9630 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9632 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9633 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9645 lt_prog_compiler_wl=
9646 lt_prog_compiler_pic=
9647 lt_prog_compiler_static=
9650 if test yes = "$GCC"; then
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_static='-static'
9656 # All AIX code is PIC.
9657 if test ia64 = "$host_cpu"; then
9658 # AIX 5 now supports IA64 processor
9659 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_pic='-fPIC'
9667 # see comment about AmigaOS4 .so support
9668 lt_prog_compiler_pic='-fPIC'
9671 # FIXME: we need at least 68020 code to build shared libraries, but
9672 # adding the '-m68020' flag to GCC prevents building anything better,
9674 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9680 # PIC is the default for these OSes.
9683 mingw* | cygwin* | pw32* | os2* | cegcc*)
9684 # This hack is so that the source file can tell whether it is being
9685 # built for inclusion in a dll (and should export symbols for example).
9686 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9687 # (--disable-auto-import) libraries
9688 lt_prog_compiler_pic='-DDLL_EXPORT'
9691 lt_prog_compiler_static='$wl-static'
9696 darwin* | rhapsody*)
9697 # PIC is the default on this platform
9698 # Common symbols not allowed in MH_DYLIB files
9699 lt_prog_compiler_pic='-fno-common'
9703 # PIC is the default for Haiku.
9704 # The "-static" flag exists, but is broken.
9705 lt_prog_compiler_static=
9709 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9710 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9711 # sets the default TLS model and affects inlining.
9717 lt_prog_compiler_pic='-fPIC'
9723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9724 # Instead, we relocate shared libraries at runtime.
9728 # Just because we use GCC doesn't mean we suddenly get shared libraries
9729 # on systems that don't support them.
9730 lt_prog_compiler_can_build_shared=no
9735 # QNX uses GNU C++, but need to define -shared option too, otherwise
9737 lt_prog_compiler_pic='-fPIC -shared'
9741 if test -d /usr/nec; then
9742 lt_prog_compiler_pic=-Kconform_pic
9747 lt_prog_compiler_pic='-fPIC'
9751 case $cc_basename in
9752 nvcc*) # Cuda Compiler Driver 2.2
9753 lt_prog_compiler_wl='-Xlinker '
9754 if test -n "$lt_prog_compiler_pic"; then
9755 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9760 # PORTME Check for flag to pass linker flags through the system compiler.
9763 lt_prog_compiler_wl='-Wl,'
9764 if test ia64 = "$host_cpu"; then
9765 # AIX 5 now supports IA64 processor
9766 lt_prog_compiler_static='-Bstatic'
9768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9772 darwin* | rhapsody*)
9773 # PIC is the default on this platform
9774 # Common symbols not allowed in MH_DYLIB files
9775 lt_prog_compiler_pic='-fno-common'
9776 case $cc_basename in
9778 # NAG Fortran compiler
9779 lt_prog_compiler_wl='-Wl,-Wl,,'
9780 lt_prog_compiler_pic='-PIC'
9781 lt_prog_compiler_static='-Bstatic'
9786 mingw* | cygwin* | pw32* | os2* | cegcc*)
9787 # This hack is so that the source file can tell whether it is being
9788 # built for inclusion in a dll (and should export symbols for example).
9789 lt_prog_compiler_pic='-DDLL_EXPORT'
9792 lt_prog_compiler_static='$wl-static'
9797 hpux9* | hpux10* | hpux11*)
9798 lt_prog_compiler_wl='-Wl,'
9799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9806 lt_prog_compiler_pic='+Z'
9809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9810 lt_prog_compiler_static='$wl-a ${wl}archive'
9813 irix5* | irix6* | nonstopux*)
9814 lt_prog_compiler_wl='-Wl,'
9815 # PIC (with -KPIC) is the default.
9816 lt_prog_compiler_static='-non_shared'
9819 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9820 case $cc_basename in
9821 # old Intel for x86_64, which still supported -KPIC.
9823 lt_prog_compiler_wl='-Wl,'
9824 lt_prog_compiler_pic='-KPIC'
9825 lt_prog_compiler_static='-static'
9827 # icc used to be incompatible with GCC.
9828 # ICC 10 doesn't accept -KPIC any more.
9830 lt_prog_compiler_wl='-Wl,'
9831 lt_prog_compiler_pic='-fPIC'
9832 lt_prog_compiler_static='-static'
9834 # Lahey Fortran 8.1.
9836 lt_prog_compiler_wl='-Wl,'
9837 lt_prog_compiler_pic='--shared'
9838 lt_prog_compiler_static='--static'
9841 # NAG Fortran compiler
9842 lt_prog_compiler_wl='-Wl,-Wl,,'
9843 lt_prog_compiler_pic='-PIC'
9844 lt_prog_compiler_static='-Bstatic'
9847 # Fabrice Bellard et al's Tiny C Compiler
9848 lt_prog_compiler_wl='-Wl,'
9849 lt_prog_compiler_pic='-fPIC'
9850 lt_prog_compiler_static='-static'
9852 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9853 # Portland Group compilers (*not* the Pentium gcc compiler,
9854 # which looks to be a dead project)
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-fpic'
9857 lt_prog_compiler_static='-Bstatic'
9860 lt_prog_compiler_wl='-Wl,'
9861 # All Alpha code is PIC.
9862 lt_prog_compiler_static='-non_shared'
9864 xl* | bgxl* | bgf* | mpixl*)
9865 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='-qpic'
9868 lt_prog_compiler_static='-qstaticlink'
9871 case `$CC -V 2>&1 | sed 5q` in
9872 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9873 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9874 lt_prog_compiler_pic='-KPIC'
9875 lt_prog_compiler_static='-Bstatic'
9876 lt_prog_compiler_wl=''
9878 *Sun\ F* | *Sun*Fortran*)
9879 lt_prog_compiler_pic='-KPIC'
9880 lt_prog_compiler_static='-Bstatic'
9881 lt_prog_compiler_wl='-Qoption ld '
9885 lt_prog_compiler_pic='-KPIC'
9886 lt_prog_compiler_static='-Bstatic'
9887 lt_prog_compiler_wl='-Wl,'
9889 *Intel*\ [CF]*Compiler*)
9890 lt_prog_compiler_wl='-Wl,'
9891 lt_prog_compiler_pic='-fPIC'
9892 lt_prog_compiler_static='-static'
9895 lt_prog_compiler_wl='-Wl,'
9896 lt_prog_compiler_pic='-fpic'
9897 lt_prog_compiler_static='-Bstatic'
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9912 lt_prog_compiler_pic='-fPIC -shared'
9915 osf3* | osf4* | osf5*)
9916 lt_prog_compiler_wl='-Wl,'
9917 # All OSF/1 code is PIC.
9918 lt_prog_compiler_static='-non_shared'
9922 lt_prog_compiler_static='-non_shared'
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 case $cc_basename in
9929 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9930 lt_prog_compiler_wl='-Qoption ld ';;
9932 lt_prog_compiler_wl='-Wl,';;
9937 lt_prog_compiler_wl='-Qoption ld '
9938 lt_prog_compiler_pic='-PIC'
9939 lt_prog_compiler_static='-Bstatic'
9942 sysv4 | sysv4.2uw2* | sysv4.3*)
9943 lt_prog_compiler_wl='-Wl,'
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9949 if test -d /usr/nec; then
9950 lt_prog_compiler_pic='-Kconform_pic'
9951 lt_prog_compiler_static='-Bstatic'
9955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_can_build_shared=no
9967 lt_prog_compiler_pic='-pic'
9968 lt_prog_compiler_static='-Bstatic'
9972 lt_prog_compiler_can_build_shared=no
9978 # For platforms that do not support PIC, -DPIC is meaningless:
9980 lt_prog_compiler_pic=
9983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9988 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9989 if ${lt_cv_prog_compiler_pic+:} false; then :
9990 $as_echo_n "(cached) " >&6
9992 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9995 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9996 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9999 # Check to make sure the PIC flag actually works.
10001 if test -n "$lt_prog_compiler_pic"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10003 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10004 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10005 $as_echo_n "(cached) " >&6
10007 lt_cv_prog_compiler_pic_works=no
10008 ac_outfile=conftest.$ac_objext
10009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10011 # Insert the option either (1) after the last *FLAGS variable, or
10012 # (2) before a word containing "conftest.", or (3) at the end.
10013 # Note that $ac_compile itself does not contain backslashes and begins
10014 # with a dollar sign (not a hyphen), so the echo should work correctly.
10015 # The option is referenced via a variable to avoid confusing sed.
10016 lt_compile=`echo "$ac_compile" | $SED \
10017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019 -e 's:$: $lt_compiler_flag:'`
10020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10021 (eval "$lt_compile" 2>conftest.err)
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 if (exit $ac_status) && test -s "$ac_outfile"; then
10026 # The compiler can only warn and ignore the option if not recognized
10027 # So say no if there are warnings other than the usual output.
10028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10031 lt_cv_prog_compiler_pic_works=yes
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10038 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10040 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10041 case $lt_prog_compiler_pic in
10043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10046 lt_prog_compiler_pic=
10047 lt_prog_compiler_can_build_shared=no
10063 # Check to make sure the static flag actually works.
10065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10067 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10068 if ${lt_cv_prog_compiler_static_works+:} false; then :
10069 $as_echo_n "(cached) " >&6
10071 lt_cv_prog_compiler_static_works=no
10072 save_LDFLAGS=$LDFLAGS
10073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10076 # The linker can only warn and ignore the option if not recognized
10077 # So say no if there are warnings
10078 if test -s conftest.err; then
10079 # Append any errors to the config.log.
10080 cat conftest.err 1>&5
10081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10083 if diff conftest.exp conftest.er2 >/dev/null; then
10084 lt_cv_prog_compiler_static_works=yes
10087 lt_cv_prog_compiler_static_works=yes
10091 LDFLAGS=$save_LDFLAGS
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10097 if test yes = "$lt_cv_prog_compiler_static_works"; then
10100 lt_prog_compiler_static=
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10111 if ${lt_cv_prog_compiler_c_o+:} false; then :
10112 $as_echo_n "(cached) " >&6
10114 lt_cv_prog_compiler_c_o=no
10115 $RM -r conftest 2>/dev/null
10119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121 lt_compiler_flag="-o out/conftest2.$ac_objext"
10122 # Insert the option either (1) after the last *FLAGS variable, or
10123 # (2) before a word containing "conftest.", or (3) at the end.
10124 # Note that $ac_compile itself does not contain backslashes and begins
10125 # with a dollar sign (not a hyphen), so the echo should work correctly.
10126 lt_compile=`echo "$ac_compile" | $SED \
10127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10129 -e 's:$: $lt_compiler_flag:'`
10130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10131 (eval "$lt_compile" 2>out/conftest.err)
10133 cat out/conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10137 # The compiler can only warn and ignore the option if not recognized
10138 # So say no if there are warnings
10139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10142 lt_cv_prog_compiler_c_o=yes
10147 # SGI C++ compiler will create directory out/ii_files/ for
10148 # template instantiation
10149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10150 $RM out/* && rmdir out
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10166 if ${lt_cv_prog_compiler_c_o+:} false; then :
10167 $as_echo_n "(cached) " >&6
10169 lt_cv_prog_compiler_c_o=no
10170 $RM -r conftest 2>/dev/null
10174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10176 lt_compiler_flag="-o out/conftest2.$ac_objext"
10177 # Insert the option either (1) after the last *FLAGS variable, or
10178 # (2) before a word containing "conftest.", or (3) at the end.
10179 # Note that $ac_compile itself does not contain backslashes and begins
10180 # with a dollar sign (not a hyphen), so the echo should work correctly.
10181 lt_compile=`echo "$ac_compile" | $SED \
10182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10184 -e 's:$: $lt_compiler_flag:'`
10185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10186 (eval "$lt_compile" 2>out/conftest.err)
10188 cat out/conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10192 # The compiler can only warn and ignore the option if not recognized
10193 # So say no if there are warnings
10194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10197 lt_cv_prog_compiler_c_o=yes
10202 # SGI C++ compiler will create directory out/ii_files/ for
10203 # template instantiation
10204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10205 $RM out/* && rmdir out
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10217 hard_links=nottested
10218 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10219 # do not overwrite the value of need_locks provided by the user
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10221 $as_echo_n "checking if we can lock with hard links... " >&6; }
10224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10226 ln conftest.a conftest.b 2>&5 || hard_links=no
10227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10229 $as_echo "$hard_links" >&6; }
10230 if test no = "$hard_links"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10232 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10248 allow_undefined_flag=
10249 always_export_symbols=no
10251 archive_expsym_cmds=
10252 compiler_needs_object=no
10253 enable_shared_with_static_runtimes=no
10254 export_dynamic_flag_spec=
10255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10256 hardcode_automatic=no
10258 hardcode_direct_absolute=no
10259 hardcode_libdir_flag_spec=
10260 hardcode_libdir_separator=
10261 hardcode_minus_L=no
10262 hardcode_shlibpath_var=unsupported
10264 link_all_deplibs=unknown
10266 module_expsym_cmds=
10267 old_archive_from_new_cmds=
10268 old_archive_from_expsyms_cmds=
10269 thread_safe_flag_spec=
10270 whole_archive_flag_spec=
10271 # include_expsyms should be a list of space-separated symbols to be *always*
10272 # included in the symbol list
10274 # exclude_expsyms can be an extended regexp of symbols to exclude
10275 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10276 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10277 # as well as any symbol that contains 'd'.
10278 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10280 # platforms (ab)use it in PIC code, but their linkers get confused if
10281 # the symbol is explicitly referenced. Since portable code cannot
10282 # rely on this symbol name, it's probably fine to never include it in
10283 # preloaded symbol tables.
10284 # Exclude shared library initialization/finalization symbols.
10285 extract_expsyms_cmds=
10288 cygwin* | mingw* | pw32* | cegcc*)
10289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10290 # When not using gcc, we currently assume that we are using
10291 # Microsoft Visual C++.
10292 if test yes != "$GCC"; then
10297 # we just hope/assume this is gcc and not c89 (= MSVC++)
10300 openbsd* | bitrig*)
10303 linux* | k*bsd*-gnu | gnu*)
10304 link_all_deplibs=no
10310 # On some targets, GNU ld is compatible enough with the native linker
10311 # that we're better off using the native interface for both.
10312 lt_use_gnu_ld_interface=no
10313 if test yes = "$with_gnu_ld"; then
10316 # The AIX port of GNU ld has always aspired to compatibility
10317 # with the native linker. However, as the warning in the GNU ld
10318 # block says, versions before 2.19.5* couldn't really create working
10319 # shared libraries, regardless of the interface used.
10320 case `$LD -v 2>&1` in
10321 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10322 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10323 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10325 lt_use_gnu_ld_interface=yes
10330 lt_use_gnu_ld_interface=yes
10335 if test yes = "$lt_use_gnu_ld_interface"; then
10336 # If archive_cmds runs LD, not CC, wlarc should be empty
10339 # Set some defaults for GNU ld with shared library support. These
10340 # are reset later if shared libraries are not supported. Putting them
10341 # here allows them to be overridden if necessary.
10342 runpath_var=LD_RUN_PATH
10343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10344 export_dynamic_flag_spec='$wl--export-dynamic'
10345 # ancient GNU ld didn't support --whole-archive et. al.
10346 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10347 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10349 whole_archive_flag_spec=
10351 supports_anon_versioning=no
10352 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10353 *GNU\ gold*) supports_anon_versioning=yes ;;
10354 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10355 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10356 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10357 *\ 2.11.*) ;; # other 2.11 versions
10358 *) supports_anon_versioning=yes ;;
10361 # See if GNU ld supports shared libraries.
10364 # On AIX/PPC, the GNU linker is very broken
10365 if test ia64 != "$host_cpu"; then
10369 *** Warning: the GNU linker, at least up to release 2.19, is reported
10370 *** to be unable to reliably create shared libraries on AIX.
10371 *** Therefore, libtool is disabling shared libraries support. If you
10372 *** really care for shared libraries, you may want to install binutils
10373 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10374 *** You will then need to restart the configuration process.
10383 # see comment about AmigaOS4 .so support
10384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385 archive_expsym_cmds=''
10388 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)'
10389 hardcode_libdir_flag_spec='-L$libdir'
10390 hardcode_minus_L=yes
10396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397 allow_undefined_flag=unsupported
10398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10399 # support --undefined. This deserves some investigation. FIXME
10400 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10406 cygwin* | mingw* | pw32* | cegcc*)
10407 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10408 # as there is no search path for DLLs.
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 export_dynamic_flag_spec='$wl--export-all-symbols'
10411 allow_undefined_flag=unsupported
10412 always_export_symbols=no
10413 enable_shared_with_static_runtimes=yes
10414 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'
10415 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10419 # If the export-symbols file already is a .def file, use it as
10420 # is; otherwise, prepend EXPORTS...
10421 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10422 cp $export_symbols $output_objdir/$soname.def;
10424 echo EXPORTS > $output_objdir/$soname.def;
10425 cat $export_symbols >> $output_objdir/$soname.def;
10427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435 link_all_deplibs=yes
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_minus_L=yes
10441 allow_undefined_flag=unsupported
10443 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10444 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10445 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10446 $ECHO EXPORTS >> $output_objdir/$libname.def~
10447 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10448 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10449 emximp -o $lib $output_objdir/$libname.def'
10450 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10451 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10452 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10453 $ECHO EXPORTS >> $output_objdir/$libname.def~
10454 prefix_cmds="$SED"~
10455 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10456 prefix_cmds="$prefix_cmds -e 1d";
10458 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10459 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10460 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10461 emximp -o $lib $output_objdir/$libname.def'
10462 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10463 enable_shared_with_static_runtimes=yes
10468 hardcode_shlibpath_var=no
10469 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10470 export_dynamic_flag_spec='$wl-E'
10471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10472 # Instead, shared libraries are loaded at an image base (0x10000000 by
10473 # default) and relocated if they conflict, which is a slow very memory
10474 # consuming and fragmenting process. To avoid this, we pick a random,
10475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10477 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10478 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'
10481 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10483 if test linux-dietlibc = "$host_os"; then
10484 case $cc_basename in
10485 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10488 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10489 && test no = "$tmp_diet"
10491 tmp_addflag=' $pic_flag'
10492 tmp_sharedflag='-shared'
10493 case $cc_basename,$host_cpu in
10494 pgcc*) # Portland Group C compiler
10495 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'
10496 tmp_addflag=' $pic_flag'
10498 pgf77* | pgf90* | pgf95* | pgfortran*)
10499 # Portland Group f77 and f90 compilers
10500 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'
10501 tmp_addflag=' $pic_flag -Mnomain' ;;
10502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10503 tmp_addflag=' -i_dynamic' ;;
10504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10505 tmp_addflag=' -i_dynamic -nofor_main' ;;
10506 ifc* | ifort*) # Intel Fortran compiler
10507 tmp_addflag=' -nofor_main' ;;
10508 lf95*) # Lahey Fortran 8.1
10509 whole_archive_flag_spec=
10510 tmp_sharedflag='--shared' ;;
10511 nagfor*) # NAGFOR 5.3
10512 tmp_sharedflag='-Wl,-shared' ;;
10513 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10514 tmp_sharedflag='-qmkshrobj'
10516 nvcc*) # Cuda Compiler Driver 2.2
10517 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'
10518 compiler_needs_object=yes
10521 case `$CC -V 2>&1 | sed 5q` in
10522 *Sun\ C*) # Sun C 5.9
10523 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'
10524 compiler_needs_object=yes
10525 tmp_sharedflag='-G' ;;
10526 *Sun\ F*) # Sun Fortran 8.3
10527 tmp_sharedflag='-G' ;;
10529 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10531 if test yes = "$supports_anon_versioning"; then
10532 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10534 echo "local: *; };" >> $output_objdir/$libname.ver~
10535 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10538 case $cc_basename in
10540 export_dynamic_flag_spec='-rdynamic'
10542 xlf* | bgf* | bgxlf* | mpixlf*)
10543 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10544 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10546 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10547 if test yes = "$supports_anon_versioning"; then
10548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10550 echo "local: *; };" >> $output_objdir/$libname.ver~
10551 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10560 netbsd* | netbsdelf*-gnu)
10561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10562 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10566 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10571 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10576 *** create shared libraries on Solaris systems. Therefore, libtool
10577 *** is disabling shared libraries support. We urge you to upgrade GNU
10578 *** binutils to release 2.9.1 or newer. Another option is to modify
10579 *** your PATH or compiler configuration so that the native linker is
10580 *** used, and then restart.
10583 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10585 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10592 case `$LD -v 2>&1` in
10593 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10598 *** reliably create shared libraries on SCO systems. Therefore, libtool
10599 *** is disabling shared libraries support. We urge you to upgrade GNU
10600 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10601 *** your PATH or compiler configuration so that the native linker is
10602 *** used, and then restart.
10607 # For security reasons, it is highly recommended that you always
10608 # use absolute paths for naming shared libraries, and exclude the
10609 # DT_RUNPATH tag from executables and libraries. But doing so
10610 # requires that you compile everything twice, which is a pain.
10611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10623 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_direct=yes
10626 hardcode_shlibpath_var=no
10630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10632 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10639 if test no = "$ld_shlibs"; then
10641 hardcode_libdir_flag_spec=
10642 export_dynamic_flag_spec=
10643 whole_archive_flag_spec=
10646 # PORTME fill in a description of your system's linker (not GNU ld)
10649 allow_undefined_flag=unsupported
10650 always_export_symbols=yes
10651 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'
10652 # Note: this linker hardcodes the directories in LIBPATH if there
10653 # are no directories specified by -L.
10654 hardcode_minus_L=yes
10655 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10656 # Neither direct hardcoding nor static linking is supported with a
10658 hardcode_direct=unsupported
10663 if test ia64 = "$host_cpu"; then
10664 # On IA64, the linker does run time linking by default, so we don't
10665 # have to do anything special.
10666 aix_use_runtimelinking=no
10667 exp_sym_flag='-Bexport'
10670 # If we're using GNU nm, then we don't want the "-C" option.
10671 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10672 # Without the "-l" option, or with the "-B" option, AIX nm treats
10673 # weak defined symbols like other global defined symbols, whereas
10674 # GNU nm marks them as "W".
10675 # While the 'weak' keyword is ignored in the Export File, we need
10676 # it in the Import File for the 'aix-soname' feature, so we have
10677 # to replace the "-B" option with "-P" for AIX nm.
10678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10679 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'
10681 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'
10683 aix_use_runtimelinking=no
10685 # Test if we are trying to use run time linking or normal
10686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10687 # have runtime linking enabled, and use it for executables.
10688 # For shared libraries, we enable/disable runtime linking
10689 # depending on the kind of the shared library created -
10690 # when "with_aix_soname,aix_use_runtimelinking" is:
10691 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10692 # "aix,yes" lib.so shared, rtl:yes, for executables
10693 # lib.a static archive
10694 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10695 # lib.a(lib.so.V) shared, rtl:no, for executables
10696 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10697 # lib.a(lib.so.V) shared, rtl:no
10698 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10699 # lib.a static archive
10700 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10701 for ld_flag in $LDFLAGS; do
10702 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10703 aix_use_runtimelinking=yes
10707 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10708 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10709 # so we don't have lib.a shared libs to link our executables.
10710 # We have to force runtime linking in this case.
10711 aix_use_runtimelinking=yes
10712 LDFLAGS="$LDFLAGS -Wl,-brtl"
10717 exp_sym_flag='-bexport'
10718 no_entry_flag='-bnoentry'
10721 # When large executables or shared objects are built, AIX ld can
10722 # have problems creating the table of contents. If linking a library
10723 # or program results in "error TOC overflow" add -mminimal-toc to
10724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10728 hardcode_direct=yes
10729 hardcode_direct_absolute=yes
10730 hardcode_libdir_separator=':'
10731 link_all_deplibs=yes
10732 file_list_spec='$wl-f,'
10733 case $with_aix_soname,$aix_use_runtimelinking in
10734 aix,*) ;; # traditional, no import file
10735 svr4,* | *,yes) # use import file
10736 # The Import File defines what to hardcode.
10738 hardcode_direct_absolute=no
10742 if test yes = "$GCC"; then
10743 case $host_os in aix4.[012]|aix4.[012].*)
10744 # We only want to do this on AIX 4.2 and lower, the check
10745 # below for broken collect2 doesn't work under 4.3+
10746 collect2name=`$CC -print-prog-name=collect2`
10747 if test -f "$collect2name" &&
10748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10750 # We have reworked collect2
10753 # We have old collect2
10754 hardcode_direct=unsupported
10755 # It fails to find uninstalled libraries when the uninstalled
10756 # path is not listed in the libpath. Setting hardcode_minus_L
10757 # to unsupported forces relinking
10758 hardcode_minus_L=yes
10759 hardcode_libdir_flag_spec='-L$libdir'
10760 hardcode_libdir_separator=
10764 shared_flag='-shared'
10765 if test yes = "$aix_use_runtimelinking"; then
10766 shared_flag="$shared_flag "'$wl-G'
10768 # Need to ensure runtime linking is disabled for the traditional
10769 # shared library, or the linker may eventually find shared libraries
10770 # /with/ Import File - we do not want to mix them.
10771 shared_flag_aix='-shared'
10772 shared_flag_svr4='-shared $wl-G'
10775 if test ia64 = "$host_cpu"; then
10776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10777 # chokes on -Wl,-G. The following line is correct:
10780 if test yes = "$aix_use_runtimelinking"; then
10781 shared_flag='$wl-G'
10783 shared_flag='$wl-bM:SRE'
10785 shared_flag_aix='$wl-bM:SRE'
10786 shared_flag_svr4='$wl-G'
10790 export_dynamic_flag_spec='$wl-bexpall'
10791 # It seems that -bexpall does not export symbols beginning with
10792 # underscore (_), so it is better to generate a list of symbols to export.
10793 always_export_symbols=yes
10794 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10795 # Warning - without using the other runtime loading flags (-brtl),
10796 # -berok will link without error, but may produce a broken library.
10797 allow_undefined_flag='-berok'
10798 # Determine the default libpath from the value encoded in an
10799 # empty executable.
10800 if test set = "${lt_cv_aix_libpath+set}"; then
10801 aix_libpath=$lt_cv_aix_libpath
10803 if ${lt_cv_aix_libpath_+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10817 if ac_fn_c_try_link "$LINENO"; then :
10819 lt_aix_libpath_sed='
10820 /Import File Strings/,/^$/ {
10822 s/^0 *\([^ ]*\) *$/\1/
10826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10827 # Check for a 64-bit object if we didn't find anything.
10828 if test -z "$lt_cv_aix_libpath_"; then
10829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_=/usr/lib:/lib
10840 aix_libpath=$lt_cv_aix_libpath_
10843 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10844 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
10846 if test ia64 = "$host_cpu"; then
10847 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10848 allow_undefined_flag="-z nodefs"
10849 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"
10851 # Determine the default libpath from the value encoded in an
10852 # empty executable.
10853 if test set = "${lt_cv_aix_libpath+set}"; then
10854 aix_libpath=$lt_cv_aix_libpath
10856 if ${lt_cv_aix_libpath_+:} false; then :
10857 $as_echo_n "(cached) " >&6
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10870 if ac_fn_c_try_link "$LINENO"; then :
10872 lt_aix_libpath_sed='
10873 /Import File Strings/,/^$/ {
10875 s/^0 *\([^ ]*\) *$/\1/
10879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10880 # Check for a 64-bit object if we didn't find anything.
10881 if test -z "$lt_cv_aix_libpath_"; then
10882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10885 rm -f core conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
10887 if test -z "$lt_cv_aix_libpath_"; then
10888 lt_cv_aix_libpath_=/usr/lib:/lib
10893 aix_libpath=$lt_cv_aix_libpath_
10896 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10897 # Warning - without using the other run time loading flags,
10898 # -berok will link without error, but may produce a broken library.
10899 no_undefined_flag=' $wl-bernotok'
10900 allow_undefined_flag=' $wl-berok'
10901 if test yes = "$with_gnu_ld"; then
10902 # We only use this code for GNU lds that support --whole-archive.
10903 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10905 # Exported symbols can be pulled into shared objects from archives
10906 whole_archive_flag_spec='$convenience'
10908 archive_cmds_need_lc=yes
10909 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10910 # -brtl affects multiple linker settings, -berok does not and is overridden later
10911 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10912 if test svr4 != "$with_aix_soname"; then
10913 # This is similar to how AIX traditionally builds its shared libraries.
10914 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'
10916 if test aix != "$with_aix_soname"; then
10917 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'
10919 # used by -dlpreopen to get the symbols
10920 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10922 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10930 # see comment about AmigaOS4 .so support
10931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10932 archive_expsym_cmds=''
10935 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)'
10936 hardcode_libdir_flag_spec='-L$libdir'
10937 hardcode_minus_L=yes
10943 export_dynamic_flag_spec=-rdynamic
10946 cygwin* | mingw* | pw32* | cegcc*)
10947 # When not using gcc, we currently assume that we are using
10948 # Microsoft Visual C++.
10949 # hardcode_libdir_flag_spec is actually meaningless, as there is
10950 # no search path for DLLs.
10951 case $cc_basename in
10954 hardcode_libdir_flag_spec=' '
10955 allow_undefined_flag=unsupported
10956 always_export_symbols=yes
10958 # Tell ltmain to make .lib files, not .a files.
10960 # Tell ltmain to make .dll files, not .so files.
10962 # FIXME: Setting linknames here is a bad hack.
10963 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10964 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10965 cp "$export_symbols" "$output_objdir/$soname.def";
10966 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10968 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10970 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10972 # The linker will not automatically build a static lib if we build a DLL.
10973 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10974 enable_shared_with_static_runtimes=yes
10975 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10978 old_postinstall_cmds='chmod 644 $oldlib'
10979 postlink_cmds='lt_outputfile="@OUTPUT@"~
10980 lt_tool_outputfile="@TOOL_OUTPUT@"~
10981 case $lt_outputfile in
10984 lt_outputfile=$lt_outputfile.exe
10985 lt_tool_outputfile=$lt_tool_outputfile.exe
10988 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10989 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10990 $RM "$lt_outputfile.manifest";
10994 # Assume MSVC wrapper
10995 hardcode_libdir_flag_spec=' '
10996 allow_undefined_flag=unsupported
10997 # Tell ltmain to make .lib files, not .a files.
10999 # Tell ltmain to make .dll files, not .so files.
11001 # FIXME: Setting linknames here is a bad hack.
11002 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11003 # The linker will automatically build a .lib file if we build a DLL.
11004 old_archive_from_new_cmds='true'
11005 # FIXME: Should let the user specify the lib program.
11006 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11007 enable_shared_with_static_runtimes=yes
11012 darwin* | rhapsody*)
11015 archive_cmds_need_lc=no
11017 hardcode_automatic=yes
11018 hardcode_shlibpath_var=unsupported
11019 if test yes = "$lt_cv_ld_force_load"; then
11020 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\"`'
11023 whole_archive_flag_spec=''
11025 link_all_deplibs=yes
11026 allow_undefined_flag=$_lt_dar_allow_undefined
11027 case $cc_basename in
11028 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11029 *) _lt_dar_can_shared=$GCC ;;
11031 if test yes = "$_lt_dar_can_shared"; then
11032 output_verbose_link_cmd=func_echo_all
11033 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11034 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11035 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"
11036 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"
11045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 hardcode_shlibpath_var=no
11050 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11051 # support. Future versions do this automatically, but an explicit c++rt0.o
11052 # does not break anything, and helps significantly (at the cost of a little
11055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11056 hardcode_libdir_flag_spec='-R$libdir'
11057 hardcode_direct=yes
11058 hardcode_shlibpath_var=no
11061 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11064 hardcode_direct=yes
11065 hardcode_minus_L=yes
11066 hardcode_shlibpath_var=no
11069 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11070 freebsd* | dragonfly*)
11071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11072 hardcode_libdir_flag_spec='-R$libdir'
11073 hardcode_direct=yes
11074 hardcode_shlibpath_var=no
11078 if test yes = "$GCC"; then
11079 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'
11081 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'
11083 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084 hardcode_libdir_separator=:
11085 hardcode_direct=yes
11087 # hardcode_minus_L: Not really in the search PATH,
11088 # but as the default location of the library.
11089 hardcode_minus_L=yes
11090 export_dynamic_flag_spec='$wl-E'
11094 if test yes,no = "$GCC,$with_gnu_ld"; then
11095 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11099 if test no = "$with_gnu_ld"; then
11100 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11101 hardcode_libdir_separator=:
11102 hardcode_direct=yes
11103 hardcode_direct_absolute=yes
11104 export_dynamic_flag_spec='$wl-E'
11105 # hardcode_minus_L: Not really in the search PATH,
11106 # but as the default location of the library.
11107 hardcode_minus_L=yes
11112 if test yes,no = "$GCC,$with_gnu_ld"; then
11115 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11121 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11127 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11134 # Older versions of the 11.00 compiler do not understand -b yet
11135 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11137 $as_echo_n "checking if $CC understands -b... " >&6; }
11138 if ${lt_cv_prog_compiler__b+:} false; then :
11139 $as_echo_n "(cached) " >&6
11141 lt_cv_prog_compiler__b=no
11142 save_LDFLAGS=$LDFLAGS
11143 LDFLAGS="$LDFLAGS -b"
11144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11146 # The linker can only warn and ignore the option if not recognized
11147 # So say no if there are warnings
11148 if test -s conftest.err; then
11149 # Append any errors to the config.log.
11150 cat conftest.err 1>&5
11151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11153 if diff conftest.exp conftest.er2 >/dev/null; then
11154 lt_cv_prog_compiler__b=yes
11157 lt_cv_prog_compiler__b=yes
11161 LDFLAGS=$save_LDFLAGS
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11165 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11167 if test yes = "$lt_cv_prog_compiler__b"; then
11168 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11176 if test no = "$with_gnu_ld"; then
11177 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11178 hardcode_libdir_separator=:
11183 hardcode_shlibpath_var=no
11186 hardcode_direct=yes
11187 hardcode_direct_absolute=yes
11188 export_dynamic_flag_spec='$wl-E'
11190 # hardcode_minus_L: Not really in the search PATH,
11191 # but as the default location of the library.
11192 hardcode_minus_L=yes
11198 irix5* | irix6* | nonstopux*)
11199 if test yes = "$GCC"; then
11200 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'
11201 # Try to use the -exported_symbol ld option, if it does not
11202 # work, assume that -exports_file does not work either and
11203 # implicitly export all symbols.
11204 # This should be the same for all languages, so no per-tag cache variable.
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11206 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11207 if ${lt_cv_irix_exported_symbol+:} false; then :
11208 $as_echo_n "(cached) " >&6
11210 save_LDFLAGS=$LDFLAGS
11211 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 int foo (void) { return 0; }
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 lt_cv_irix_exported_symbol=yes
11219 lt_cv_irix_exported_symbol=no
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LDFLAGS=$save_LDFLAGS
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11226 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11227 if test yes = "$lt_cv_irix_exported_symbol"; then
11228 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'
11230 link_all_deplibs=no
11232 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'
11233 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'
11235 archive_cmds_need_lc='no'
11236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11237 hardcode_libdir_separator=:
11239 link_all_deplibs=yes
11243 case $cc_basename in
11245 # Fabrice Bellard et al's Tiny C Compiler
11247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11252 netbsd* | netbsdelf*-gnu)
11253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11258 hardcode_libdir_flag_spec='-R$libdir'
11259 hardcode_direct=yes
11260 hardcode_shlibpath_var=no
11264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265 hardcode_direct=yes
11266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11267 hardcode_libdir_separator=:
11268 hardcode_shlibpath_var=no
11274 openbsd* | bitrig*)
11275 if test -f /usr/libexec/ld.so; then
11276 hardcode_direct=yes
11277 hardcode_shlibpath_var=no
11278 hardcode_direct_absolute=yes
11279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11282 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11283 export_dynamic_flag_spec='$wl-E'
11285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_minus_L=yes
11296 allow_undefined_flag=unsupported
11298 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11301 $ECHO EXPORTS >> $output_objdir/$libname.def~
11302 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11304 emximp -o $lib $output_objdir/$libname.def'
11305 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11306 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11307 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11308 $ECHO EXPORTS >> $output_objdir/$libname.def~
11309 prefix_cmds="$SED"~
11310 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11311 prefix_cmds="$prefix_cmds -e 1d";
11313 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11314 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11316 emximp -o $lib $output_objdir/$libname.def'
11317 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11318 enable_shared_with_static_runtimes=yes
11322 if test yes = "$GCC"; then
11323 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11324 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'
11326 allow_undefined_flag=' -expect_unresolved \*'
11327 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'
11329 archive_cmds_need_lc='no'
11330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11331 hardcode_libdir_separator=:
11334 osf4* | osf5*) # as osf3* with the addition of -msym flag
11335 if test yes = "$GCC"; then
11336 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11337 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'
11338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11340 allow_undefined_flag=' -expect_unresolved \*'
11341 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'
11342 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~
11343 $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'
11345 # Both c and cxx compiler support -rpath directly
11346 hardcode_libdir_flag_spec='-rpath $libdir'
11348 archive_cmds_need_lc='no'
11349 hardcode_libdir_separator=:
11353 no_undefined_flag=' -z defs'
11354 if test yes = "$GCC"; then
11356 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11358 $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'
11360 case `$CC -V 2>&1` in
11363 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11365 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11369 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11371 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11375 hardcode_libdir_flag_spec='-R$libdir'
11376 hardcode_shlibpath_var=no
11378 solaris2.[0-5] | solaris2.[0-5].*) ;;
11380 # The compiler driver will combine and reorder linker options,
11381 # but understands '-z linker_flag'. GCC discards it without '$wl',
11382 # but is careful enough not to reorder.
11383 # Supported since Solaris 2.6 (maybe 2.5.1?)
11384 if test yes = "$GCC"; then
11385 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11391 link_all_deplibs=yes
11395 if test sequent = "$host_vendor"; then
11396 # Use $CC to link under sequent, because it throws in some extra .o
11397 # files that make .init and .fini sections work.
11398 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11402 hardcode_libdir_flag_spec='-L$libdir'
11403 hardcode_direct=yes
11404 hardcode_minus_L=yes
11405 hardcode_shlibpath_var=no
11409 case $host_vendor in
11411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412 hardcode_direct=yes # is this really true???
11415 ## LD is ld it makes a PLAMLIB
11416 ## CC just makes a GrossModule.
11417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11418 reload_cmds='$CC -r -o $output$reload_objs'
11422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11426 runpath_var='LD_RUN_PATH'
11427 hardcode_shlibpath_var=no
11431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432 hardcode_shlibpath_var=no
11433 export_dynamic_flag_spec='-Bexport'
11437 if test -d /usr/nec; then
11438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11439 hardcode_shlibpath_var=no
11440 runpath_var=LD_RUN_PATH
11441 hardcode_runpath_var=yes
11446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11447 no_undefined_flag='$wl-z,text'
11448 archive_cmds_need_lc=no
11449 hardcode_shlibpath_var=no
11450 runpath_var='LD_RUN_PATH'
11452 if test yes = "$GCC"; then
11453 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11454 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11457 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461 sysv5* | sco3.2v5* | sco5v6*)
11462 # Note: We CANNOT use -z defs as we might desire, because we do not
11463 # link with -lc, and that would cause any symbols used from libc to
11464 # always be unresolved, which means just about no library would
11465 # ever link correctly. If we're not using GNU ld we use -z text
11466 # though, which does catch some bad symbols but isn't as heavy-handed
11468 no_undefined_flag='$wl-z,text'
11469 allow_undefined_flag='$wl-z,nodefs'
11470 archive_cmds_need_lc=no
11471 hardcode_shlibpath_var=no
11472 hardcode_libdir_flag_spec='$wl-R,$libdir'
11473 hardcode_libdir_separator=':'
11474 link_all_deplibs=yes
11475 export_dynamic_flag_spec='$wl-Bexport'
11476 runpath_var='LD_RUN_PATH'
11478 if test yes = "$GCC"; then
11479 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11489 hardcode_libdir_flag_spec='-L$libdir'
11490 hardcode_shlibpath_var=no
11498 if test sni = "$host_vendor"; then
11500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11501 export_dynamic_flag_spec='$wl-Blargedynsym'
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11508 $as_echo "$ld_shlibs" >&6; }
11509 test no = "$ld_shlibs" && can_build_shared=no
11511 with_gnu_ld=$with_gnu_ld
11528 # Do we need to explicitly link libc?
11530 case "x$archive_cmds_need_lc" in
11532 # Assume -lc should be added
11533 archive_cmds_need_lc=yes
11535 if test yes,yes = "$GCC,$enable_shared"; then
11536 case $archive_cmds in
11538 # FIXME: we may have to deal with multi-command sequences.
11541 # Test whether the compiler implicitly links with -lc since on some
11542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11543 # to ld, don't add -lc before -lgcc.
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11546 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11547 $as_echo_n "(cached) " >&6
11550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11553 (eval $ac_compile) 2>&5
11555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556 test $ac_status = 0; } 2>conftest.err; then
11559 libobjs=conftest.$ac_objext
11561 wl=$lt_prog_compiler_wl
11562 pic_flag=$lt_prog_compiler_pic
11568 lt_save_allow_undefined_flag=$allow_undefined_flag
11569 allow_undefined_flag=
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }
11576 lt_cv_archive_cmds_need_lc=no
11578 lt_cv_archive_cmds_need_lc=yes
11580 allow_undefined_flag=$lt_save_allow_undefined_flag
11582 cat conftest.err 1>&5
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11589 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11748 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11750 if test yes = "$GCC"; then
11752 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11753 *) lt_awk_arg='/^libraries:/' ;;
11756 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11757 *) lt_sed_strip_eq='s|=/|/|g' ;;
11759 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11760 case $lt_search_path_spec in
11762 # if the path contains ";" then we assume it to be the separator
11763 # otherwise default to the standard path separator (i.e. ":") - it is
11764 # assumed that no part of a normal pathname contains ";" but that should
11765 # okay in the real world where ";" in dirpaths is itself problematic.
11766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11769 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11772 # Ok, now we have the path, separated by spaces, we can step through it
11773 # and add multilib dir if necessary...
11774 lt_tmp_lt_search_path_spec=
11775 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11776 # ...but if some path component already ends with the multilib dir we assume
11777 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11778 case "$lt_multi_os_dir; $lt_search_path_spec " in
11779 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11783 for lt_sys_path in $lt_search_path_spec; do
11784 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11786 elif test -n "$lt_multi_os_dir"; then
11787 test -d "$lt_sys_path" && \
11788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11791 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11792 BEGIN {RS = " "; FS = "/|\n";} {
11795 for (lt_i = NF; lt_i > 0; lt_i--) {
11796 if ($lt_i != "" && $lt_i != ".") {
11797 if ($lt_i == "..") {
11800 if (lt_count == 0) {
11801 lt_foo = "/" $lt_i lt_foo;
11808 if (lt_foo != "") { lt_freq[lt_foo]++; }
11809 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11811 # AWK program above erroneously prepends '/' to C:/dos/paths
11814 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11815 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11817 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11821 library_names_spec=
11822 libname_spec='lib$name'
11826 postuninstall_cmds=
11830 shlibpath_overrides_runpath=unknown
11832 dynamic_linker="$host_os ld.so"
11833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11834 need_lib_prefix=unknown
11835 hardcode_into_libs=no
11837 # when you set need_version to no, make sure it does not cause -set_version
11838 # flags to be left without arguments
11839 need_version=unknown
11845 version_type=linux # correct to gnu/linux during the next big refactor
11846 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11847 shlibpath_var=LIBPATH
11849 # AIX 3 has no versioning support, so we append a major version to the name.
11850 soname_spec='$libname$release$shared_ext$major'
11854 version_type=linux # correct to gnu/linux during the next big refactor
11857 hardcode_into_libs=yes
11858 if test ia64 = "$host_cpu"; then
11859 # AIX 5 supports IA64
11860 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11861 shlibpath_var=LD_LIBRARY_PATH
11863 # With GCC up to 2.95.x, collect2 would create an import file
11864 # for dependence libraries. The import file would start with
11865 # the line '#! .'. This would cause the generated library to
11866 # depend on '.', always an invalid library. This was fixed in
11867 # development snapshots of GCC prior to 3.0.
11869 aix4 | aix4.[01] | aix4.[01].*)
11870 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11872 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11875 can_build_shared=no
11879 # Using Import Files as archive members, it is possible to support
11880 # filename-based versioning of shared library archives on AIX. While
11881 # this would work for both with and without runtime linking, it will
11882 # prevent static linking of such archives. So we do filename-based
11883 # shared library versioning with .so extension only, which is used
11884 # when both runtime linking and shared linking is enabled.
11885 # Unfortunately, runtime linking may impact performance, so we do
11886 # not want this to be the default eventually. Also, we use the
11887 # versioned .so libs for executables only if there is the -brtl
11888 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11889 # To allow for filename-based versioning support, we need to create
11890 # libNAME.so.V as an archive file, containing:
11891 # *) an Import File, referring to the versioned filename of the
11892 # archive as well as the shared archive member, telling the
11893 # bitwidth (32 or 64) of that shared object, and providing the
11894 # list of exported symbols of that shared object, eventually
11895 # decorated with the 'weak' keyword
11896 # *) the shared object with the F_LOADONLY flag set, to really avoid
11897 # it being seen by the linker.
11898 # At run time we better use the real file rather than another symlink,
11899 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11901 case $with_aix_soname,$aix_use_runtimelinking in
11902 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11903 # soname into executable. Probably we can add versioning support to
11904 # collect2, so additional links can be useful in future.
11905 aix,yes) # traditional libtool
11906 dynamic_linker='AIX unversionable lib.so'
11907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11908 # instead of lib<name>.a to let people know that these are not
11909 # typical AIX shared libraries.
11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912 aix,no) # traditional AIX only
11913 dynamic_linker='AIX lib.a(lib.so.V)'
11914 # We preserve .a as extension for shared libraries through AIX4.2
11915 # and later when we are not doing run time linking.
11916 library_names_spec='$libname$release.a $libname.a'
11917 soname_spec='$libname$release$shared_ext$major'
11919 svr4,*) # full svr4 only
11920 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11921 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11922 # We do not specify a path in Import Files, so LIBPATH fires.
11923 shlibpath_overrides_runpath=yes
11925 *,yes) # both, prefer svr4
11926 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11927 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11928 # unpreferred sharedlib libNAME.a needs extra handling
11929 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"'
11930 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"'
11931 # We do not specify a path in Import Files, so LIBPATH fires.
11932 shlibpath_overrides_runpath=yes
11934 *,no) # both, prefer aix
11935 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11936 library_names_spec='$libname$release.a $libname.a'
11937 soname_spec='$libname$release$shared_ext$major'
11938 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11939 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)'
11940 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"'
11943 shlibpath_var=LIBPATH
11950 # Since July 2007 AmigaOS4 officially supports .so libraries.
11951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955 library_names_spec='$libname.ixlibrary $libname.a'
11956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11957 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'
11963 library_names_spec='$libname$shared_ext'
11964 dynamic_linker="$host_os ld.so"
11965 shlibpath_var=LIBRARY_PATH
11969 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11977 # the default ld.so.conf also contains /usr/contrib/lib and
11978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11979 # libtool to hard-code these into programs
11982 cygwin* | mingw* | pw32* | cegcc*)
11983 version_type=windows
11988 case $GCC,$cc_basename in
11991 library_names_spec='$libname.dll.a'
11992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11993 postinstall_cmds='base_file=`basename \$file`~
11994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11995 dldir=$destdir/`dirname \$dlpath`~
11996 test -d \$dldir || mkdir -p \$dldir~
11997 $install_prog $dir/$dlname \$dldir/$dlname~
11998 chmod a+x \$dldir/$dlname~
11999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12003 dlpath=$dir/\$dldll~
12005 shlibpath_overrides_runpath=yes
12009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12010 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12015 # MinGW DLLs use traditional 'lib' prefix
12016 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12019 # pw32 DLLs use 'pw' prefix rather than 'lib'
12020 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12023 dynamic_linker='Win32 ld.exe'
12028 libname_spec='$name'
12029 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12030 library_names_spec='$libname.dll.lib'
12034 sys_lib_search_path_spec=
12037 for lt_path in $LIB
12040 # Let DOS variable expansion print the short 8.3 style file name.
12041 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12042 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12045 # Convert to MSYS style.
12046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12049 # Convert to unix form, then to dos form, then back to unix form
12050 # but this time dos style (no spaces!) so that the unix form looks
12051 # like /cygdrive/c/PROGRA~1:/cygdr...
12052 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12053 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12054 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12057 sys_lib_search_path_spec=$LIB
12058 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12059 # It is most probably a Windows format PATH.
12060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12064 # FIXME: find the short name or the path components, as spaces are
12065 # common. (e.g. "Program Files" -> "PROGRA~1")
12069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12070 postinstall_cmds='base_file=`basename \$file`~
12071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12072 dldir=$destdir/`dirname \$dlpath`~
12073 test -d \$dldir || mkdir -p \$dldir~
12074 $install_prog $dir/$dlname \$dldir/$dlname'
12075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12076 dlpath=$dir/\$dldll~
12078 shlibpath_overrides_runpath=yes
12079 dynamic_linker='Win32 link.exe'
12083 # Assume MSVC wrapper
12084 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12085 dynamic_linker='Win32 ld.exe'
12088 # FIXME: first we should search . and the directory the executable is in
12092 darwin* | rhapsody*)
12093 dynamic_linker="$host_os dyld"
12094 version_type=darwin
12097 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12098 soname_spec='$libname$release$major$shared_ext'
12099 shlibpath_overrides_runpath=yes
12100 shlibpath_var=DYLD_LIBRARY_PATH
12101 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12108 version_type=linux # correct to gnu/linux during the next big refactor
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112 soname_spec='$libname$release$shared_ext$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12116 freebsd* | dragonfly*)
12117 # DragonFly does not have aout. When/if they implement a new
12118 # versioning mechanism, adjust this.
12119 if test -x /usr/bin/objformat; then
12120 objformat=`/usr/bin/objformat`
12123 freebsd[23].*) objformat=aout ;;
12124 *) objformat=elf ;;
12127 version_type=freebsd-$objformat
12128 case $version_type in
12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12131 soname_spec='$libname$release$shared_ext$major'
12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12140 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12145 freebsd3.[01]* | freebsdelf3.[01]*)
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12149 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12150 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12151 shlibpath_overrides_runpath=no
12152 hardcode_into_libs=yes
12154 *) # from 4.6 on, and DragonFly
12155 shlibpath_overrides_runpath=yes
12156 hardcode_into_libs=yes
12162 version_type=linux # correct to gnu/linux during the next big refactor
12165 dynamic_linker="$host_os runtime_loader"
12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12167 soname_spec='$libname$release$shared_ext$major'
12168 shlibpath_var=LIBRARY_PATH
12169 shlibpath_overrides_runpath=no
12170 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12171 hardcode_into_libs=yes
12174 hpux9* | hpux10* | hpux11*)
12175 # Give a soname corresponding to the major version so that dld.sl refuses to
12176 # link against other versions.
12183 hardcode_into_libs=yes
12184 dynamic_linker="$host_os dld.so"
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188 soname_spec='$libname$release$shared_ext$major'
12189 if test 32 = "$HPUX_IA64_MODE"; then
12190 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12191 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12194 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12199 hardcode_into_libs=yes
12200 dynamic_linker="$host_os dld.sl"
12201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 soname_spec='$libname$release$shared_ext$major'
12205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12210 dynamic_linker="$host_os dld.sl"
12211 shlibpath_var=SHLIB_PATH
12212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214 soname_spec='$libname$release$shared_ext$major'
12217 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12218 postinstall_cmds='chmod 555 $lib'
12219 # or fails outright, so override atomically:
12220 install_override_mode=555
12224 version_type=linux # correct to gnu/linux during the next big refactor
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
12229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=no
12232 hardcode_into_libs=yes
12235 irix5* | irix6* | nonstopux*)
12237 nonstopux*) version_type=nonstopux ;;
12239 if test yes = "$lt_cv_prog_gnu_ld"; then
12240 version_type=linux # correct to gnu/linux during the next big refactor
12247 soname_spec='$libname$release$shared_ext$major'
12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12250 irix5* | nonstopux*)
12251 libsuff= shlibsuff=
12254 case $LD in # libtool.m4 will add one of these switches to LD
12255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12256 libsuff= shlibsuff= libmagic=32-bit;;
12257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12258 libsuff=32 shlibsuff=N32 libmagic=N32;;
12259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12261 *) libsuff= shlibsuff= libmagic=never-match;;
12265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12266 shlibpath_overrides_runpath=no
12267 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12268 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12269 hardcode_into_libs=yes
12272 # No shared lib support for Linux oldld, aout, or coff.
12273 linux*oldld* | linux*aout* | linux*coff*)
12278 version_type=none # Android doesn't support versioned libraries.
12281 library_names_spec='$libname$release$shared_ext'
12282 soname_spec='$libname$release$shared_ext'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12287 # This implies no fast_install, which is unacceptable.
12288 # Some rework will be needed to allow for fast_install
12289 # before this can be enabled.
12290 hardcode_into_libs=yes
12292 dynamic_linker='Android linker'
12293 # Don't embed -rpath directories since the linker doesn't support them.
12294 hardcode_libdir_flag_spec='-L$libdir'
12297 # This must be glibc/ELF.
12298 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12299 version_type=linux # correct to gnu/linux during the next big refactor
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303 soname_spec='$libname$release$shared_ext$major'
12304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=no
12308 # Some binutils ld are patched to set DT_RUNPATH
12309 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 lt_cv_shlibpath_overrides_runpath=no
12313 save_LDFLAGS=$LDFLAGS
12314 save_libdir=$libdir
12315 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12316 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12328 if ac_fn_c_try_link "$LINENO"; then :
12329 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12330 lt_cv_shlibpath_overrides_runpath=yes
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LDFLAGS=$save_LDFLAGS
12336 libdir=$save_libdir
12340 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12342 # This implies no fast_install, which is unacceptable.
12343 # Some rework will be needed to allow for fast_install
12344 # before this can be enabled.
12345 hardcode_into_libs=yes
12347 # Ideally, we could use ldconfig to report *all* directores which are
12348 # searched for libraries, however this is still not possible. Aside from not
12349 # being certain /sbin/ldconfig is available, command
12350 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12351 # even though it is searched at run-time. Try to do the best guess by
12352 # appending ld.so.conf contents (and includes) to the search path.
12353 if test -f /etc/ld.so.conf; then
12354 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' ' '`
12355 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12358 # We used to test for /lib/ld.so.1 and disable shared libraries on
12359 # powerpc, because MkLinux only supported shared libraries with the
12360 # GNU dynamic linker. Since this was broken with cross compilers,
12361 # most powerpc-linux boxes support dynamic linking these days and
12362 # people can always --disable-shared, the test was removed, and we
12363 # assume the GNU/Linux dynamic linker is in use.
12364 dynamic_linker='GNU/Linux ld.so'
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12372 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=no
12375 hardcode_into_libs=yes
12376 dynamic_linker='NetBSD ld.elf_so'
12383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12384 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12386 dynamic_linker='NetBSD (a.out) ld.so'
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 dynamic_linker='NetBSD ld.elf_so'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=yes
12394 hardcode_into_libs=yes
12398 version_type=linux # correct to gnu/linux during the next big refactor
12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12400 shlibpath_var=LD_LIBRARY_PATH
12401 shlibpath_overrides_runpath=yes
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 soname_spec='$libname$release$shared_ext$major'
12410 shlibpath_var=LD_LIBRARY_PATH
12411 shlibpath_overrides_runpath=no
12412 hardcode_into_libs=yes
12413 dynamic_linker='ldqnx.so'
12416 openbsd* | bitrig*)
12418 sys_lib_dlsearch_path_spec=/usr/lib
12420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 shlibpath_overrides_runpath=yes
12432 libname_spec='$name'
12433 version_type=windows
12437 # OS/2 can only load a DLL with a base name of 8 characters or less.
12438 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12439 v=$($ECHO $release$versuffix | tr -d .-);
12440 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12441 $ECHO $n$v`$shared_ext'
12442 library_names_spec='${libname}_dll.$libext'
12443 dynamic_linker='OS/2 ld.exe'
12444 shlibpath_var=BEGINLIBPATH
12445 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12447 postinstall_cmds='base_file=`basename \$file`~
12448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12449 dldir=$destdir/`dirname \$dlpath`~
12450 test -d \$dldir || mkdir -p \$dldir~
12451 $install_prog $dir/$dlname \$dldir/$dlname~
12452 chmod a+x \$dldir/$dlname~
12453 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12454 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12457 dlpath=$dir/\$dldll~
12461 osf3* | osf4* | osf5*)
12465 soname_spec='$libname$release$shared_ext$major'
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12477 version_type=linux # correct to gnu/linux during the next big refactor
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 soname_spec='$libname$release$shared_ext$major'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=yes
12484 hardcode_into_libs=yes
12485 # ldd complains unless libraries are executable
12486 postinstall_cmds='chmod +x $lib'
12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12493 shlibpath_var=LD_LIBRARY_PATH
12494 shlibpath_overrides_runpath=yes
12495 if test yes = "$with_gnu_ld"; then
12502 version_type=linux # correct to gnu/linux during the next big refactor
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504 soname_spec='$libname$release$shared_ext$major'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 case $host_vendor in
12508 shlibpath_overrides_runpath=no
12510 runpath_var=LD_RUN_PATH
12518 shlibpath_overrides_runpath=no
12519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12525 if test -d /usr/nec; then
12526 version_type=linux # correct to gnu/linux during the next big refactor
12527 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12528 soname_spec='$libname$shared_ext.$major'
12529 shlibpath_var=LD_LIBRARY_PATH
12533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12538 soname_spec='$libname$release$shared_ext$major'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12541 hardcode_into_libs=yes
12542 if test yes = "$with_gnu_ld"; then
12543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12552 sys_lib_dlsearch_path_spec='/usr/lib'
12556 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12557 version_type=linux # correct to gnu/linux during the next big refactor
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 shlibpath_var=LD_LIBRARY_PATH
12562 shlibpath_overrides_runpath=no
12563 hardcode_into_libs=yes
12567 version_type=linux # correct to gnu/linux during the next big refactor
12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12569 soname_spec='$libname$release$shared_ext$major'
12570 shlibpath_var=LD_LIBRARY_PATH
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12578 $as_echo "$dynamic_linker" >&6; }
12579 test no = "$dynamic_linker" && can_build_shared=no
12581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12582 if test yes = "$GCC"; then
12583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12586 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12587 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12590 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12591 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12594 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12595 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12597 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12598 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12600 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12601 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12702 if test -n "$hardcode_libdir_flag_spec" ||
12703 test -n "$runpath_var" ||
12704 test yes = "$hardcode_automatic"; then
12706 # We can hardcode non-existent directories.
12707 if test no != "$hardcode_direct" &&
12708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12709 # have to relink, otherwise we might link with an installed library
12710 # when we should be linking with a yet-to-be-installed one
12711 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12712 test no != "$hardcode_minus_L"; then
12713 # Linking always hardcodes the temporary library directory.
12714 hardcode_action=relink
12716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12717 hardcode_action=immediate
12720 # We cannot hardcode anything, or else we can only hardcode existing
12722 hardcode_action=unsupported
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12725 $as_echo "$hardcode_action" >&6; }
12727 if test relink = "$hardcode_action" ||
12728 test yes = "$inherit_rpath"; then
12729 # Fast installation is not supported
12730 enable_fast_install=no
12731 elif test yes = "$shlibpath_overrides_runpath" ||
12732 test no = "$enable_shared"; then
12733 # Fast installation is not necessary
12734 enable_fast_install=needless
12742 if test yes != "$enable_dlopen"; then
12743 enable_dlopen=unknown
12744 enable_dlopen_self=unknown
12745 enable_dlopen_self_static=unknown
12752 lt_cv_dlopen=load_add_on
12754 lt_cv_dlopen_self=yes
12757 mingw* | pw32* | cegcc*)
12758 lt_cv_dlopen=LoadLibrary
12763 lt_cv_dlopen=dlopen
12768 # if libdl is installed we need to link against it
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12771 if ${ac_cv_lib_dl_dlopen+:} false; then :
12772 $as_echo_n "(cached) " >&6
12774 ac_check_lib_save_LIBS=$LIBS
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_dl_dlopen=yes
12797 ac_cv_lib_dl_dlopen=no
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12804 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12805 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12811 lt_cv_dlopen_self=yes
12818 # Don't try to run any link tests for TPF. We know it's impossible
12819 # because TPF is a cross-compiler, and we know how we open DSOs.
12820 lt_cv_dlopen=dlopen
12822 lt_cv_dlopen_self=no
12826 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12827 if test "x$ac_cv_func_shl_load" = xyes; then :
12828 lt_cv_dlopen=shl_load
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12831 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12832 if ${ac_cv_lib_dld_shl_load+:} false; then :
12833 $as_echo_n "(cached) " >&6
12835 ac_check_lib_save_LIBS=$LIBS
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 /* Override any GCC internal prototype to avoid an error.
12841 Use char because int might match the return type of a GCC
12842 builtin and then its argument prototype would still apply. */
12850 return shl_load ();
12855 if ac_fn_c_try_link "$LINENO"; then :
12856 ac_cv_lib_dld_shl_load=yes
12858 ac_cv_lib_dld_shl_load=no
12860 rm -f core conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12865 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12866 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12867 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12869 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12870 if test "x$ac_cv_func_dlopen" = xyes; then :
12871 lt_cv_dlopen=dlopen
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12875 if ${ac_cv_lib_dl_dlopen+:} false; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS=$LIBS
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_dl_dlopen=yes
12901 ac_cv_lib_dl_dlopen=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12909 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12910 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12913 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12914 if ${ac_cv_lib_svld_dlopen+:} false; then :
12915 $as_echo_n "(cached) " >&6
12917 ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-lsvld $LIBS"
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12937 if ac_fn_c_try_link "$LINENO"; then :
12938 ac_cv_lib_svld_dlopen=yes
12940 ac_cv_lib_svld_dlopen=no
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 LIBS=$ac_check_lib_save_LIBS
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12947 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12948 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12949 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12952 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12953 if ${ac_cv_lib_dld_dld_link+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 ac_check_lib_save_LIBS=$LIBS
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12971 return dld_link ();
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_lib_dld_dld_link=yes
12979 ac_cv_lib_dld_dld_link=no
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12986 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12987 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12988 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13009 if test no = "$lt_cv_dlopen"; then
13015 case $lt_cv_dlopen in
13017 save_CPPFLAGS=$CPPFLAGS
13018 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13020 save_LDFLAGS=$LDFLAGS
13021 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13024 LIBS="$lt_cv_dlopen_libs $LIBS"
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13027 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13028 if ${lt_cv_dlopen_self+:} false; then :
13029 $as_echo_n "(cached) " >&6
13031 if test yes = "$cross_compiling"; then :
13032 lt_cv_dlopen_self=cross
13034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13035 lt_status=$lt_dlunknown
13036 cat > conftest.$ac_ext <<_LT_EOF
13037 #line $LINENO "configure"
13038 #include "confdefs.h"
13047 # define LT_DLGLOBAL RTLD_GLOBAL
13050 # define LT_DLGLOBAL DL_GLOBAL
13052 # define LT_DLGLOBAL 0
13056 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13057 find out it does not work in some platform. */
13058 #ifndef LT_DLLAZY_OR_NOW
13060 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13063 # define LT_DLLAZY_OR_NOW DL_LAZY
13066 # define LT_DLLAZY_OR_NOW RTLD_NOW
13069 # define LT_DLLAZY_OR_NOW DL_NOW
13071 # define LT_DLLAZY_OR_NOW 0
13078 /* When -fvisibility=hidden is used, assume the code has been annotated
13079 correspondingly for the symbols needed. */
13080 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13081 int fnord () __attribute__((visibility("default")));
13084 int fnord () { return 42; }
13087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13088 int status = $lt_dlunknown;
13092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13095 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13096 else puts (dlerror ());
13098 /* dlclose (self); */
13106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13107 (eval $ac_link) 2>&5
13109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13111 (./conftest; exit; ) >&5 2>/dev/null
13113 case x$lt_status in
13114 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13115 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13116 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13119 # compilation failed
13120 lt_cv_dlopen_self=no
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13128 $as_echo "$lt_cv_dlopen_self" >&6; }
13130 if test yes = "$lt_cv_dlopen_self"; then
13131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13133 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13134 if ${lt_cv_dlopen_self_static+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 if test yes = "$cross_compiling"; then :
13138 lt_cv_dlopen_self_static=cross
13140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13141 lt_status=$lt_dlunknown
13142 cat > conftest.$ac_ext <<_LT_EOF
13143 #line $LINENO "configure"
13144 #include "confdefs.h"
13153 # define LT_DLGLOBAL RTLD_GLOBAL
13156 # define LT_DLGLOBAL DL_GLOBAL
13158 # define LT_DLGLOBAL 0
13162 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13163 find out it does not work in some platform. */
13164 #ifndef LT_DLLAZY_OR_NOW
13166 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13169 # define LT_DLLAZY_OR_NOW DL_LAZY
13172 # define LT_DLLAZY_OR_NOW RTLD_NOW
13175 # define LT_DLLAZY_OR_NOW DL_NOW
13177 # define LT_DLLAZY_OR_NOW 0
13184 /* When -fvisibility=hidden is used, assume the code has been annotated
13185 correspondingly for the symbols needed. */
13186 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13187 int fnord () __attribute__((visibility("default")));
13190 int fnord () { return 42; }
13193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13194 int status = $lt_dlunknown;
13198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13201 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13202 else puts (dlerror ());
13204 /* dlclose (self); */
13212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13213 (eval $ac_link) 2>&5
13215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13217 (./conftest; exit; ) >&5 2>/dev/null
13219 case x$lt_status in
13220 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13221 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13222 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13225 # compilation failed
13226 lt_cv_dlopen_self_static=no
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13237 CPPFLAGS=$save_CPPFLAGS
13238 LDFLAGS=$save_LDFLAGS
13243 case $lt_cv_dlopen_self in
13244 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13245 *) enable_dlopen_self=unknown ;;
13248 case $lt_cv_dlopen_self_static in
13249 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13250 *) enable_dlopen_self_static=unknown ;;
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13273 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13274 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13275 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13276 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13280 # FIXME - insert some real tests, host_os isn't really good enough
13283 if test -n "$STRIP"; then
13284 striplib="$STRIP -x"
13285 old_striplib="$STRIP -S"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13287 $as_echo "yes" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13311 # Report what library types will actually be built
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13313 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13315 $as_echo "$can_build_shared" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13318 $as_echo_n "checking whether to build shared libraries... " >&6; }
13319 test no = "$can_build_shared" && enable_shared=no
13321 # On AIX, shared libraries and static libraries use the same namespace, and
13322 # are all built from PIC.
13325 test yes = "$enable_shared" && enable_static=no
13326 if test -n "$RANLIB"; then
13327 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13328 postinstall_cmds='$RANLIB $lib'
13333 if test ia64 != "$host_cpu"; then
13334 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13335 yes,aix,yes) ;; # shared object as lib.so file only
13336 yes,svr4,*) ;; # shared object as lib.so archive member only
13337 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13343 $as_echo "$enable_shared" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13346 $as_echo_n "checking whether to build static libraries... " >&6; }
13347 # Make sure either enable_shared or enable_static is yes.
13348 test yes = "$enable_shared" || enable_static=yes
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13350 $as_echo "$enable_static" >&6; }
13357 ac_cpp='$CPP $CPPFLAGS'
13358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378 ac_config_commands="$ac_config_commands libtool"
13383 # Only expand once:
13387 ac_config_headers="$ac_config_headers config.h"
13391 # Check $PATH for the following programs and append suitable options.
13393 ac_cpp='$CPP $CPPFLAGS'
13394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13397 if test -n "$ac_tool_prefix"; then
13398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 $as_echo_n "checking for $ac_word... " >&6; }
13402 if ${ac_cv_prog_CC+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 if test -n "$CC"; then
13406 ac_cv_prog_CC="$CC" # Let the user override the test.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 if test -n "$CC"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13428 $as_echo "$CC" >&6; }
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13436 if test -z "$ac_cv_prog_CC"; then
13438 # Extract the first word of "gcc", so it can be a program name with args.
13439 set dummy gcc; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13443 $as_echo_n "(cached) " >&6
13445 if test -n "$ac_ct_CC"; then
13446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_ac_ct_CC="gcc"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13466 if test -n "$ac_ct_CC"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13468 $as_echo "$ac_ct_CC" >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13474 if test "x$ac_ct_CC" = x; then
13477 case $cross_compiling:$ac_tool_warned in
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13486 CC="$ac_cv_prog_CC"
13489 if test -z "$CC"; then
13490 if test -n "$ac_tool_prefix"; then
13491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}cc; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if ${ac_cv_prog_CC+:} false; then :
13496 $as_echo_n "(cached) " >&6
13498 if test -n "$CC"; then
13499 ac_cv_prog_CC="$CC" # Let the user override the test.
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_prog_CC="${ac_tool_prefix}cc"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 if test -n "$CC"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13521 $as_echo "$CC" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13530 if test -z "$CC"; then
13531 # Extract the first word of "cc", so it can be a program name with args.
13532 set dummy cc; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if ${ac_cv_prog_CC+:} false; then :
13536 $as_echo_n "(cached) " >&6
13538 if test -n "$CC"; then
13539 ac_cv_prog_CC="$CC" # Let the user override the test.
13541 ac_prog_rejected=no
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13550 ac_prog_rejected=yes
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 if test $ac_prog_rejected = yes; then
13562 # We found a bogon in the path, so make sure we never use it.
13563 set dummy $ac_cv_prog_CC
13565 if test $# != 0; then
13566 # We chose a different compiler from the bogus one.
13567 # However, it has the same basename, so the bogon will be chosen
13568 # first if we set CC to just the basename; use the full file name.
13570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13576 if test -n "$CC"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13578 $as_echo "$CC" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13586 if test -z "$CC"; then
13587 if test -n "$ac_tool_prefix"; then
13588 for ac_prog in cl.exe
13590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_prog_CC+:} false; then :
13595 $as_echo_n "(cached) " >&6
13597 if test -n "$CC"; then
13598 ac_cv_prog_CC="$CC" # Let the user override the test.
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 if test -n "$CC"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13620 $as_echo "$CC" >&6; }
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13627 test -n "$CC" && break
13630 if test -z "$CC"; then
13632 for ac_prog in cl.exe
13634 # Extract the first word of "$ac_prog", so it can be a program name with args.
13635 set dummy $ac_prog; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13639 $as_echo_n "(cached) " >&6
13641 if test -n "$ac_ct_CC"; then
13642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_prog_ac_ct_CC="$ac_prog"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13662 if test -n "$ac_ct_CC"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13664 $as_echo "$ac_ct_CC" >&6; }
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13671 test -n "$ac_ct_CC" && break
13674 if test "x$ac_ct_CC" = x; then
13677 case $cross_compiling:$ac_tool_warned in
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13681 ac_tool_warned=yes ;;
13690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13692 as_fn_error $? "no acceptable C compiler found in \$PATH
13693 See \`config.log' for more details" "$LINENO" 5; }
13695 # Provide some information about the compiler.
13696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13699 for ac_option in --version -v -V -qversion; do
13700 { { ac_try="$ac_compiler $ac_option >&5"
13701 case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13706 $as_echo "$ac_try_echo"; } >&5
13707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13709 if test -s conftest.err; then
13711 ... rest of stderr output deleted ...
13712 10q' conftest.err >conftest.er1
13713 cat conftest.er1 >&5
13715 rm -f conftest.er1 conftest.err
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13722 if ${ac_cv_c_compiler_gnu+:} false; then :
13723 $as_echo_n "(cached) " >&6
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 ac_compiler_gnu=yes
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13750 if test $ac_compiler_gnu = yes; then
13755 ac_test_CFLAGS=${CFLAGS+set}
13756 ac_save_CFLAGS=$CFLAGS
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13759 if ${ac_cv_prog_cc_g+:} false; then :
13760 $as_echo_n "(cached) " >&6
13762 ac_save_c_werror_flag=$ac_c_werror_flag
13763 ac_c_werror_flag=yes
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778 ac_cv_prog_cc_g=yes
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13792 if ac_fn_c_try_compile "$LINENO"; then :
13795 ac_c_werror_flag=$ac_save_c_werror_flag
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809 ac_cv_prog_cc_g=yes
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 ac_c_werror_flag=$ac_save_c_werror_flag
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13819 $as_echo "$ac_cv_prog_cc_g" >&6; }
13820 if test "$ac_test_CFLAGS" = set; then
13821 CFLAGS=$ac_save_CFLAGS
13822 elif test $ac_cv_prog_cc_g = yes; then
13823 if test "$GCC" = yes; then
13829 if test "$GCC" = yes; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13837 if ${ac_cv_prog_cc_c89+:} false; then :
13838 $as_echo_n "(cached) " >&6
13840 ac_cv_prog_cc_c89=no
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 #include <stdarg.h>
13847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13848 struct buf { int x; };
13849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13850 static char *e (p, i)
13856 static char *f (char * (*g) (char **, int), char **p, ...)
13861 s = g (p, va_arg (v,int));
13866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13867 function prototypes and stuff, but not '\xHH' hex character constants.
13868 These don't provoke an error unfortunately, instead are silently treated
13869 as 'x'. The following induces an error, until -std is added to get
13870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13871 array size at least. It's necessary to write '\x00'==0 to get something
13872 that's true only with -std. */
13873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13876 inside strings and character constants. */
13878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13880 int test (int i, double x);
13881 struct s1 {int (*f) (int a);};
13882 struct s2 {int (*f) (double a);};
13883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13897 CC="$ac_save_CC $ac_arg"
13898 if ac_fn_c_try_compile "$LINENO"; then :
13899 ac_cv_prog_cc_c89=$ac_arg
13901 rm -f core conftest.err conftest.$ac_objext
13902 test "x$ac_cv_prog_cc_c89" != "xno" && break
13904 rm -f conftest.$ac_ext
13909 case "x$ac_cv_prog_cc_c89" in
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13912 $as_echo "none needed" >&6; } ;;
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13915 $as_echo "unsupported" >&6; } ;;
13917 CC="$CC $ac_cv_prog_cc_c89"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13921 if test "x$ac_cv_prog_cc_c89" != xno; then :
13926 ac_cpp='$CPP $CPPFLAGS'
13927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932 ac_cpp='$CPP $CPPFLAGS'
13933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13937 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13938 if ${am_cv_prog_cc_c_o+:} false; then :
13939 $as_echo_n "(cached) " >&6
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13952 # Make sure it works both with $CC and with simple cc.
13953 # Following AC_PROG_CC_C_O, we do the test twice because some
13954 # compilers refuse to overwrite an existing .o file with -o,
13955 # though they will create one.
13956 am_cv_prog_cc_c_o=yes
13957 for am_i in 1 2; do
13958 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13959 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } \
13963 && test -f conftest2.$ac_objext; then
13966 am_cv_prog_cc_c_o=no
13970 rm -f core conftest*
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13974 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13975 if test "$am_cv_prog_cc_c_o" != yes; then
13976 # Losing compiler, so override with the script.
13977 # FIXME: It is wrong to rewrite CC.
13978 # But if we don't then we get into trouble of one sort or another.
13979 # A longer-term fix would be to have automake use am__CC in this case,
13980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13981 CC="$am_aux_dir/compile $CC"
13984 ac_cpp='$CPP $CPPFLAGS'
13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13990 depcc="$CC" am_compiler_list=
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13993 $as_echo_n "checking dependency style of $depcc... " >&6; }
13994 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13995 $as_echo_n "(cached) " >&6
13997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13998 # We make a subdir and do the tests there. Otherwise we can end up
13999 # making bogus files that we don't know about and never remove. For
14000 # instance it was reported that on HP-UX the gcc test will end up
14001 # making a dummy file named 'D' -- because '-MD' means "put the output
14003 rm -rf conftest.dir
14005 # Copy depcomp to subdir because otherwise we won't find it if we're
14006 # using a relative directory.
14007 cp "$am_depcomp" conftest.dir
14009 # We will build objects and dependencies in a subdirectory because
14010 # it helps to detect inapplicable dependency modes. For instance
14011 # both Tru64's cc and ICC support -MD to output dependencies as a
14012 # side effect of compilation, but ICC will put the dependencies in
14013 # the current directory while Tru64 will put them in the object
14017 am_cv_CC_dependencies_compiler_type=none
14018 if test "$am_compiler_list" = ""; then
14019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14021 am__universal=false
14022 case " $depcc " in #(
14023 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14026 for depmode in $am_compiler_list; do
14027 # Setup a source with many dependencies, because some compilers
14028 # like to wrap large dependency lists on column 80 (with \), and
14029 # we should not choose a depcomp mode which is confused by this.
14031 # We need to recreate these files for each test, as the compiler may
14032 # overwrite some of them when testing with obscure command lines.
14033 # This happens at least with the AIX C compiler.
14035 for i in 1 2 3 4 5 6; do
14036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14037 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14038 # Solaris 10 /bin/sh.
14039 echo '/* dummy */' > sub/conftst$i.h
14041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14043 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14044 # mode. It turns out that the SunPro C++ compiler does not properly
14045 # handle '-M -o', and we need to detect this. Also, some Intel
14046 # versions had trouble with output in subdirs.
14047 am__obj=sub/conftest.${OBJEXT-o}
14048 am__minus_obj="-o $am__obj"
14051 # This depmode causes a compiler race in universal mode.
14052 test "$am__universal" = false || continue
14055 # After this tag, mechanisms are not by side-effect, so they'll
14056 # only be used when explicitly requested.
14057 if test "x$enable_dependency_tracking" = xyes; then
14063 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14064 # This compiler won't grok '-c -o', but also, the minuso test has
14065 # not run yet. These depmodes are late enough in the game, and
14066 # so weak that their functioning should not be impacted.
14067 am__obj=conftest.${OBJEXT-o}
14072 if depmode=$depmode \
14073 source=sub/conftest.c object=$am__obj \
14074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14076 >/dev/null 2>conftest.err &&
14077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14081 # icc doesn't choke on unknown options, it will just issue warnings
14082 # or remarks (even with -Werror). So we grep stderr for any message
14083 # that says an option was ignored or not supported.
14084 # When given -MP, icc 7.0 and 7.1 complain thusly:
14085 # icc: Command line warning: ignoring option '-M'; no argument required
14086 # The diagnosis changed in icc 8.0:
14087 # icc: Command line remark: option '-MP' not supported
14088 if (grep 'ignoring option' conftest.err ||
14089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14090 am_cv_CC_dependencies_compiler_type=$depmode
14097 rm -rf conftest.dir
14099 am_cv_CC_dependencies_compiler_type=none
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14104 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14105 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14108 test "x$enable_dependency_tracking" != xno \
14109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14110 am__fastdepCC_TRUE=
14111 am__fastdepCC_FALSE='#'
14113 am__fastdepCC_TRUE='#'
14114 am__fastdepCC_FALSE=
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
14121 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
14122 if ${gl_cv_c_amsterdam_compiler+:} false; then :
14123 $as_echo_n "(cached) " >&6
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14135 $EGREP "Amsterdam" >/dev/null 2>&1; then :
14136 gl_cv_c_amsterdam_compiler=yes
14138 gl_cv_c_amsterdam_compiler=no
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
14145 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
14146 if test -z "$AR"; then
14147 if test $gl_cv_c_amsterdam_compiler = yes; then
14149 if test -z "$ARFLAGS"; then
14153 if test -n "$ac_tool_prefix"; then
14154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14155 set dummy ${ac_tool_prefix}ar; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if ${ac_cv_prog_AR+:} false; then :
14159 $as_echo_n "(cached) " >&6
14161 if test -n "$AR"; then
14162 ac_cv_prog_AR="$AR" # Let the user override the test.
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171 ac_cv_prog_AR="${ac_tool_prefix}ar"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 if test -n "$AR"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14184 $as_echo "$AR" >&6; }
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14192 if test -z "$ac_cv_prog_AR"; then
14194 # Extract the first word of "ar", so it can be a program name with args.
14195 set dummy ar; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14199 $as_echo_n "(cached) " >&6
14201 if test -n "$ac_ct_AR"; then
14202 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_ac_ct_AR="ar"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14222 if test -n "$ac_ct_AR"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14224 $as_echo "$ac_ct_AR" >&6; }
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14230 if test "x$ac_ct_AR" = x; then
14233 case $cross_compiling:$ac_tool_warned in
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14237 ac_tool_warned=yes ;;
14242 AR="$ac_cv_prog_AR"
14245 if test -z "$ARFLAGS"; then
14250 if test -z "$ARFLAGS"; then
14256 if test -z "$RANLIB"; then
14257 if test $gl_cv_c_amsterdam_compiler = yes; then
14260 if test -n "$ac_tool_prefix"; then
14261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264 $as_echo_n "checking for $ac_word... " >&6; }
14265 if ${ac_cv_prog_RANLIB+:} false; then :
14266 $as_echo_n "(cached) " >&6
14268 if test -n "$RANLIB"; then
14269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14275 test -z "$as_dir" && as_dir=.
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 RANLIB=$ac_cv_prog_RANLIB
14289 if test -n "$RANLIB"; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14291 $as_echo "$RANLIB" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14299 if test -z "$ac_cv_prog_RANLIB"; then
14300 ac_ct_RANLIB=$RANLIB
14301 # Extract the first word of "ranlib", so it can be a program name with args.
14302 set dummy ranlib; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14306 $as_echo_n "(cached) " >&6
14308 if test -n "$ac_ct_RANLIB"; then
14309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14315 test -z "$as_dir" && as_dir=.
14316 for ac_exec_ext in '' $ac_executable_extensions; do
14317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318 ac_cv_prog_ac_ct_RANLIB="ranlib"
14319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14329 if test -n "$ac_ct_RANLIB"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14331 $as_echo "$ac_ct_RANLIB" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14337 if test "x$ac_ct_RANLIB" = x; then
14340 case $cross_compiling:$ac_tool_warned in
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14344 ac_tool_warned=yes ;;
14346 RANLIB=$ac_ct_RANLIB
14349 RANLIB="$ac_cv_prog_RANLIB"
14362 # Check whether --enable-largefile was given.
14363 if test "${enable_largefile+set}" = set; then :
14364 enableval=$enable_largefile;
14367 if test "$enable_largefile" != no; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14371 if ${ac_cv_sys_largefile_CC+:} false; then :
14372 $as_echo_n "(cached) " >&6
14374 ac_cv_sys_largefile_CC=no
14375 if test "$GCC" != yes; then
14378 # IRIX 6.2 and later do not support large files by default,
14379 # so use the C compiler's -n32 option if that helps.
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <sys/types.h>
14383 /* Check that off_t can represent 2**63 - 1 correctly.
14384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14385 since some C++ compilers masquerading as C compilers
14386 incorrectly reject 9223372036854775807. */
14387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14389 && LARGE_OFF_T % 2147483647 == 1)
14399 if ac_fn_c_try_compile "$LINENO"; then :
14402 rm -f core conftest.err conftest.$ac_objext
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 ac_cv_sys_largefile_CC=' -n32'; break
14407 rm -f core conftest.err conftest.$ac_objext
14411 rm -f conftest.$ac_ext
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14416 if test "$ac_cv_sys_largefile_CC" != no; then
14417 CC=$CC$ac_cv_sys_largefile_CC
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14422 if ${ac_cv_sys_file_offset_bits+:} false; then :
14423 $as_echo_n "(cached) " >&6
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14429 /* Check that off_t can represent 2**63 - 1 correctly.
14430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14431 since some C++ compilers masquerading as C compilers
14432 incorrectly reject 9223372036854775807. */
14433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14435 && LARGE_OFF_T % 2147483647 == 1)
14445 if ac_fn_c_try_compile "$LINENO"; then :
14446 ac_cv_sys_file_offset_bits=no; break
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 #define _FILE_OFFSET_BITS 64
14452 #include <sys/types.h>
14453 /* Check that off_t can represent 2**63 - 1 correctly.
14454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14455 since some C++ compilers masquerading as C compilers
14456 incorrectly reject 9223372036854775807. */
14457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14459 && LARGE_OFF_T % 2147483647 == 1)
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470 ac_cv_sys_file_offset_bits=64; break
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 ac_cv_sys_file_offset_bits=unknown
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14479 case $ac_cv_sys_file_offset_bits in #(
14482 cat >>confdefs.h <<_ACEOF
14483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14488 if test $ac_cv_sys_file_offset_bits = unknown; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14491 if ${ac_cv_sys_large_files+:} false; then :
14492 $as_echo_n "(cached) " >&6
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14498 /* Check that off_t can represent 2**63 - 1 correctly.
14499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14500 since some C++ compilers masquerading as C compilers
14501 incorrectly reject 9223372036854775807. */
14502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14504 && LARGE_OFF_T % 2147483647 == 1)
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 ac_cv_sys_large_files=no; break
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #define _LARGE_FILES 1
14521 #include <sys/types.h>
14522 /* Check that off_t can represent 2**63 - 1 correctly.
14523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14524 since some C++ compilers masquerading as C compilers
14525 incorrectly reject 9223372036854775807. */
14526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14528 && LARGE_OFF_T % 2147483647 == 1)
14538 if ac_fn_c_try_compile "$LINENO"; then :
14539 ac_cv_sys_large_files=1; break
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 ac_cv_sys_large_files=unknown
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14547 $as_echo "$ac_cv_sys_large_files" >&6; }
14548 case $ac_cv_sys_large_files in #(
14551 cat >>confdefs.h <<_ACEOF
14552 #define _LARGE_FILES $ac_cv_sys_large_files
14560 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14564 case $ac_cv_prog_cc_stdc in #(
14566 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14569 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14570 if ${ac_cv_prog_cc_c99+:} false; then :
14571 $as_echo_n "(cached) " >&6
14573 ac_cv_prog_cc_c99=no
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #include <stdarg.h>
14578 #include <stdbool.h>
14579 #include <stdlib.h>
14583 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14584 #define debug(...) fprintf (stderr, __VA_ARGS__)
14585 #define showlist(...) puts (#__VA_ARGS__)
14586 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14588 test_varargs_macros (void)
14593 debug ("X = %d\n", x);
14594 showlist (The first, second, and third items.);
14595 report (x>y, "x is %d but y is %d", x, y);
14598 // Check long long types.
14599 #define BIG64 18446744073709551615ull
14600 #define BIG32 4294967295ul
14601 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14603 your preprocessor is broken;
14607 your preprocessor is broken;
14609 static long long int bignum = -9223372036854775807LL;
14610 static unsigned long long int ubignum = BIG64;
14612 struct incomplete_array
14618 struct named_init {
14620 const wchar_t *name;
14624 typedef const char *ccp;
14627 test_restrict (ccp restrict text)
14629 // See if C++-style comments work.
14630 // Iterate through items via the restricted pointer.
14631 // Also check for declarations in for loops.
14632 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14637 // Check varargs and va_copy.
14639 test_varargs (const char *format, ...)
14642 va_start (args, format);
14644 va_copy (args_copy, args);
14654 case 's': // string
14655 str = va_arg (args_copy, const char *);
14658 number = va_arg (args_copy, int);
14661 fnumber = va_arg (args_copy, double);
14667 va_end (args_copy);
14676 _Bool success = false;
14679 if (test_restrict ("String literal") == 0)
14681 char *restrict newvar = "Another string";
14684 test_varargs ("s, d' f .", "string", 65, 34.234);
14685 test_varargs_macros ();
14687 // Check flexible array members.
14688 struct incomplete_array *ia =
14689 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14691 for (int i = 0; i < ia->datasize; ++i)
14692 ia->data[i] = i * 1.234;
14694 // Check named initializers.
14695 struct named_init ni = {
14697 .name = L"Test wide string",
14698 .average = 543.34343,
14703 int dynamic_array[ni.number];
14704 dynamic_array[ni.number - 1] = 543;
14706 // work around unused variable warnings
14707 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14708 || dynamic_array[ni.number - 1] != 543);
14714 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14716 CC="$ac_save_CC $ac_arg"
14717 if ac_fn_c_try_compile "$LINENO"; then :
14718 ac_cv_prog_cc_c99=$ac_arg
14720 rm -f core conftest.err conftest.$ac_objext
14721 test "x$ac_cv_prog_cc_c99" != "xno" && break
14723 rm -f conftest.$ac_ext
14728 case "x$ac_cv_prog_cc_c99" in
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14731 $as_echo "none needed" >&6; } ;;
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14734 $as_echo "unsupported" >&6; } ;;
14736 CC="$CC $ac_cv_prog_cc_c99"
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14738 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14740 if test "x$ac_cv_prog_cc_c99" != xno; then :
14741 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14745 if ${ac_cv_prog_cc_c89+:} false; then :
14746 $as_echo_n "(cached) " >&6
14748 ac_cv_prog_cc_c89=no
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <stdarg.h>
14755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14756 struct buf { int x; };
14757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14758 static char *e (p, i)
14764 static char *f (char * (*g) (char **, int), char **p, ...)
14769 s = g (p, va_arg (v,int));
14774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14775 function prototypes and stuff, but not '\xHH' hex character constants.
14776 These don't provoke an error unfortunately, instead are silently treated
14777 as 'x'. The following induces an error, until -std is added to get
14778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14779 array size at least. It's necessary to write '\x00'==0 to get something
14780 that's true only with -std. */
14781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14784 inside strings and character constants. */
14786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14788 int test (int i, double x);
14789 struct s1 {int (*f) (int a);};
14790 struct s2 {int (*f) (double a);};
14791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14803 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14805 CC="$ac_save_CC $ac_arg"
14806 if ac_fn_c_try_compile "$LINENO"; then :
14807 ac_cv_prog_cc_c89=$ac_arg
14809 rm -f core conftest.err conftest.$ac_objext
14810 test "x$ac_cv_prog_cc_c89" != "xno" && break
14812 rm -f conftest.$ac_ext
14817 case "x$ac_cv_prog_cc_c89" in
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14820 $as_echo "none needed" >&6; } ;;
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14823 $as_echo "unsupported" >&6; } ;;
14825 CC="$CC $ac_cv_prog_cc_c89"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14827 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14829 if test "x$ac_cv_prog_cc_c89" != xno; then :
14830 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14832 ac_cv_prog_cc_stdc=no
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14839 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14840 if ${ac_cv_prog_cc_stdc+:} false; then :
14841 $as_echo_n "(cached) " >&6
14844 case $ac_cv_prog_cc_stdc in #(
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14847 $as_echo "unsupported" >&6; } ;; #(
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14850 $as_echo "none needed" >&6; } ;; #(
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14853 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14861 # Check whether --enable-threads was given.
14862 if test "${enable_threads+set}" = set; then :
14863 enableval=$enable_threads; gl_use_threads=$enableval
14865 if test -n "$gl_use_threads_default"; then
14866 gl_use_threads="$gl_use_threads_default"
14869 osf*) gl_use_threads=no ;;
14872 1.[0-5].*) gl_use_threads=no ;;
14873 *) gl_use_threads=yes ;;
14876 *) gl_use_threads=yes ;;
14882 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14883 # For using <pthread.h>:
14886 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14887 # groks <pthread.h>. cc also understands the flag -pthread, but
14888 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14889 # 2. putting a flag into CPPFLAGS that has an effect on the linker
14890 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14891 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14892 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14895 # Some systems optimize for single-threaded programs by default, and
14896 # need special flags to disable these optimizations. For example, the
14897 # definition of 'errno' in <errno.h>.
14899 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14900 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14907 # Code from module absolute-header:
14908 # Code from module alloca-opt:
14909 # Code from module dirname:
14910 # Code from module dirname-lgpl:
14911 # Code from module dosname:
14912 # Code from module double-slash-root:
14913 # Code from module environ:
14914 # Code from module errno:
14915 # Code from module error:
14916 # Code from module exitfail:
14917 # Code from module extensions:
14919 # Code from module extern-inline:
14920 # Code from module fcntl-h:
14921 # Code from module float:
14922 # Code from module full-write:
14923 # Code from module gettext-h:
14924 # Code from module gettimeofday:
14925 # Code from module gitlog-to-changelog:
14926 # Code from module gnupload:
14927 # Code from module havelib:
14928 # Code from module include_next:
14929 # Code from module intprops:
14930 # Code from module largefile:
14932 # Code from module lib-ignore:
14933 # Code from module lock:
14934 # Code from module lstat:
14935 # Code from module malloc-posix:
14936 # Code from module malloca:
14937 # Code from module memchr:
14938 # Code from module mkdtemp:
14939 # Code from module msvc-inval:
14940 # Code from module msvc-nothrow:
14941 # Code from module multiarch:
14942 # Code from module pathmax:
14943 # Code from module raise:
14944 # Code from module read:
14945 # Code from module safe-read:
14946 # Code from module safe-write:
14947 # Code from module secure_getenv:
14948 # Code from module setenv:
14949 # Code from module sigaction:
14950 # Code from module signal:
14951 # Code from module signal-h:
14952 # Code from module sigprocmask:
14953 # Code from module size_max:
14954 # Code from module snippet/_Noreturn:
14955 # Code from module snippet/arg-nonnull:
14956 # Code from module snippet/c++defs:
14957 # Code from module snippet/warn-on-use:
14958 # Code from module snprintf:
14959 # Code from module ssize_t:
14960 # Code from module stat:
14961 # Code from module stdarg:
14965 # Code from module stdbool:
14966 # Code from module stddef:
14967 # Code from module stdint:
14968 # Code from module stdio:
14969 # Code from module stdlib:
14970 # Code from module strerror:
14971 # Code from module strerror-override:
14972 # Code from module string:
14973 # Code from module strndup:
14974 # Code from module strnlen:
14975 # Code from module strsignal:
14976 # Code from module sys_select:
14977 # Code from module sys_stat:
14978 # Code from module sys_time:
14979 # Code from module sys_types:
14980 # Code from module sys_wait:
14981 # Code from module tempname:
14982 # Code from module threadlib:
14986 # Code from module time:
14987 # Code from module tls:
14988 # Code from module unistd:
14989 # Code from module unsetenv:
14990 # Code from module vasnprintf:
14991 # Code from module vasprintf:
14992 # Code from module verify:
14993 # Code from module waitpid:
14994 # Code from module warnings:
14995 # Code from module wchar:
14996 # Code from module write:
14997 # Code from module xalloc:
14998 # Code from module xalloc-die:
14999 # Code from module xalloc-oversized:
15000 # Code from module xsize:
15001 # Code from module xstrndup:
15002 # Code from module xvasprintf:
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15010 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15011 # On Suns, sometimes $CPP names a directory.
15012 if test -n "$CPP" && test -d "$CPP"; then
15015 if test -z "$CPP"; then
15016 if ${ac_cv_prog_CPP+:} false; then :
15017 $as_echo_n "(cached) " >&6
15019 # Double quotes because CPP needs to be expanded
15020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15022 ac_preproc_ok=false
15023 for ac_c_preproc_warn_flag in '' yes
15025 # Use a header file that comes with gcc, so configuring glibc
15026 # with a fresh cross-compiler works.
15027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028 # <limits.h> exists even on freestanding compilers.
15029 # On the NeXT, cc -E runs the code through the compiler's parser,
15030 # not just through cpp. "Syntax error" is here to catch this case.
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15034 # include <limits.h>
15036 # include <assert.h>
15040 if ac_fn_c_try_cpp "$LINENO"; then :
15043 # Broken: fails on valid input.
15046 rm -f conftest.err conftest.i conftest.$ac_ext
15048 # OK, works on sane cases. Now check whether nonexistent headers
15049 # can be detected and how.
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15052 #include <ac_nonexistent.h>
15054 if ac_fn_c_try_cpp "$LINENO"; then :
15055 # Broken: success on invalid input.
15058 # Passes both tests.
15062 rm -f conftest.err conftest.i conftest.$ac_ext
15065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15066 rm -f conftest.i conftest.err conftest.$ac_ext
15067 if $ac_preproc_ok; then :
15072 ac_cv_prog_CPP=$CPP
15075 CPP=$ac_cv_prog_CPP
15077 ac_cv_prog_CPP=$CPP
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15080 $as_echo "$CPP" >&6; }
15081 ac_preproc_ok=false
15082 for ac_c_preproc_warn_flag in '' yes
15084 # Use a header file that comes with gcc, so configuring glibc
15085 # with a fresh cross-compiler works.
15086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15087 # <limits.h> exists even on freestanding compilers.
15088 # On the NeXT, cc -E runs the code through the compiler's parser,
15089 # not just through cpp. "Syntax error" is here to catch this case.
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15093 # include <limits.h>
15095 # include <assert.h>
15099 if ac_fn_c_try_cpp "$LINENO"; then :
15102 # Broken: fails on valid input.
15105 rm -f conftest.err conftest.i conftest.$ac_ext
15107 # OK, works on sane cases. Now check whether nonexistent headers
15108 # can be detected and how.
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 #include <ac_nonexistent.h>
15113 if ac_fn_c_try_cpp "$LINENO"; then :
15114 # Broken: success on invalid input.
15117 # Passes both tests.
15121 rm -f conftest.err conftest.i conftest.$ac_ext
15124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15125 rm -f conftest.i conftest.err conftest.$ac_ext
15126 if $ac_preproc_ok; then :
15129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15131 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15132 See \`config.log' for more details" "$LINENO" 5; }
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15141 CFLAGS="$CFLAGS -Wall"
15142 if test "$GCC" = yes
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
15145 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
15146 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
15147 $as_echo_n "(cached) " >&6
15150 gl_save_compiler_FLAGS="$CFLAGS"
15151 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
15166 gl_cv_warn_c__Werror__Wunknown_warning_option=no
15168 rm -f core conftest.err conftest.$ac_objext \
15169 conftest$ac_exeext conftest.$ac_ext
15170 CFLAGS="$gl_save_compiler_FLAGS"
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
15174 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
15175 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
15176 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
15178 gl_unknown_warnings_are_errors=
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
15183 $as_echo_n "checking whether C compiler handles -W... " >&6; }
15184 if ${gl_cv_warn_c__W+:} false; then :
15185 $as_echo_n "(cached) " >&6
15188 gl_save_compiler_FLAGS="$CFLAGS"
15189 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15201 if ac_fn_c_try_link "$LINENO"; then :
15202 gl_cv_warn_c__W=yes
15206 rm -f core conftest.err conftest.$ac_objext \
15207 conftest$ac_exeext conftest.$ac_ext
15208 CFLAGS="$gl_save_compiler_FLAGS"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
15212 $as_echo "$gl_cv_warn_c__W" >&6; }
15213 if test "x$gl_cv_warn_c__W" = xyes; then :
15214 as_fn_append WARN_CFLAGS " -W"
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
15220 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
15221 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
15222 $as_echo_n "(cached) " >&6
15225 gl_save_compiler_FLAGS="$CFLAGS"
15226 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15238 if ac_fn_c_try_link "$LINENO"; then :
15239 gl_cv_warn_c__Wpointer_arith=yes
15241 gl_cv_warn_c__Wpointer_arith=no
15243 rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245 CFLAGS="$gl_save_compiler_FLAGS"
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
15249 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
15250 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
15251 as_fn_append WARN_CFLAGS " -Wpointer-arith"
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
15257 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
15258 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
15259 $as_echo_n "(cached) " >&6
15262 gl_save_compiler_FLAGS="$CFLAGS"
15263 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 gl_cv_warn_c__Wwrite_strings=yes
15278 gl_cv_warn_c__Wwrite_strings=no
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 CFLAGS="$gl_save_compiler_FLAGS"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
15286 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
15287 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
15288 as_fn_append WARN_CFLAGS " -Wwrite-strings"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
15294 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
15295 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
15296 $as_echo_n "(cached) " >&6
15299 gl_save_compiler_FLAGS="$CFLAGS"
15300 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 gl_cv_warn_c__Wstrict_prototypes=yes
15315 gl_cv_warn_c__Wstrict_prototypes=no
15317 rm -f core conftest.err conftest.$ac_objext \
15318 conftest$ac_exeext conftest.$ac_ext
15319 CFLAGS="$gl_save_compiler_FLAGS"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
15323 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
15324 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
15325 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
15331 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
15332 if ${gl_cv_warn_c__Wshadow+:} false; then :
15333 $as_echo_n "(cached) " >&6
15336 gl_save_compiler_FLAGS="$CFLAGS"
15337 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15349 if ac_fn_c_try_link "$LINENO"; then :
15350 gl_cv_warn_c__Wshadow=yes
15352 gl_cv_warn_c__Wshadow=no
15354 rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 CFLAGS="$gl_save_compiler_FLAGS"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
15360 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
15361 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
15362 as_fn_append WARN_CFLAGS " -Wshadow"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
15368 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
15369 if ${gl_cv_warn_c__Wformat_security+:} false; then :
15370 $as_echo_n "(cached) " >&6
15373 gl_save_compiler_FLAGS="$CFLAGS"
15374 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 gl_cv_warn_c__Wformat_security=yes
15389 gl_cv_warn_c__Wformat_security=no
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 CFLAGS="$gl_save_compiler_FLAGS"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
15397 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
15398 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
15399 as_fn_append WARN_CFLAGS " -Wformat-security"
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
15405 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
15406 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
15407 $as_echo_n "(cached) " >&6
15410 gl_save_compiler_FLAGS="$CFLAGS"
15411 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15423 if ac_fn_c_try_link "$LINENO"; then :
15424 gl_cv_warn_c__Wredundant_decls=yes
15426 gl_cv_warn_c__Wredundant_decls=no
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 CFLAGS="$gl_save_compiler_FLAGS"
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
15434 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
15435 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
15436 as_fn_append WARN_CFLAGS " -Wredundant-decls"
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
15442 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
15443 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
15444 $as_echo_n "(cached) " >&6
15447 gl_save_compiler_FLAGS="$CFLAGS"
15448 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15460 if ac_fn_c_try_link "$LINENO"; then :
15461 gl_cv_warn_c__Wno_missing_field_initializers=yes
15463 gl_cv_warn_c__Wno_missing_field_initializers=no
15465 rm -f core conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 CFLAGS="$gl_save_compiler_FLAGS"
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
15471 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
15472 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
15473 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15479 $as_echo_n "checking whether ln -s works... " >&6; }
15481 if test "$LN_S" = "ln -s"; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483 $as_echo "yes" >&6; }
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15486 $as_echo "no, using $LN_S" >&6; }
15490 cat >>confdefs.h <<_ACEOF
15491 #define SHELL "$SHELL"
15501 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15502 if test -n "$ac_tool_prefix"; then
15503 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15504 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15506 $as_echo_n "checking for $ac_word... " >&6; }
15507 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15508 $as_echo_n "(cached) " >&6
15510 case $PKG_CONFIG in
15512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15519 test -z "$as_dir" && as_dir=.
15520 for ac_exec_ext in '' $ac_executable_extensions; do
15521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15522 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15534 if test -n "$PKG_CONFIG"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15536 $as_echo "$PKG_CONFIG" >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15544 if test -z "$ac_cv_path_PKG_CONFIG"; then
15545 ac_pt_PKG_CONFIG=$PKG_CONFIG
15546 # Extract the first word of "pkg-config", so it can be a program name with args.
15547 set dummy pkg-config; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15551 $as_echo_n "(cached) " >&6
15553 case $ac_pt_PKG_CONFIG in
15555 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15559 for as_dir in $PATH
15562 test -z "$as_dir" && as_dir=.
15563 for ac_exec_ext in '' $ac_executable_extensions; do
15564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15565 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15576 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15577 if test -n "$ac_pt_PKG_CONFIG"; then
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15579 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15582 $as_echo "no" >&6; }
15585 if test "x$ac_pt_PKG_CONFIG" = x; then
15588 case $cross_compiling:$ac_tool_warned in
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15592 ac_tool_warned=yes ;;
15594 PKG_CONFIG=$ac_pt_PKG_CONFIG
15597 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15601 if test -n "$PKG_CONFIG"; then
15602 _pkg_min_version=0.9.0
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15604 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15605 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15617 $as_echo_n "checking for CHECK... " >&6; }
15619 if test -n "$CHECK_CFLAGS"; then
15620 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15621 elif test -n "$PKG_CONFIG"; then
15622 if test -n "$PKG_CONFIG" && \
15623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15624 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }; then
15628 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15629 test "x$?" != "x0" && pkg_failed=yes
15636 if test -n "$CHECK_LIBS"; then
15637 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15638 elif test -n "$PKG_CONFIG"; then
15639 if test -n "$PKG_CONFIG" && \
15640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15641 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15644 test $ac_status = 0; }; then
15645 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15646 test "x$?" != "x0" && pkg_failed=yes
15656 if test $pkg_failed = yes; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15661 _pkg_short_errors_supported=yes
15663 _pkg_short_errors_supported=no
15665 if test $_pkg_short_errors_supported = yes; then
15666 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15668 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15670 # Put the nasty error message in config.log where it belongs
15671 echo "$CHECK_PKG_ERRORS" >&5
15674 elif test $pkg_failed = untried; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15676 $as_echo "no" >&6; }
15679 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15680 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15685 if test "x$run_tests" = xyes; then
15687 RUN_TESTS_FALSE='#'
15694 # Check for various header files and associated libraries.
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15696 $as_echo_n "checking for library containing strerror... " >&6; }
15697 if ${ac_cv_search_strerror+:} false; then :
15698 $as_echo_n "(cached) " >&6
15700 ac_func_search_save_LIBS=$LIBS
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15704 /* Override any GCC internal prototype to avoid an error.
15705 Use char because int might match the return type of a GCC
15706 builtin and then its argument prototype would still apply. */
15714 return strerror ();
15719 for ac_lib in '' cposix; do
15720 if test -z "$ac_lib"; then
15721 ac_res="none required"
15724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15726 if ac_fn_c_try_link "$LINENO"; then :
15727 ac_cv_search_strerror=$ac_res
15729 rm -f core conftest.err conftest.$ac_objext \
15731 if ${ac_cv_search_strerror+:} false; then :
15735 if ${ac_cv_search_strerror+:} false; then :
15738 ac_cv_search_strerror=no
15740 rm conftest.$ac_ext
15741 LIBS=$ac_func_search_save_LIBS
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15744 $as_echo "$ac_cv_search_strerror" >&6; }
15745 ac_res=$ac_cv_search_strerror
15746 if test "$ac_res" != no; then :
15747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15756 LIBC_FATAL_STDERR_=1
15757 export LIBC_FATAL_STDERR_
15759 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15760 if test "x$ac_cv_type_size_t" = xyes; then :
15764 cat >>confdefs.h <<_ACEOF
15765 #define size_t unsigned int
15770 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15771 # for constant arguments. Useless!
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15773 $as_echo_n "checking for working alloca.h... " >&6; }
15774 if ${ac_cv_working_alloca_h+:} false; then :
15775 $as_echo_n "(cached) " >&6
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 #include <alloca.h>
15783 char *p = (char *) alloca (2 * sizeof (int));
15789 if ac_fn_c_try_link "$LINENO"; then :
15790 ac_cv_working_alloca_h=yes
15792 ac_cv_working_alloca_h=no
15794 rm -f core conftest.err conftest.$ac_objext \
15795 conftest$ac_exeext conftest.$ac_ext
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15798 $as_echo "$ac_cv_working_alloca_h" >&6; }
15799 if test $ac_cv_working_alloca_h = yes; then
15801 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15806 $as_echo_n "checking for alloca... " >&6; }
15807 if ${ac_cv_func_alloca_works+:} false; then :
15808 $as_echo_n "(cached) " >&6
15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15813 # define alloca __builtin_alloca
15816 # include <malloc.h>
15817 # define alloca _alloca
15819 # ifdef HAVE_ALLOCA_H
15820 # include <alloca.h>
15825 # ifndef alloca /* predefined by HP cc +Olibcalls */
15826 void *alloca (size_t);
15836 char *p = (char *) alloca (1);
15842 if ac_fn_c_try_link "$LINENO"; then :
15843 ac_cv_func_alloca_works=yes
15845 ac_cv_func_alloca_works=no
15847 rm -f core conftest.err conftest.$ac_objext \
15848 conftest$ac_exeext conftest.$ac_ext
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15851 $as_echo "$ac_cv_func_alloca_works" >&6; }
15853 if test $ac_cv_func_alloca_works = yes; then
15855 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15858 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15859 # that cause trouble. Some versions do not even contain alloca or
15860 # contain a buggy version. If you still want to use their alloca,
15861 # use ar to extract alloca.o from them instead of compiling alloca.c.
15867 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15869 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15873 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15874 if ${ac_cv_os_cray+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 #if defined CRAY && ! defined CRAY2
15886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887 $EGREP "webecray" >/dev/null 2>&1; then :
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15896 $as_echo "$ac_cv_os_cray" >&6; }
15897 if test $ac_cv_os_cray = yes; then
15898 for ac_func in _getb67 GETB67 getb67; do
15899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15901 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15903 cat >>confdefs.h <<_ACEOF
15904 #define CRAY_STACKSEG_END $ac_func
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15914 $as_echo_n "checking stack direction for C alloca... " >&6; }
15915 if ${ac_cv_c_stack_direction+:} false; then :
15916 $as_echo_n "(cached) " >&6
15918 if test "$cross_compiling" = yes; then :
15919 ac_cv_c_stack_direction=0
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923 $ac_includes_default
15925 find_stack_direction (int *addr, int depth)
15927 int dir, dummy = 0;
15930 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15931 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15932 return dir + dummy;
15936 main (int argc, char **argv)
15938 return find_stack_direction (0, argc + !argv + 20) < 0;
15941 if ac_fn_c_try_run "$LINENO"; then :
15942 ac_cv_c_stack_direction=1
15944 ac_cv_c_stack_direction=-1
15946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15947 conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15952 $as_echo "$ac_cv_c_stack_direction" >&6; }
15953 cat >>confdefs.h <<_ACEOF
15954 #define STACK_DIRECTION $ac_cv_c_stack_direction
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15963 $as_echo_n "checking whether // is distinct from /... " >&6; }
15964 if ${gl_cv_double_slash_root+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 if test x"$cross_compiling" = xyes ; then
15968 # When cross-compiling, there is no way to tell whether // is special
15969 # short of a list of hosts. However, the only known hosts to date
15970 # that have a distinct // are Apollo DomainOS (too old to port to),
15971 # Cygwin, and z/OS. If anyone knows of another system for which // has
15972 # special semantics and is distinct from /, please report it to
15973 # <bug-gnulib@gnu.org>.
15975 *-cygwin | i370-ibm-openedition)
15976 gl_cv_double_slash_root=yes ;;
15978 # Be optimistic and assume that / and // are the same when we
15980 gl_cv_double_slash_root='unknown, assuming no' ;;
15983 set x `ls -di / // 2>/dev/null`
15984 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15985 gl_cv_double_slash_root=no
15987 gl_cv_double_slash_root=yes
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15992 $as_echo "$gl_cv_double_slash_root" >&6; }
15993 if test "$gl_cv_double_slash_root" = yes; then
15995 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16011 GNULIB_EUIDACCESS=0;
16012 GNULIB_FACCESSAT=0;
16015 GNULIB_FDATASYNC=0;
16017 GNULIB_FTRUNCATE=0;
16019 GNULIB_GETDOMAINNAME=0;
16020 GNULIB_GETDTABLESIZE=0;
16021 GNULIB_GETGROUPS=0;
16022 GNULIB_GETHOSTNAME=0;
16024 GNULIB_GETLOGIN_R=0;
16025 GNULIB_GETPAGESIZE=0;
16026 GNULIB_GETUSERSHELL=0;
16027 GNULIB_GROUP_MEMBER=0;
16039 GNULIB_READLINKAT=0;
16041 GNULIB_SETHOSTNAME=0;
16044 GNULIB_SYMLINKAT=0;
16045 GNULIB_TTYNAME_R=0;
16046 GNULIB_UNISTD_H_NONBLOCKING=0;
16047 GNULIB_UNISTD_H_SIGPIPE=0;
16062 HAVE_GETDTABLESIZE=1;
16064 HAVE_GETHOSTNAME=1;
16066 HAVE_GETPAGESIZE=1;
16067 HAVE_GROUP_MEMBER=1;
16077 HAVE_SETHOSTNAME=1;
16083 HAVE_DECL_ENVIRON=1;
16084 HAVE_DECL_FCHDIR=1;
16085 HAVE_DECL_FDATASYNC=1;
16086 HAVE_DECL_GETDOMAINNAME=1;
16087 HAVE_DECL_GETLOGIN_R=1;
16088 HAVE_DECL_GETPAGESIZE=1;
16089 HAVE_DECL_GETUSERSHELL=1;
16090 HAVE_DECL_SETHOSTNAME=1;
16091 HAVE_DECL_TTYNAME_R=1;
16093 HAVE_SYS_PARAM_H=0;
16098 REPLACE_FCHOWNAT=0;
16099 REPLACE_FTRUNCATE=0;
16101 REPLACE_GETDOMAINNAME=0;
16102 REPLACE_GETDTABLESIZE=0;
16103 REPLACE_GETLOGIN_R=0;
16104 REPLACE_GETGROUPS=0;
16105 REPLACE_GETPAGESIZE=0;
16114 REPLACE_READLINK=0;
16118 REPLACE_TTYNAME_R=0;
16120 REPLACE_UNLINKAT=0;
16123 UNISTD_H_HAVE_WINSOCK2_H=0;
16124 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16131 for ac_header in $gl_header_list
16133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16162 $as_echo_n "checking if environ is properly declared... " >&6; }
16163 if ${gt_cv_var_environ_declaration+:} false; then :
16164 $as_echo_n "(cached) " >&6
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16170 #include <unistd.h>
16172 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16173 #include <stdlib.h>
16175 extern struct { int foo; } environ;
16184 if ac_fn_c_try_compile "$LINENO"; then :
16185 gt_cv_var_environ_declaration=no
16187 gt_cv_var_environ_declaration=yes
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16193 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16194 if test $gt_cv_var_environ_declaration = yes; then
16196 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16201 if test $gt_cv_var_environ_declaration != yes; then
16202 HAVE_DECL_ENVIRON=0
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16208 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16209 if ${gl_cv_have_include_next+:} false; then :
16210 $as_echo_n "(cached) " >&6
16212 rm -rf conftestd1a conftestd1b conftestd2
16213 mkdir conftestd1a conftestd1b conftestd2
16214 cat <<EOF > conftestd1a/conftest.h
16215 #define DEFINED_IN_CONFTESTD1
16216 #include_next <conftest.h>
16217 #ifdef DEFINED_IN_CONFTESTD2
16220 #error "include_next doesn't work"
16223 cat <<EOF > conftestd1b/conftest.h
16224 #define DEFINED_IN_CONFTESTD1
16226 #include_next <conftest.h>
16227 #ifdef DEFINED_IN_CONFTESTD2
16230 #error "include_next doesn't work"
16233 cat <<EOF > conftestd2/conftest.h
16234 #ifndef DEFINED_IN_CONFTESTD1
16235 #error "include_next test doesn't work"
16237 #define DEFINED_IN_CONFTESTD2
16239 gl_save_CPPFLAGS="$CPPFLAGS"
16240 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <conftest.h>
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246 gl_cv_have_include_next=yes
16248 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 #include <conftest.h>
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254 gl_cv_have_include_next=buggy
16256 gl_cv_have_include_next=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 CPPFLAGS="$gl_save_CPPFLAGS"
16263 rm -rf conftestd1a conftestd1b conftestd2
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16267 $as_echo "$gl_cv_have_include_next" >&6; }
16268 PRAGMA_SYSTEM_HEADER=
16269 if test $gl_cv_have_include_next = yes; then
16270 INCLUDE_NEXT=include_next
16271 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16272 if test -n "$GCC"; then
16273 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16276 if test $gl_cv_have_include_next = buggy; then
16277 INCLUDE_NEXT=include
16278 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16280 INCLUDE_NEXT=include
16281 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16288 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16289 if ${gl_cv_pragma_columns+:} false; then :
16290 $as_echo_n "(cached) " >&6
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16301 $EGREP "choke me" >/dev/null 2>&1; then :
16302 gl_cv_pragma_columns=yes
16304 gl_cv_pragma_columns=no
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16311 $as_echo "$gl_cv_pragma_columns" >&6; }
16312 if test $gl_cv_pragma_columns = yes; then
16313 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16322 $as_echo_n "checking for complete errno.h... " >&6; }
16323 if ${gl_cv_header_errno_h_complete+:} false; then :
16324 $as_echo_n "(cached) " >&6
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16331 #if !defined ETXTBSY
16334 #if !defined ENOMSG
16340 #if !defined ENOLINK
16343 #if !defined EPROTO
16346 #if !defined EMULTIHOP
16349 #if !defined EBADMSG
16352 #if !defined EOVERFLOW
16355 #if !defined ENOTSUP
16358 #if !defined ENETRESET
16361 #if !defined ECONNABORTED
16364 #if !defined ESTALE
16367 #if !defined EDQUOT
16370 #if !defined ECANCELED
16373 #if !defined EOWNERDEAD
16376 #if !defined ENOTRECOVERABLE
16379 #if !defined EILSEQ
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385 $EGREP "booboo" >/dev/null 2>&1; then :
16386 gl_cv_header_errno_h_complete=no
16388 gl_cv_header_errno_h_complete=yes
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16395 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16396 if test $gl_cv_header_errno_h_complete = yes; then
16407 if test $gl_cv_have_include_next = yes; then
16408 gl_cv_next_errno_h='<'errno.h'>'
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16411 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16412 if ${gl_cv_next_errno_h+:} false; then :
16413 $as_echo_n "(cached) " >&6
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16423 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16424 *) gl_absname_cpp="$ac_cpp" ;;
16429 gl_dirsep_regex='[/\\]'
16432 gl_dirsep_regex='\/'
16435 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16436 gl_header_literal_regex=`echo 'errno.h' \
16437 | sed -e "$gl_make_literal_regex_sed"`
16438 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16439 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16445 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16446 sed -n "$gl_absolute_header_sed"`
16448 gl_header=$gl_cv_absolute_errno_h
16449 gl_cv_next_errno_h='"'$gl_header'"'
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16454 $as_echo "$gl_cv_next_errno_h" >&6; }
16456 NEXT_ERRNO_H=$gl_cv_next_errno_h
16458 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16460 gl_next_as_first_directive='<'errno.h'>'
16462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16463 gl_next_as_first_directive=$gl_cv_next_errno_h
16465 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16473 if test -n "$ERRNO_H"; then
16474 GL_GENERATE_ERRNO_H_TRUE=
16475 GL_GENERATE_ERRNO_H_FALSE='#'
16477 GL_GENERATE_ERRNO_H_TRUE='#'
16478 GL_GENERATE_ERRNO_H_FALSE=
16482 if test -n "$ERRNO_H"; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16484 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16485 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16486 $as_echo_n "(cached) " >&6
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 $EGREP "yes" >/dev/null 2>&1; then :
16500 gl_cv_header_errno_h_EMULTIHOP=yes
16502 gl_cv_header_errno_h_EMULTIHOP=no
16506 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16510 #define _XOPEN_SOURCE_EXTENDED 1
16517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16518 $EGREP "yes" >/dev/null 2>&1; then :
16519 gl_cv_header_errno_h_EMULTIHOP=hidden
16523 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16524 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16525 #define _XOPEN_SOURCE_EXTENDED 1
16527 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16529 #include <stdlib.h>
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16539 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16540 case $gl_cv_header_errno_h_EMULTIHOP in
16542 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16545 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16553 if test -n "$ERRNO_H"; then
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16555 $as_echo_n "checking for ENOLINK value... " >&6; }
16556 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16557 $as_echo_n "(cached) " >&6
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570 $EGREP "yes" >/dev/null 2>&1; then :
16571 gl_cv_header_errno_h_ENOLINK=yes
16573 gl_cv_header_errno_h_ENOLINK=no
16577 if test $gl_cv_header_errno_h_ENOLINK = no; then
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16581 #define _XOPEN_SOURCE_EXTENDED 1
16588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16589 $EGREP "yes" >/dev/null 2>&1; then :
16590 gl_cv_header_errno_h_ENOLINK=hidden
16594 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16595 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16596 #define _XOPEN_SOURCE_EXTENDED 1
16598 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16600 #include <stdlib.h>
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16610 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16611 case $gl_cv_header_errno_h_ENOLINK in
16613 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16616 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16624 if test -n "$ERRNO_H"; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16626 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16627 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16628 $as_echo_n "(cached) " >&6
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641 $EGREP "yes" >/dev/null 2>&1; then :
16642 gl_cv_header_errno_h_EOVERFLOW=yes
16644 gl_cv_header_errno_h_EOVERFLOW=no
16648 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16652 #define _XOPEN_SOURCE_EXTENDED 1
16659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16660 $EGREP "yes" >/dev/null 2>&1; then :
16661 gl_cv_header_errno_h_EOVERFLOW=hidden
16665 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16666 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16667 #define _XOPEN_SOURCE_EXTENDED 1
16669 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16671 #include <stdlib.h>
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16681 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16682 case $gl_cv_header_errno_h_EOVERFLOW in
16684 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16687 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16695 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16696 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_DECL_STRERROR_R $ac_have_decl
16706 for ac_func in strerror_r
16708 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16709 if test "x$ac_cv_func_strerror_r" = xyes; then :
16710 cat >>confdefs.h <<_ACEOF
16711 #define HAVE_STRERROR_R 1
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16718 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16719 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16720 $as_echo_n "(cached) " >&6
16723 ac_cv_func_strerror_r_char_p=no
16724 if test $ac_cv_have_decl_strerror_r = yes; then
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727 $ac_includes_default
16733 char x = *strerror_r (0, buf, sizeof buf);
16734 char *p = strerror_r (0, buf, sizeof buf);
16741 if ac_fn_c_try_compile "$LINENO"; then :
16742 ac_cv_func_strerror_r_char_p=yes
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 # strerror_r is not declared. Choose between
16747 # systems that have relatively inaccessible declarations for the
16748 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16749 # former has a strerror_r that returns char*, while the latter
16750 # has a strerror_r that returns `int'.
16751 # This test should segfault on the DEC system.
16752 if test "$cross_compiling" = yes; then :
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 $ac_includes_default
16758 extern char *strerror_r ();
16763 char x = *strerror_r (0, buf, sizeof buf);
16764 return ! isalpha (x);
16769 if ac_fn_c_try_run "$LINENO"; then :
16770 ac_cv_func_strerror_r_char_p=yes
16772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16773 conftest.$ac_objext conftest.beam conftest.$ac_ext
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16780 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16781 if test $ac_cv_func_strerror_r_char_p = yes; then
16783 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16788 XGETTEXT_EXTRA_OPTIONS=
16795 GNULIB_NONBLOCKING=0;
16808 for ac_func in $gl_func_list
16810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16813 cat >>confdefs.h <<_ACEOF
16814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16842 $as_echo_n "checking for working fcntl.h... " >&6; }
16843 if ${gl_cv_header_working_fcntl_h+:} false; then :
16844 $as_echo_n "(cached) " >&6
16846 if test "$cross_compiling" = yes; then :
16847 gl_cv_header_working_fcntl_h=cross-compiling
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16851 #include <sys/types.h>
16852 #include <sys/stat.h>
16854 # include <unistd.h>
16855 #else /* on Windows with MSVC */
16857 # include <stdlib.h>
16858 # defined sleep(n) _sleep ((n) * 1000)
16862 #define O_NOATIME 0
16865 #define O_NOFOLLOW 0
16867 static int const constants[] =
16869 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16870 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16877 int result = !constants;
16880 static char const sym[] = "conftest.sym";
16881 if (symlink ("/dev/null", sym) != 0)
16885 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
16892 if (unlink (sym) != 0 || symlink (".", sym) != 0)
16896 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
16907 static char const file[] = "confdefs.h";
16908 int fd = open (file, O_RDONLY | O_NOATIME);
16914 if (fstat (fd, &st0) != 0)
16920 if (read (fd, &c, 1) != 1)
16924 if (close (fd) != 0)
16929 if (stat (file, &st1) != 0)
16932 if (st0.st_atime != st1.st_atime)
16944 if ac_fn_c_try_run "$LINENO"; then :
16945 gl_cv_header_working_fcntl_h=yes
16948 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16949 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16950 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16951 *) gl_cv_header_working_fcntl_h='no';;
16954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16955 conftest.$ac_objext conftest.beam conftest.$ac_ext
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16960 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16962 case $gl_cv_header_working_fcntl_h in #(
16963 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_WORKING_O_NOATIME $ac_val
16972 case $gl_cv_header_working_fcntl_h in #(
16973 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_WORKING_O_NOFOLLOW $ac_val
16982 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16983 if test "x$ac_cv_type_pid_t" = xyes; then :
16987 cat >>confdefs.h <<_ACEOF
16993 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16994 if test "x$ac_cv_type_mode_t" = xyes; then :
16998 cat >>confdefs.h <<_ACEOF
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17005 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17006 if ${ac_cv_c_restrict+:} false; then :
17007 $as_echo_n "(cached) " >&6
17009 ac_cv_c_restrict=no
17010 # The order here caters to the fact that C++ does not require restrict.
17011 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17014 typedef int * int_ptr;
17015 int foo (int_ptr $ac_kw ip) {
17022 int * $ac_kw t = s;
17029 if ac_fn_c_try_compile "$LINENO"; then :
17030 ac_cv_c_restrict=$ac_kw
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 test "$ac_cv_c_restrict" != no && break
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17038 $as_echo "$ac_cv_c_restrict" >&6; }
17040 case $ac_cv_c_restrict in
17042 no) $as_echo "#define restrict /**/" >>confdefs.h
17044 *) cat >>confdefs.h <<_ACEOF
17045 #define restrict $ac_cv_c_restrict
17051 GNULIB_GETTIMEOFDAY=0;
17052 HAVE_GETTIMEOFDAY=1;
17053 HAVE_STRUCT_TIMEVAL=1;
17055 REPLACE_GETTIMEOFDAY=0;
17056 REPLACE_STRUCT_TIMEVAL=0;
17093 if test $gl_cv_have_include_next = yes; then
17094 gl_cv_next_sys_time_h='<'sys/time.h'>'
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17097 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17098 if ${gl_cv_next_sys_time_h+:} false; then :
17099 $as_echo_n "(cached) " >&6
17102 if test $ac_cv_header_sys_time_h = yes; then
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17109 #include <sys/time.h>
17112 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17113 *) gl_absname_cpp="$ac_cpp" ;;
17118 gl_dirsep_regex='[/\\]'
17121 gl_dirsep_regex='\/'
17124 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17125 gl_header_literal_regex=`echo 'sys/time.h' \
17126 | sed -e "$gl_make_literal_regex_sed"`
17127 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17128 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17134 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17135 sed -n "$gl_absolute_header_sed"`
17137 gl_header=$gl_cv_absolute_sys_time_h
17138 gl_cv_next_sys_time_h='"'$gl_header'"'
17140 gl_cv_next_sys_time_h='<'sys/time.h'>'
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17146 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17148 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17150 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17151 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17152 gl_next_as_first_directive='<'sys/time.h'>'
17154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17155 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17157 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17163 if test $ac_cv_header_sys_time_h != yes; then
17177 if test $ac_cv_header_sys_socket_h != yes; then
17178 for ac_header in winsock2.h
17180 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17181 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_WINSOCK2_H 1
17191 if test "$ac_cv_header_winsock2_h" = yes; then
17193 UNISTD_H_HAVE_WINSOCK2_H=1
17194 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17201 $as_echo_n "checking for struct timeval... " >&6; }
17202 if ${gl_cv_sys_struct_timeval+:} false; then :
17203 $as_echo_n "(cached) " >&6
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207 #if HAVE_SYS_TIME_H
17208 #include <sys/time.h>
17211 #if HAVE_WINSOCK2_H
17212 # include <winsock2.h>
17218 static struct timeval x; x.tv_sec = x.tv_usec;
17223 if ac_fn_c_try_compile "$LINENO"; then :
17224 gl_cv_sys_struct_timeval=yes
17226 gl_cv_sys_struct_timeval=no
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17232 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17233 if test $gl_cv_sys_struct_timeval != yes; then
17234 HAVE_STRUCT_TIMEVAL=0
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17237 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17238 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17239 $as_echo_n "(cached) " >&6
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #if HAVE_SYS_TIME_H
17244 #include <sys/time.h>
17247 #if HAVE_WINSOCK2_H
17248 # include <winsock2.h>
17254 static struct timeval x;
17255 typedef int verify_tv_sec_type[
17256 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17263 if ac_fn_c_try_compile "$LINENO"; then :
17264 gl_cv_sys_struct_timeval_tv_sec=yes
17266 gl_cv_sys_struct_timeval_tv_sec=no
17268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17272 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17273 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17274 REPLACE_STRUCT_TIMEVAL=1
17279 for gl_func in gettimeofday; do
17280 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17282 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17283 if eval \${$as_gl_Symbol+:} false; then :
17284 $as_echo_n "(cached) " >&6
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17289 #if HAVE_SYS_TIME_H
17290 # include <sys/time.h>
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304 eval "$as_gl_Symbol=yes"
17306 eval "$as_gl_Symbol=no"
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 eval ac_res=\$$as_gl_Symbol
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17312 $as_echo "$ac_res" >&6; }
17313 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17314 cat >>confdefs.h <<_ACEOF
17315 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17318 eval ac_cv_have_decl_$gl_func=yes
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17336 $as_echo_n "checking for 64-bit off_t... " >&6; }
17337 if ${gl_cv_type_off_t_64+:} false; then :
17338 $as_echo_n "(cached) " >&6
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 #include <sys/types.h>
17343 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17353 if ac_fn_c_try_compile "$LINENO"; then :
17354 gl_cv_type_off_t_64=yes
17356 gl_cv_type_off_t_64=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17362 $as_echo "$gl_cv_type_off_t_64" >&6; }
17363 if test $gl_cv_type_off_t_64 = no; then
17364 WINDOWS_64_BIT_OFF_T=1
17366 WINDOWS_64_BIT_OFF_T=0
17368 WINDOWS_64_BIT_ST_SIZE=1
17371 WINDOWS_64_BIT_OFF_T=0
17372 WINDOWS_64_BIT_ST_SIZE=0
17377 if test "X$prefix" = "XNONE"; then
17378 acl_final_prefix="$ac_default_prefix"
17380 acl_final_prefix="$prefix"
17382 if test "X$exec_prefix" = "XNONE"; then
17383 acl_final_exec_prefix='${prefix}'
17385 acl_final_exec_prefix="$exec_prefix"
17387 acl_save_prefix="$prefix"
17388 prefix="$acl_final_prefix"
17389 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17390 prefix="$acl_save_prefix"
17394 # Check whether --with-gnu-ld was given.
17395 if test "${with_gnu_ld+set}" = set; then :
17396 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17401 # Prepare PATH_SEPARATOR.
17402 # The user is always right.
17403 if test "${PATH_SEPARATOR+set}" != set; then
17404 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17405 # contains only /bin. Note that ksh looks also at the FPATH variable,
17406 # so we have to set that as well for the test.
17408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17409 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17410 || PATH_SEPARATOR=';'
17415 if test "$GCC" = yes; then
17416 # Check if gcc -print-prog-name=ld gives a path.
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17418 $as_echo_n "checking for ld used by $CC... " >&6; }
17421 # gcc leaves a trailing carriage return which upsets mingw
17422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17427 # Accept absolute paths.
17429 re_direlt='/[^/][^/]*/\.\./'
17430 # Canonicalize the pathname of ld
17431 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
17432 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
17433 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17435 test -z "$LD" && LD="$ac_prog"
17438 # If it fails, then pretend we aren't using GCC.
17442 # If it is relative, then search for the first ld in PATH.
17443 with_gnu_ld=unknown
17446 elif test "$with_gnu_ld" = yes; then
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17448 $as_echo_n "checking for GNU ld... " >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17451 $as_echo_n "checking for non-GNU ld... " >&6; }
17453 if ${acl_cv_path_LD+:} false; then :
17454 $as_echo_n "(cached) " >&6
17456 if test -z "$LD"; then
17457 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17458 for ac_dir in $PATH; do
17459 IFS="$acl_save_ifs"
17460 test -z "$ac_dir" && ac_dir=.
17461 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17462 acl_cv_path_LD="$ac_dir/$ac_prog"
17463 # Check to see if the program is GNU ld. I'd rather use --version,
17464 # but apparently some variants of GNU ld only accept -v.
17465 # Break only if it was the GNU/non-GNU ld that we prefer.
17466 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17467 *GNU* | *'with BFD'*)
17468 test "$with_gnu_ld" != no && break
17471 test "$with_gnu_ld" != yes && break
17476 IFS="$acl_save_ifs"
17478 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17482 LD="$acl_cv_path_LD"
17483 if test -n "$LD"; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17485 $as_echo "$LD" >&6; }
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17493 if ${acl_cv_prog_gnu_ld+:} false; then :
17494 $as_echo_n "(cached) " >&6
17496 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17497 case `$LD -v 2>&1 </dev/null` in
17498 *GNU* | *'with BFD'*)
17499 acl_cv_prog_gnu_ld=yes
17502 acl_cv_prog_gnu_ld=no
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17507 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17508 with_gnu_ld=$acl_cv_prog_gnu_ld
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17514 $as_echo_n "checking for shared library run path origin... " >&6; }
17515 if ${acl_cv_rpath+:} false; then :
17516 $as_echo_n "(cached) " >&6
17519 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17520 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17522 rm -f ./conftest.sh
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17527 $as_echo "$acl_cv_rpath" >&6; }
17529 acl_libext="$acl_cv_libext"
17530 acl_shlibext="$acl_cv_shlibext"
17531 acl_libname_spec="$acl_cv_libname_spec"
17532 acl_library_names_spec="$acl_cv_library_names_spec"
17533 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17534 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17535 acl_hardcode_direct="$acl_cv_hardcode_direct"
17536 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17537 # Check whether --enable-rpath was given.
17538 if test "${enable_rpath+set}" = set; then :
17539 enableval=$enable_rpath; :
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17552 $as_echo_n "checking for 64-bit host... " >&6; }
17553 if ${gl_cv_solaris_64bit+:} false; then :
17554 $as_echo_n "(cached) " >&6
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17565 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17566 gl_cv_solaris_64bit=yes
17568 gl_cv_solaris_64bit=no
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17575 $as_echo "$gl_cv_solaris_64bit" >&6; }
17576 if test $gl_cv_solaris_64bit = yes; then
17577 acl_libdirstem=lib/64
17578 case "$host_cpu" in
17579 sparc*) acl_libdirstem2=lib/sparcv9 ;;
17580 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17585 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17586 if test -n "$searchpath"; then
17587 acl_save_IFS="${IFS= }"; IFS=":"
17588 for searchdir in $searchpath; do
17589 if test -d "$searchdir"; then
17590 case "$searchdir" in
17591 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17593 # Better ignore directories of this form. They are misleading.
17595 *) searchdir=`cd "$searchdir" && pwd`
17596 case "$searchdir" in
17597 */lib64 ) acl_libdirstem=lib64 ;;
17602 IFS="$acl_save_IFS"
17606 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17610 gl_threads_api=none
17615 if test "$gl_use_threads" != no; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
17617 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
17618 if ${gl_cv_have_weak+:} false; then :
17619 $as_echo_n "(cached) " >&6
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624 extern void xyzzy ();
17634 if ac_fn_c_try_link "$LINENO"; then :
17635 gl_cv_have_weak=maybe
17637 rm -f core conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
17639 if test $gl_cv_have_weak = maybe; then
17640 if test "$cross_compiling" = yes; then :
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17644 Extensible Linking Format
17648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17649 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17650 gl_cv_have_weak="guessing yes"
17652 gl_cv_have_weak="guessing no"
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17665 return (fputs == NULL);
17668 if ac_fn_c_try_run "$LINENO"; then :
17669 gl_cv_have_weak=yes
17673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17674 conftest.$ac_objext conftest.beam conftest.$ac_ext
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
17681 $as_echo "$gl_cv_have_weak" >&6; }
17682 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
17683 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
17684 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
17685 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17686 if test "x$ac_cv_header_pthread_h" = xyes; then :
17687 gl_have_pthread_h=yes
17689 gl_have_pthread_h=no
17693 if test "$gl_have_pthread_h" = yes; then
17694 # Other possible tests:
17695 # -lpthreads (FSU threads, PCthreads)
17698 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
17699 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
17700 # the second one only in libpthread, and lock.c needs it.
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 #include <pthread.h>
17707 pthread_mutex_lock((pthread_mutex_t*)0);
17708 pthread_mutexattr_init((pthread_mutexattr_t*)0);
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 gl_have_pthread=yes
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
17719 # since it is defined as a macro on OSF/1.)
17720 if test -n "$gl_have_pthread"; then
17721 # The program links fine without libpthread. But it may actually
17722 # need to link with libpthread in order to create multiple threads.
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17724 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17725 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17726 $as_echo_n "(cached) " >&6
17728 ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-lpthread $LIBS"
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17739 char pthread_kill ();
17743 return pthread_kill ();
17748 if ac_fn_c_try_link "$LINENO"; then :
17749 ac_cv_lib_pthread_pthread_kill=yes
17751 ac_cv_lib_pthread_pthread_kill=no
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17758 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17759 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17760 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17761 # On Solaris and HP-UX, most pthread functions exist also in libc.
17762 # Therefore pthread_in_use() needs to actually try to create a
17763 # thread: pthread_create from libc will fail, whereas
17764 # pthread_create will actually create a thread.
17768 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17775 # Some library is needed. Try libpthread and libc_r.
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17777 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17778 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17779 $as_echo_n "(cached) " >&6
17781 ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-lpthread $LIBS"
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17792 char pthread_kill ();
17796 return pthread_kill ();
17801 if ac_fn_c_try_link "$LINENO"; then :
17802 ac_cv_lib_pthread_pthread_kill=yes
17804 ac_cv_lib_pthread_pthread_kill=no
17806 rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 LIBS=$ac_check_lib_save_LIBS
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17811 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17812 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17813 gl_have_pthread=yes
17814 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17815 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17818 if test -z "$gl_have_pthread"; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17821 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17822 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17823 $as_echo_n "(cached) " >&6
17825 ac_check_lib_save_LIBS=$LIBS
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17830 /* Override any GCC internal prototype to avoid an error.
17831 Use char because int might match the return type of a GCC
17832 builtin and then its argument prototype would still apply. */
17836 char pthread_kill ();
17840 return pthread_kill ();
17845 if ac_fn_c_try_link "$LINENO"; then :
17846 ac_cv_lib_c_r_pthread_kill=yes
17848 ac_cv_lib_c_r_pthread_kill=no
17850 rm -f core conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
17852 LIBS=$ac_check_lib_save_LIBS
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17855 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17856 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17857 gl_have_pthread=yes
17858 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17859 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17864 if test -n "$gl_have_pthread"; then
17865 gl_threads_api=posix
17867 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17869 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17870 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17872 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17881 if test -z "$gl_have_pthread"; then
17882 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17883 gl_have_solaristhread=
17884 gl_save_LIBS="$LIBS"
17885 LIBS="$LIBS -lthread"
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17889 #include <thread.h>
17900 if ac_fn_c_try_link "$LINENO"; then :
17901 gl_have_solaristhread=yes
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 LIBS="$gl_save_LIBS"
17906 if test -n "$gl_have_solaristhread"; then
17907 gl_threads_api=solaris
17909 LTLIBTHREAD=-lthread
17910 LIBMULTITHREAD="$LIBTHREAD"
17911 LTLIBMULTITHREAD="$LTLIBTHREAD"
17913 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17915 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17917 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17925 if test "$gl_use_threads" = pth; then
17926 gl_save_CPPFLAGS="$CPPFLAGS"
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17933 $as_echo_n "checking how to link with libpth... " >&6; }
17934 if ${ac_cv_libpth_libs+:} false; then :
17935 $as_echo_n "(cached) " >&6
17947 acl_save_prefix="$prefix"
17948 prefix="$acl_final_prefix"
17949 acl_save_exec_prefix="$exec_prefix"
17950 exec_prefix="$acl_final_exec_prefix"
17952 eval additional_includedir=\"$includedir\"
17953 eval additional_libdir=\"$libdir\"
17955 exec_prefix="$acl_save_exec_prefix"
17956 prefix="$acl_save_prefix"
17959 # Check whether --with-libpth-prefix was given.
17960 if test "${with_libpth_prefix+set}" = set; then :
17961 withval=$with_libpth_prefix;
17962 if test "X$withval" = "Xno"; then
17965 if test "X$withval" = "X"; then
17967 acl_save_prefix="$prefix"
17968 prefix="$acl_final_prefix"
17969 acl_save_exec_prefix="$exec_prefix"
17970 exec_prefix="$acl_final_exec_prefix"
17972 eval additional_includedir=\"$includedir\"
17973 eval additional_libdir=\"$libdir\"
17975 exec_prefix="$acl_save_exec_prefix"
17976 prefix="$acl_save_prefix"
17979 additional_includedir="$withval/include"
17980 additional_libdir="$withval/$acl_libdirstem"
17981 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17982 && ! test -d "$withval/$acl_libdirstem"; then
17983 additional_libdir="$withval/$acl_libdirstem2"
17997 names_already_handled=
17998 names_next_round='pth '
17999 while test -n "$names_next_round"; do
18000 names_this_round="$names_next_round"
18002 for name in $names_this_round; do
18004 for n in $names_already_handled; do
18005 if test "$n" = "$name"; then
18006 already_handled=yes
18010 if test -z "$already_handled"; then
18011 names_already_handled="$names_already_handled $name"
18012 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18013 eval value=\"\$HAVE_LIB$uppername\"
18014 if test -n "$value"; then
18015 if test "$value" = yes; then
18016 eval value=\"\$LIB$uppername\"
18017 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18018 eval value=\"\$LTLIB$uppername\"
18019 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18028 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18029 if test -n "$acl_shlibext"; then
18030 shrext=".$acl_shlibext" # typically: shrext=.so
18034 if test $use_additional = yes; then
18035 dir="$additional_libdir"
18036 if test -n "$acl_shlibext"; then
18037 if test -f "$dir/$libname$shrext"; then
18039 found_so="$dir/$libname$shrext"
18041 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18042 ver=`(cd "$dir" && \
18043 for f in "$libname$shrext".*; do echo "$f"; done \
18044 | sed -e "s,^$libname$shrext\\\\.,," \
18045 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18046 | sed 1q ) 2>/dev/null`
18047 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18049 found_so="$dir/$libname$shrext.$ver"
18052 eval library_names=\"$acl_library_names_spec\"
18053 for f in $library_names; do
18054 if test -f "$dir/$f"; then
18063 if test "X$found_dir" = "X"; then
18064 if test -f "$dir/$libname.$acl_libext"; then
18066 found_a="$dir/$libname.$acl_libext"
18069 if test "X$found_dir" != "X"; then
18070 if test -f "$dir/$libname.la"; then
18071 found_la="$dir/$libname.la"
18075 if test "X$found_dir" = "X"; then
18076 for x in $LDFLAGS $LTLIBPTH; do
18078 acl_save_prefix="$prefix"
18079 prefix="$acl_final_prefix"
18080 acl_save_exec_prefix="$exec_prefix"
18081 exec_prefix="$acl_final_exec_prefix"
18083 exec_prefix="$acl_save_exec_prefix"
18084 prefix="$acl_save_prefix"
18088 dir=`echo "X$x" | sed -e 's/^X-L//'`
18089 if test -n "$acl_shlibext"; then
18090 if test -f "$dir/$libname$shrext"; then
18092 found_so="$dir/$libname$shrext"
18094 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18095 ver=`(cd "$dir" && \
18096 for f in "$libname$shrext".*; do echo "$f"; done \
18097 | sed -e "s,^$libname$shrext\\\\.,," \
18098 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18099 | sed 1q ) 2>/dev/null`
18100 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18102 found_so="$dir/$libname$shrext.$ver"
18105 eval library_names=\"$acl_library_names_spec\"
18106 for f in $library_names; do
18107 if test -f "$dir/$f"; then
18116 if test "X$found_dir" = "X"; then
18117 if test -f "$dir/$libname.$acl_libext"; then
18119 found_a="$dir/$libname.$acl_libext"
18122 if test "X$found_dir" != "X"; then
18123 if test -f "$dir/$libname.la"; then
18124 found_la="$dir/$libname.la"
18129 if test "X$found_dir" != "X"; then
18134 if test "X$found_dir" != "X"; then
18135 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
18136 if test "X$found_so" != "X"; then
18137 if test "$enable_rpath" = no \
18138 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18139 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18140 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18143 for x in $ltrpathdirs; do
18144 if test "X$x" = "X$found_dir"; then
18149 if test -z "$haveit"; then
18150 ltrpathdirs="$ltrpathdirs $found_dir"
18152 if test "$acl_hardcode_direct" = yes; then
18153 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18155 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18156 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18158 for x in $rpathdirs; do
18159 if test "X$x" = "X$found_dir"; then
18164 if test -z "$haveit"; then
18165 rpathdirs="$rpathdirs $found_dir"
18169 for x in $LDFLAGS $LIBPTH; do
18171 acl_save_prefix="$prefix"
18172 prefix="$acl_final_prefix"
18173 acl_save_exec_prefix="$exec_prefix"
18174 exec_prefix="$acl_final_exec_prefix"
18176 exec_prefix="$acl_save_exec_prefix"
18177 prefix="$acl_save_prefix"
18179 if test "X$x" = "X-L$found_dir"; then
18184 if test -z "$haveit"; then
18185 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
18187 if test "$acl_hardcode_minus_L" != no; then
18188 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18190 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18196 if test "X$found_a" != "X"; then
18197 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
18199 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
18202 additional_includedir=
18203 case "$found_dir" in
18204 */$acl_libdirstem | */$acl_libdirstem/)
18205 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18206 if test "$name" = 'pth'; then
18207 LIBPTH_PREFIX="$basedir"
18209 additional_includedir="$basedir/include"
18211 */$acl_libdirstem2 | */$acl_libdirstem2/)
18212 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18213 if test "$name" = 'pth'; then
18214 LIBPTH_PREFIX="$basedir"
18216 additional_includedir="$basedir/include"
18219 if test "X$additional_includedir" != "X"; then
18220 if test "X$additional_includedir" != "X/usr/include"; then
18222 if test "X$additional_includedir" = "X/usr/local/include"; then
18223 if test -n "$GCC"; then
18225 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18229 if test -z "$haveit"; then
18230 for x in $CPPFLAGS $INCPTH; do
18232 acl_save_prefix="$prefix"
18233 prefix="$acl_final_prefix"
18234 acl_save_exec_prefix="$exec_prefix"
18235 exec_prefix="$acl_final_exec_prefix"
18237 exec_prefix="$acl_save_exec_prefix"
18238 prefix="$acl_save_prefix"
18240 if test "X$x" = "X-I$additional_includedir"; then
18245 if test -z "$haveit"; then
18246 if test -d "$additional_includedir"; then
18247 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
18253 if test -n "$found_la"; then
18254 save_libdir="$libdir"
18255 case "$found_la" in
18256 */* | *\\*) . "$found_la" ;;
18257 *) . "./$found_la" ;;
18259 libdir="$save_libdir"
18260 for dep in $dependency_libs; do
18263 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18264 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18265 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18267 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18268 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18269 if test -n "$GCC"; then
18271 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18275 if test -z "$haveit"; then
18277 for x in $LDFLAGS $LIBPTH; do
18279 acl_save_prefix="$prefix"
18280 prefix="$acl_final_prefix"
18281 acl_save_exec_prefix="$exec_prefix"
18282 exec_prefix="$acl_final_exec_prefix"
18284 exec_prefix="$acl_save_exec_prefix"
18285 prefix="$acl_save_prefix"
18287 if test "X$x" = "X-L$additional_libdir"; then
18292 if test -z "$haveit"; then
18293 if test -d "$additional_libdir"; then
18294 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
18298 for x in $LDFLAGS $LTLIBPTH; do
18300 acl_save_prefix="$prefix"
18301 prefix="$acl_final_prefix"
18302 acl_save_exec_prefix="$exec_prefix"
18303 exec_prefix="$acl_final_exec_prefix"
18305 exec_prefix="$acl_save_exec_prefix"
18306 prefix="$acl_save_prefix"
18308 if test "X$x" = "X-L$additional_libdir"; then
18313 if test -z "$haveit"; then
18314 if test -d "$additional_libdir"; then
18315 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
18322 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18323 if test "$enable_rpath" != no; then
18325 for x in $rpathdirs; do
18326 if test "X$x" = "X$dir"; then
18331 if test -z "$haveit"; then
18332 rpathdirs="$rpathdirs $dir"
18335 for x in $ltrpathdirs; do
18336 if test "X$x" = "X$dir"; then
18341 if test -z "$haveit"; then
18342 ltrpathdirs="$ltrpathdirs $dir"
18347 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18350 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18353 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
18354 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
18360 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18361 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
18367 if test "X$rpathdirs" != "X"; then
18368 if test -n "$acl_hardcode_libdir_separator"; then
18370 for found_dir in $rpathdirs; do
18371 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18373 acl_save_libdir="$libdir"
18375 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18376 libdir="$acl_save_libdir"
18377 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18379 for found_dir in $rpathdirs; do
18380 acl_save_libdir="$libdir"
18381 libdir="$found_dir"
18382 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18383 libdir="$acl_save_libdir"
18384 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18388 if test "X$ltrpathdirs" != "X"; then
18389 for found_dir in $ltrpathdirs; do
18390 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
18399 ac_cv_libpth_libs="$LIBPTH"
18400 ac_cv_libpth_ltlibs="$LTLIBPTH"
18401 ac_cv_libpth_cppflags="$INCPTH"
18402 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
18406 $as_echo "$ac_cv_libpth_libs" >&6; }
18407 LIBPTH="$ac_cv_libpth_libs"
18408 LTLIBPTH="$ac_cv_libpth_ltlibs"
18409 INCPTH="$ac_cv_libpth_cppflags"
18410 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
18412 for element in $INCPTH; do
18414 for x in $CPPFLAGS; do
18416 acl_save_prefix="$prefix"
18417 prefix="$acl_final_prefix"
18418 acl_save_exec_prefix="$exec_prefix"
18419 exec_prefix="$acl_final_exec_prefix"
18421 exec_prefix="$acl_save_exec_prefix"
18422 prefix="$acl_save_prefix"
18424 if test "X$x" = "X$element"; then
18429 if test -z "$haveit"; then
18430 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18442 gl_save_LIBS="$LIBS"
18443 LIBS="$LIBS $LIBPTH"
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18455 if ac_fn_c_try_link "$LINENO"; then :
18458 rm -f core conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460 LIBS="$gl_save_LIBS"
18461 if test -n "$gl_have_pth"; then
18463 LIBTHREAD="$LIBPTH"
18464 LTLIBTHREAD="$LTLIBPTH"
18465 LIBMULTITHREAD="$LIBTHREAD"
18466 LTLIBMULTITHREAD="$LTLIBTHREAD"
18468 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
18470 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18471 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18473 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
18480 CPPFLAGS="$gl_save_CPPFLAGS"
18483 if test -z "$gl_have_pthread"; then
18484 case "$gl_use_threads" in
18485 yes | windows | win32) # The 'win32' is for backward compatibility.
18486 if { case "$host_os" in
18491 gl_threads_api=windows
18493 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
18501 $as_echo_n "checking for multithread API to use... " >&6; }
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
18503 $as_echo "$gl_threads_api" >&6; }
18526 GNULIB_UTIMENSAT=0;
18540 REPLACE_FUTIMENS=0;
18546 REPLACE_UTIMENSAT=0;
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18555 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18556 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18557 $as_echo_n "(cached) " >&6
18559 rm -f conftest.sym conftest.file
18560 echo >conftest.file
18561 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18562 if test "$cross_compiling" = yes; then :
18564 # Guess yes on glibc systems.
18565 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18566 # If we don't know, assume the worst.
18567 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h. */
18573 $ac_includes_default
18578 /* Linux will dereference the symlink and fail, as required by
18579 POSIX. That is better in the sense that it means we will not
18580 have to compile and use the lstat wrapper. */
18581 return lstat ("conftest.sym/", &sbuf) == 0;
18587 if ac_fn_c_try_run "$LINENO"; then :
18588 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18590 gl_cv_func_lstat_dereferences_slashed_symlink=no
18592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18593 conftest.$ac_objext conftest.beam conftest.$ac_ext
18597 # If the 'ln -s' command failed, then we probably don't even
18598 # have an lstat function.
18599 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18601 rm -f conftest.sym conftest.file
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18605 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18606 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18609 cat >>confdefs.h <<_ACEOF
18610 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18619 GNULIB_CALLOC_POSIX=0;
18620 GNULIB_CANONICALIZE_FILE_NAME=0;
18621 GNULIB_GETLOADAVG=0;
18622 GNULIB_GETSUBOPT=0;
18624 GNULIB_MALLOC_POSIX=0;
18628 GNULIB_MKOSTEMPS=0;
18631 GNULIB_POSIX_OPENPT=0;
18633 GNULIB_PTSNAME_R=0;
18637 GNULIB_REALLOC_POSIX=0;
18640 GNULIB_SECURE_GETENV=0;
18645 GNULIB_SYSTEM_POSIX=0;
18651 HAVE_CANONICALIZE_FILE_NAME=1;
18652 HAVE_DECL_GETLOADAVG=1;
18660 HAVE_POSIX_OPENPT=1;
18668 HAVE_SECURE_GETENV=1;
18670 HAVE_DECL_SETENV=1;
18674 HAVE_STRUCT_RANDOM_DATA=1;
18675 HAVE_SYS_LOADAVG_H=0;
18677 HAVE_DECL_UNSETENV=1;
18679 REPLACE_CANONICALIZE_FILE_NAME=0;
18684 REPLACE_PTSNAME_R=0;
18686 REPLACE_RANDOM_R=0;
18688 REPLACE_REALPATH=0;
18691 REPLACE_UNSETENV=0;
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18696 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18697 if ${gl_cv_func_malloc_posix+:} false; then :
18698 $as_echo_n "(cached) " >&6
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18707 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18715 if ac_fn_c_try_compile "$LINENO"; then :
18716 gl_cv_func_malloc_posix=yes
18718 gl_cv_func_malloc_posix=no
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
18724 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18728 for ac_header in stdlib.h
18730 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18731 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18732 cat >>confdefs.h <<_ACEOF
18733 #define HAVE_STDLIB_H 1
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18741 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18742 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18743 $as_echo_n "(cached) " >&6
18745 if test "$cross_compiling" = yes; then :
18747 # Guess yes on platforms where we know the result.
18748 *-gnu* | freebsd* | netbsd* | openbsd* \
18749 | hpux* | solaris* | cygwin* | mingw*)
18750 ac_cv_func_malloc_0_nonnull=yes ;;
18751 # If we don't know, assume the worst.
18752 *) ac_cv_func_malloc_0_nonnull=no ;;
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18759 # include <stdlib.h>
18767 return ! malloc (0);
18773 if ac_fn_c_try_run "$LINENO"; then :
18774 ac_cv_func_malloc_0_nonnull=yes
18776 ac_cv_func_malloc_0_nonnull=no
18778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18779 conftest.$ac_objext conftest.beam conftest.$ac_ext
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18785 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18786 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18787 gl_cv_func_malloc_0_nonnull=1
18789 gl_cv_func_malloc_0_nonnull=0
18793 cat >>confdefs.h <<_ACEOF
18794 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18800 $as_echo_n "checking for unsigned long long int... " >&6; }
18801 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18802 $as_echo_n "(cached) " >&6
18804 ac_cv_type_unsigned_long_long_int=yes
18805 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 /* For now, do not test the preprocessor; as of 2007 there are too many
18810 implementations with broken preprocessors. Perhaps this can
18811 be revisited in 2012. In the meantime, code should not expect
18812 #if to work with literals wider than 32 bits. */
18813 /* Test literals. */
18814 long long int ll = 9223372036854775807ll;
18815 long long int nll = -9223372036854775807LL;
18816 unsigned long long int ull = 18446744073709551615ULL;
18817 /* Test constant expressions. */
18818 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18820 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18826 /* Test availability of runtime routines for shift and division. */
18827 long long int llmax = 9223372036854775807ll;
18828 unsigned long long int ullmax = 18446744073709551615ull;
18829 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18830 | (llmax / ll) | (llmax % ll)
18831 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18832 | (ullmax / ull) | (ullmax % ull));
18838 if ac_fn_c_try_link "$LINENO"; then :
18841 ac_cv_type_unsigned_long_long_int=no
18843 rm -f core conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18848 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18849 if test $ac_cv_type_unsigned_long_long_int = yes; then
18851 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18858 $as_echo_n "checking for long long int... " >&6; }
18859 if ${ac_cv_type_long_long_int+:} false; then :
18860 $as_echo_n "(cached) " >&6
18862 ac_cv_type_long_long_int=yes
18863 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18864 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18865 if test $ac_cv_type_long_long_int = yes; then
18866 if test "$cross_compiling" = yes; then :
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18871 #include <limits.h>
18874 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18875 # define LLONG_MAX (HALF - 1 + HALF)
18880 long long int n = 1;
18884 long long int m = n << i;
18887 if (LLONG_MAX / 2 < m)
18895 if ac_fn_c_try_run "$LINENO"; then :
18898 ac_cv_type_long_long_int=no
18900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18901 conftest.$ac_objext conftest.beam conftest.$ac_ext
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18908 $as_echo "$ac_cv_type_long_long_int" >&6; }
18909 if test $ac_cv_type_long_long_int = yes; then
18911 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18932 GNULIB_RAWMEMCHR=0;
18935 GNULIB_STRCHRNUL=0;
18943 GNULIB_STRCASESTR=0;
18950 GNULIB_MBSCASECMP=0;
18951 GNULIB_MBSNCASECMP=0;
18952 GNULIB_MBSPCASECMP=0;
18953 GNULIB_MBSCASESTR=0;
18960 GNULIB_STRERROR_R=0;
18961 GNULIB_STRSIGNAL=0;
18962 GNULIB_STRVERSCMP=0;
18967 HAVE_DECL_MEMMEM=1;
18969 HAVE_DECL_MEMRCHR=1;
18974 HAVE_DECL_STRDUP=1;
18975 HAVE_DECL_STRNDUP=1;
18976 HAVE_DECL_STRNLEN=1;
18980 HAVE_DECL_STRTOK_R=1;
18981 HAVE_DECL_STRERROR_R=1;
18982 HAVE_DECL_STRSIGNAL=1;
18989 REPLACE_STRCASESTR=0;
18990 REPLACE_STRCHRNUL=0;
18991 REPLACE_STRERROR=0;
18992 REPLACE_STRERROR_R=0;
18996 REPLACE_STRSIGNAL=0;
18997 REPLACE_STRTOK_R=0;
18998 UNDEFINE_STRTOK_R=0;
19004 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19005 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19006 # irrelevant for anonymous mappings.
19007 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19008 if test "x$ac_cv_func_mmap" = xyes; then :
19015 # Try to allow MAP_ANONYMOUS.
19016 gl_have_mmap_anonymous=no
19017 if test $gl_have_mmap = yes; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19019 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19023 #include <sys/mman.h>
19024 #ifdef MAP_ANONYMOUS
19025 I cannot identify this map
19029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19030 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19031 gl_have_mmap_anonymous=yes
19035 if test $gl_have_mmap_anonymous != yes; then
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19039 #include <sys/mman.h>
19041 I cannot identify this map
19045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19046 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19048 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19050 gl_have_mmap_anonymous=yes
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19056 $as_echo "$gl_have_mmap_anonymous" >&6; }
19057 if test $gl_have_mmap_anonymous = yes; then
19059 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19081 if test $HAVE_MEMCHR = 1; then
19082 # Detect platform-specific bugs in some versions of glibc:
19083 # memchr should not dereference anything with length 0
19084 # http://bugzilla.redhat.com/499689
19085 # memchr should not dereference overestimated length after a match
19086 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19087 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
19088 # Assume that memchr works on platforms that lack mprotect.
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19090 $as_echo_n "checking whether memchr works... " >&6; }
19091 if ${gl_cv_func_memchr_works+:} false; then :
19092 $as_echo_n "(cached) " >&6
19094 if test "$cross_compiling" = yes; then :
19095 gl_cv_func_memchr_works="guessing no"
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19100 #include <string.h>
19101 #if HAVE_SYS_MMAN_H
19102 # include <fcntl.h>
19103 # include <unistd.h>
19104 # include <sys/types.h>
19105 # include <sys/mman.h>
19107 # define MAP_FILE 0
19116 char *fence = NULL;
19117 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19118 # if HAVE_MAP_ANONYMOUS
19119 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19121 # else /* !HAVE_MAP_ANONYMOUS */
19122 const int flags = MAP_FILE | MAP_PRIVATE;
19123 int fd = open ("/dev/zero", O_RDONLY, 0666);
19127 int pagesize = getpagesize ();
19129 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19131 if (two_pages != (char *)(-1)
19132 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19133 fence = two_pages + pagesize;
19138 if (memchr (fence, 0, 0))
19140 strcpy (fence - 9, "12345678");
19141 if (memchr (fence - 9, 0, 79) != fence - 1)
19143 if (memchr (fence - 1, 0, 3) != fence - 1)
19152 if ac_fn_c_try_run "$LINENO"; then :
19153 gl_cv_func_memchr_works=yes
19155 gl_cv_func_memchr_works=no
19157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19158 conftest.$ac_objext conftest.beam conftest.$ac_ext
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
19163 $as_echo "$gl_cv_func_memchr_works" >&6; }
19164 if test "$gl_cv_func_memchr_works" != yes; then
19175 gl_cv_c_multiarch=no
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19178 #ifndef __APPLE_CC__
19179 not a universal capable compiler
19184 if ac_fn_c_try_compile "$LINENO"; then :
19188 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19189 if test -n "$prev"; then
19191 i?86 | x86_64 | ppc | ppc64)
19192 if test -z "$arch" || test "$arch" = "$word"; then
19195 gl_cv_c_multiarch=yes
19201 if test "x$word" = "x-arch"; then
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 if test $gl_cv_c_multiarch = yes; then
19210 APPLE_UNIVERSAL_BUILD=1
19212 APPLE_UNIVERSAL_BUILD=0
19222 GNULIB_PTHREAD_SIGMASK=0;
19224 GNULIB_SIGNAL_H_SIGPIPE=0;
19225 GNULIB_SIGPROCMASK=0;
19226 GNULIB_SIGACTION=0;
19227 HAVE_POSIX_SIGNALBLOCKING=1;
19228 HAVE_PTHREAD_SIGMASK=1;
19233 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19235 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19237 HAVE_SIGHANDLER_T=1;
19238 REPLACE_PTHREAD_SIGMASK=0;
19242 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19243 #include <signal.h>
19244 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19245 #include <sys/types.h>
19248 if test "x$ac_cv_type_sigset_t" = xyes; then :
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_SIGSET_T 1
19254 gl_cv_type_sigset_t=yes
19256 gl_cv_type_sigset_t=no
19259 if test $gl_cv_type_sigset_t != yes; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19265 $as_echo_n "checking for ssize_t... " >&6; }
19266 if ${gt_cv_ssize_t+:} false; then :
19267 $as_echo_n "(cached) " >&6
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19271 #include <sys/types.h>
19275 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19281 if ac_fn_c_try_compile "$LINENO"; then :
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19289 $as_echo "$gt_cv_ssize_t" >&6; }
19290 if test $gt_cv_ssize_t = no; then
19292 $as_echo "#define ssize_t int" >>confdefs.h
19302 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
19303 if test "x$ac_cv_have_decl_setenv" = xyes; then :
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_DECL_SETENV $ac_have_decl
19328 if test $ac_cv_have_decl_setenv = no; then
19348 for ac_header in search.h
19350 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
19351 if test "x$ac_cv_header_search_h" = xyes; then :
19352 cat >>confdefs.h <<_ACEOF
19353 #define HAVE_SEARCH_H 1
19360 for ac_func in tsearch
19362 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
19363 if test "x$ac_cv_func_tsearch" = xyes; then :
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_TSEARCH 1
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19379 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19380 if ${ac_cv_type_uid_t+:} false; then :
19381 $as_echo_n "(cached) " >&6
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385 #include <sys/types.h>
19388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19389 $EGREP "uid_t" >/dev/null 2>&1; then :
19390 ac_cv_type_uid_t=yes
19392 ac_cv_type_uid_t=no
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19398 $as_echo "$ac_cv_type_uid_t" >&6; }
19399 if test $ac_cv_type_uid_t = no; then
19401 $as_echo "#define uid_t int" >>confdefs.h
19404 $as_echo "#define gid_t int" >>confdefs.h
19428 GNULIB_FPRINTF_POSIX=0;
19444 GNULIB_OBSTACK_PRINTF=0;
19445 GNULIB_OBSTACK_PRINTF_POSIX=0;
19450 GNULIB_PRINTF_POSIX=0;
19459 GNULIB_SPRINTF_POSIX=0;
19460 GNULIB_STDIO_H_NONBLOCKING=0;
19461 GNULIB_STDIO_H_SIGPIPE=0;
19463 GNULIB_VASPRINTF=0;
19468 GNULIB_VFPRINTF_POSIX=0;
19470 GNULIB_VPRINTF_POSIX=0;
19471 GNULIB_VSNPRINTF=0;
19472 GNULIB_VSPRINTF_POSIX=0;
19473 HAVE_DECL_FPURGE=1;
19474 HAVE_DECL_FSEEKO=1;
19475 HAVE_DECL_FTELLO=1;
19476 HAVE_DECL_GETDELIM=1;
19477 HAVE_DECL_GETLINE=1;
19478 HAVE_DECL_OBSTACK_PRINTF=1;
19479 HAVE_DECL_SNPRINTF=1;
19480 HAVE_DECL_VSNPRINTF=1;
19501 REPLACE_GETDELIM=0;
19503 REPLACE_OBSTACK_PRINTF=0;
19509 REPLACE_RENAMEAT=0;
19510 REPLACE_SNPRINTF=0;
19512 REPLACE_STDIO_READ_FUNCS=0;
19513 REPLACE_STDIO_WRITE_FUNCS=0;
19515 REPLACE_VASPRINTF=0;
19516 REPLACE_VDPRINTF=0;
19517 REPLACE_VFPRINTF=0;
19519 REPLACE_VSNPRINTF=0;
19520 REPLACE_VSPRINTF=0;
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
19540 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
19541 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
19542 $as_echo_n "(cached) " >&6
19545 if test "$cross_compiling" = yes; then :
19548 # Guess yes on glibc systems.
19549 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19550 # Guess yes on FreeBSD >= 5.
19551 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
19552 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19553 # Guess yes on Mac OS X >= 10.3.
19554 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
19555 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19556 # Guess yes on OpenBSD >= 3.9.
19557 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
19558 gl_cv_func_snprintf_retval_c99="guessing no";;
19559 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19560 # Guess yes on Solaris >= 2.10.
19561 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
19562 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
19563 # Guess yes on AIX >= 4.
19564 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
19565 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19566 # Guess yes on NetBSD >= 3.
19567 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
19568 gl_cv_func_snprintf_retval_c99="guessing no";;
19569 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19570 # Guess yes on BeOS.
19571 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19572 # If we don't know, assume the worst.
19573 *) gl_cv_func_snprintf_retval_c99="guessing no";;
19577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19581 #include <string.h>
19583 # define my_snprintf snprintf
19585 # include <stdarg.h>
19586 static int my_snprintf (char *buf, int size, const char *format, ...)
19590 va_start (args, format);
19591 ret = vsnprintf (buf, size, format, args);
19596 static char buf[100];
19599 strcpy (buf, "ABCDEF");
19600 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
19602 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
19604 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
19609 if ac_fn_c_try_run "$LINENO"; then :
19610 gl_cv_func_snprintf_retval_c99=yes
19612 gl_cv_func_snprintf_retval_c99=no
19614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19615 conftest.$ac_objext conftest.beam conftest.$ac_ext
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
19621 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
19624 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
19625 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
19631 cat >>confdefs.h <<_ACEOF
19632 #define HAVE_DECL_SNPRINTF $ac_have_decl
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19637 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19638 if ${ac_cv_header_stdbool_h+:} false; then :
19639 $as_echo_n "(cached) " >&6
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19644 #include <stdbool.h>
19646 "error: bool is not defined"
19649 "error: false is not defined"
19652 "error: false is not 0"
19655 "error: true is not defined"
19658 "error: true is not 1"
19660 #ifndef __bool_true_false_are_defined
19661 "error: __bool_true_false_are_defined is not defined"
19664 struct s { _Bool s: 1; _Bool t; } s;
19666 char a[true == 1 ? 1 : -1];
19667 char b[false == 0 ? 1 : -1];
19668 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19669 char d[(bool) 0.5 == true ? 1 : -1];
19670 /* See body of main program for 'e'. */
19671 char f[(_Bool) 0.0 == false ? 1 : -1];
19673 char h[sizeof (_Bool)];
19674 char i[sizeof s.t];
19675 enum { j = false, k = true, l = false * true, m = true * 256 };
19676 /* The following fails for
19677 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19679 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19680 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19681 /* Catch a bug in an HP-UX C compiler. See
19682 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19683 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19695 /* Refer to every declared value, to avoid compiler optimizations. */
19696 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19697 + !m + !n + !o + !p + !q + !pq);
19703 if ac_fn_c_try_compile "$LINENO"; then :
19704 ac_cv_header_stdbool_h=yes
19706 ac_cv_header_stdbool_h=no
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19711 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19712 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19713 if test "x$ac_cv_type__Bool" = xyes; then :
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE__BOOL 1
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19729 $as_echo_n "checking for wchar_t... " >&6; }
19730 if ${gt_cv_c_wchar_t+:} false; then :
19731 $as_echo_n "(cached) " >&6
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19735 #include <stddef.h>
19736 wchar_t foo = (wchar_t)'\0';
19745 if ac_fn_c_try_compile "$LINENO"; then :
19746 gt_cv_c_wchar_t=yes
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19753 $as_echo "$gt_cv_c_wchar_t" >&6; }
19754 if test $gt_cv_c_wchar_t = yes; then
19756 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19773 if test $ac_cv_type_long_long_int = yes; then
19774 HAVE_LONG_LONG_INT=1
19776 HAVE_LONG_LONG_INT=0
19780 if test $ac_cv_type_unsigned_long_long_int = yes; then
19781 HAVE_UNSIGNED_LONG_LONG_INT=1
19783 HAVE_UNSIGNED_LONG_LONG_INT=0
19794 if test $ac_cv_header_wchar_h = yes; then
19801 if test $ac_cv_header_inttypes_h = yes; then
19808 if test $ac_cv_header_sys_types_h = yes; then
19830 if test $gl_cv_have_include_next = yes; then
19831 gl_cv_next_stdint_h='<'stdint.h'>'
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19834 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19835 if ${gl_cv_next_stdint_h+:} false; then :
19836 $as_echo_n "(cached) " >&6
19839 if test $ac_cv_header_stdint_h = yes; then
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19846 #include <stdint.h>
19849 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19850 *) gl_absname_cpp="$ac_cpp" ;;
19855 gl_dirsep_regex='[/\\]'
19858 gl_dirsep_regex='\/'
19861 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19862 gl_header_literal_regex=`echo 'stdint.h' \
19863 | sed -e "$gl_make_literal_regex_sed"`
19864 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19865 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19871 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19872 sed -n "$gl_absolute_header_sed"`
19874 gl_header=$gl_cv_absolute_stdint_h
19875 gl_cv_next_stdint_h='"'$gl_header'"'
19877 gl_cv_next_stdint_h='<'stdint.h'>'
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19883 $as_echo "$gl_cv_next_stdint_h" >&6; }
19885 NEXT_STDINT_H=$gl_cv_next_stdint_h
19887 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19889 gl_next_as_first_directive='<'stdint.h'>'
19891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19892 gl_next_as_first_directive=$gl_cv_next_stdint_h
19894 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19899 if test $ac_cv_header_stdint_h = yes; then
19906 if test $ac_cv_header_stdint_h = yes; then
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19908 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19909 if ${gl_cv_header_working_stdint_h+:} false; then :
19910 $as_echo_n "(cached) " >&6
19912 gl_cv_header_working_stdint_h=no
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19917 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19918 #include <stdint.h>
19919 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19920 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19921 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19926 included before <wchar.h>. */
19927 #include <stddef.h>
19928 #include <signal.h>
19930 # include <stdio.h>
19932 # include <wchar.h>
19937 int8_t a1 = INT8_MAX;
19938 int8_t a1min = INT8_MIN;
19941 int16_t a2 = INT16_MAX;
19942 int16_t a2min = INT16_MIN;
19945 int32_t a3 = INT32_MAX;
19946 int32_t a3min = INT32_MIN;
19949 int64_t a4 = INT64_MAX;
19950 int64_t a4min = INT64_MIN;
19953 uint8_t b1 = UINT8_MAX;
19955 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19958 uint16_t b2 = UINT16_MAX;
19961 uint32_t b3 = UINT32_MAX;
19964 uint64_t b4 = UINT64_MAX;
19966 int_least8_t c1 = INT8_C (0x7f);
19967 int_least8_t c1max = INT_LEAST8_MAX;
19968 int_least8_t c1min = INT_LEAST8_MIN;
19969 int_least16_t c2 = INT16_C (0x7fff);
19970 int_least16_t c2max = INT_LEAST16_MAX;
19971 int_least16_t c2min = INT_LEAST16_MIN;
19972 int_least32_t c3 = INT32_C (0x7fffffff);
19973 int_least32_t c3max = INT_LEAST32_MAX;
19974 int_least32_t c3min = INT_LEAST32_MIN;
19975 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19976 int_least64_t c4max = INT_LEAST64_MAX;
19977 int_least64_t c4min = INT_LEAST64_MIN;
19978 uint_least8_t d1 = UINT8_C (0xff);
19979 uint_least8_t d1max = UINT_LEAST8_MAX;
19980 uint_least16_t d2 = UINT16_C (0xffff);
19981 uint_least16_t d2max = UINT_LEAST16_MAX;
19982 uint_least32_t d3 = UINT32_C (0xffffffff);
19983 uint_least32_t d3max = UINT_LEAST32_MAX;
19984 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19985 uint_least64_t d4max = UINT_LEAST64_MAX;
19986 int_fast8_t e1 = INT_FAST8_MAX;
19987 int_fast8_t e1min = INT_FAST8_MIN;
19988 int_fast16_t e2 = INT_FAST16_MAX;
19989 int_fast16_t e2min = INT_FAST16_MIN;
19990 int_fast32_t e3 = INT_FAST32_MAX;
19991 int_fast32_t e3min = INT_FAST32_MIN;
19992 int_fast64_t e4 = INT_FAST64_MAX;
19993 int_fast64_t e4min = INT_FAST64_MIN;
19994 uint_fast8_t f1 = UINT_FAST8_MAX;
19995 uint_fast16_t f2 = UINT_FAST16_MAX;
19996 uint_fast32_t f3 = UINT_FAST32_MAX;
19997 uint_fast64_t f4 = UINT_FAST64_MAX;
19999 intptr_t g = INTPTR_MAX;
20000 intptr_t gmin = INTPTR_MIN;
20003 uintptr_t h = UINTPTR_MAX;
20005 intmax_t i = INTMAX_MAX;
20006 uintmax_t j = UINTMAX_MAX;
20008 #include <limits.h> /* for CHAR_BIT */
20009 #define TYPE_MINIMUM(t) \
20010 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20011 #define TYPE_MAXIMUM(t) \
20012 ((t) ((t) 0 < (t) -1 \
20014 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20017 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20018 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20020 /* Detect bug in FreeBSD 6.0 / ia64. */
20021 int check_SIG_ATOMIC:
20022 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20023 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20025 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20027 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20028 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20030 /* Detect bug in mingw. */
20032 WINT_MIN == TYPE_MINIMUM (wint_t)
20033 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20036 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20038 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20039 int check_UINT16_C:
20040 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20042 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20044 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20047 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20050 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20053 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20055 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20056 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20057 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20058 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20059 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20060 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20061 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20062 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20063 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20064 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20065 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20076 if ac_fn_c_try_compile "$LINENO"; then :
20077 if test "$cross_compiling" = yes; then :
20078 gl_cv_header_working_stdint_h=yes
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20085 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20086 #include <stdint.h>
20089 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20090 included before <wchar.h>. */
20091 #include <stddef.h>
20092 #include <signal.h>
20094 # include <stdio.h>
20096 # include <wchar.h>
20101 #include <string.h>
20102 #define MVAL(macro) MVAL1(macro)
20103 #define MVAL1(expression) #expression
20104 static const char *macro_values[] =
20138 for (mv = macro_values; *mv != NULL; mv++)
20140 const char *value = *mv;
20141 /* Test whether it looks like a cast expression. */
20142 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20143 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20144 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20145 || strncmp (value, "((int)"/*)*/, 6) == 0
20146 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20147 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20148 return mv - macro_values + 1;
20156 if ac_fn_c_try_run "$LINENO"; then :
20157 gl_cv_header_working_stdint_h=yes
20159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20160 conftest.$ac_objext conftest.beam conftest.$ac_ext
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20169 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20171 if test "$gl_cv_header_working_stdint_h" = yes; then
20174 for ac_header in sys/inttypes.h sys/bitypes.h
20176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20179 cat >>confdefs.h <<_ACEOF
20180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20187 if test $ac_cv_header_sys_inttypes_h = yes; then
20188 HAVE_SYS_INTTYPES_H=1
20190 HAVE_SYS_INTTYPES_H=0
20193 if test $ac_cv_header_sys_bitypes_h = yes; then
20194 HAVE_SYS_BITYPES_H=1
20196 HAVE_SYS_BITYPES_H=0
20202 if test $APPLE_UNIVERSAL_BUILD = 0; then
20205 for gltype in ptrdiff_t size_t ; do
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20207 $as_echo_n "checking for bit size of $gltype... " >&6; }
20208 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
20209 $as_echo_n "(cached) " >&6
20211 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20212 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20213 included before <wchar.h>. */
20214 #include <stddef.h>
20215 #include <signal.h>
20217 # include <stdio.h>
20219 # include <wchar.h>
20222 #include <limits.h>"; then :
20228 eval gl_cv_bitsizeof_${gltype}=\$result
20231 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20233 $as_echo "$ac_res" >&6; }
20234 eval result=\$gl_cv_bitsizeof_${gltype}
20235 if test $result = unknown; then
20238 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20239 cat >>confdefs.h <<_ACEOF
20240 #define BITSIZEOF_${GLTYPE} $result
20243 eval BITSIZEOF_${GLTYPE}=\$result
20250 for gltype in sig_atomic_t wchar_t wint_t ; do
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20252 $as_echo_n "checking for bit size of $gltype... " >&6; }
20253 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
20254 $as_echo_n "(cached) " >&6
20256 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20258 included before <wchar.h>. */
20259 #include <stddef.h>
20260 #include <signal.h>
20262 # include <stdio.h>
20264 # include <wchar.h>
20267 #include <limits.h>"; then :
20273 eval gl_cv_bitsizeof_${gltype}=\$result
20276 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20278 $as_echo "$ac_res" >&6; }
20279 eval result=\$gl_cv_bitsizeof_${gltype}
20280 if test $result = unknown; then
20283 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20284 cat >>confdefs.h <<_ACEOF
20285 #define BITSIZEOF_${GLTYPE} $result
20288 eval BITSIZEOF_${GLTYPE}=\$result
20294 for gltype in sig_atomic_t wchar_t wint_t ; do
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20296 $as_echo_n "checking whether $gltype is signed... " >&6; }
20297 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
20298 $as_echo_n "(cached) " >&6
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20303 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20304 included before <wchar.h>. */
20305 #include <stddef.h>
20306 #include <signal.h>
20308 # include <stdio.h>
20310 # include <wchar.h>
20313 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20322 if ac_fn_c_try_compile "$LINENO"; then :
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 eval gl_cv_type_${gltype}_signed=\$result
20331 eval ac_res=\$gl_cv_type_${gltype}_signed
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20333 $as_echo "$ac_res" >&6; }
20334 eval result=\$gl_cv_type_${gltype}_signed
20335 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20336 if test "$result" = yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_SIGNED_${GLTYPE} 1
20341 eval HAVE_SIGNED_${GLTYPE}=1
20343 eval HAVE_SIGNED_${GLTYPE}=0
20348 gl_cv_type_ptrdiff_t_signed=yes
20349 gl_cv_type_size_t_signed=no
20350 if test $APPLE_UNIVERSAL_BUILD = 0; then
20353 for gltype in ptrdiff_t size_t ; do
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20355 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20356 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
20357 $as_echo_n "(cached) " >&6
20359 eval gl_cv_type_${gltype}_suffix=no
20360 eval result=\$gl_cv_type_${gltype}_signed
20361 if test "$result" = yes; then
20366 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20368 '') gltype1='int';;
20369 l) gltype1='long int';;
20370 ll) gltype1='long long int';;
20371 i64) gltype1='__int64';;
20372 u) gltype1='unsigned int';;
20373 ul) gltype1='unsigned long int';;
20374 ull) gltype1='unsigned long long int';;
20375 ui64)gltype1='unsigned __int64';;
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20380 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20381 included before <wchar.h>. */
20382 #include <stddef.h>
20383 #include <signal.h>
20385 # include <stdio.h>
20387 # include <wchar.h>
20390 extern $gltype foo;
20391 extern $gltype1 foo;
20400 if ac_fn_c_try_compile "$LINENO"; then :
20401 eval gl_cv_type_${gltype}_suffix=\$glsuf
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 eval result=\$gl_cv_type_${gltype}_suffix
20405 test "$result" != no && break
20408 eval ac_res=\$gl_cv_type_${gltype}_suffix
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20410 $as_echo "$ac_res" >&6; }
20411 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20412 eval result=\$gl_cv_type_${gltype}_suffix
20413 test "$result" = no && result=
20414 eval ${GLTYPE}_SUFFIX=\$result
20415 cat >>confdefs.h <<_ACEOF
20416 #define ${GLTYPE}_SUFFIX $result
20425 for gltype in sig_atomic_t wchar_t wint_t ; do
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20427 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20428 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
20429 $as_echo_n "(cached) " >&6
20431 eval gl_cv_type_${gltype}_suffix=no
20432 eval result=\$gl_cv_type_${gltype}_signed
20433 if test "$result" = yes; then
20438 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20440 '') gltype1='int';;
20441 l) gltype1='long int';;
20442 ll) gltype1='long long int';;
20443 i64) gltype1='__int64';;
20444 u) gltype1='unsigned int';;
20445 ul) gltype1='unsigned long int';;
20446 ull) gltype1='unsigned long long int';;
20447 ui64)gltype1='unsigned __int64';;
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20452 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20453 included before <wchar.h>. */
20454 #include <stddef.h>
20455 #include <signal.h>
20457 # include <stdio.h>
20459 # include <wchar.h>
20462 extern $gltype foo;
20463 extern $gltype1 foo;
20472 if ac_fn_c_try_compile "$LINENO"; then :
20473 eval gl_cv_type_${gltype}_suffix=\$glsuf
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 eval result=\$gl_cv_type_${gltype}_suffix
20477 test "$result" != no && break
20480 eval ac_res=\$gl_cv_type_${gltype}_suffix
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20482 $as_echo "$ac_res" >&6; }
20483 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20484 eval result=\$gl_cv_type_${gltype}_suffix
20485 test "$result" = no && result=
20486 eval ${GLTYPE}_SUFFIX=\$result
20487 cat >>confdefs.h <<_ACEOF
20488 #define ${GLTYPE}_SUFFIX $result
20495 if test $BITSIZEOF_WINT_T -lt 32; then
20496 BITSIZEOF_WINT_T=32
20502 if test -n "$STDINT_H"; then
20503 GL_GENERATE_STDINT_H_TRUE=
20504 GL_GENERATE_STDINT_H_FALSE='#'
20506 GL_GENERATE_STDINT_H_TRUE='#'
20507 GL_GENERATE_STDINT_H_FALSE=
20512 REPLACE_STRERROR_0=0
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
20514 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
20515 if ${gl_cv_func_strerror_0_works+:} false; then :
20516 $as_echo_n "(cached) " >&6
20518 if test "$cross_compiling" = yes; then :
20520 # Guess yes on glibc systems.
20521 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
20522 # If we don't know, assume the worst.
20523 *) gl_cv_func_strerror_0_works="guessing no" ;;
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20529 #include <string.h>
20538 str = strerror (0);
20539 if (!*str) result |= 1;
20540 if (errno) result |= 2;
20541 if (strstr (str, "nknown") || strstr (str, "ndefined"))
20548 if ac_fn_c_try_run "$LINENO"; then :
20549 gl_cv_func_strerror_0_works=yes
20551 gl_cv_func_strerror_0_works=no
20553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20554 conftest.$ac_objext conftest.beam conftest.$ac_ext
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
20560 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
20561 case "$gl_cv_func_strerror_0_works" in
20564 REPLACE_STRERROR_0=1
20566 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
20582 if test $gl_cv_have_include_next = yes; then
20583 gl_cv_next_string_h='<'string.h'>'
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20586 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20587 if ${gl_cv_next_string_h+:} false; then :
20588 $as_echo_n "(cached) " >&6
20593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594 /* end confdefs.h. */
20595 #include <string.h>
20598 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20599 *) gl_absname_cpp="$ac_cpp" ;;
20604 gl_dirsep_regex='[/\\]'
20607 gl_dirsep_regex='\/'
20610 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20611 gl_header_literal_regex=`echo 'string.h' \
20612 | sed -e "$gl_make_literal_regex_sed"`
20613 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20614 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20620 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20621 sed -n "$gl_absolute_header_sed"`
20623 gl_header=$gl_cv_absolute_string_h
20624 gl_cv_next_string_h='"'$gl_header'"'
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20629 $as_echo "$gl_cv_next_string_h" >&6; }
20631 NEXT_STRING_H=$gl_cv_next_string_h
20633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20635 gl_next_as_first_directive='<'string.h'>'
20637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20638 gl_next_as_first_directive=$gl_cv_next_string_h
20640 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20647 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
20648 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20650 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20651 if eval \${$as_gl_Symbol+:} false; then :
20652 $as_echo_n "(cached) " >&6
20654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h. */
20656 #include <string.h>
20667 if ac_fn_c_try_compile "$LINENO"; then :
20668 eval "$as_gl_Symbol=yes"
20670 eval "$as_gl_Symbol=no"
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674 eval ac_res=\$$as_gl_Symbol
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20676 $as_echo "$ac_res" >&6; }
20677 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20678 cat >>confdefs.h <<_ACEOF
20679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20682 eval ac_cv_have_decl_$gl_func=yes
20688 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
20689 if test "x$ac_cv_have_decl_strndup" = xyes; then :
20695 cat >>confdefs.h <<_ACEOF
20696 #define HAVE_DECL_STRNDUP $ac_have_decl
20706 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
20707 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_DECL_STRNLEN $ac_have_decl
20719 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
20720 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
20726 cat >>confdefs.h <<_ACEOF
20727 #define HAVE_DECL_STRSIGNAL $ac_have_decl
20731 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
20732 /* NetBSD declares sys_siglist in unistd.h. */
20733 #ifdef HAVE_UNISTD_H
20734 # include <unistd.h>
20738 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
20744 cat >>confdefs.h <<_ACEOF
20745 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20762 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20763 if ${ac_cv_header_stat_broken+:} false; then :
20764 $as_echo_n "(cached) " >&6
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <sys/types.h>
20769 #include <sys/stat.h>
20771 #if defined S_ISBLK && defined S_IFDIR
20772 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20775 #if defined S_ISBLK && defined S_IFCHR
20776 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20779 #if defined S_ISLNK && defined S_IFREG
20780 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20783 #if defined S_ISSOCK && defined S_IFREG
20784 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20788 if ac_fn_c_try_compile "$LINENO"; then :
20789 ac_cv_header_stat_broken=no
20791 ac_cv_header_stat_broken=yes
20793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20796 $as_echo "$ac_cv_header_stat_broken" >&6; }
20797 if test $ac_cv_header_stat_broken = yes; then
20799 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20826 if test $gl_cv_have_include_next = yes; then
20827 gl_cv_next_sys_types_h='<'sys/types.h'>'
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20830 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20831 if ${gl_cv_next_sys_types_h+:} false; then :
20832 $as_echo_n "(cached) " >&6
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20839 #include <sys/types.h>
20842 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20843 *) gl_absname_cpp="$ac_cpp" ;;
20848 gl_dirsep_regex='[/\\]'
20851 gl_dirsep_regex='\/'
20854 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20855 gl_header_literal_regex=`echo 'sys/types.h' \
20856 | sed -e "$gl_make_literal_regex_sed"`
20857 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20858 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20864 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20865 sed -n "$gl_absolute_header_sed"`
20867 gl_header=$gl_cv_absolute_sys_types_h
20868 gl_cv_next_sys_types_h='"'$gl_header'"'
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20873 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20875 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20877 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20879 gl_next_as_first_directive='<'sys/types.h'>'
20881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20882 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20884 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20906 GNULIB_NANOSLEEP=0;
20910 HAVE_DECL_LOCALTIME_R=1;
20914 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20915 REPLACE_MKTIME=GNULIB_PORTCHECK;
20916 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20917 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20919 : ${GNULIB_GETTIMEOFDAY=0};
20921 REPLACE_LOCALTIME=0;
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20932 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20933 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20934 $as_echo_n "(cached) " >&6
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20943 static struct timespec x; x.tv_sec = x.tv_nsec;
20948 if ac_fn_c_try_compile "$LINENO"; then :
20949 gl_cv_sys_struct_timespec_in_time_h=yes
20951 gl_cv_sys_struct_timespec_in_time_h=no
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20956 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20958 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20959 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20960 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20961 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20962 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20965 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20966 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20967 $as_echo_n "(cached) " >&6
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971 #include <sys/time.h>
20976 static struct timespec x; x.tv_sec = x.tv_nsec;
20981 if ac_fn_c_try_compile "$LINENO"; then :
20982 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20984 gl_cv_sys_struct_timespec_in_sys_time_h=no
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20989 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20990 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20991 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20994 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20995 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20996 $as_echo_n "(cached) " >&6
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21000 #include <pthread.h>
21005 static struct timespec x; x.tv_sec = x.tv_nsec;
21010 if ac_fn_c_try_compile "$LINENO"; then :
21011 gl_cv_sys_struct_timespec_in_pthread_h=yes
21013 gl_cv_sys_struct_timespec_in_pthread_h=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21018 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21019 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21020 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21039 if test $gl_cv_have_include_next = yes; then
21040 gl_cv_next_time_h='<'time.h'>'
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21043 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21044 if ${gl_cv_next_time_h+:} false; then :
21045 $as_echo_n "(cached) " >&6
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21055 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21056 *) gl_absname_cpp="$ac_cpp" ;;
21061 gl_dirsep_regex='[/\\]'
21064 gl_dirsep_regex='\/'
21067 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21068 gl_header_literal_regex=`echo 'time.h' \
21069 | sed -e "$gl_make_literal_regex_sed"`
21070 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21071 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21077 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21078 sed -n "$gl_absolute_header_sed"`
21080 gl_header=$gl_cv_absolute_time_h
21081 gl_cv_next_time_h='"'$gl_header'"'
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21086 $as_echo "$gl_cv_next_time_h" >&6; }
21088 NEXT_TIME_H=$gl_cv_next_time_h
21090 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21091 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21092 gl_next_as_first_directive='<'time.h'>'
21094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21095 gl_next_as_first_directive=$gl_cv_next_time_h
21097 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21105 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21106 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE_DECL_UNSETENV $ac_have_decl
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
21124 $as_echo_n "checking for wint_t... " >&6; }
21125 if ${gt_cv_c_wint_t+:} false; then :
21126 $as_echo_n "(cached) " >&6
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21133 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21134 before <wchar.h>. */
21135 #include <stddef.h>
21139 wint_t foo = (wchar_t)'\0';
21148 if ac_fn_c_try_compile "$LINENO"; then :
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
21156 $as_echo "$gt_cv_c_wint_t" >&6; }
21157 if test $gt_cv_c_wint_t = yes; then
21159 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
21176 if test $ac_cv_header_features_h = yes; then
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21185 $as_echo_n "checking for inttypes.h... " >&6; }
21186 if ${gl_cv_header_inttypes_h+:} false; then :
21187 $as_echo_n "(cached) " >&6
21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21190 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <inttypes.h>
21198 uintmax_t i = (uintmax_t) -1; return !i;
21203 if ac_fn_c_try_compile "$LINENO"; then :
21204 gl_cv_header_inttypes_h=yes
21206 gl_cv_header_inttypes_h=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
21211 $as_echo "$gl_cv_header_inttypes_h" >&6; }
21212 if test $gl_cv_header_inttypes_h = yes; then
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
21222 $as_echo_n "checking for stdint.h... " >&6; }
21223 if ${gl_cv_header_stdint_h+:} false; then :
21224 $as_echo_n "(cached) " >&6
21226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h. */
21228 #include <sys/types.h>
21229 #include <stdint.h>
21233 uintmax_t i = (uintmax_t) -1; return !i;
21238 if ac_fn_c_try_compile "$LINENO"; then :
21239 gl_cv_header_stdint_h=yes
21241 gl_cv_header_stdint_h=no
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
21246 $as_echo "$gl_cv_header_stdint_h" >&6; }
21247 if test $gl_cv_header_stdint_h = yes; then
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_STDINT_H_WITH_UINTMAX 1
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
21259 $as_echo_n "checking for intmax_t... " >&6; }
21260 if ${gt_cv_c_intmax_t+:} false; then :
21261 $as_echo_n "(cached) " >&6
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21266 #include <stddef.h>
21267 #include <stdlib.h>
21268 #if HAVE_STDINT_H_WITH_UINTMAX
21269 #include <stdint.h>
21271 #if HAVE_INTTYPES_H_WITH_UINTMAX
21272 #include <inttypes.h>
21278 intmax_t x = -1; return !x;
21283 if ac_fn_c_try_compile "$LINENO"; then :
21284 gt_cv_c_intmax_t=yes
21286 gt_cv_c_intmax_t=no
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21291 $as_echo "$gt_cv_c_intmax_t" >&6; }
21292 if test $gt_cv_c_intmax_t = yes; then
21294 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
21298 test $ac_cv_type_long_long_int = yes \
21299 && ac_type='long long' \
21302 cat >>confdefs.h <<_ACEOF
21303 #define intmax_t $ac_type
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
21310 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
21311 if ${gl_cv_cc_double_expbit0+:} false; then :
21312 $as_echo_n "(cached) " >&6
21315 if test "$cross_compiling" = yes; then :
21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h. */
21320 #if defined arm || defined __arm || defined __arm__
21325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21326 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
21327 gl_cv_cc_double_expbit0="unknown"
21331 if ${ac_cv_c_bigendian+:} false; then :
21332 $as_echo_n "(cached) " >&6
21334 ac_cv_c_bigendian=unknown
21335 # See if we're dealing with a universal compiler.
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21338 #ifndef __APPLE_CC__
21339 not a universal capable compiler
21344 if ac_fn_c_try_compile "$LINENO"; then :
21346 # Check for potential -arch flags. It is not universal unless
21347 # there are at least two -arch flags with different values.
21350 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21351 if test -n "$ac_prev"; then
21353 i?86 | x86_64 | ppc | ppc64)
21354 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21357 ac_cv_c_bigendian=universal
21363 elif test "x$ac_word" = "x-arch"; then
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 if test $ac_cv_c_bigendian = unknown; then
21370 # See if sys/param.h defines the BYTE_ORDER macro.
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373 #include <sys/types.h>
21374 #include <sys/param.h>
21379 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21380 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21382 bogus endian macros
21389 if ac_fn_c_try_compile "$LINENO"; then :
21390 # It does; now see whether it defined to BIG_ENDIAN or not.
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21393 #include <sys/types.h>
21394 #include <sys/param.h>
21399 #if BYTE_ORDER != BIG_ENDIAN
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408 ac_cv_c_bigendian=yes
21410 ac_cv_c_bigendian=no
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 if test $ac_cv_c_bigendian = unknown; then
21417 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21420 #include <limits.h>
21425 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21426 bogus endian macros
21433 if ac_fn_c_try_compile "$LINENO"; then :
21434 # It does; now see whether it defined to _BIG_ENDIAN or not.
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21437 #include <limits.h>
21442 #ifndef _BIG_ENDIAN
21450 if ac_fn_c_try_compile "$LINENO"; then :
21451 ac_cv_c_bigendian=yes
21453 ac_cv_c_bigendian=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 if test $ac_cv_c_bigendian = unknown; then
21460 # Compile a test program.
21461 if test "$cross_compiling" = yes; then :
21462 # Try to guess by grepping values from an object file.
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21465 short int ascii_mm[] =
21466 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21467 short int ascii_ii[] =
21468 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21469 int use_ascii (int i) {
21470 return ascii_mm[i] + ascii_ii[i];
21472 short int ebcdic_ii[] =
21473 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21474 short int ebcdic_mm[] =
21475 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21476 int use_ebcdic (int i) {
21477 return ebcdic_mm[i] + ebcdic_ii[i];
21484 return use_ascii (foo) == use_ebcdic (foo);
21489 if ac_fn_c_try_compile "$LINENO"; then :
21490 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21491 ac_cv_c_bigendian=yes
21493 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21494 if test "$ac_cv_c_bigendian" = unknown; then
21495 ac_cv_c_bigendian=no
21497 # finding both strings is unlikely to happen, but who knows?
21498 ac_cv_c_bigendian=unknown
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21506 $ac_includes_default
21511 /* Are we little or big endian? From Harbison&Steele. */
21515 char c[sizeof (long int)];
21518 return u.c[sizeof (long int) - 1] == 1;
21524 if ac_fn_c_try_run "$LINENO"; then :
21525 ac_cv_c_bigendian=no
21527 ac_cv_c_bigendian=yes
21529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21530 conftest.$ac_objext conftest.beam conftest.$ac_ext
21536 case $ac_cv_c_bigendian in #(
21538 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
21540 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
21543 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21547 gl_cv_cc_double_expbit0="unknown" ;;
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21560 #include <stddef.h>
21562 #include <string.h>
21564 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21565 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
21566 static unsigned int ored_words[NWORDS];
21567 static unsigned int anded_words[NWORDS];
21568 static void add_to_ored_words (double x)
21572 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
21573 memset (&m, 0, sizeof (memory_double));
21575 for (i = 0; i < NWORDS; i++)
21577 ored_words[i] |= m.word[i];
21578 anded_words[i] &= m.word[i];
21584 FILE *fp = fopen ("conftest.out", "w");
21587 for (j = 0; j < NWORDS; j++)
21588 anded_words[j] = ~ (unsigned int) 0;
21589 add_to_ored_words (0.25);
21590 add_to_ored_words (0.5);
21591 add_to_ored_words (1.0);
21592 add_to_ored_words (2.0);
21593 add_to_ored_words (4.0);
21594 /* Remove bits that are common (e.g. if representation of the first mantissa
21595 bit is explicit). */
21596 for (j = 0; j < NWORDS; j++)
21597 ored_words[j] &= ~anded_words[j];
21598 /* Now find the nonzero word. */
21599 for (j = 0; j < NWORDS; j++)
21600 if (ored_words[j] != 0)
21605 for (i = j + 1; i < NWORDS; i++)
21606 if (ored_words[i] != 0)
21608 fprintf (fp, "unknown");
21609 return (fclose (fp) != 0);
21612 if ((ored_words[j] >> i) & 1)
21614 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21615 return (fclose (fp) != 0);
21618 fprintf (fp, "unknown");
21619 return (fclose (fp) != 0);
21623 if ac_fn_c_try_run "$LINENO"; then :
21624 gl_cv_cc_double_expbit0=`cat conftest.out`
21626 gl_cv_cc_double_expbit0="unknown"
21628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21629 conftest.$ac_objext conftest.beam conftest.$ac_ext
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
21636 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
21637 case "$gl_cv_cc_double_expbit0" in
21639 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21640 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
21642 cat >>confdefs.h <<_ACEOF
21643 #define DBL_EXPBIT0_WORD $word
21647 cat >>confdefs.h <<_ACEOF
21648 #define DBL_EXPBIT0_BIT $bit
21659 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21664 cat >>confdefs.h <<_ACEOF
21665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21671 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21673 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_DECL__SNPRINTF $ac_have_decl
21685 case "$gl_cv_func_snprintf_retval_c99" in
21688 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
21699 GNULIB_MBSRTOWCS=0;
21700 GNULIB_MBSNRTOWCS=0;
21702 GNULIB_WCSRTOMBS=0;
21703 GNULIB_WCSNRTOMBS=0;
21720 GNULIB_WCSCASECMP=0;
21721 GNULIB_WCSNCASECMP=0;
21758 HAVE_WCSNCASECMP=1;
21771 HAVE_DECL_WCWIDTH=1;
21772 REPLACE_MBSTATE_T=0;
21778 REPLACE_MBSRTOWCS=0;
21779 REPLACE_MBSNRTOWCS=0;
21781 REPLACE_WCSRTOMBS=0;
21782 REPLACE_WCSNRTOMBS=0;
21784 REPLACE_WCSWIDTH=0;
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21788 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21789 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21790 $as_echo_n "(cached) " >&6
21792 gl_cv_header_wchar_h_correct_inline=yes
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 #define wcstod renamed_wcstod
21797 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21799 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21800 included before <wchar.h>. */
21801 #include <stddef.h>
21805 extern int zero (void);
21806 int main () { return zero(); }
21809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21810 (eval $ac_compile) 2>&5
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; then
21814 mv conftest.$ac_objext conftest1.$ac_objext
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21818 #define wcstod renamed_wcstod
21819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21821 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21822 included before <wchar.h>. */
21823 #include <stddef.h>
21827 int zero (void) { return 0; }
21830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21831 (eval $ac_compile) 2>&5
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; then
21835 mv conftest.$ac_objext conftest2.$ac_objext
21836 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21839 gl_cv_header_wchar_h_correct_inline=no
21843 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21847 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21848 if test $gl_cv_header_wchar_h_correct_inline = no; then
21849 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21850 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21851 C99 mode. You have four options:
21852 - Add the flag -fgnu89-inline to CC and reconfigure, or
21853 - Fix your include files, using parts of
21854 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21855 - Use a gcc version older than 4.3, or
21856 - Don't use the flags -std=c99 or -std=gnu99.
21857 Configuration aborted." "$LINENO" 5
21862 GL_COND_LIBTOOL_TRUE=
21863 GL_COND_LIBTOOL_FALSE='#'
21865 GL_COND_LIBTOOL_TRUE='#'
21866 GL_COND_LIBTOOL_FALSE=
21869 gl_cond_libtool=true
21870 gl_m4_base='gnulib/m4'
21880 gl_source_base='gnulib/lib'
21883 if test $ac_cv_func_alloca_works = no; then
21887 # Define an additional variable used in the Makefile substitution.
21888 if test $ac_cv_working_alloca_h = yes; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21890 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21891 if ${gl_cv_rpl_alloca+:} false; then :
21892 $as_echo_n "(cached) " >&6
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21898 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21904 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21905 gl_cv_rpl_alloca=yes
21907 gl_cv_rpl_alloca=no
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21914 $as_echo "$gl_cv_rpl_alloca" >&6; }
21915 if test $gl_cv_rpl_alloca = yes; then
21917 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21927 if test -n "$ALLOCA_H"; then
21928 GL_GENERATE_ALLOCA_H_TRUE=
21929 GL_GENERATE_ALLOCA_H_FALSE='#'
21931 GL_GENERATE_ALLOCA_H_TRUE='#'
21932 GL_GENERATE_ALLOCA_H_FALSE=
21941 cat >>confdefs.h <<_ACEOF
21942 #define GNULIB_DIRNAME 1
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21953 $as_echo_n "checking whether // is distinct from /... " >&6; }
21954 if ${gl_cv_double_slash_root+:} false; then :
21955 $as_echo_n "(cached) " >&6
21957 if test x"$cross_compiling" = xyes ; then
21958 # When cross-compiling, there is no way to tell whether // is special
21959 # short of a list of hosts. However, the only known hosts to date
21960 # that have a distinct // are Apollo DomainOS (too old to port to),
21961 # Cygwin, and z/OS. If anyone knows of another system for which // has
21962 # special semantics and is distinct from /, please report it to
21963 # <bug-gnulib@gnu.org>.
21965 *-cygwin | i370-ibm-openedition)
21966 gl_cv_double_slash_root=yes ;;
21968 # Be optimistic and assume that / and // are the same when we
21970 gl_cv_double_slash_root='unknown, assuming no' ;;
21973 set x `ls -di / // 2>/dev/null`
21974 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21975 gl_cv_double_slash_root=no
21977 gl_cv_double_slash_root=yes
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21982 $as_echo "$gl_cv_double_slash_root" >&6; }
21983 if test "$gl_cv_double_slash_root" = yes; then
21985 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
22001 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22008 $as_echo_n "checking for error_at_line... " >&6; }
22009 if ${ac_cv_lib_error_at_line+:} false; then :
22010 $as_echo_n "(cached) " >&6
22012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013 /* end confdefs.h. */
22018 error_at_line (0, 0, "", 0, "an error occurred");
22023 if ac_fn_c_try_link "$LINENO"; then :
22024 ac_cv_lib_error_at_line=yes
22026 ac_cv_lib_error_at_line=no
22028 rm -f core conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22032 $as_echo "$ac_cv_lib_error_at_line" >&6; }
22034 if test $ac_cv_lib_error_at_line = no; then
22043 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
22052 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
22056 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
22070 if test $gl_cv_have_include_next = yes; then
22071 gl_cv_next_fcntl_h='<'fcntl.h'>'
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22074 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22075 if ${gl_cv_next_fcntl_h+:} false; then :
22076 $as_echo_n "(cached) " >&6
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22086 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22087 *) gl_absname_cpp="$ac_cpp" ;;
22092 gl_dirsep_regex='[/\\]'
22095 gl_dirsep_regex='\/'
22098 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22099 gl_header_literal_regex=`echo 'fcntl.h' \
22100 | sed -e "$gl_make_literal_regex_sed"`
22101 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22102 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22108 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22109 sed -n "$gl_absolute_header_sed"`
22111 gl_header=$gl_cv_absolute_fcntl_h
22112 gl_cv_next_fcntl_h='"'$gl_header'"'
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22117 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22119 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22121 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22123 gl_next_as_first_directive='<'fcntl.h'>'
22125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22126 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22128 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22139 for gl_func in fcntl openat; do
22140 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22142 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22143 if eval \${$as_gl_Symbol+:} false; then :
22144 $as_echo_n "(cached) " >&6
22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h. */
22159 if ac_fn_c_try_compile "$LINENO"; then :
22160 eval "$as_gl_Symbol=yes"
22162 eval "$as_gl_Symbol=no"
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 eval ac_res=\$$as_gl_Symbol
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22168 $as_echo "$ac_res" >&6; }
22169 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22170 cat >>confdefs.h <<_ACEOF
22171 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22174 eval ac_cv_have_decl_$gl_func=yes
22183 REPLACE_FLOAT_LDBL=0
22185 aix* | beos* | openbsd* | mirbsd* | irix*)
22189 case "$host_cpu" in
22194 # On x86_64 systems, the C compiler may still be generating
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
22202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22203 $EGREP "yes" >/dev/null 2>&1; then :
22214 case "$host_cpu" in
22222 aix* | freebsd* | linux*)
22223 if test -n "$FLOAT_H"; then
22224 REPLACE_FLOAT_LDBL=1
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
22231 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
22232 if ${gl_cv_func_itold_works+:} false; then :
22233 $as_echo_n "(cached) " >&6
22236 if test "$cross_compiling" = yes; then :
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22241 #if defined __LP64__ || defined __arch64__
22245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22246 $EGREP "yes" >/dev/null 2>&1; then :
22247 gl_cv_func_itold_works="guessing no"
22249 gl_cv_func_itold_works="guessing yes"
22254 *) gl_cv_func_itold_works="guessing yes" ;;
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22262 volatile long double ld;
22271 if ac_fn_c_try_run "$LINENO"; then :
22272 gl_cv_func_itold_works=yes
22274 gl_cv_func_itold_works=no
22276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22277 conftest.$ac_objext conftest.beam conftest.$ac_ext
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
22283 $as_echo "$gl_cv_func_itold_works" >&6; }
22284 case "$gl_cv_func_itold_works" in
22291 if test -n "$FLOAT_H"; then
22300 if test $gl_cv_have_include_next = yes; then
22301 gl_cv_next_float_h='<'float.h'>'
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
22304 $as_echo_n "checking absolute name of <float.h>... " >&6; }
22305 if ${gl_cv_next_float_h+:} false; then :
22306 $as_echo_n "(cached) " >&6
22311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312 /* end confdefs.h. */
22316 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22317 *) gl_absname_cpp="$ac_cpp" ;;
22322 gl_dirsep_regex='[/\\]'
22325 gl_dirsep_regex='\/'
22328 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22329 gl_header_literal_regex=`echo 'float.h' \
22330 | sed -e "$gl_make_literal_regex_sed"`
22331 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22332 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22338 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22339 sed -n "$gl_absolute_header_sed"`
22341 gl_header=$gl_cv_absolute_float_h
22342 gl_cv_next_float_h='"'$gl_header'"'
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
22347 $as_echo "$gl_cv_next_float_h" >&6; }
22349 NEXT_FLOAT_H=$gl_cv_next_float_h
22351 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22353 gl_next_as_first_directive='<'float.h'>'
22355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22356 gl_next_as_first_directive=$gl_cv_next_float_h
22358 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
22365 if test -n "$FLOAT_H"; then
22366 GL_GENERATE_FLOAT_H_TRUE=
22367 GL_GENERATE_FLOAT_H_FALSE='#'
22369 GL_GENERATE_FLOAT_H_TRUE='#'
22370 GL_GENERATE_FLOAT_H_FALSE=
22375 if test $REPLACE_FLOAT_LDBL = 1; then
22384 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
22387 if test $REPLACE_ITOLD = 1; then
22396 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
22413 gl_gettimeofday_timezone=void
22414 if test $ac_cv_func_gettimeofday != yes; then
22415 HAVE_GETTIMEOFDAY=0
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22421 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22422 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
22423 $as_echo_n "(cached) " >&6
22425 if test "$cross_compiling" = yes; then :
22426 # When cross-compiling:
22428 # Guess all is fine on glibc systems.
22429 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22430 # If we don't know, assume the worst.
22431 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h. */
22437 #include <string.h>
22438 #include <sys/time.h>
22440 #include <stdlib.h>
22448 struct tm saved_lt;
22450 lt = localtime (&t);
22452 gettimeofday (&tv, NULL);
22453 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22459 if ac_fn_c_try_run "$LINENO"; then :
22460 gl_cv_func_gettimeofday_clobber=no
22462 gl_cv_func_gettimeofday_clobber=yes
22464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22465 conftest.$ac_objext conftest.beam conftest.$ac_ext
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22470 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22472 case "$gl_cv_func_gettimeofday_clobber" in
22474 REPLACE_GETTIMEOFDAY=1
22477 REPLACE_LOCALTIME=1
22480 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22486 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22487 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
22488 $as_echo_n "(cached) " >&6
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492 #include <sys/time.h>
22494 int gettimeofday (struct timeval *restrict, void *restrict);
22499 /* glibc uses struct timezone * rather than the POSIX void *
22500 if _GNU_SOURCE is defined. However, since the only portable
22501 use of gettimeofday uses NULL as the second parameter, and
22502 since the glibc definition is actually more typesafe, it is
22503 not worth wrapping this to get a compliant signature. */
22504 int (*f) (struct timeval *restrict, void *restrict)
22507 return !(x | c.tv_sec | c.tv_usec);
22513 if ac_fn_c_try_compile "$LINENO"; then :
22514 gl_cv_func_gettimeofday_posix_signature=yes
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h. */
22518 #include <sys/time.h>
22519 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22529 if ac_fn_c_try_compile "$LINENO"; then :
22530 gl_cv_func_gettimeofday_posix_signature=almost
22532 gl_cv_func_gettimeofday_posix_signature=no
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22539 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22540 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22541 gl_gettimeofday_timezone='struct timezone'
22542 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22543 REPLACE_GETTIMEOFDAY=1
22545 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22546 REPLACE_GETTIMEOFDAY=1
22551 cat >>confdefs.h <<_ACEOF
22552 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22556 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22565 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22568 for ac_header in sys/timeb.h
22570 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22571 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22572 cat >>confdefs.h <<_ACEOF
22573 #define HAVE_SYS_TIMEB_H 1
22580 for ac_func in _ftime
22582 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22583 if test "x$ac_cv_func__ftime" = xyes; then :
22584 cat >>confdefs.h <<_ACEOF
22585 #define HAVE__FTIME 1
22598 GNULIB_GETTIMEOFDAY=1
22604 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
22611 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
22612 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
22613 $as_echo_n "(cached) " >&6
22615 gl_cv_prog_c_ignore_unused_libraries=none
22616 gl_saved_ldflags=$LDFLAGS
22617 gl_saved_libs=$LIBS
22618 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
22619 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
22621 # Use long option sequences like '-z ignore' to test for the feature,
22622 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
22623 # GCC + binutils likes '-Wl,--as-needed'.
22624 # GCC + Solaris ld likes '-Wl,-z,ignore'.
22625 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
22626 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
22627 # native cc issues annoying warnings and then ignores it,
22628 # which would cause us to incorrectly conclude that it worked.
22629 for gl_flags in '-Wl,--as-needed' \
22634 LDFLAGS="$gl_flags $LDFLAGS"
22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22636 /* end confdefs.h. */
22646 if ac_fn_c_try_link "$LINENO"; then :
22647 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
22649 rm -f core conftest.err conftest.$ac_objext \
22650 conftest$ac_exeext conftest.$ac_ext
22651 LDFLAGS=$gl_saved_ldflags
22652 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
22655 LIBS=$gl_saved_libs
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
22659 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
22660 IGNORE_UNUSED_LIBRARIES_CFLAGS=
22661 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
22662 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
22668 if test "$gl_threads_api" = posix; then
22669 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22670 # pthread_rwlock_* functions.
22671 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22673 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
22675 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22679 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681 /* end confdefs.h. */
22683 #include <pthread.h>
22688 #if __FreeBSD__ == 4
22689 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22690 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22691 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22692 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22694 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22702 if ac_fn_c_try_compile "$LINENO"; then :
22704 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 cat >>confdefs.h <<_ACEOF
22714 #define GNULIB_LOCK 1
22727 if test $ac_cv_func_lstat = yes; then
22729 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22738 if test $REPLACE_LSTAT = 1; then
22747 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22762 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22769 if test $gl_cv_func_malloc_posix = yes; then
22771 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22777 if test $REPLACE_MALLOC = 1; then
22786 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22794 GNULIB_MALLOC_POSIX=1
22800 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22809 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22818 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22821 for ac_header in bp-sym.h
22823 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22824 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22825 cat >>confdefs.h <<_ACEOF
22826 #define HAVE_BP_SYM_H 1
22846 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22852 for ac_func in mkdtemp
22854 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22855 if test "x$ac_cv_func_mkdtemp" = xyes; then :
22856 cat >>confdefs.h <<_ACEOF
22857 #define HAVE_MKDTEMP 1
22863 if test $ac_cv_func_mkdtemp = no; then
22867 if test $HAVE_MKDTEMP = 0; then
22876 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
22892 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22904 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22905 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22907 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22910 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22914 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22923 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22929 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22938 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22955 for ac_func in raise
22957 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22958 if test "x$ac_cv_func_raise" = xyes; then :
22959 cat >>confdefs.h <<_ACEOF
22960 #define HAVE_RAISE 1
22966 if test $ac_cv_func_raise = no; then
22969 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22976 if test $gl_cv_type_sigset_t = yes; then
22977 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22978 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22979 gl_cv_func_sigprocmask=1
22983 if test -z "$gl_cv_func_sigprocmask"; then
22984 HAVE_POSIX_SIGNALBLOCKING=0
22987 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22993 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
23002 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
23017 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
23024 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23029 if test $REPLACE_READ = 1; then
23038 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
23053 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
23076 if test $ac_cv_func_secure_getenv = no; then
23077 HAVE_SECURE_GETENV=0
23080 if test $HAVE_SECURE_GETENV = 0; then
23089 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
23092 for ac_func in __secure_getenv
23094 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23095 if test "x$ac_cv_func___secure_getenv" = xyes; then :
23096 cat >>confdefs.h <<_ACEOF
23097 #define HAVE___SECURE_GETENV 1
23103 if test $ac_cv_func___secure_getenv = no; then
23104 for ac_func in issetugid
23106 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
23107 if test "x$ac_cv_func_issetugid" = xyes; then :
23108 cat >>confdefs.h <<_ACEOF
23109 #define HAVE_ISSETUGID 1
23123 GNULIB_SECURE_GETENV=1
23129 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23135 if test $ac_cv_func_setenv = no; then
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23139 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23140 if ${gl_cv_func_setenv_works+:} false; then :
23141 $as_echo_n "(cached) " >&6
23143 if test "$cross_compiling" = yes; then :
23145 # Guess yes on glibc systems.
23146 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
23147 # If we don't know, assume the worst.
23148 *) gl_cv_func_setenv_works="guessing no" ;;
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23155 #include <stdlib.h>
23157 #include <string.h>
23165 if (setenv ("", "", 0) != -1)
23167 else if (errno != EINVAL)
23171 if (setenv ("a", "=", 1) != 0)
23173 else if (strcmp (getenv ("a"), "=") != 0)
23182 if ac_fn_c_try_run "$LINENO"; then :
23183 gl_cv_func_setenv_works=yes
23185 gl_cv_func_setenv_works=no
23187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23188 conftest.$ac_objext conftest.beam conftest.$ac_ext
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23193 $as_echo "$gl_cv_func_setenv_works" >&6; }
23194 case "$gl_cv_func_setenv_works" in
23202 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
23211 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
23225 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23238 if test $ac_cv_func_sigaction = yes; then
23239 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
23241 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
23243 cat >>confdefs.h <<_ACEOF
23244 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
23250 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
23251 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
23257 if test $HAVE_SIGACTION = 0; then
23266 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
23283 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
23284 #include <signal.h>
23287 if test "x$ac_cv_type_siginfo_t" = xyes; then :
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_SIGINFO_T 1
23296 if test $ac_cv_type_siginfo_t = no; then
23312 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
23327 if test $gl_cv_have_include_next = yes; then
23328 gl_cv_next_signal_h='<'signal.h'>'
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23331 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23332 if ${gl_cv_next_signal_h+:} false; then :
23333 $as_echo_n "(cached) " >&6
23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23340 #include <signal.h>
23343 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23344 *) gl_absname_cpp="$ac_cpp" ;;
23349 gl_dirsep_regex='[/\\]'
23352 gl_dirsep_regex='\/'
23355 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23356 gl_header_literal_regex=`echo 'signal.h' \
23357 | sed -e "$gl_make_literal_regex_sed"`
23358 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23359 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23365 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23366 sed -n "$gl_absolute_header_sed"`
23368 gl_header=$gl_cv_absolute_signal_h
23369 gl_cv_next_signal_h='"'$gl_header'"'
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23374 $as_echo "$gl_cv_next_signal_h" >&6; }
23376 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23380 gl_next_as_first_directive='<'signal.h'>'
23382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23383 gl_next_as_first_directive=$gl_cv_next_signal_h
23385 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23391 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23392 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23393 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23394 #include <signal.h>
23397 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
23400 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23409 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23410 #include <signal.h>
23413 if test "x$ac_cv_type_sighandler_t" = xyes; then :
23416 HAVE_SIGHANDLER_T=0
23421 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
23422 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23424 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23425 if eval \${$as_gl_Symbol+:} false; then :
23426 $as_echo_n "(cached) " >&6
23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23430 #include <signal.h>
23441 if ac_fn_c_try_compile "$LINENO"; then :
23442 eval "$as_gl_Symbol=yes"
23444 eval "$as_gl_Symbol=no"
23446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23448 eval ac_res=\$$as_gl_Symbol
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23450 $as_echo "$ac_res" >&6; }
23451 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23452 cat >>confdefs.h <<_ACEOF
23453 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23456 eval ac_cv_have_decl_$gl_func=yes
23464 if test $gl_cv_type_sigset_t = yes; then
23465 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
23466 if test "x$ac_cv_func_sigprocmask" = xyes; then :
23467 gl_cv_func_sigprocmask=1
23471 if test -z "$gl_cv_func_sigprocmask"; then
23472 HAVE_POSIX_SIGNALBLOCKING=0
23475 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
23484 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
23493 GNULIB_SIGPROCMASK=1
23499 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
23504 for ac_header in stdint.h
23506 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23507 if test "x$ac_cv_header_stdint_h" = xyes; then :
23508 cat >>confdefs.h <<_ACEOF
23509 #define HAVE_STDINT_H 1
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23517 $as_echo_n "checking for SIZE_MAX... " >&6; }
23518 if ${gl_cv_size_max+:} false; then :
23519 $as_echo_n "(cached) " >&6
23523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23524 /* end confdefs.h. */
23526 #include <limits.h>
23528 #include <stdint.h>
23535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23536 $EGREP "Found it" >/dev/null 2>&1; then :
23541 if test -z "$gl_cv_size_max"; then
23542 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
23543 #include <limits.h>"; then :
23546 size_t_bits_minus_1=
23549 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
23555 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23556 if test $fits_in_uint = 1; then
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23559 #include <stddef.h>
23561 extern unsigned long foo;
23571 if ac_fn_c_try_compile "$LINENO"; then :
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 if test $fits_in_uint = 1; then
23577 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23579 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23582 gl_cv_size_max='((size_t)~(size_t)0)'
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23588 $as_echo "$gl_cv_size_max" >&6; }
23589 if test "$gl_cv_size_max" != yes; then
23591 cat >>confdefs.h <<_ACEOF
23592 #define SIZE_MAX $gl_cv_size_max
23600 gl_cv_func_snprintf_usable=no
23601 for ac_func in snprintf
23603 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23604 if test "x$ac_cv_func_snprintf" = xyes; then :
23605 cat >>confdefs.h <<_ACEOF
23606 #define HAVE_SNPRINTF 1
23612 if test $ac_cv_func_snprintf = yes; then
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23617 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23618 if ${gl_cv_func_snprintf_size1+:} false; then :
23619 $as_echo_n "(cached) " >&6
23622 if test "$cross_compiling" = yes; then :
23623 gl_cv_func_snprintf_size1="guessing yes"
23625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23626 /* end confdefs.h. */
23630 # define my_snprintf snprintf
23632 # include <stdarg.h>
23633 static int my_snprintf (char *buf, int size, const char *format, ...)
23637 va_start (args, format);
23638 ret = vsnprintf (buf, size, format, args);
23645 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23646 my_snprintf (buf, 1, "%d", 12345);
23647 return buf[1] != 'E';
23650 if ac_fn_c_try_run "$LINENO"; then :
23651 gl_cv_func_snprintf_size1=yes
23653 gl_cv_func_snprintf_size1=no
23655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23656 conftest.$ac_objext conftest.beam conftest.$ac_ext
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23662 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23664 case "$gl_cv_func_snprintf_size1" in
23667 case "$gl_cv_func_snprintf_retval_c99" in
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23672 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23673 if ${gl_cv_func_printf_positions+:} false; then :
23674 $as_echo_n "(cached) " >&6
23677 if test "$cross_compiling" = yes; then :
23680 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23681 gl_cv_func_printf_positions="guessing no";;
23682 beos*) gl_cv_func_printf_positions="guessing no";;
23683 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23684 *) gl_cv_func_printf_positions="guessing yes";;
23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h. */
23692 #include <string.h>
23693 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23694 dollar expansion (possibly an autoconf bug). */
23695 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23696 static char buf[100];
23699 sprintf (buf, format, 33, 55);
23700 return (strcmp (buf, "55 33") != 0);
23703 if ac_fn_c_try_run "$LINENO"; then :
23704 gl_cv_func_printf_positions=yes
23706 gl_cv_func_printf_positions=no
23708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23709 conftest.$ac_objext conftest.beam conftest.$ac_ext
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23715 $as_echo "$gl_cv_func_printf_positions" >&6; }
23717 case "$gl_cv_func_printf_positions" in
23719 gl_cv_func_snprintf_usable=yes
23727 if test $gl_cv_func_snprintf_usable = no; then
23738 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23740 if test $ac_cv_func_snprintf = yes; then
23753 if test $ac_cv_have_decl_snprintf = no; then
23754 HAVE_DECL_SNPRINTF=0
23768 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23774 cat >>confdefs.h <<_ACEOF
23775 #define GNULIB_SNPRINTF 1
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23781 $as_echo_n "checking for ssize_t... " >&6; }
23782 if ${gt_cv_ssize_t+:} false; then :
23783 $as_echo_n "(cached) " >&6
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23787 #include <sys/types.h>
23791 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23797 if ac_fn_c_try_compile "$LINENO"; then :
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23805 $as_echo "$gt_cv_ssize_t" >&6; }
23806 if test $gt_cv_ssize_t = no; then
23808 $as_echo "#define ssize_t int" >>confdefs.h
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23822 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23823 if ${gl_cv_func_stat_dir_slash+:} false; then :
23824 $as_echo_n "(cached) " >&6
23826 if test "$cross_compiling" = yes; then :
23828 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23829 *) gl_cv_func_stat_dir_slash="guessing yes";;
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h. */
23834 #include <sys/stat.h>
23839 struct stat st; return stat (".", &st) != stat ("./", &st);
23844 if ac_fn_c_try_run "$LINENO"; then :
23845 gl_cv_func_stat_dir_slash=yes
23847 gl_cv_func_stat_dir_slash=no
23849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23850 conftest.$ac_objext conftest.beam conftest.$ac_ext
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23855 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23857 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23858 if ${gl_cv_func_stat_file_slash+:} false; then :
23859 $as_echo_n "(cached) " >&6
23862 # Assume that if we have lstat, we can also check symlinks.
23863 if test $ac_cv_func_lstat = yes; then
23864 ln -s conftest.tmp conftest.lnk
23866 if test "$cross_compiling" = yes; then :
23868 # Guess yes on glibc systems.
23869 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23870 # If we don't know, assume the worst.
23871 *) gl_cv_func_stat_file_slash="guessing no" ;;
23875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23876 /* end confdefs.h. */
23877 #include <sys/stat.h>
23884 if (!stat ("conftest.tmp/", &st))
23887 if (!stat ("conftest.lnk/", &st))
23896 if ac_fn_c_try_run "$LINENO"; then :
23897 gl_cv_func_stat_file_slash=yes
23899 gl_cv_func_stat_file_slash=no
23901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23902 conftest.$ac_objext conftest.beam conftest.$ac_ext
23905 rm -f conftest.tmp conftest.lnk
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23908 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23909 case $gl_cv_func_stat_dir_slash in
23910 *no) REPLACE_STAT=1
23912 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23915 case $gl_cv_func_stat_file_slash in
23916 *no) REPLACE_STAT=1
23918 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23922 if test $REPLACE_STAT = 1; then
23931 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23946 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23952 NEXT_STDARG_H='<stdarg.h>'
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23954 $as_echo_n "checking for va_copy... " >&6; }
23955 if ${gl_cv_func_va_copy+:} false; then :
23956 $as_echo_n "(cached) " >&6
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23961 #include <stdarg.h>
23967 void (*func) (va_list, va_list) = va_copy;
23974 if ac_fn_c_try_compile "$LINENO"; then :
23975 gl_cv_func_va_copy=yes
23977 gl_cv_func_va_copy=no
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23983 $as_echo "$gl_cv_func_va_copy" >&6; }
23984 if test $gl_cv_func_va_copy = no; then
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23987 #if defined _AIX && !defined __GNUC__
23992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23993 $EGREP "vaccine" >/dev/null 2>&1; then :
24000 if test $gl_aixcc = yes; then
24010 if test $gl_cv_have_include_next = yes; then
24011 gl_cv_next_stdarg_h='<'stdarg.h'>'
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24014 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24015 if ${gl_cv_next_stdarg_h+:} false; then :
24016 $as_echo_n "(cached) " >&6
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24023 #include <stdarg.h>
24026 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24027 *) gl_absname_cpp="$ac_cpp" ;;
24032 gl_dirsep_regex='[/\\]'
24035 gl_dirsep_regex='\/'
24038 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24039 gl_header_literal_regex=`echo 'stdarg.h' \
24040 | sed -e "$gl_make_literal_regex_sed"`
24041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24048 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24049 sed -n "$gl_absolute_header_sed"`
24051 gl_header=$gl_cv_absolute_stdarg_h
24052 gl_cv_next_stdarg_h='"'$gl_header'"'
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24057 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24059 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24061 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24063 gl_next_as_first_directive='<'stdarg.h'>'
24065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24066 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24068 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24073 if test "$gl_cv_next_stdarg_h" = '""'; then
24074 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24075 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24079 saved_as_echo_n="$as_echo_n"
24081 if ${gl_cv_func___va_copy+:} false; then :
24082 $as_echo_n "(cached) " >&6
24085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24086 /* end confdefs.h. */
24087 #include <stdarg.h>
24100 if ac_fn_c_try_compile "$LINENO"; then :
24101 gl_cv_func___va_copy=yes
24103 gl_cv_func___va_copy=no
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108 as_echo_n="$saved_as_echo_n"
24110 if test $gl_cv_func___va_copy = yes; then
24112 $as_echo "#define va_copy __va_copy" >>confdefs.h
24117 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24123 if test -n "$STDARG_H"; then
24124 GL_GENERATE_STDARG_H_TRUE=
24125 GL_GENERATE_STDARG_H_FALSE='#'
24127 GL_GENERATE_STDARG_H_TRUE='#'
24128 GL_GENERATE_STDARG_H_FALSE=
24136 # Define two additional variables used in the Makefile substitution.
24138 if test "$ac_cv_header_stdbool_h" = yes; then
24141 STDBOOL_H='stdbool.h'
24144 if test -n "$STDBOOL_H"; then
24145 GL_GENERATE_STDBOOL_H_TRUE=
24146 GL_GENERATE_STDBOOL_H_FALSE='#'
24148 GL_GENERATE_STDBOOL_H_TRUE='#'
24149 GL_GENERATE_STDBOOL_H_FALSE=
24153 if test "$ac_cv_type__Bool" = yes; then
24164 if test $gt_cv_c_wchar_t = no; then
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24169 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24170 if ${gl_cv_decl_null_works+:} false; then :
24171 $as_echo_n "(cached) " >&6
24173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24174 /* end confdefs.h. */
24175 #include <stddef.h>
24176 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24186 if ac_fn_c_try_compile "$LINENO"; then :
24187 gl_cv_decl_null_works=yes
24189 gl_cv_decl_null_works=no
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24194 $as_echo "$gl_cv_decl_null_works" >&6; }
24195 if test $gl_cv_decl_null_works = no; then
24200 if test -n "$STDDEF_H"; then
24201 GL_GENERATE_STDDEF_H_TRUE=
24202 GL_GENERATE_STDDEF_H_FALSE='#'
24204 GL_GENERATE_STDDEF_H_TRUE='#'
24205 GL_GENERATE_STDDEF_H_FALSE=
24208 if test -n "$STDDEF_H"; then
24217 if test $gl_cv_have_include_next = yes; then
24218 gl_cv_next_stddef_h='<'stddef.h'>'
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24221 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24222 if ${gl_cv_next_stddef_h+:} false; then :
24223 $as_echo_n "(cached) " >&6
24228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h. */
24230 #include <stddef.h>
24233 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24234 *) gl_absname_cpp="$ac_cpp" ;;
24239 gl_dirsep_regex='[/\\]'
24242 gl_dirsep_regex='\/'
24245 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24246 gl_header_literal_regex=`echo 'stddef.h' \
24247 | sed -e "$gl_make_literal_regex_sed"`
24248 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24249 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24255 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24256 sed -n "$gl_absolute_header_sed"`
24258 gl_header=$gl_cv_absolute_stddef_h
24259 gl_cv_next_stddef_h='"'$gl_header'"'
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24264 $as_echo "$gl_cv_next_stddef_h" >&6; }
24266 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24268 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24270 gl_next_as_first_directive='<'stddef.h'>'
24272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24273 gl_next_as_first_directive=$gl_cv_next_stddef_h
24275 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24293 if test $gl_cv_have_include_next = yes; then
24294 gl_cv_next_stdio_h='<'stdio.h'>'
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24297 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24298 if ${gl_cv_next_stdio_h+:} false; then :
24299 $as_echo_n "(cached) " >&6
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24310 *) gl_absname_cpp="$ac_cpp" ;;
24315 gl_dirsep_regex='[/\\]'
24318 gl_dirsep_regex='\/'
24321 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24322 gl_header_literal_regex=`echo 'stdio.h' \
24323 | sed -e "$gl_make_literal_regex_sed"`
24324 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24325 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24331 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24332 sed -n "$gl_absolute_header_sed"`
24334 gl_header=$gl_cv_absolute_stdio_h
24335 gl_cv_next_stdio_h='"'$gl_header'"'
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24340 $as_echo "$gl_cv_next_stdio_h" >&6; }
24342 NEXT_STDIO_H=$gl_cv_next_stdio_h
24344 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24346 gl_next_as_first_directive='<'stdio.h'>'
24348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24349 gl_next_as_first_directive=$gl_cv_next_stdio_h
24351 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24360 cat >>confdefs.h <<_ACEOF
24361 #define GNULIB_FSCANF 1
24368 cat >>confdefs.h <<_ACEOF
24369 #define GNULIB_SCANF 1
24394 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
24395 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24397 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24398 if eval \${$as_gl_Symbol+:} false; then :
24399 $as_echo_n "(cached) " >&6
24401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24402 /* end confdefs.h. */
24414 if ac_fn_c_try_compile "$LINENO"; then :
24415 eval "$as_gl_Symbol=yes"
24417 eval "$as_gl_Symbol=no"
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421 eval ac_res=\$$as_gl_Symbol
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24423 $as_echo "$ac_res" >&6; }
24424 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24425 cat >>confdefs.h <<_ACEOF
24426 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24429 eval ac_cv_have_decl_$gl_func=yes
24444 if test $gl_cv_have_include_next = yes; then
24445 gl_cv_next_stdlib_h='<'stdlib.h'>'
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24448 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24449 if ${gl_cv_next_stdlib_h+:} false; then :
24450 $as_echo_n "(cached) " >&6
24455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24456 /* end confdefs.h. */
24457 #include <stdlib.h>
24460 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24461 *) gl_absname_cpp="$ac_cpp" ;;
24466 gl_dirsep_regex='[/\\]'
24469 gl_dirsep_regex='\/'
24472 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24473 gl_header_literal_regex=`echo 'stdlib.h' \
24474 | sed -e "$gl_make_literal_regex_sed"`
24475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24482 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24483 sed -n "$gl_absolute_header_sed"`
24485 gl_header=$gl_cv_absolute_stdlib_h
24486 gl_cv_next_stdlib_h='"'$gl_header'"'
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24491 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24493 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24495 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24497 gl_next_as_first_directive='<'stdlib.h'>'
24499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24500 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24502 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24509 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
24510 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24512 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24513 if eval \${$as_gl_Symbol+:} false; then :
24514 $as_echo_n "(cached) " >&6
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24518 #include <stdlib.h>
24519 #if HAVE_SYS_LOADAVG_H
24520 # include <sys/loadavg.h>
24523 # include <random.h>
24535 if ac_fn_c_try_compile "$LINENO"; then :
24536 eval "$as_gl_Symbol=yes"
24538 eval "$as_gl_Symbol=no"
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 eval ac_res=\$$as_gl_Symbol
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24544 $as_echo "$ac_res" >&6; }
24545 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24546 cat >>confdefs.h <<_ACEOF
24547 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24550 eval ac_cv_have_decl_$gl_func=yes
24560 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24562 $as_echo_n "checking for working strerror function... " >&6; }
24563 if ${gl_cv_func_working_strerror+:} false; then :
24564 $as_echo_n "(cached) " >&6
24566 if test "$cross_compiling" = yes; then :
24568 # Guess yes on glibc systems.
24569 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24570 # If we don't know, assume the worst.
24571 *) gl_cv_func_working_strerror="guessing no" ;;
24575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24576 /* end confdefs.h. */
24577 #include <string.h>
24582 if (!*strerror (-2)) return 1;
24587 if ac_fn_c_try_run "$LINENO"; then :
24588 gl_cv_func_working_strerror=yes
24590 gl_cv_func_working_strerror=no
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24593 conftest.$ac_objext conftest.beam conftest.$ac_ext
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24599 $as_echo "$gl_cv_func_working_strerror" >&6; }
24600 case "$gl_cv_func_working_strerror" in
24611 if test $REPLACE_STRERROR = 1; then
24620 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24625 cat >>confdefs.h <<_ACEOF
24626 #define GNULIB_STRERROR 1
24641 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24647 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24656 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24668 if test $ac_cv_header_sys_socket_h != yes; then
24669 for ac_header in winsock2.h
24671 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24672 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24673 cat >>confdefs.h <<_ACEOF
24674 #define HAVE_WINSOCK2_H 1
24682 if test "$ac_cv_header_winsock2_h" = yes; then
24684 UNISTD_H_HAVE_WINSOCK2_H=1
24685 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24713 if test $ac_cv_have_decl_strndup = no; then
24714 HAVE_DECL_STRNDUP=0
24717 if test $ac_cv_func_strndup = yes; then
24719 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24721 $as_echo_n "checking for working strndup... " >&6; }
24722 if ${gl_cv_func_strndup_works+:} false; then :
24723 $as_echo_n "(cached) " >&6
24725 if test "$cross_compiling" = yes; then :
24728 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24729 *) gl_cv_func_strndup_works="guessing yes";;
24733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734 /* end confdefs.h. */
24736 #include <string.h>
24737 #include <stdlib.h>
24742 #if !HAVE_DECL_STRNDUP
24747 char *strndup (const char *, size_t);
24750 s = strndup ("some longer string", 15);
24752 s = strndup ("shorter string", 13);
24753 return s[13] != '\0';
24758 if ac_fn_c_try_run "$LINENO"; then :
24759 gl_cv_func_strndup_works=yes
24761 gl_cv_func_strndup_works=no
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24764 conftest.$ac_objext conftest.beam conftest.$ac_ext
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24769 $as_echo "$gl_cv_func_strndup_works" >&6; }
24770 case $gl_cv_func_strndup_works in
24771 *no) REPLACE_STRNDUP=1 ;;
24777 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24786 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24800 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24816 if test $ac_cv_have_decl_strnlen = no; then
24817 HAVE_DECL_STRNLEN=0
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24821 $as_echo_n "checking for working strnlen... " >&6; }
24822 if ${ac_cv_func_strnlen_working+:} false; then :
24823 $as_echo_n "(cached) " >&6
24825 if test "$cross_compiling" = yes; then :
24826 # Guess no on AIX systems, yes otherwise.
24828 aix*) ac_cv_func_strnlen_working=no;;
24829 *) ac_cv_func_strnlen_working=yes;;
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h. */
24834 $ac_includes_default
24840 #define S_LEN (sizeof S - 1)
24842 /* At least one implementation is buggy: that of AIX 4.3 would
24843 give strnlen (S, 1) == 3. */
24846 for (i = 0; i < S_LEN + 1; ++i)
24848 int expected = i <= S_LEN ? i : S_LEN;
24849 if (strnlen (S, i) != expected)
24858 if ac_fn_c_try_run "$LINENO"; then :
24859 ac_cv_func_strnlen_working=yes
24861 ac_cv_func_strnlen_working=no
24863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24864 conftest.$ac_objext conftest.beam conftest.$ac_ext
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24869 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24870 test $ac_cv_func_strnlen_working = no && :
24873 if test $ac_cv_func_strnlen_working = no; then
24878 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24887 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24902 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24918 if test $ac_cv_have_decl_strsignal = no; then
24919 HAVE_DECL_STRSIGNAL=0
24922 for ac_func in strsignal
24924 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
24925 if test "x$ac_cv_func_strsignal" = xyes; then :
24926 cat >>confdefs.h <<_ACEOF
24927 #define HAVE_STRSIGNAL 1
24933 if test $ac_cv_func_strsignal = yes; then
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
24936 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
24937 if ${gl_cv_func_working_strsignal+:} false; then :
24938 $as_echo_n "(cached) " >&6
24940 if test "$cross_compiling" = yes; then :
24942 solaris* | aix*) gl_cv_func_working_strsignal=no;;
24943 *) gl_cv_func_working_strsignal="guessing yes";;
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24948 #include <string.h>
24949 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
24955 char *s = strsignal (-1);
24956 if (s == (char *) 0)
24958 if (s == (char *) -1)
24966 if ac_fn_c_try_run "$LINENO"; then :
24967 gl_cv_func_working_strsignal=yes
24969 gl_cv_func_working_strsignal=no
24971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24972 conftest.$ac_objext conftest.beam conftest.$ac_ext
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
24977 $as_echo "$gl_cv_func_working_strsignal" >&6; }
24978 if test "$gl_cv_func_working_strsignal" = no; then
24979 REPLACE_STRSIGNAL=1
24985 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
24994 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
25005 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
25007 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
25013 cat >>confdefs.h <<_ACEOF
25014 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
25030 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25038 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25039 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
25040 $as_echo_n "(cached) " >&6
25043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h. */
25045 #include <sys/select.h>
25054 if ac_fn_c_try_compile "$LINENO"; then :
25055 gl_cv_header_sys_select_h_selfcontained=yes
25057 gl_cv_header_sys_select_h_selfcontained=no
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25062 /* end confdefs.h. */
25063 #include <sys/select.h>
25067 int memset; int bzero;
25073 if ac_fn_c_try_compile "$LINENO"; then :
25074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h. */
25076 #include <sys/select.h>
25082 #define memset nonexistent_memset
25087 void *memset (void *, int, unsigned long);
25089 #define bzero nonexistent_bzero
25094 void bzero (void *, unsigned long);
25103 if ac_fn_c_try_link "$LINENO"; then :
25106 gl_cv_header_sys_select_h_selfcontained=no
25108 rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25117 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25133 if test $gl_cv_have_include_next = yes; then
25134 gl_cv_next_sys_select_h='<'sys/select.h'>'
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25137 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25138 if ${gl_cv_next_sys_select_h+:} false; then :
25139 $as_echo_n "(cached) " >&6
25142 if test $ac_cv_header_sys_select_h = yes; then
25147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25148 /* end confdefs.h. */
25149 #include <sys/select.h>
25152 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25153 *) gl_absname_cpp="$ac_cpp" ;;
25158 gl_dirsep_regex='[/\\]'
25161 gl_dirsep_regex='\/'
25164 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25165 gl_header_literal_regex=`echo 'sys/select.h' \
25166 | sed -e "$gl_make_literal_regex_sed"`
25167 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25168 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25174 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25175 sed -n "$gl_absolute_header_sed"`
25177 gl_header=$gl_cv_absolute_sys_select_h
25178 gl_cv_next_sys_select_h='"'$gl_header'"'
25180 gl_cv_next_sys_select_h='<'sys/select.h'>'
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25186 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25188 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25190 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25191 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25192 gl_next_as_first_directive='<'sys/select.h'>'
25194 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25195 gl_next_as_first_directive=$gl_cv_next_sys_select_h
25197 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25202 if test $ac_cv_header_sys_select_h = yes; then
25203 HAVE_SYS_SELECT_H=1
25205 HAVE_SYS_SELECT_H=0
25218 if test $ac_cv_header_sys_socket_h != yes; then
25219 for ac_header in winsock2.h
25221 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25222 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25223 cat >>confdefs.h <<_ACEOF
25224 #define HAVE_WINSOCK2_H 1
25232 if test "$ac_cv_header_winsock2_h" = yes; then
25234 UNISTD_H_HAVE_WINSOCK2_H=1
25235 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25243 for gl_func in pselect select; do
25244 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25246 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25247 if eval \${$as_gl_Symbol+:} false; then :
25248 $as_echo_n "(cached) " >&6
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 /* Some systems require prerequisite headers. */
25254 #include <sys/types.h>
25255 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
25256 # include <sys/time.h>
25258 #include <sys/select.h>
25269 if ac_fn_c_try_compile "$LINENO"; then :
25270 eval "$as_gl_Symbol=yes"
25272 eval "$as_gl_Symbol=no"
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25276 eval ac_res=\$$as_gl_Symbol
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25278 $as_echo "$ac_res" >&6; }
25279 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25280 cat >>confdefs.h <<_ACEOF
25281 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25284 eval ac_cv_have_decl_$gl_func=yes
25310 if test $gl_cv_have_include_next = yes; then
25311 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25314 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25315 if ${gl_cv_next_sys_stat_h+:} false; then :
25316 $as_echo_n "(cached) " >&6
25319 if test $ac_cv_header_sys_stat_h = yes; then
25324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h. */
25326 #include <sys/stat.h>
25329 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25330 *) gl_absname_cpp="$ac_cpp" ;;
25335 gl_dirsep_regex='[/\\]'
25338 gl_dirsep_regex='\/'
25341 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25342 gl_header_literal_regex=`echo 'sys/stat.h' \
25343 | sed -e "$gl_make_literal_regex_sed"`
25344 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25345 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25351 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25352 sed -n "$gl_absolute_header_sed"`
25354 gl_header=$gl_cv_absolute_sys_stat_h
25355 gl_cv_next_sys_stat_h='"'$gl_header'"'
25357 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25363 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25365 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25367 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25369 gl_next_as_first_directive='<'sys/stat.h'>'
25371 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25372 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25374 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25386 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25388 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25392 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25393 #include <sys/stat.h>
25395 if test "x$ac_cv_type_nlink_t" = xyes; then :
25399 $as_echo "#define nlink_t int" >>confdefs.h
25405 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
25406 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25408 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25409 if eval \${$as_gl_Symbol+:} false; then :
25410 $as_echo_n "(cached) " >&6
25412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413 /* end confdefs.h. */
25414 #include <sys/stat.h>
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426 eval "$as_gl_Symbol=yes"
25428 eval "$as_gl_Symbol=no"
25430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25432 eval ac_res=\$$as_gl_Symbol
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25434 $as_echo "$ac_res" >&6; }
25435 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25436 cat >>confdefs.h <<_ACEOF
25437 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25440 eval ac_cv_have_decl_$gl_func=yes
25470 if test $gl_cv_have_include_next = yes; then
25471 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
25474 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
25475 if ${gl_cv_next_sys_wait_h+:} false; then :
25476 $as_echo_n "(cached) " >&6
25479 if test $ac_cv_header_sys_wait_h = yes; then
25484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h. */
25486 #include <sys/wait.h>
25489 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25490 *) gl_absname_cpp="$ac_cpp" ;;
25495 gl_dirsep_regex='[/\\]'
25498 gl_dirsep_regex='\/'
25501 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25502 gl_header_literal_regex=`echo 'sys/wait.h' \
25503 | sed -e "$gl_make_literal_regex_sed"`
25504 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25505 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25511 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25512 sed -n "$gl_absolute_header_sed"`
25514 gl_header=$gl_cv_absolute_sys_wait_h
25515 gl_cv_next_sys_wait_h='"'$gl_header'"'
25517 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
25523 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
25525 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
25527 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25528 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25529 gl_next_as_first_directive='<'sys/wait.h'>'
25531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25532 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
25534 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
25543 for gl_func in waitpid; do
25544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25547 if eval \${$as_gl_Symbol+:} false; then :
25548 $as_echo_n "(cached) " >&6
25550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551 /* end confdefs.h. */
25552 #include <sys/wait.h>
25562 if ac_fn_c_try_compile "$LINENO"; then :
25563 eval "$as_gl_Symbol=yes"
25565 eval "$as_gl_Symbol=no"
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569 eval ac_res=\$$as_gl_Symbol
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25571 $as_echo "$ac_res" >&6; }
25572 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25573 cat >>confdefs.h <<_ACEOF
25574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25577 eval ac_cv_have_decl_$gl_func=yes
25616 if test $gl_cv_have_include_next = yes; then
25617 gl_cv_next_unistd_h='<'unistd.h'>'
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25620 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25621 if ${gl_cv_next_unistd_h+:} false; then :
25622 $as_echo_n "(cached) " >&6
25625 if test $ac_cv_header_unistd_h = yes; then
25630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25631 /* end confdefs.h. */
25632 #include <unistd.h>
25635 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25636 *) gl_absname_cpp="$ac_cpp" ;;
25641 gl_dirsep_regex='[/\\]'
25644 gl_dirsep_regex='\/'
25647 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25648 gl_header_literal_regex=`echo 'unistd.h' \
25649 | sed -e "$gl_make_literal_regex_sed"`
25650 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25651 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25657 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25658 sed -n "$gl_absolute_header_sed"`
25660 gl_header=$gl_cv_absolute_unistd_h
25661 gl_cv_next_unistd_h='"'$gl_header'"'
25663 gl_cv_next_unistd_h='<'unistd.h'>'
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25669 $as_echo "$gl_cv_next_unistd_h" >&6; }
25671 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25673 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25674 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25675 gl_next_as_first_directive='<'unistd.h'>'
25677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25678 gl_next_as_first_directive=$gl_cv_next_unistd_h
25680 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25685 if test $ac_cv_header_unistd_h = yes; then
25697 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
25698 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25700 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25701 if eval \${$as_gl_Symbol+:} false; then :
25702 $as_echo_n "(cached) " >&6
25704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705 /* end confdefs.h. */
25708 # include <unistd.h>
25710 /* Some systems declare various items in the wrong headers. */
25711 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25712 # include <fcntl.h>
25713 # include <stdio.h>
25714 # include <stdlib.h>
25715 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25729 if ac_fn_c_try_compile "$LINENO"; then :
25730 eval "$as_gl_Symbol=yes"
25732 eval "$as_gl_Symbol=no"
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 eval ac_res=\$$as_gl_Symbol
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25738 $as_echo "$ac_res" >&6; }
25739 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25740 cat >>confdefs.h <<_ACEOF
25741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25744 eval ac_cv_have_decl_$gl_func=yes
25758 if test $ac_cv_have_decl_unsetenv = no; then
25759 HAVE_DECL_UNSETENV=0
25761 for ac_func in unsetenv
25763 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25764 if test "x$ac_cv_func_unsetenv" = xyes; then :
25765 cat >>confdefs.h <<_ACEOF
25766 #define HAVE_UNSETENV 1
25772 if test $ac_cv_func_unsetenv = no; then
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25777 $as_echo_n "checking for unsetenv() return type... " >&6; }
25778 if ${gt_cv_func_unsetenv_ret+:} false; then :
25779 $as_echo_n "(cached) " >&6
25781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h. */
25785 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25786 #include <stdlib.h>
25791 int unsetenv (const char *name);
25801 if ac_fn_c_try_compile "$LINENO"; then :
25802 gt_cv_func_unsetenv_ret='int'
25804 gt_cv_func_unsetenv_ret='void'
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25809 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25810 if test $gt_cv_func_unsetenv_ret = 'void'; then
25812 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25818 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25819 if ${gl_cv_func_unsetenv_works+:} false; then :
25820 $as_echo_n "(cached) " >&6
25822 if test "$cross_compiling" = yes; then :
25824 # Guess yes on glibc systems.
25825 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25826 # If we don't know, assume the worst.
25827 *) gl_cv_func_unsetenv_works="guessing no" ;;
25831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h. */
25834 #include <stdlib.h>
25836 extern char **environ;
25842 char entry1[] = "a=1";
25843 char entry2[] = "b=2";
25844 char *env[] = { entry1, entry2, NULL };
25845 if (putenv ((char *) "a=1")) return 1;
25846 if (putenv (entry2)) return 2;
25849 if (getenv ("a")) return 3;
25850 if (!unsetenv ("") || errno != EINVAL) return 4;
25853 if (!getenv ("a")) return 5;
25856 if (getenv ("a")) return 6;
25862 if ac_fn_c_try_run "$LINENO"; then :
25863 gl_cv_func_unsetenv_works=yes
25865 gl_cv_func_unsetenv_works=no
25867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25868 conftest.$ac_objext conftest.beam conftest.$ac_ext
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25873 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25874 case "$gl_cv_func_unsetenv_works" in
25882 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25891 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25915 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25927 if test $ac_cv_func_vasnprintf = no; then
25944 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25954 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25964 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25974 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25976 if test $ac_cv_func_vasnprintf = yes; then
25978 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25992 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25993 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25997 $as_echo "#define ptrdiff_t long" >>confdefs.h
26011 for ac_func in vasprintf
26013 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
26014 if test "x$ac_cv_func_vasprintf" = xyes; then :
26015 cat >>confdefs.h <<_ACEOF
26016 #define HAVE_VASPRINTF 1
26022 if test $ac_cv_func_vasprintf = no; then
26032 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
26042 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
26045 if test $ac_cv_func_vasprintf = yes; then
26046 REPLACE_VASPRINTF=1
26071 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
26077 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
26081 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
26087 mingw*) HAVE_WAITPID=0 ;;
26090 if test $HAVE_WAITPID = 0; then
26099 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
26113 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
26135 if test $gl_cv_have_include_next = yes; then
26136 gl_cv_next_wchar_h='<'wchar.h'>'
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26139 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26140 if ${gl_cv_next_wchar_h+:} false; then :
26141 $as_echo_n "(cached) " >&6
26144 if test $ac_cv_header_wchar_h = yes; then
26149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150 /* end confdefs.h. */
26154 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26155 *) gl_absname_cpp="$ac_cpp" ;;
26160 gl_dirsep_regex='[/\\]'
26163 gl_dirsep_regex='\/'
26166 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26167 gl_header_literal_regex=`echo 'wchar.h' \
26168 | sed -e "$gl_make_literal_regex_sed"`
26169 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26170 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26176 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26177 sed -n "$gl_absolute_header_sed"`
26179 gl_header=$gl_cv_absolute_wchar_h
26180 gl_cv_next_wchar_h='"'$gl_header'"'
26182 gl_cv_next_wchar_h='<'wchar.h'>'
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26188 $as_echo "$gl_cv_next_wchar_h" >&6; }
26190 NEXT_WCHAR_H=$gl_cv_next_wchar_h
26192 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26194 gl_next_as_first_directive='<'wchar.h'>'
26196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26197 gl_next_as_first_directive=$gl_cv_next_wchar_h
26199 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26204 if test $ac_cv_header_wchar_h = yes; then
26214 if test $gt_cv_c_wint_t = yes; then
26222 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
26223 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26225 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26226 if eval \${$as_gl_Symbol+:} false; then :
26227 $as_echo_n "(cached) " >&6
26229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h. */
26232 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26234 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26235 included before <wchar.h>. */
26236 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26237 # include <stddef.h>
26238 # include <stdio.h>
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253 eval "$as_gl_Symbol=yes"
26255 eval "$as_gl_Symbol=no"
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 eval ac_res=\$$as_gl_Symbol
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26261 $as_echo "$ac_res" >&6; }
26262 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26263 cat >>confdefs.h <<_ACEOF
26264 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26267 eval ac_cv_have_decl_$gl_func=yes
26275 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26281 if test $REPLACE_WRITE = 1; then
26290 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
26305 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
26312 for ac_header in stdint.h
26314 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26315 if test "x$ac_cv_header_stdint_h" = xyes; then :
26316 cat >>confdefs.h <<_ACEOF
26317 #define HAVE_STDINT_H 1
26333 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
26335 # End of code from modules
26356 gl_source_base='tests'
26357 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
26359 gl_module_indicator_condition=$gltests_WITNESS
26370 for ac_header in fcntl.h
26372 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
26373 if test "x$ac_cv_header_fcntl_h" = xyes; then :
26374 cat >>confdefs.h <<_ACEOF
26375 #define HAVE_FCNTL_H 1
26382 for ac_func in clearenv
26384 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
26385 if test "x$ac_cv_func_clearenv" = xyes; then :
26386 cat >>confdefs.h <<_ACEOF
26387 #define HAVE_CLEARENV 1
26394 # Checks for structures and compiler characteristics.
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26397 if ${ac_cv_c_const+:} false; then :
26398 $as_echo_n "(cached) " >&6
26400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h. */
26407 #ifndef __cplusplus
26408 /* Ultrix mips cc rejects this sort of thing. */
26409 typedef int charset[2];
26410 const charset cs = { 0, 0 };
26411 /* SunOS 4.1.1 cc rejects this. */
26412 char const *const *pcpcc;
26414 /* NEC SVR4.0.2 mips cc rejects this. */
26415 struct point {int x, y;};
26416 static struct point const zero = {0,0};
26417 /* AIX XL C 1.02.0.0 rejects this.
26418 It does not let you subtract one const X* pointer from another in
26419 an arm of an if-expression whose if-part is not a constant
26421 const char *g = "string";
26422 pcpcc = &g + (g ? g-g : 0);
26423 /* HPUX 7.0 cc rejects these. */
26425 ppc = (char**) pcpcc;
26426 pcpcc = (char const *const *) ppc;
26427 { /* SCO 3.2v4 cc rejects this sort of thing. */
26430 char const *s = 0 ? (char *) 0 : (char const *) 0;
26435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26436 int x[] = {25, 17};
26437 const int *foo = &x[0];
26440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26441 typedef const int *iptr;
26445 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26447 struct s { int j; const int *ap[3]; } bx;
26448 struct s *b = &bx; b->j = 5;
26450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26451 const int foo = 10;
26452 if (!foo) return 0;
26454 return !cs[0] && !zero.x;
26461 if ac_fn_c_try_compile "$LINENO"; then :
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26469 $as_echo "$ac_cv_c_const" >&6; }
26470 if test $ac_cv_c_const = no; then
26472 $as_echo "#define const /**/" >>confdefs.h
26476 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26477 if test "x$ac_cv_type_pid_t" = xyes; then :
26481 cat >>confdefs.h <<_ACEOF
26487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26488 if test "x$ac_cv_type_size_t" = xyes; then :
26492 cat >>confdefs.h <<_ACEOF
26493 #define size_t unsigned int
26499 # We must have fork(2) support.
26500 for ac_header in vfork.h
26502 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
26503 if test "x$ac_cv_header_vfork_h" = xyes; then :
26504 cat >>confdefs.h <<_ACEOF
26505 #define HAVE_VFORK_H 1
26512 for ac_func in fork vfork
26514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26515 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26516 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26517 cat >>confdefs.h <<_ACEOF
26518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26524 if test "x$ac_cv_func_fork" = xyes; then
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
26526 $as_echo_n "checking for working fork... " >&6; }
26527 if ${ac_cv_func_fork_works+:} false; then :
26528 $as_echo_n "(cached) " >&6
26530 if test "$cross_compiling" = yes; then :
26531 ac_cv_func_fork_works=cross
26533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26534 /* end confdefs.h. */
26535 $ac_includes_default
26540 /* By Ruediger Kuhlmann. */
26541 return fork () < 0;
26547 if ac_fn_c_try_run "$LINENO"; then :
26548 ac_cv_func_fork_works=yes
26550 ac_cv_func_fork_works=no
26552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26553 conftest.$ac_objext conftest.beam conftest.$ac_ext
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
26558 $as_echo "$ac_cv_func_fork_works" >&6; }
26561 ac_cv_func_fork_works=$ac_cv_func_fork
26563 if test "x$ac_cv_func_fork_works" = xcross; then
26565 *-*-amigaos* | *-*-msdosdjgpp*)
26566 # Override, as these systems have only a dummy fork() stub
26567 ac_cv_func_fork_works=no
26570 ac_cv_func_fork_works=yes
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26574 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26576 ac_cv_func_vfork_works=$ac_cv_func_vfork
26577 if test "x$ac_cv_func_vfork" = xyes; then
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
26579 $as_echo_n "checking for working vfork... " >&6; }
26580 if ${ac_cv_func_vfork_works+:} false; then :
26581 $as_echo_n "(cached) " >&6
26583 if test "$cross_compiling" = yes; then :
26584 ac_cv_func_vfork_works=cross
26586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26587 /* end confdefs.h. */
26588 /* Thanks to Paul Eggert for this test. */
26589 $ac_includes_default
26590 #include <sys/wait.h>
26591 #ifdef HAVE_VFORK_H
26592 # include <vfork.h>
26594 /* On some sparc systems, changes by the child to local and incoming
26595 argument registers are propagated back to the parent. The compiler
26596 is told about this with #include <vfork.h>, but some compilers
26597 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26598 static variable whose address is put into a register that is
26599 clobbered by the vfork. */
26602 sparc_address_test (int arg)
26604 sparc_address_test (arg) int arg;
26607 static pid_t child;
26625 pid_t parent = getpid ();
26628 sparc_address_test (0);
26633 /* Here is another test for sparc vfork register problems. This
26634 test uses lots of local variables, at least as many local
26635 variables as main has allocated so far including compiler
26636 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26637 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26638 reuse the register of parent for one of the local variables,
26639 since it will think that parent can't possibly be used any more
26640 in this routine. Assigning to the local variable will thus
26641 munge parent in the parent process. */
26643 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26644 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26645 /* Convince the compiler that p..p7 are live; otherwise, it might
26646 use the same hardware register for all 8 local variables. */
26647 if (p != p1 || p != p2 || p != p3 || p != p4
26648 || p != p5 || p != p6 || p != p7)
26651 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26652 from child file descriptors. If the child closes a descriptor
26653 before it execs or exits, this munges the parent's descriptor
26654 as well. Test for this by closing stdout in the child. */
26655 _exit(close(fileno(stdout)) != 0);
26660 while (wait(&status) != child)
26663 /* Was there some problem with vforking? */
26666 /* Did the child fail? (This shouldn't happen.) */
26669 /* Did the vfork/compiler bug occur? */
26670 || parent != getpid()
26672 /* Did the file descriptor bug occur? */
26673 || fstat(fileno(stdout), &st) != 0
26678 if ac_fn_c_try_run "$LINENO"; then :
26679 ac_cv_func_vfork_works=yes
26681 ac_cv_func_vfork_works=no
26683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26684 conftest.$ac_objext conftest.beam conftest.$ac_ext
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
26689 $as_echo "$ac_cv_func_vfork_works" >&6; }
26692 if test "x$ac_cv_func_fork_works" = xcross; then
26693 ac_cv_func_vfork_works=$ac_cv_func_vfork
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26695 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26698 if test "x$ac_cv_func_vfork_works" = xyes; then
26700 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
26704 $as_echo "#define vfork fork" >>confdefs.h
26707 if test "x$ac_cv_func_fork_works" = xyes; then
26709 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
26713 if test "x$ac_cv_func_fork_works" != xyes; then
26714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26716 as_fn_error $? "cannot use libpipeline on systems without fork
26717 See \`config.log' for more details" "$LINENO" 5; }
26720 # Check for socketpair(2) as fast replacement for pipe(2).
26721 # Check whether --enable-socketpair-pipe was given.
26722 if test "${enable_socketpair_pipe+set}" = set; then :
26723 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
26726 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
26727 if ${pipeline_cv_socketpair_pipe+:} false; then :
26728 $as_echo_n "(cached) " >&6
26731 if test "$cross_compiling" = yes; then :
26732 pipeline_cv_socketpair_pipe=no
26734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26735 /* end confdefs.h. */
26738 #include <netinet/in.h>
26739 #include <signal.h>
26740 #include <sys/socket.h>
26741 #include <sys/types.h>
26742 #include <sys/wait.h>
26743 #include <unistd.h>
26751 static void sigpipe(int sig)
26758 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
26762 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26764 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26766 if ((pid = fork()) < 0)
26771 if (read(sfd[0],buf,sizeof(buf)) < 0)
26775 write(sfd[1],test,sizeof(test) - 1);
26779 signal(SIGPIPE, sigpipe);
26780 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26782 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26785 write(sfd[1],test,sizeof(test) - 1);
26789 if ac_fn_c_try_run "$LINENO"; then :
26790 pipeline_cv_socketpair_pipe=yes
26792 pipeline_cv_socketpair_pipe=no
26794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26795 conftest.$ac_objext conftest.beam conftest.$ac_ext
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
26802 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
26803 if test "$pipeline_cv_socketpair_pipe" = yes; then
26805 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
26809 if test "$pipeline_cv_socketpair_pipe" = yes; then
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
26811 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
26812 if ${pipeline_cv_socketpair_mode+:} false; then :
26813 $as_echo_n "(cached) " >&6
26816 if test "$cross_compiling" = yes; then :
26817 pipeline_cv_socketpair_mode=no
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h. */
26823 #include <netinet/in.h>
26824 #include <sys/stat.h>
26825 #include <sys/socket.h>
26826 #include <sys/types.h>
26827 #include <unistd.h>
26839 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26841 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26843 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26845 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
26847 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
26849 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26851 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
26856 if ac_fn_c_try_run "$LINENO"; then :
26857 pipeline_cv_socketpair_mode=yes
26859 pipeline_cv_socketpair_mode=no
26861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26862 conftest.$ac_objext conftest.beam conftest.$ac_ext
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
26869 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
26870 if test "$pipeline_cv_socketpair_mode" = yes; then
26872 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
26883 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
26885 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
26887 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
26889 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
26891 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
26893 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
26895 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
26897 cat >confcache <<\_ACEOF
26898 # This file is a shell script that caches the results of configure
26899 # tests run on this system so they can be shared between configure
26900 # scripts and configure runs, see configure's option --config-cache.
26901 # It is not useful on other systems. If it contains results you don't
26902 # want to keep, you may remove or edit it.
26904 # config.status only pays attention to the cache file if you give it
26905 # the --recheck option to rerun configure.
26907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26909 # following values.
26913 # The following way of writing the cache mishandles newlines in values,
26914 # but we know of no workaround that is simple, portable, and efficient.
26915 # So, we kill variables containing newlines.
26916 # Ultrix sh set writes to stderr and can't be redirected directly,
26917 # and sets the high bit in the cache file unless we assign to the vars.
26919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26920 eval ac_val=\$$ac_var
26924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26928 _ | IFS | as_nl) ;; #(
26929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26930 *) { eval $ac_var=; unset $ac_var;} ;;
26936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26937 *${as_nl}ac_space=\ *)
26938 # `set' does not quote correctly, so add quotes: double-quote
26939 # substitution turns \\\\ into \\, and sed turns \\ into \.
26942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26945 # `set' quotes correctly as required by POSIX, so do not add quotes.
26946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26960 if test -w "$cache_file"; then
26961 if test "x$cache_file" != "x/dev/null"; then
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26963 $as_echo "$as_me: updating cache $cache_file" >&6;}
26964 if test ! -f "$cache_file" || test -h "$cache_file"; then
26965 cat confcache >"$cache_file"
26967 case $cache_file in #(
26969 mv -f confcache "$cache_file"$$ &&
26970 mv -f "$cache_file"$$ "$cache_file" ;; #(
26972 mv -f confcache "$cache_file" ;;
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26978 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26984 # Let make expand exec_prefix.
26985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26987 DEFS=-DHAVE_CONFIG_H
26992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26993 # 1. Remove the extension, and $U if already installed.
26994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26997 # will be set to the directory where LIBOBJS objects are built.
26998 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26999 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27001 LIBOBJS=$ac_libobjs
27003 LTLIBOBJS=$ac_ltlibobjs
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27007 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27008 if test -n "$am_sleep_pid"; then
27009 # Hide warnings about reused PIDs.
27010 wait $am_sleep_pid 2>/dev/null
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27013 $as_echo "done" >&6; }
27014 if test -n "$EXEEXT"; then
27016 am__EXEEXT_FALSE='#'
27018 am__EXEEXT_TRUE='#'
27022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27023 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27027 as_fn_error $? "conditional \"AMDEP\" was never defined.
27028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27035 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27038 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
27039 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
27040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27042 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27043 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27046 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27047 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27050 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27051 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27054 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27055 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27058 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27059 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
27060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27062 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27063 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27066 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27067 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27070 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27071 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27078 if test -n "$gl_LIBOBJS"; then
27079 # Remove the extension.
27080 sed_drop_objext='s/\.o$//;s/\.obj$//'
27081 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27082 gl_libobjs="$gl_libobjs $i.$ac_objext"
27083 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27086 gl_LIBOBJS=$gl_libobjs
27088 gl_LTLIBOBJS=$gl_ltlibobjs
27094 if test -n "$gltests_LIBOBJS"; then
27095 # Remove the extension.
27096 sed_drop_objext='s/\.o$//;s/\.obj$//'
27097 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27098 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27099 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27102 gltests_LIBOBJS=$gltests_libobjs
27104 gltests_LTLIBOBJS=$gltests_ltlibobjs
27108 : "${CONFIG_STATUS=./config.status}"
27110 ac_clean_files_save=$ac_clean_files
27111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27117 # Generated by $as_me.
27118 # Run this file to recreate the current configuration.
27119 # Compiler output produced by configure, useful for debugging
27120 # configure, is in config.log if it exists.
27123 ac_cs_recheck=false
27126 SHELL=\${CONFIG_SHELL-$SHELL}
27129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27130 ## -------------------- ##
27131 ## M4sh Initialization. ##
27132 ## -------------------- ##
27134 # Be more Bourne compatible
27135 DUALCASE=1; export DUALCASE # for MKS sh
27136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27140 # is contrary to our usage. Disable this feature.
27141 alias -g '${1+"$@"}'='"$@"'
27142 setopt NO_GLOB_SUBST
27144 case `(set -o) 2>/dev/null` in #(
27156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27160 # Prefer a ksh shell builtin over an external printf program on Solaris,
27161 # but without wasting forks for bash or zsh.
27162 if test -z "$BASH_VERSION$ZSH_VERSION" \
27163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27164 as_echo='print -r --'
27165 as_echo_n='print -rn --'
27166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27167 as_echo='printf %s\n'
27168 as_echo_n='printf %s'
27170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27172 as_echo_n='/usr/ucb/echo -n'
27174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27175 as_echo_n_body='eval
27179 expr "X$arg" : "X\\(.*\\)$as_nl";
27180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27184 export as_echo_n_body
27185 as_echo_n='sh -c $as_echo_n_body as_echo'
27187 export as_echo_body
27188 as_echo='sh -c $as_echo_body as_echo'
27191 # The user is always right.
27192 if test "${PATH_SEPARATOR+set}" != set; then
27194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27202 # We need space, tab and new line, in precisely that order. Quoting is
27203 # there to prevent editors from complaining about space-tab.
27204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27205 # splitting by setting IFS to empty value.)
27208 # Find who we are. Look in the path if we contain no directory separator.
27211 *[\\/]* ) as_myself=$0 ;;
27212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27213 for as_dir in $PATH
27216 test -z "$as_dir" && as_dir=.
27217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27223 # We did not find ourselves, most probably we were run as `sh COMMAND'
27224 # in which case we are not to be found in the path.
27225 if test "x$as_myself" = x; then
27228 if test ! -f "$as_myself"; then
27229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27233 # Unset variables that we do not need and which cause bugs (e.g. in
27234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27235 # suppresses any "Segmentation fault" message there. '((' could
27236 # trigger a bug in pdksh 5.2.14.
27237 for as_var in BASH_ENV ENV MAIL MAILPATH
27238 do eval test x\${$as_var+set} = xset \
27239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27256 # ----------------------------------------
27257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27259 # script with STATUS, using 1 if that was 0.
27262 as_status=$1; test $as_status -eq 0 && as_status=1
27264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27267 $as_echo "$as_me: error: $2" >&2
27268 as_fn_exit $as_status
27272 # as_fn_set_status STATUS
27273 # -----------------------
27274 # Set $? to STATUS, without forking.
27275 as_fn_set_status ()
27278 } # as_fn_set_status
27280 # as_fn_exit STATUS
27281 # -----------------
27282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27286 as_fn_set_status $1
27292 # Portably unset VAR.
27295 { eval $1=; unset $1;}
27297 as_unset=as_fn_unset
27298 # as_fn_append VAR VALUE
27299 # ----------------------
27300 # Append the text in VALUE to the end of the definition contained in VAR. Take
27301 # advantage of any shell optimizations that allow amortized linear growth over
27302 # repeated appends, instead of the typical quadratic growth present in naive
27304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27305 eval 'as_fn_append ()
27316 # as_fn_arith ARG...
27317 # ------------------
27318 # Perform arithmetic evaluation on the ARGs, and store the result in the
27319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27320 # must be portable across $(()) and expr.
27321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27322 eval 'as_fn_arith ()
27329 as_val=`expr "$@" || test $? -eq 1`
27334 if expr a : '\(a\)' >/dev/null 2>&1 &&
27335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27342 as_basename=basename
27347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27353 as_me=`$as_basename -- "$0" ||
27354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27355 X"$0" : 'X\(//\)$' \| \
27356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27358 sed '/^.*\/\([^/][^/]*\)\/*$/{
27372 # Avoid depending upon Character Ranges.
27373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27376 as_cr_digits='0123456789'
27377 as_cr_alnum=$as_cr_Letters$as_cr_digits
27379 ECHO_C= ECHO_N= ECHO_T=
27380 case `echo -n x` in #(((((
27382 case `echo 'xy\c'` in
27383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27392 rm -f conf$$ conf$$.exe conf$$.file
27393 if test -d conf$$.dir; then
27394 rm -f conf$$.dir/conf$$.file
27397 mkdir conf$$.dir 2>/dev/null
27399 if (echo >conf$$.file) 2>/dev/null; then
27400 if ln -s conf$$.file conf$$ 2>/dev/null; then
27402 # ... but there are two gotchas:
27403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27405 # In both cases, we have to default to `cp -pR'.
27406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27408 elif ln conf$$.file conf$$ 2>/dev/null; then
27416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27417 rmdir conf$$.dir 2>/dev/null
27422 # Create "$as_dir" as a directory, including parents if necessary.
27427 -*) as_dir=./$as_dir;;
27429 test -d "$as_dir" || eval $as_mkdir_p || {
27433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27434 *) as_qdir=$as_dir;;
27436 as_dirs="'$as_qdir' $as_dirs"
27437 as_dir=`$as_dirname -- "$as_dir" ||
27438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27439 X"$as_dir" : 'X\(//\)[^/]' \| \
27440 X"$as_dir" : 'X\(//\)$' \| \
27441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27442 $as_echo X"$as_dir" |
27443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27447 /^X\(\/\/\)[^/].*/{
27460 test -d "$as_dir" && break
27462 test -z "$as_dirs" || eval "mkdir $as_dirs"
27463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27467 if mkdir -p . 2>/dev/null; then
27468 as_mkdir_p='mkdir -p "$as_dir"'
27470 test -d ./-p && rmdir ./-p
27475 # as_fn_executable_p FILE
27476 # -----------------------
27477 # Test if FILE is an executable regular file.
27478 as_fn_executable_p ()
27480 test -f "$1" && test -x "$1"
27481 } # as_fn_executable_p
27482 as_test_x='test -x'
27483 as_executable_p=as_fn_executable_p
27485 # Sed expression to map a string onto a valid CPP name.
27486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27488 # Sed expression to map a string onto a valid variable name.
27489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27493 ## ----------------------------------- ##
27494 ## Main body of $CONFIG_STATUS script. ##
27495 ## ----------------------------------- ##
27497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27500 # Save the log message, to keep $0 and so on meaningful, and to
27501 # report actual input values of CONFIG_FILES etc. instead of their
27502 # values after options handling.
27504 This file was extended by libpipeline $as_me 1.5.0, which was
27505 generated by GNU Autoconf 2.69. Invocation command line was
27507 CONFIG_FILES = $CONFIG_FILES
27508 CONFIG_HEADERS = $CONFIG_HEADERS
27509 CONFIG_LINKS = $CONFIG_LINKS
27510 CONFIG_COMMANDS = $CONFIG_COMMANDS
27513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27518 case $ac_config_files in *"
27519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27522 case $ac_config_headers in *"
27523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27528 # Files that config.status was made for.
27529 config_files="$ac_config_files"
27530 config_headers="$ac_config_headers"
27531 config_commands="$ac_config_commands"
27535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27537 \`$as_me' instantiates files and other configuration actions
27538 from templates according to the current configuration. Unless the files
27539 and actions are specified as TAGs, all are instantiated by default.
27541 Usage: $0 [OPTION]... [TAG]...
27543 -h, --help print this help, then exit
27544 -V, --version print version number and configuration settings, then exit
27545 --config print configuration, then exit
27546 -q, --quiet, --silent
27547 do not print progress messages
27548 -d, --debug don't remove temporary files
27549 --recheck update $as_me by reconfiguring in the same conditions
27550 --file=FILE[:TEMPLATE]
27551 instantiate the configuration file FILE
27552 --header=FILE[:TEMPLATE]
27553 instantiate the configuration header FILE
27555 Configuration files:
27558 Configuration headers:
27561 Configuration commands:
27564 Report bugs to <cjwatson@debian.org>."
27567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27568 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27570 libpipeline config.status 1.5.0
27571 configured by $0, generated by GNU Autoconf 2.69,
27572 with options \\"\$ac_cs_config\\"
27574 Copyright (C) 2012 Free Software Foundation, Inc.
27575 This config.status script is free software; the Free Software Foundation
27576 gives unlimited permission to copy, distribute and modify it."
27583 test -n "\$AWK" || AWK=awk
27586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27587 # The default lists apply if the user does not specify any file.
27593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27610 # Handling of the options.
27611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27613 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27614 $as_echo "$ac_cs_version"; exit ;;
27615 --config | --confi | --conf | --con | --co | --c )
27616 $as_echo "$ac_cs_config"; exit ;;
27617 --debug | --debu | --deb | --de | --d | -d )
27619 --file | --fil | --fi | --f )
27622 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27623 '') as_fn_error $? "missing file argument" ;;
27625 as_fn_append CONFIG_FILES " '$ac_optarg'"
27626 ac_need_defaults=false;;
27627 --header | --heade | --head | --hea )
27630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27632 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27633 ac_need_defaults=false;;
27635 # Conflict between --help and --header
27636 as_fn_error $? "ambiguous option: \`$1'
27637 Try \`$0 --help' for more information.";;
27638 --help | --hel | -h )
27639 $as_echo "$ac_cs_usage"; exit ;;
27640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27641 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27644 # This is an error.
27645 -*) as_fn_error $? "unrecognized option: \`$1'
27646 Try \`$0 --help' for more information." ;;
27648 *) as_fn_append ac_config_targets " $1"
27649 ac_need_defaults=false ;;
27655 ac_configure_extra_args=
27657 if $ac_cs_silent; then
27659 ac_configure_extra_args="$ac_configure_extra_args --silent"
27663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27664 if \$ac_cs_recheck; then
27665 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27667 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27668 CONFIG_SHELL='$SHELL'
27669 export CONFIG_SHELL
27674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27679 ## Running $as_me. ##
27685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27689 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27692 # The HP-UX ksh and POSIX shell print the target directory to stdout
27693 # if CDPATH is set.
27694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27696 sed_quote_subst='$sed_quote_subst'
27697 double_quote_subst='$double_quote_subst'
27698 delay_variable_subst='$delay_variable_subst'
27699 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27700 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27702 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27703 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27704 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27705 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27706 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27707 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27708 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27709 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27710 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27711 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27712 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27713 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27714 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27715 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27716 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27717 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27718 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27719 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27720 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27721 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27722 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27723 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27724 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27725 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27726 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27727 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27728 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27729 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27730 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27731 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27732 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27733 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27734 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27735 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27736 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27737 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27738 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27739 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27740 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27741 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27742 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27743 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27744 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27745 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27746 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27747 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27748 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27749 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27750 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27751 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27752 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27753 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27754 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27755 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27756 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27757 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"`'
27758 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27759 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27760 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27761 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27762 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27763 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27764 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27765 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27766 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27767 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27768 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27769 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27770 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27771 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27772 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27773 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27774 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27775 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27776 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27777 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27778 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27779 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27780 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27781 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27782 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27783 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27784 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27785 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27786 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27787 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27788 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27789 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27790 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27791 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27792 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27793 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27794 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27795 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27796 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27797 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27798 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27799 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27800 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27801 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27802 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27803 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27804 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27805 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27806 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27807 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27808 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27809 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27810 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27811 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27812 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27813 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27814 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27815 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27816 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27817 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27818 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27819 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27820 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27821 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27822 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27823 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27824 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27825 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27826 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27827 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27828 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27829 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27830 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27831 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27832 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27833 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27836 LTCFLAGS='$LTCFLAGS'
27837 compiler='$compiler_DEFAULT'
27839 # A function that is used when there is no print builtin or printf.
27840 func_fallback_echo ()
27842 eval 'cat <<_LTECHO_EOF
27847 # Quote evaled strings.
27862 deplibs_check_method \
27867 sharedlib_from_linklib_cmd \
27870 archiver_list_spec \
27876 lt_cv_sys_global_symbol_pipe \
27877 lt_cv_sys_global_symbol_to_cdecl \
27878 lt_cv_sys_global_symbol_to_import \
27879 lt_cv_sys_global_symbol_to_c_name_address \
27880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27881 lt_cv_nm_interface \
27882 nm_file_list_spec \
27883 lt_cv_truncate_bin \
27884 lt_prog_compiler_no_builtin_flag \
27885 lt_prog_compiler_pic \
27886 lt_prog_compiler_wl \
27887 lt_prog_compiler_static \
27888 lt_cv_prog_compiler_c_o \
27897 export_dynamic_flag_spec \
27898 whole_archive_flag_spec \
27899 compiler_needs_object \
27901 allow_undefined_flag \
27902 no_undefined_flag \
27903 hardcode_libdir_flag_spec \
27904 hardcode_libdir_separator \
27908 variables_saved_for_relink \
27910 library_names_spec \
27912 install_override_mode \
27916 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27917 *[\\\\\\\`\\"\\\$]*)
27918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27926 # Double-quote double-evaled strings.
27927 for var in reload_cmds \
27928 old_postinstall_cmds \
27929 old_postuninstall_cmds \
27931 extract_expsyms_cmds \
27932 old_archive_from_new_cmds \
27933 old_archive_from_expsyms_cmds \
27935 archive_expsym_cmds \
27937 module_expsym_cmds \
27938 export_symbols_cmds \
27942 postuninstall_cmds \
27944 sys_lib_search_path_spec \
27945 configure_time_dlsearch_path \
27946 configure_time_lt_sys_library_path; do
27947 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27948 *[\\\\\\\`\\"\\\$]*)
27949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27957 ac_aux_dir='$ac_aux_dir'
27959 # See if we are running on zsh, and set the options that allow our
27960 # commands through without removal of \ escapes INIT.
27961 if test -n "\${ZSH_VERSION+set}"; then
27962 setopt NO_GLOB_SUBST
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27978 # Handling of arguments.
27979 for ac_config_target in $ac_config_targets
27981 case $ac_config_target in
27982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27983 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27985 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27986 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
27987 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27988 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
27989 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27990 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27992 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27997 # If the user did not use the arguments to specify the items to instantiate,
27998 # then the envvar interface is used. Set only those that are not.
27999 # We use the long form for the default assignment because of an extremely
28000 # bizarre bug on SunOS 4.1.3.
28001 if $ac_need_defaults; then
28002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28007 # Have a temporary directory for convenience. Make it in the build tree
28008 # simply because there is no reason against having it here, and in addition,
28009 # creating and moving files from /tmp can sometimes cause problems.
28010 # Hook for its removal unless debugging.
28011 # Note that there is a small window in which the directory will not be cleaned:
28012 # after its creation but before its name has been assigned to `$tmp'.
28016 trap 'exit_status=$?
28017 : "${ac_tmp:=$tmp}"
28018 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28020 trap 'as_fn_exit 1' 1 2 13 15
28022 # Create a (secure) tmp directory for tmp files.
28025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28029 tmp=./conf$$-$RANDOM
28030 (umask 077 && mkdir "$tmp")
28031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28034 # Set up the scripts for CONFIG_FILES section.
28035 # No need to generate them if there are no CONFIG_FILES.
28036 # This happens for instance with `./config.status config.h'.
28037 if test -n "$CONFIG_FILES"; then
28040 ac_cr=`echo X | tr X '\015'`
28041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28042 # But we know of no other shell where ac_cr would be empty at this
28043 # point, so we can use a bashism as a fallback.
28044 if test "x$ac_cr" = x; then
28045 eval ac_cr=\$\'\\r\'
28047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28051 ac_cs_awk_cr=$ac_cr
28054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28059 echo "cat >conf$$subs.awk <<_ACEOF" &&
28060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28062 } >conf$$subs.sh ||
28063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28066 for ac_last_try in false false false false false :; do
28067 . ./conf$$subs.sh ||
28068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28071 if test $ac_delim_n = $ac_delim_num; then
28073 elif $ac_last_try; then
28074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28079 rm -f conf$$subs.sh
28081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28086 s/^/S["/; s/!.*/"]=/
28096 s/\(.\{148\}\)..*/\1/
28098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28110 s/\(.\{148\}\)..*/\1/
28112 s/["\\]/\\&/g; s/^/"/; s/$/"/
28116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28121 ' <conf$$subs.awk | sed '
28126 ' >>$CONFIG_STATUS || ac_write_fail=1
28127 rm -f conf$$subs.awk
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28131 for (key in S) S_is_set[key] = 1
28137 nfields = split(line, field, "@")
28139 len = length(field[1])
28140 for (i = 2; i < nfields; i++) {
28142 keylen = length(key)
28143 if (S_is_set[key]) {
28145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28146 len += length(value) + length(field[++i])
28157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28168 # trailing colons and then remove the whole line if VPATH becomes empty
28169 # (actually we leave an empty line to preserve line numbers).
28170 if test "x$srcdir" = x.; then
28171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28190 fi # test -n "$CONFIG_FILES"
28192 # Set up the scripts for CONFIG_HEADERS section.
28193 # No need to generate them if there are no CONFIG_HEADERS.
28194 # This happens for instance with `./config.status Makefile'.
28195 if test -n "$CONFIG_HEADERS"; then
28196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28200 # Transform confdefs.h into an awk script `defines.awk', embedded as
28201 # here-document in config.status, that substitutes the proper values into
28202 # config.h.in to produce config.h.
28204 # Create a delimiter string that does not exist in confdefs.h, to ease
28205 # handling of long lines.
28207 for ac_last_try in false false :; do
28208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28209 if test -z "$ac_tt"; then
28211 elif $ac_last_try; then
28212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28218 # For the awk script, D is an array of macro values keyed by name,
28219 # likewise P contains macro parameters if any. Preserve backslash
28220 # newline sequences.
28222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28224 s/.\{148\}/&'"$ac_delim"'/g
28227 s/^[ ]*#[ ]*define[ ][ ]*/ /
28234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28241 D["\1"]=" \3\\\\\\n"\\/p
28243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28248 s/.\{148\}/&'"$ac_delim"'/g
28253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28258 ' <confdefs.h | sed '
28259 s/'"$ac_delim"'/"\\\
28260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28263 for (key in D) D_is_set[key] = 1
28266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28268 split(line, arg, " ")
28269 if (arg[1] == "#") {
28273 defundef = substr(arg[1], 2)
28276 split(mac1, mac2, "(") #)
28278 prefix = substr(line, 1, index(line, defundef) - 1)
28279 if (D_is_set[macro]) {
28280 # Preserve the white space surrounding the "#".
28281 print prefix "define", macro P[macro] D[macro]
28284 # Replace #undef with comments. This is necessary, for example,
28285 # in the case of _POSIX_SOURCE, which is predefined and required
28286 # on some systems where configure will not decide to define it.
28287 if (defundef == "undef") {
28288 print "/*", prefix defundef, macro, "*/"
28296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28298 fi # test -n "$CONFIG_HEADERS"
28301 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28306 :[FHLC]) ac_mode=$ac_tag; continue;;
28308 case $ac_mode$ac_tag in
28310 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28311 :[FH]-) ac_tag=-:-;;
28312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28329 -) ac_f="$ac_tmp/stdin";;
28330 *) # Look for the file first in the build tree, then in the source tree
28331 # (if the path is not absolute). The absolute path cannot be DOS-style,
28332 # because $ac_f cannot contain `:'.
28336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28338 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28340 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28341 as_fn_append ac_file_inputs " '$ac_f'"
28344 # Let's still pretend it is `configure' which instantiates (i.e., don't
28345 # use $as_me), people would be surprised to read:
28346 # /* config.h. Generated by config.status. */
28347 configure_input='Generated from '`
28348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28350 if test x"$ac_file" != x-; then
28351 configure_input="$ac_file. $configure_input"
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28353 $as_echo "$as_me: creating $ac_file" >&6;}
28355 # Neutralize special characters interpreted by sed in replacement strings.
28356 case $configure_input in #(
28357 *\&* | *\|* | *\\* )
28358 ac_sed_conf_input=`$as_echo "$configure_input" |
28359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28360 *) ac_sed_conf_input=$configure_input;;
28364 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28370 ac_dir=`$as_dirname -- "$ac_file" ||
28371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28372 X"$ac_file" : 'X\(//\)[^/]' \| \
28373 X"$ac_file" : 'X\(//\)$' \| \
28374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28375 $as_echo X"$ac_file" |
28376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28380 /^X\(\/\/\)[^/].*/{
28393 as_dir="$ac_dir"; as_fn_mkdir_p
28397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28400 # A ".." for each directory in $ac_dir_suffix.
28401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28402 case $ac_top_builddir_sub in
28403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28407 ac_abs_top_builddir=$ac_pwd
28408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28409 # for backward compatibility:
28410 ac_top_builddir=$ac_top_build_prefix
28413 .) # We are building in place.
28415 ac_top_srcdir=$ac_top_builddir_sub
28416 ac_abs_top_srcdir=$ac_pwd ;;
28417 [\\/]* | ?:[\\/]* ) # Absolute name.
28418 ac_srcdir=$srcdir$ac_dir_suffix;
28419 ac_top_srcdir=$srcdir
28420 ac_abs_top_srcdir=$srcdir ;;
28421 *) # Relative name.
28422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28423 ac_top_srcdir=$ac_top_build_prefix$srcdir
28424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28439 ac_MKDIR_P=$MKDIR_P
28441 [\\/$]* | ?:[\\/]* ) ;;
28442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28447 # If the template does not know about datarootdir, expand it.
28448 # FIXME: This hack should be removed a few years after 2.60.
28449 ac_datarootdir_hack=; ac_datarootdir_seen=
28460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28461 *datarootdir*) ac_datarootdir_seen=yes;;
28462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28467 ac_datarootdir_hack='
28468 s&@datadir@&$datadir&g
28469 s&@docdir@&$docdir&g
28470 s&@infodir@&$infodir&g
28471 s&@localedir@&$localedir&g
28472 s&@mandir@&$mandir&g
28473 s&\\\${datarootdir}&$datarootdir&g' ;;
28477 # Neutralize VPATH when `$srcdir' = `.'.
28478 # Shell code in configure.ac might set extrasub.
28479 # FIXME: do we really want to maintain this feature?
28480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28481 ac_sed_extra="$ac_vpsub
28484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28487 s|@configure_input@|$ac_sed_conf_input|;t t
28488 s&@top_builddir@&$ac_top_builddir_sub&;t t
28489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28490 s&@srcdir@&$ac_srcdir&;t t
28491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28492 s&@top_srcdir@&$ac_top_srcdir&;t t
28493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28494 s&@builddir@&$ac_builddir&;t t
28495 s&@abs_builddir@&$ac_abs_builddir&;t t
28496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28497 s&@INSTALL@&$ac_INSTALL&;t t
28498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28499 $ac_datarootdir_hack
28501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28507 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28509 which seems to be undefined. Please make sure it is defined" >&5
28510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28511 which seems to be undefined. Please make sure it is defined" >&2;}
28513 rm -f "$ac_tmp/stdin"
28515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28524 if test x"$ac_file" != x-; then
28526 $as_echo "/* $configure_input */" \
28527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28528 } >"$ac_tmp/config.h" \
28529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28535 mv "$ac_tmp/config.h" "$ac_file" \
28536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28539 $as_echo "/* $configure_input */" \
28540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28541 || as_fn_error $? "could not create -" "$LINENO" 5
28543 # Compute "$ac_file"'s index in $config_headers.
28546 for _am_header in $config_headers :; do
28547 case $_am_header in
28548 $_am_arg | $_am_arg:* )
28551 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28556 X"$_am_arg" : 'X\(//\)[^/]' \| \
28557 X"$_am_arg" : 'X\(//\)$' \| \
28558 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28559 $as_echo X"$_am_arg" |
28560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28564 /^X\(\/\/\)[^/].*/{
28576 s/.*/./; q'`/stamp-h$_am_stamp_count
28579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28580 $as_echo "$as_me: executing $ac_file commands" >&6;}
28585 case $ac_file$ac_mode in
28586 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28587 # Older Autoconf quotes --file arguments for eval, but not when files
28588 # are listed without --file. Let's play safe and only enable the eval
28589 # if we detect the quoting.
28590 case $CONFIG_FILES in
28591 *\'*) eval set x "$CONFIG_FILES" ;;
28592 *) set x $CONFIG_FILES ;;
28597 # Strip MF so we end up with the name of the file.
28598 mf=`echo "$mf" | sed -e 's/:.*$//'`
28599 # Check whether this is an Automake generated Makefile or not.
28600 # We used to match only the files named 'Makefile.in', but
28601 # some people rename them; so instead we look at the file content.
28602 # Grep'ing the first line is not enough: some people post-process
28603 # each Makefile.in and add a new line on top of each file to say so.
28604 # Grep'ing the whole file is not good either: AIX grep has a line
28605 # limit of 2048, but all sed's we know have understand at least 4000.
28606 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28607 dirpart=`$as_dirname -- "$mf" ||
28608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28609 X"$mf" : 'X\(//\)[^/]' \| \
28610 X"$mf" : 'X\(//\)$' \| \
28611 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28617 /^X\(\/\/\)[^/].*/{
28633 # Extract the definition of DEPDIR, am__include, and am__quote
28634 # from the Makefile without running 'make'.
28635 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28636 test -z "$DEPDIR" && continue
28637 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28638 test -z "$am__include" && continue
28639 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28640 # Find all dependency output files, they are included files with
28641 # $(DEPDIR) in their names. We invoke sed twice because it is the
28642 # simplest approach to changing $(DEPDIR) to its actual value in the
28644 for file in `sed -n "
28645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28647 # Make sure the directory exists.
28648 test -f "$dirpart/$file" && continue
28649 fdir=`$as_dirname -- "$file" ||
28650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28651 X"$file" : 'X\(//\)[^/]' \| \
28652 X"$file" : 'X\(//\)$' \| \
28653 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28654 $as_echo X"$file" |
28655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28659 /^X\(\/\/\)[^/].*/{
28672 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28673 # echo "creating $dirpart/$file"
28674 echo '# dummy' > "$dirpart/$file"
28681 # See if we are running on zsh, and set the options that allow our
28682 # commands through without removal of \ escapes.
28683 if test -n "${ZSH_VERSION+set}"; then
28684 setopt NO_GLOB_SUBST
28688 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28691 cat <<_LT_EOF >> "$cfgfile"
28693 # Generated automatically by $as_me ($PACKAGE) $VERSION
28694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28696 # Provide generalized library-building support services.
28697 # Written by Gordon Matzigkeit, 1996
28699 # Copyright (C) 2014 Free Software Foundation, Inc.
28700 # This is free software; see the source for copying conditions. There is NO
28701 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28703 # GNU Libtool is free software; you can redistribute it and/or modify
28704 # it under the terms of the GNU General Public License as published by
28705 # the Free Software Foundation; either version 2 of of the License, or
28706 # (at your option) any later version.
28708 # As a special exception to the GNU General Public License, if you
28709 # distribute this file as part of a program or library that is built
28710 # using GNU Libtool, you may include this file under the same
28711 # distribution terms that you use for the rest of that program.
28713 # GNU Libtool is distributed in the hope that it will be useful, but
28714 # WITHOUT ANY WARRANTY; without even the implied warranty of
28715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28716 # GNU General Public License for more details.
28718 # You should have received a copy of the GNU General Public License
28719 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28722 # The names of the tagged configurations supported by this script.
28725 # Configured defaults for sys_lib_dlsearch_path munging.
28726 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28728 # ### BEGIN LIBTOOL CONFIG
28730 # Which release of libtool.m4 was used?
28731 macro_version=$macro_version
28732 macro_revision=$macro_revision
28734 # Whether or not to build static libraries.
28735 build_old_libs=$enable_static
28737 # Whether or not to build shared libraries.
28738 build_libtool_libs=$enable_shared
28740 # What type of objects to build.
28743 # Whether or not to optimize for fast installation.
28744 fast_install=$enable_fast_install
28746 # Shared archive member basename,for filename based shared library versioning on AIX.
28747 shared_archive_member_spec=$shared_archive_member_spec
28749 # Shell to use when invoking shell scripts.
28752 # An echo program that protects backslashes.
28755 # The PATH separator for the build system.
28756 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28759 host_alias=$host_alias
28763 # The build system.
28764 build_alias=$build_alias
28768 # A sed program that does not truncate output.
28771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28772 Xsed="\$SED -e 1s/^X//"
28774 # A grep program that handles long lines.
28780 # A literal string matcher.
28783 # A BSD- or MS-compatible name lister.
28786 # Whether we need soft or hard links.
28789 # What is the maximum length of a command?
28790 max_cmd_len=$max_cmd_len
28792 # Object file suffix (normally "o").
28795 # Executable file suffix (normally "").
28798 # whether the shell understands "unset".
28801 # turn spaces into newlines.
28804 # turn newlines into spaces.
28807 # convert \$build file names to \$host format.
28808 to_host_file_cmd=$lt_cv_to_host_file_cmd
28810 # convert \$build files to toolchain format.
28811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28813 # An object symbol dumper.
28814 OBJDUMP=$lt_OBJDUMP
28816 # Method to check whether dependent libraries are shared objects.
28817 deplibs_check_method=$lt_deplibs_check_method
28819 # Command to use when deplibs_check_method = "file_magic".
28820 file_magic_cmd=$lt_file_magic_cmd
28822 # How to find potential files when deplibs_check_method = "file_magic".
28823 file_magic_glob=$lt_file_magic_glob
28825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28826 want_nocaseglob=$lt_want_nocaseglob
28828 # DLL creation program.
28829 DLLTOOL=$lt_DLLTOOL
28831 # Command to associate shared and link libraries.
28832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28837 # Flags to create an archive.
28838 AR_FLAGS=$lt_AR_FLAGS
28840 # How to feed a file listing to the archiver.
28841 archiver_list_spec=$lt_archiver_list_spec
28843 # A symbol stripping program.
28846 # Commands used to install an old-style archive.
28848 old_postinstall_cmds=$lt_old_postinstall_cmds
28849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28851 # Whether to use a lock for old archive extraction.
28852 lock_old_archive_extraction=$lock_old_archive_extraction
28857 # LTCC compiler flags.
28858 LTCFLAGS=$lt_CFLAGS
28860 # Take the output of nm and produce a listing of raw symbols and C names.
28861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28863 # Transform the output of nm in a proper C declaration.
28864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28866 # Transform the output of nm into a list of symbols to manually relocate.
28867 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28869 # Transform the output of nm in a C name address pair.
28870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28872 # Transform the output of nm in a C name address pair when lib prefix is needed.
28873 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28875 # The name lister interface.
28876 nm_interface=$lt_lt_cv_nm_interface
28878 # Specify filename containing input files for \$NM.
28879 nm_file_list_spec=$lt_nm_file_list_spec
28881 # The root where to search for dependent libraries,and where our libraries should be installed.
28882 lt_sysroot=$lt_sysroot
28884 # Command to truncate a binary pipe.
28885 lt_truncate_bin=$lt_lt_cv_truncate_bin
28887 # The name of the directory that contains temporary libtool files.
28890 # Used to examine libraries when file_magic_cmd begins with "file".
28891 MAGIC_CMD=$MAGIC_CMD
28893 # Must we lock files when doing compilation?
28894 need_locks=$lt_need_locks
28897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28900 DSYMUTIL=$lt_DSYMUTIL
28902 # Tool to change global to local symbols on Mac OS X.
28905 # Tool to manipulate fat objects and archives on Mac OS X.
28908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28912 OTOOL64=$lt_OTOOL64
28914 # Old archive suffix (normally "a").
28917 # Shared library suffix (normally ".so").
28918 shrext_cmds=$lt_shrext_cmds
28920 # The commands to extract the exported symbol list from a shared archive.
28921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28923 # Variables whose values should be saved in libtool wrapper scripts and
28924 # restored at link time.
28925 variables_saved_for_relink=$lt_variables_saved_for_relink
28927 # Do we need the "lib" prefix for modules?
28928 need_lib_prefix=$need_lib_prefix
28930 # Do we need a version for libraries?
28931 need_version=$need_version
28933 # Library versioning type.
28934 version_type=$version_type
28936 # Shared library runtime path variable.
28937 runpath_var=$runpath_var
28939 # Shared library path variable.
28940 shlibpath_var=$shlibpath_var
28942 # Is shlibpath searched before the hard-coded library search path?
28943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28945 # Format of library name prefix.
28946 libname_spec=$lt_libname_spec
28948 # List of archive names. First name is the real one, the rest are links.
28949 # The last name is the one that the linker finds with -lNAME
28950 library_names_spec=$lt_library_names_spec
28952 # The coded name of the library, if different from the real name.
28953 soname_spec=$lt_soname_spec
28955 # Permission mode override for installation of shared libraries.
28956 install_override_mode=$lt_install_override_mode
28958 # Command to use after installation of a shared archive.
28959 postinstall_cmds=$lt_postinstall_cmds
28961 # Command to use after uninstallation of a shared archive.
28962 postuninstall_cmds=$lt_postuninstall_cmds
28964 # Commands used to finish a libtool library installation in a directory.
28965 finish_cmds=$lt_finish_cmds
28967 # As "finish_cmds", except a single script fragment to be evaled but
28969 finish_eval=$lt_finish_eval
28971 # Whether we should hardcode library paths into libraries.
28972 hardcode_into_libs=$hardcode_into_libs
28974 # Compile-time system search path for libraries.
28975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28977 # Detected run-time system search path for libraries.
28978 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28980 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28981 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28983 # Whether dlopen is supported.
28984 dlopen_support=$enable_dlopen
28986 # Whether dlopen of programs is supported.
28987 dlopen_self=$enable_dlopen_self
28989 # Whether dlopen of statically linked programs is supported.
28990 dlopen_self_static=$enable_dlopen_self_static
28992 # Commands to strip libraries.
28993 old_striplib=$lt_old_striplib
28994 striplib=$lt_striplib
28997 # The linker used to build libraries.
29000 # How to create reloadable object files.
29001 reload_flag=$lt_reload_flag
29002 reload_cmds=$lt_reload_cmds
29004 # Commands used to build an old-style archive.
29005 old_archive_cmds=$lt_old_archive_cmds
29007 # A language specific compiler.
29010 # Is the compiler the GNU compiler?
29013 # Compiler flag to turn off builtin functions.
29014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29016 # Additional compiler flags for building library objects.
29017 pic_flag=$lt_lt_prog_compiler_pic
29019 # How to pass a linker flag through the compiler.
29020 wl=$lt_lt_prog_compiler_wl
29022 # Compiler flag to prevent dynamic linking.
29023 link_static_flag=$lt_lt_prog_compiler_static
29025 # Does compiler simultaneously support -c and -o options?
29026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29028 # Whether or not to add -lc for building shared libraries.
29029 build_libtool_need_lc=$archive_cmds_need_lc
29031 # Whether or not to disallow shared libs when runtime libs are static.
29032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29034 # Compiler flag to allow reflexive dlopens.
29035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29037 # Compiler flag to generate shared objects directly from archives.
29038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29040 # Whether the compiler copes with passing no objects directly.
29041 compiler_needs_object=$lt_compiler_needs_object
29043 # Create an old-style archive from a shared archive.
29044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29046 # Create a temporary old-style archive to link instead of a shared archive.
29047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29049 # Commands used to build a shared archive.
29050 archive_cmds=$lt_archive_cmds
29051 archive_expsym_cmds=$lt_archive_expsym_cmds
29053 # Commands used to build a loadable module if different from building
29054 # a shared archive.
29055 module_cmds=$lt_module_cmds
29056 module_expsym_cmds=$lt_module_expsym_cmds
29058 # Whether we are building with GNU ld or not.
29059 with_gnu_ld=$lt_with_gnu_ld
29061 # Flag that allows shared libraries with undefined symbols to be built.
29062 allow_undefined_flag=$lt_allow_undefined_flag
29064 # Flag that enforces no undefined symbols.
29065 no_undefined_flag=$lt_no_undefined_flag
29067 # Flag to hardcode \$libdir into a binary during linking.
29068 # This must work even if \$libdir does not exist
29069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29071 # Whether we need a single "-rpath" flag with a separated argument.
29072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29074 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29075 # DIR into the resulting binary.
29076 hardcode_direct=$hardcode_direct
29078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29079 # DIR into the resulting binary and the resulting library dependency is
29080 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29081 # library is relocated.
29082 hardcode_direct_absolute=$hardcode_direct_absolute
29084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29085 # into the resulting binary.
29086 hardcode_minus_L=$hardcode_minus_L
29088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29089 # into the resulting binary.
29090 hardcode_shlibpath_var=$hardcode_shlibpath_var
29092 # Set to "yes" if building a shared library automatically hardcodes DIR
29093 # into the library and all subsequent libraries and executables linked
29095 hardcode_automatic=$hardcode_automatic
29097 # Set to yes if linker adds runtime paths of dependent libraries
29098 # to runtime path list.
29099 inherit_rpath=$inherit_rpath
29101 # Whether libtool must link a program against all its dependency libraries.
29102 link_all_deplibs=$link_all_deplibs
29104 # Set to "yes" if exported symbols are required.
29105 always_export_symbols=$always_export_symbols
29107 # The commands to list exported symbols.
29108 export_symbols_cmds=$lt_export_symbols_cmds
29110 # Symbols that should not be listed in the preloaded symbols.
29111 exclude_expsyms=$lt_exclude_expsyms
29113 # Symbols that must always be exported.
29114 include_expsyms=$lt_include_expsyms
29116 # Commands necessary for linking programs (against libraries) with templates.
29117 prelink_cmds=$lt_prelink_cmds
29119 # Commands necessary for finishing linking programs.
29120 postlink_cmds=$lt_postlink_cmds
29122 # Specify filename containing input files.
29123 file_list_spec=$lt_file_list_spec
29125 # How to hardcode a shared library path into an executable.
29126 hardcode_action=$hardcode_action
29128 # ### END LIBTOOL CONFIG
29132 cat <<'_LT_EOF' >> "$cfgfile"
29134 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29136 # func_munge_path_list VARIABLE PATH
29137 # -----------------------------------
29138 # VARIABLE is name of variable containing _space_ separated list of
29139 # directories to be munged by the contents of PATH, which is string
29142 # string "DIR[ DIR]" will be prepended to VARIABLE
29144 # string "DIR[ DIR]" will be appended to VARIABLE
29145 # "DIRP[:DIRP]::[DIRA:]DIRA"
29146 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29147 # "DIRA[ DIRA]" will be appended to VARIABLE
29149 # VARIABLE will be replaced by "DIR[ DIR]"
29150 func_munge_path_list ()
29156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29172 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
29173 func_cc_basename ()
29175 for cc_temp in $*""; do
29177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29183 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29187 # ### END FUNCTIONS SHARED WITH CONFIGURE
29193 cat <<\_LT_EOF >> "$cfgfile"
29194 # AIX sometimes has problems with the GCC collect2 program. For some
29195 # reason, if we set the COLLECT_NAMES environment variable, the problems
29196 # vanish in a puff of smoke.
29197 if test set != "${COLLECT_NAMES+set}"; then
29199 export COLLECT_NAMES
29206 ltmain=$ac_aux_dir/ltmain.sh
29209 # We use sed instead of cat because bash on DJGPP gets confused if
29210 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29211 # text mode, it properly converts lines to CR/LF. This bash problem
29212 # is reportedly fixed, but why not run on old versions too?
29213 sed '$q' "$ltmain" >> "$cfgfile" \
29214 || (rm -f "$cfgfile"; exit 1)
29216 mv -f "$cfgfile" "$ofile" ||
29217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29228 ac_clean_files=$ac_clean_files_save
29230 test $ac_write_fail = 0 ||
29231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29234 # configure is writing to config.log, and then calls config.status.
29235 # config.status does its own redirection, appending to config.log.
29236 # Unfortunately, on DOS this fails, as config.log is still kept open
29237 # by configure, so config.status won't be able to write to it; its
29238 # output is simply discarded. So we exec the FD to /dev/null,
29239 # effectively closing config.log, so it can be properly (re)opened and
29240 # appended to by config.status. When coming back to configure, we
29241 # need to make the FD available again.
29242 if test "$no_create" != yes; then
29244 ac_config_status_args=
29245 test "$silent" = yes &&
29246 ac_config_status_args="$ac_config_status_args --quiet"
29248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29251 # would make configure fail if this is the last instruction.
29252 $ac_cs_success || as_fn_exit 1
29254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}