2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.4.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.4.0'
594 PACKAGE_STRING='libpipeline 1.4.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
1368 MAINTAINER_MODE_FALSE
1369 MAINTAINER_MODE_TRUE
1371 AM_DEFAULT_VERBOSITY
1382 INSTALL_STRIP_PROGRAM
1424 program_transform_name
1437 enable_option_checking
1439 enable_maintainer_mode
1440 enable_dependency_tracking
1452 enable_socketpair_pipe
1454 ac_precious_vars='build_alias
1470 # Initialize some variables set by options.
1472 ac_init_version=false
1473 ac_unrecognized_opts=
1474 ac_unrecognized_sep=
1475 # The variables have the same names as the options, with
1476 # dashes changed to underlines.
1477 cache_file=/dev/null
1484 program_transform_name=s,x,x,
1492 # Installation directory options.
1493 # These are left unexpanded so users can "make install exec_prefix=/foo"
1494 # and all the variables that are supposed to be based on exec_prefix
1495 # by default will actually change.
1496 # Use braces instead of parens because sh, perl, etc. also accept them.
1497 # (The list follows the same order as the GNU Coding Standards.)
1498 bindir='${exec_prefix}/bin'
1499 sbindir='${exec_prefix}/sbin'
1500 libexecdir='${exec_prefix}/libexec'
1501 datarootdir='${prefix}/share'
1502 datadir='${datarootdir}'
1503 sysconfdir='${prefix}/etc'
1504 sharedstatedir='${prefix}/com'
1505 localstatedir='${prefix}/var'
1506 includedir='${prefix}/include'
1507 oldincludedir='/usr/include'
1508 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1509 infodir='${datarootdir}/info'
1514 libdir='${exec_prefix}/lib'
1515 localedir='${datarootdir}/locale'
1516 mandir='${datarootdir}/man'
1522 # If the previous option needs an argument, assign it.
1523 if test -n "$ac_prev"; then
1524 eval $ac_prev=\$ac_option
1530 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1535 # Accept the important Cygnus configure options, so we can diagnose typos.
1537 case $ac_dashdash$ac_option in
1541 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1543 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1544 bindir=$ac_optarg ;;
1546 -build | --build | --buil | --bui | --bu)
1547 ac_prev=build_alias ;;
1548 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1549 build_alias=$ac_optarg ;;
1551 -cache-file | --cache-file | --cache-fil | --cache-fi \
1552 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1553 ac_prev=cache_file ;;
1554 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1555 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1556 cache_file=$ac_optarg ;;
1558 --config-cache | -C)
1559 cache_file=config.cache ;;
1561 -datadir | --datadir | --datadi | --datad)
1563 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1564 datadir=$ac_optarg ;;
1566 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1567 | --dataroo | --dataro | --datar)
1568 ac_prev=datarootdir ;;
1569 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1570 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1571 datarootdir=$ac_optarg ;;
1573 -disable-* | --disable-*)
1574 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1575 # Reject names that are not valid shell variable names.
1576 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1577 as_fn_error $? "invalid feature name: $ac_useropt"
1578 ac_useropt_orig=$ac_useropt
1579 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1580 case $ac_user_opts in
1582 "enable_$ac_useropt"
1584 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1585 ac_unrecognized_sep=', ';;
1587 eval enable_$ac_useropt=no ;;
1589 -docdir | --docdir | --docdi | --doc | --do)
1591 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1592 docdir=$ac_optarg ;;
1594 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1596 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1597 dvidir=$ac_optarg ;;
1599 -enable-* | --enable-*)
1600 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1601 # Reject names that are not valid shell variable names.
1602 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1603 as_fn_error $? "invalid feature name: $ac_useropt"
1604 ac_useropt_orig=$ac_useropt
1605 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1606 case $ac_user_opts in
1608 "enable_$ac_useropt"
1610 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1611 ac_unrecognized_sep=', ';;
1613 eval enable_$ac_useropt=\$ac_optarg ;;
1615 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1616 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1617 | --exec | --exe | --ex)
1618 ac_prev=exec_prefix ;;
1619 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1620 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1621 | --exec=* | --exe=* | --ex=*)
1622 exec_prefix=$ac_optarg ;;
1624 -gas | --gas | --ga | --g)
1625 # Obsolete; use --with-gas.
1628 -help | --help | --hel | --he | -h)
1629 ac_init_help=long ;;
1630 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1631 ac_init_help=recursive ;;
1632 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1633 ac_init_help=short ;;
1635 -host | --host | --hos | --ho)
1636 ac_prev=host_alias ;;
1637 -host=* | --host=* | --hos=* | --ho=*)
1638 host_alias=$ac_optarg ;;
1640 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1642 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1644 htmldir=$ac_optarg ;;
1646 -includedir | --includedir | --includedi | --included | --include \
1647 | --includ | --inclu | --incl | --inc)
1648 ac_prev=includedir ;;
1649 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1650 | --includ=* | --inclu=* | --incl=* | --inc=*)
1651 includedir=$ac_optarg ;;
1653 -infodir | --infodir | --infodi | --infod | --info | --inf)
1655 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1656 infodir=$ac_optarg ;;
1658 -libdir | --libdir | --libdi | --libd)
1660 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1661 libdir=$ac_optarg ;;
1663 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1664 | --libexe | --libex | --libe)
1665 ac_prev=libexecdir ;;
1666 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1667 | --libexe=* | --libex=* | --libe=*)
1668 libexecdir=$ac_optarg ;;
1670 -localedir | --localedir | --localedi | --localed | --locale)
1671 ac_prev=localedir ;;
1672 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1673 localedir=$ac_optarg ;;
1675 -localstatedir | --localstatedir | --localstatedi | --localstated \
1676 | --localstate | --localstat | --localsta | --localst | --locals)
1677 ac_prev=localstatedir ;;
1678 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1679 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1680 localstatedir=$ac_optarg ;;
1682 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1684 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1685 mandir=$ac_optarg ;;
1687 -nfp | --nfp | --nf)
1688 # Obsolete; use --without-fp.
1691 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1692 | --no-cr | --no-c | -n)
1695 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1696 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1699 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1700 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1701 | --oldin | --oldi | --old | --ol | --o)
1702 ac_prev=oldincludedir ;;
1703 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1704 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1705 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1706 oldincludedir=$ac_optarg ;;
1708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1711 prefix=$ac_optarg ;;
1713 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1714 | --program-pre | --program-pr | --program-p)
1715 ac_prev=program_prefix ;;
1716 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1717 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1718 program_prefix=$ac_optarg ;;
1720 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1721 | --program-suf | --program-su | --program-s)
1722 ac_prev=program_suffix ;;
1723 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1724 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1725 program_suffix=$ac_optarg ;;
1727 -program-transform-name | --program-transform-name \
1728 | --program-transform-nam | --program-transform-na \
1729 | --program-transform-n | --program-transform- \
1730 | --program-transform | --program-transfor \
1731 | --program-transfo | --program-transf \
1732 | --program-trans | --program-tran \
1733 | --progr-tra | --program-tr | --program-t)
1734 ac_prev=program_transform_name ;;
1735 -program-transform-name=* | --program-transform-name=* \
1736 | --program-transform-nam=* | --program-transform-na=* \
1737 | --program-transform-n=* | --program-transform-=* \
1738 | --program-transform=* | --program-transfor=* \
1739 | --program-transfo=* | --program-transf=* \
1740 | --program-trans=* | --program-tran=* \
1741 | --progr-tra=* | --program-tr=* | --program-t=*)
1742 program_transform_name=$ac_optarg ;;
1744 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1746 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1747 pdfdir=$ac_optarg ;;
1749 -psdir | --psdir | --psdi | --psd | --ps)
1751 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755 | -silent | --silent | --silen | --sile | --sil)
1758 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1760 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1762 sbindir=$ac_optarg ;;
1764 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1765 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1766 | --sharedst | --shareds | --shared | --share | --shar \
1768 ac_prev=sharedstatedir ;;
1769 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1770 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1771 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1773 sharedstatedir=$ac_optarg ;;
1775 -site | --site | --sit)
1777 -site=* | --site=* | --sit=*)
1780 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1782 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1783 srcdir=$ac_optarg ;;
1785 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1786 | --syscon | --sysco | --sysc | --sys | --sy)
1787 ac_prev=sysconfdir ;;
1788 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1789 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1790 sysconfdir=$ac_optarg ;;
1792 -target | --target | --targe | --targ | --tar | --ta | --t)
1793 ac_prev=target_alias ;;
1794 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1795 target_alias=$ac_optarg ;;
1797 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1800 -version | --version | --versio | --versi | --vers | -V)
1801 ac_init_version=: ;;
1804 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1805 # Reject names that are not valid shell variable names.
1806 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1807 as_fn_error $? "invalid package name: $ac_useropt"
1808 ac_useropt_orig=$ac_useropt
1809 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1810 case $ac_user_opts in
1814 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1815 ac_unrecognized_sep=', ';;
1817 eval with_$ac_useropt=\$ac_optarg ;;
1819 -without-* | --without-*)
1820 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1821 # Reject names that are not valid shell variable names.
1822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1823 as_fn_error $? "invalid package name: $ac_useropt"
1824 ac_useropt_orig=$ac_useropt
1825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1826 case $ac_user_opts in
1830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1831 ac_unrecognized_sep=', ';;
1833 eval with_$ac_useropt=no ;;
1836 # Obsolete; use --with-x.
1839 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1840 | --x-incl | --x-inc | --x-in | --x-i)
1841 ac_prev=x_includes ;;
1842 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1843 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1844 x_includes=$ac_optarg ;;
1846 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1847 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1848 ac_prev=x_libraries ;;
1849 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1850 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1851 x_libraries=$ac_optarg ;;
1853 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1854 Try \`$0 --help' for more information"
1858 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1859 # Reject names that are not valid shell variable names.
1860 case $ac_envvar in #(
1861 '' | [0-9]* | *[!_$as_cr_alnum]* )
1862 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1864 eval $ac_envvar=\$ac_optarg
1865 export $ac_envvar ;;
1868 # FIXME: should be removed in autoconf 3.0.
1869 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1870 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1871 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1872 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1878 if test -n "$ac_prev"; then
1879 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1880 as_fn_error $? "missing argument to $ac_option"
1883 if test -n "$ac_unrecognized_opts"; then
1884 case $enable_option_checking in
1886 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1887 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1891 # Check all directory arguments for consistency.
1892 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1893 datadir sysconfdir sharedstatedir localstatedir includedir \
1894 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1895 libdir localedir mandir
1897 eval ac_val=\$$ac_var
1898 # Remove trailing slashes.
1901 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1902 eval $ac_var=\$ac_val;;
1904 # Be sure to have absolute directory names.
1906 [\\/$]* | ?:[\\/]* ) continue;;
1907 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1909 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1912 # There might be people who depend on the old broken behavior: `$host'
1913 # used to hold the argument of --host etc.
1914 # FIXME: To remove some day.
1917 target=$target_alias
1919 # FIXME: To remove some day.
1920 if test "x$host_alias" != x; then
1921 if test "x$build_alias" = x; then
1922 cross_compiling=maybe
1923 elif test "x$build_alias" != "x$host_alias"; then
1929 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1931 test "$silent" = yes && exec 6>/dev/null
1934 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1935 ac_ls_di=`ls -di .` &&
1936 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1937 as_fn_error $? "working directory cannot be determined"
1938 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1939 as_fn_error $? "pwd does not report name of working directory"
1942 # Find the source files, if location was not specified.
1943 if test -z "$srcdir"; then
1944 ac_srcdir_defaulted=yes
1945 # Try the directory containing this script, then the parent directory.
1946 ac_confdir=`$as_dirname -- "$as_myself" ||
1947 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1948 X"$as_myself" : 'X\(//\)[^/]' \| \
1949 X"$as_myself" : 'X\(//\)$' \| \
1950 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1951 $as_echo X"$as_myself" |
1952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1974 ac_srcdir_defaulted=no
1976 if test ! -r "$srcdir/$ac_unique_file"; then
1977 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1978 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1980 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1982 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1984 # When building in place, set srcdir=.
1985 if test "$ac_abs_confdir" = "$ac_pwd"; then
1988 # Remove unnecessary trailing slashes from srcdir.
1989 # Double slashes in file names in object file debugging info
1990 # mess up M-x gdb in Emacs.
1992 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1994 for ac_var in $ac_precious_vars; do
1995 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1996 eval ac_env_${ac_var}_value=\$${ac_var}
1997 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1998 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2002 # Report the --help message.
2004 if test "$ac_init_help" = "long"; then
2005 # Omit some internal or obsolete options to make the list less imposing.
2006 # This message is too long to be a string in the A/UX 3.1 sh.
2008 \`configure' configures libpipeline 1.4.0 to adapt to many kinds of systems.
2010 Usage: $0 [OPTION]... [VAR=VALUE]...
2012 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2013 VAR=VALUE. See below for descriptions of some of the useful variables.
2015 Defaults for the options are specified in brackets.
2018 -h, --help display this help and exit
2019 --help=short display options specific to this package
2020 --help=recursive display the short help of all the included packages
2021 -V, --version display version information and exit
2022 -q, --quiet, --silent do not print \`checking ...' messages
2023 --cache-file=FILE cache test results in FILE [disabled]
2024 -C, --config-cache alias for \`--cache-file=config.cache'
2025 -n, --no-create do not create output files
2026 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2028 Installation directories:
2029 --prefix=PREFIX install architecture-independent files in PREFIX
2030 [$ac_default_prefix]
2031 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2034 By default, \`make install' will install all the files in
2035 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2036 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2037 for instance \`--prefix=\$HOME'.
2039 For better control, use the options below.
2041 Fine tuning of the installation directories:
2042 --bindir=DIR user executables [EPREFIX/bin]
2043 --sbindir=DIR system admin executables [EPREFIX/sbin]
2044 --libexecdir=DIR program executables [EPREFIX/libexec]
2045 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2046 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2047 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2048 --libdir=DIR object code libraries [EPREFIX/lib]
2049 --includedir=DIR C header files [PREFIX/include]
2050 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2051 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2052 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2053 --infodir=DIR info documentation [DATAROOTDIR/info]
2054 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2055 --mandir=DIR man documentation [DATAROOTDIR/man]
2056 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2057 --htmldir=DIR html documentation [DOCDIR]
2058 --dvidir=DIR dvi documentation [DOCDIR]
2059 --pdfdir=DIR pdf documentation [DOCDIR]
2060 --psdir=DIR ps documentation [DOCDIR]
2066 --program-prefix=PREFIX prepend PREFIX to installed program names
2067 --program-suffix=SUFFIX append SUFFIX to installed program names
2068 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2071 --build=BUILD configure for building on BUILD [guessed]
2072 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2076 if test -n "$ac_init_help"; then
2077 case $ac_init_help in
2078 short | recursive ) echo "Configuration of libpipeline 1.4.0:";;
2083 --disable-option-checking ignore unrecognized --enable/--with options
2084 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2085 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2086 --enable-silent-rules less verbose build output (undo: "make V=1")
2087 --disable-silent-rules verbose build output (undo: "make V=0")
2088 --enable-maintainer-mode
2089 enable make rules and dependencies not useful (and
2090 sometimes confusing) to the casual installer
2091 --enable-dependency-tracking
2092 do not reject slow dependency extractors
2093 --disable-dependency-tracking
2094 speeds up one-time build
2095 --enable-static[=PKGS] build static libraries [default=no]
2096 --enable-shared[=PKGS] build shared libraries [default=yes]
2097 --enable-fast-install[=PKGS]
2098 optimize for fast installation [default=yes]
2099 --disable-libtool-lock avoid locking (might break parallel builds)
2100 --disable-largefile omit support for large files
2101 --enable-threads={posix|solaris|pth|windows}
2102 specify multithreading API
2103 --disable-threads build without multithread safety
2104 --disable-rpath do not hardcode runtime library paths
2105 --enable-socketpair-pipe
2106 Use socketpair(2) as fast replacement for pipe(2)
2109 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2110 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2111 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2113 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2114 --with-sysroot=DIR Search for dependent libraries within DIR
2115 (or the compiler's sysroot if not specified).
2116 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2117 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2118 --without-libpth-prefix don't search for libpth in includedir and libdir
2120 Some influential environment variables:
2121 CC C compiler command
2122 CFLAGS C compiler flags
2123 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2124 nonstandard directory <lib dir>
2125 LIBS libraries to pass to the linker, e.g. -l<library>
2126 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2127 you have headers in a nonstandard directory <include dir>
2129 PKG_CONFIG path to pkg-config utility
2131 directories to add to pkg-config's search path
2133 path overriding pkg-config's built-in search path
2135 C compiler flags for CHECK, overriding pkg-config
2136 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2138 Use these variables to override the choices made by `configure' or to help
2139 it to find libraries and programs with nonstandard names/locations.
2141 Report bugs to <cjwatson@debian.org>.
2146 if test "$ac_init_help" = "recursive"; then
2147 # If there are subdirs, report their specific --help.
2148 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2149 test -d "$ac_dir" ||
2150 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2158 # A ".." for each directory in $ac_dir_suffix.
2159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2160 case $ac_top_builddir_sub in
2161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2165 ac_abs_top_builddir=$ac_pwd
2166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2167 # for backward compatibility:
2168 ac_top_builddir=$ac_top_build_prefix
2171 .) # We are building in place.
2173 ac_top_srcdir=$ac_top_builddir_sub
2174 ac_abs_top_srcdir=$ac_pwd ;;
2175 [\\/]* | ?:[\\/]* ) # Absolute name.
2176 ac_srcdir=$srcdir$ac_dir_suffix;
2177 ac_top_srcdir=$srcdir
2178 ac_abs_top_srcdir=$srcdir ;;
2180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2181 ac_top_srcdir=$ac_top_build_prefix$srcdir
2182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2186 cd "$ac_dir" || { ac_status=$?; continue; }
2187 # Check for guested configure.
2188 if test -f "$ac_srcdir/configure.gnu"; then
2190 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2191 elif test -f "$ac_srcdir/configure"; then
2193 $SHELL "$ac_srcdir/configure" --help=recursive
2195 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2197 cd "$ac_pwd" || { ac_status=$?; break; }
2201 test -n "$ac_init_help" && exit $ac_status
2202 if $ac_init_version; then
2204 libpipeline configure 1.4.0
2205 generated by GNU Autoconf 2.69
2207 Copyright (C) 2012 Free Software Foundation, Inc.
2208 This configure script is free software; the Free Software Foundation
2209 gives unlimited permission to copy, distribute and modify it.
2214 ## ------------------------ ##
2215 ## Autoconf initialization. ##
2216 ## ------------------------ ##
2218 # ac_fn_c_try_compile LINENO
2219 # --------------------------
2220 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2221 ac_fn_c_try_compile ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 rm -f conftest.$ac_objext
2225 if { { ac_try="$ac_compile"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_compile") 2>conftest.err
2234 if test -s conftest.err; then
2235 grep -v '^ *+' conftest.err >conftest.er1
2236 cat conftest.er1 >&5
2237 mv -f conftest.er1 conftest.err
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && {
2241 test -z "$ac_c_werror_flag" ||
2242 test ! -s conftest.err
2243 } && test -s conftest.$ac_objext; then :
2246 $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 as_fn_set_status $ac_retval
2254 } # ac_fn_c_try_compile
2256 # ac_fn_c_try_cpp LINENO
2257 # ----------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { { ac_try="$ac_cpp conftest.$ac_ext"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } > conftest.i && {
2278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2279 test ! -s conftest.err
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 as_fn_set_status $ac_retval
2293 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2294 # -------------------------------------------------------
2295 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2296 # the include files in INCLUDES and setting the cache variable VAR
2298 ac_fn_c_check_header_mongrel ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if eval \${$3+:} false; then :
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2311 # Is the header compilable?
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2313 $as_echo_n "checking $2 usability... " >&6; }
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320 ac_header_compiler=yes
2322 ac_header_compiler=no
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2326 $as_echo "$ac_header_compiler" >&6; }
2328 # Is the header present?
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2330 $as_echo_n "checking $2 presence... " >&6; }
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2335 if ac_fn_c_try_cpp "$LINENO"; then :
2336 ac_header_preproc=yes
2338 ac_header_preproc=no
2340 rm -f conftest.err conftest.i conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2342 $as_echo "$ac_header_preproc" >&6; }
2344 # So? What about this header?
2345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2348 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2350 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2354 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2356 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2358 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2360 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2362 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2363 ( $as_echo "## ---------------------------------- ##
2364 ## Report this to cjwatson@debian.org ##
2365 ## ---------------------------------- ##"
2366 ) | sed "s/^/$as_me: WARNING: /" >&2
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \${$3+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 eval "$3=\$ac_header_compiler"
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2378 $as_echo "$ac_res" >&6; }
2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 } # ac_fn_c_check_header_mongrel
2384 # ac_fn_c_try_run LINENO
2385 # ----------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2387 # that executables *can* be run.
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 if { { ac_try="$ac_link"
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_link") 2>&5
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2402 { { case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_try") 2>&5
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; }; }; then :
2414 $as_echo "$as_me: program exited with status $ac_status" >&5
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 ac_retval=$ac_status
2420 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 as_fn_set_status $ac_retval
2426 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2427 # -------------------------------------------------------
2428 # Tests whether HEADER exists and can be compiled using the include files in
2429 # INCLUDES, setting the cache variable VAR accordingly.
2430 ac_fn_c_check_header_compile ()
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436 $as_echo_n "(cached) " >&6
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_header_compile
2457 # ac_fn_c_try_link LINENO
2458 # -----------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded.
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 rm -f conftest.$ac_objext conftest$ac_exeext
2464 if { { ac_try="$ac_link"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>conftest.err
2473 if test -s conftest.err; then
2474 grep -v '^ *+' conftest.err >conftest.er1
2475 cat conftest.er1 >&5
2476 mv -f conftest.er1 conftest.err
2478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479 test $ac_status = 0; } && {
2480 test -z "$ac_c_werror_flag" ||
2481 test ! -s conftest.err
2482 } && test -s conftest$ac_exeext && {
2483 test "$cross_compiling" = yes ||
2484 test -x conftest$ac_exeext
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2494 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2495 # interfere with the next link command; also delete a directory that is
2496 # left behind by Apple's compiler. We do this before executing the actions.
2497 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status $ac_retval
2501 } # ac_fn_c_try_link
2503 # ac_fn_c_check_func LINENO FUNC VAR
2504 # ----------------------------------
2505 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2506 ac_fn_c_check_func ()
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2510 $as_echo_n "checking for $2... " >&6; }
2511 if eval \${$3+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2518 #define $2 innocuous_$2
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $2 (); below.
2522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2523 <limits.h> exists even on freestanding compilers. */
2526 # include <limits.h>
2528 # include <assert.h>
2533 /* Override any GCC internal prototype to avoid an error.
2534 Use char because int might match the return type of a GCC
2535 builtin and then its argument prototype would still apply. */
2540 /* The GNU C library defines this for functions which it implements
2541 to always fail with ENOSYS. Some functions are actually named
2542 something starting with __ and the normal name is an alias. */
2543 #if defined __stub_$2 || defined __stub___$2
2555 if ac_fn_c_try_link "$LINENO"; then :
2560 rm -f core conftest.err conftest.$ac_objext \
2561 conftest$ac_exeext conftest.$ac_ext
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568 } # ac_fn_c_check_func
2570 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571 # -------------------------------------------
2572 # Tests whether TYPE exists after having included INCLUDES, setting cache
2573 # variable VAR accordingly.
2574 ac_fn_c_check_type ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if eval \${$3+:} false; then :
2580 $as_echo_n "(cached) " >&6
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2608 if ac_fn_c_try_compile "$LINENO"; then :
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_check_type
2624 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2625 # --------------------------------------------
2626 # Tries to find the compile-time value of EXPR in a program that includes
2627 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2629 ac_fn_c_compute_int ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 if test "$cross_compiling" = yes; then
2633 # Depending upon the size, compute the lo and hi bounds.
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2640 static int test_array [1 - 2 * !(($2) >= 0)];
2642 return test_array [0];
2648 if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2657 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2659 return test_array [0];
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666 ac_hi=$ac_mid; break
2668 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2669 if test $ac_lo -le $ac_mid; then
2673 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2684 static int test_array [1 - 2 * !(($2) < 0)];
2686 return test_array [0];
2692 if ac_fn_c_try_compile "$LINENO"; then :
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2701 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2703 return test_array [0];
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710 ac_lo=$ac_mid; break
2712 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2713 if test $ac_mid -le $ac_hi; then
2717 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2738 return test_array [0];
2744 if ac_fn_c_try_compile "$LINENO"; then :
2747 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2759 static long int longval () { return $2; }
2760 static unsigned long int ulongval () { return $2; }
2767 FILE *f = fopen ("conftest.val", "w");
2772 long int i = longval ();
2775 fprintf (f, "%ld", i);
2779 unsigned long int i = ulongval ();
2782 fprintf (f, "%lu", i);
2784 /* Do not output a trailing newline, as this causes \r\n confusion
2785 on some platforms. */
2786 return ferror (f) || fclose (f) != 0;
2792 if ac_fn_c_try_run "$LINENO"; then :
2793 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2798 conftest.$ac_objext conftest.beam conftest.$ac_ext
2802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803 as_fn_set_status $ac_retval
2805 } # ac_fn_c_compute_int
2807 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2808 # ---------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2811 ac_fn_c_check_decl ()
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 as_decl_name=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 #ifndef $as_decl_name
2829 (void) $as_decl_use;
2831 (void) $as_decl_name;
2839 if ac_fn_c_try_compile "$LINENO"; then :
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 } # ac_fn_c_check_decl
2853 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2854 # ----------------------------------------------------
2855 # Tries to find if the field MEMBER exists in type AGGR, after including
2856 # INCLUDES, setting cache variable VAR accordingly.
2857 ac_fn_c_check_member ()
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2861 $as_echo_n "checking for $2.$3... " >&6; }
2862 if eval \${$4+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2878 if ac_fn_c_try_compile "$LINENO"; then :
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2888 if (sizeof ac_aggr.$3)
2894 if ac_fn_c_try_compile "$LINENO"; then :
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2905 $as_echo "$ac_res" >&6; }
2906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908 } # ac_fn_c_check_member
2909 cat >config.log <<_ACEOF
2910 This file contains any messages produced by compilers while
2911 running configure, to aid debugging if configure makes a mistake.
2913 It was created by libpipeline $as_me 1.4.0, which was
2914 generated by GNU Autoconf 2.69. Invocation command line was
2926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 $as_echo "PATH: $as_dir"
2966 # Keep a trace of the command line.
2967 # Strip out --no-create and --no-recursion so they do not pile up.
2968 # Strip out --silent because we don't want to record it for future runs.
2969 # Also quote any args containing shell meta-characters.
2970 # Make two passes to allow for proper duplicate-argument suppression.
2974 ac_must_keep_next=false
2980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2982 | -silent | --silent | --silen | --sile | --sil)
2985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2990 as_fn_append ac_configure_args1 " '$ac_arg'"
2991 if test $ac_must_keep_next = true; then
2992 ac_must_keep_next=false # Got value, back to normal.
2995 *=* | --config-cache | -C | -disable-* | --disable-* \
2996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2998 | -with-* | --with-* | -without-* | --without-* | --x)
2999 case "$ac_configure_args0 " in
3000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3003 -* ) ac_must_keep_next=true ;;
3006 as_fn_append ac_configure_args " '$ac_arg'"
3011 { ac_configure_args0=; unset ac_configure_args0;}
3012 { ac_configure_args1=; unset ac_configure_args1;}
3014 # When interrupted or exit'd, cleanup temporary files, and complete
3015 # config.log. We remove comments because anyway the quotes in there
3016 # would cause problems or look ugly.
3017 # WARNING: Use '\'' to represent an apostrophe within the trap.
3018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3019 trap 'exit_status=$?
3020 # Save into config.log some information that might help in debugging.
3024 $as_echo "## ---------------- ##
3025 ## Cache variables. ##
3026 ## ---------------- ##"
3028 # The following way of writing the cache mishandles newlines in values,
3030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3031 eval ac_val=\$$ac_var
3035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3039 _ | IFS | as_nl) ;; #(
3040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3041 *) { eval $ac_var=; unset $ac_var;} ;;
3046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3047 *${as_nl}ac_space=\ *)
3049 "s/'\''/'\''\\\\'\'''\''/g;
3050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3060 $as_echo "## ----------------- ##
3061 ## Output variables. ##
3062 ## ----------------- ##"
3064 for ac_var in $ac_subst_vars
3066 eval ac_val=\$$ac_var
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070 $as_echo "$ac_var='\''$ac_val'\''"
3074 if test -n "$ac_subst_files"; then
3075 $as_echo "## ------------------- ##
3076 ## File substitutions. ##
3077 ## ------------------- ##"
3079 for ac_var in $ac_subst_files
3081 eval ac_val=\$$ac_var
3083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085 $as_echo "$ac_var='\''$ac_val'\''"
3090 if test -s confdefs.h; then
3091 $as_echo "## ----------- ##
3098 test "$ac_signal" != 0 &&
3099 $as_echo "$as_me: caught signal $ac_signal"
3100 $as_echo "$as_me: exit $exit_status"
3102 rm -f core *.core core.conftest.* &&
3103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3106 for ac_signal in 1 2 13 15; do
3107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3112 rm -f -r conftest* confdefs.h
3114 $as_echo "/* confdefs.h */" > confdefs.h
3116 # Predefined preprocessor variables.
3118 cat >>confdefs.h <<_ACEOF
3119 #define PACKAGE_NAME "$PACKAGE_NAME"
3122 cat >>confdefs.h <<_ACEOF
3123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_STRING "$PACKAGE_STRING"
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_URL "$PACKAGE_URL"
3143 # Let the site file select an alternate cache file if it wants to.
3144 # Prefer an explicitly selected file to automatically selected ones.
3147 if test -n "$CONFIG_SITE"; then
3148 # We do not want a PATH search for config.site.
3149 case $CONFIG_SITE in #((
3150 -*) ac_site_file1=./$CONFIG_SITE;;
3151 */*) ac_site_file1=$CONFIG_SITE;;
3152 *) ac_site_file1=./$CONFIG_SITE;;
3154 elif test "x$prefix" != xNONE; then
3155 ac_site_file1=$prefix/share/config.site
3156 ac_site_file2=$prefix/etc/config.site
3158 ac_site_file1=$ac_default_prefix/share/config.site
3159 ac_site_file2=$ac_default_prefix/etc/config.site
3161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3163 test "x$ac_site_file" = xNONE && continue
3164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3167 sed 's/^/| /' "$ac_site_file" >&5
3169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "failed to load site script $ac_site_file
3172 See \`config.log' for more details" "$LINENO" 5; }
3176 if test -r "$cache_file"; then
3177 # Some versions of bash will fail to source /dev/null (special files
3178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3181 $as_echo "$as_me: loading cache $cache_file" >&6;}
3183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3184 *) . "./$cache_file";;
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3189 $as_echo "$as_me: creating cache $cache_file" >&6;}
3193 gl_header_list="$gl_header_list unistd.h"
3194 gl_func_list="$gl_func_list symlink"
3195 gl_header_list="$gl_header_list sys/time.h"
3196 gl_header_list="$gl_header_list sys/socket.h"
3197 gl_func_list="$gl_func_list gettimeofday"
3198 gl_func_list="$gl_func_list lstat"
3199 gl_header_list="$gl_header_list sys/mman.h"
3200 gl_func_list="$gl_func_list mprotect"
3201 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3202 gl_header_list="$gl_header_list sys/param.h"
3203 gl_func_list="$gl_func_list secure_getenv"
3204 gl_func_list="$gl_func_list setenv"
3205 gl_func_list="$gl_func_list sigaction"
3206 gl_func_list="$gl_func_list sigaltstack"
3207 gl_func_list="$gl_func_list siginterrupt"
3208 gl_func_list="$gl_func_list snprintf"
3209 gl_header_list="$gl_header_list wchar.h"
3210 gl_header_list="$gl_header_list stdint.h"
3211 gl_func_list="$gl_func_list strndup"
3212 gl_header_list="$gl_header_list sys/select.h"
3213 gl_header_list="$gl_header_list sys/stat.h"
3214 gl_header_list="$gl_header_list sys/wait.h"
3215 gl_func_list="$gl_func_list vasnprintf"
3216 gl_header_list="$gl_header_list features.h"
3217 # Check that the precious variables saved in the cache have kept the same
3219 ac_cache_corrupted=false
3220 for ac_var in $ac_precious_vars; do
3221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3222 eval ac_new_set=\$ac_env_${ac_var}_set
3223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3224 eval ac_new_val=\$ac_env_${ac_var}_value
3225 case $ac_old_set,$ac_new_set in
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3229 ac_cache_corrupted=: ;;
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3233 ac_cache_corrupted=: ;;
3236 if test "x$ac_old_val" != "x$ac_new_val"; then
3237 # differences in whitespace do not lead to failure.
3238 ac_old_val_w=`echo x $ac_old_val`
3239 ac_new_val_w=`echo x $ac_new_val`
3240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3243 ac_cache_corrupted=:
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3247 eval $ac_var=\$ac_old_val
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3255 # Pass precious variables to config.status.
3256 if test "$ac_new_set" = set; then
3258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3259 *) ac_arg=$ac_var=$ac_new_val ;;
3261 case " $ac_configure_args " in
3262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3267 if $ac_cache_corrupted; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3272 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3274 ## -------------------- ##
3275 ## Main body of script. ##
3276 ## -------------------- ##
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 for ac_dir in build-aux "$srcdir"/build-aux; do
3287 if test -f "$ac_dir/install-sh"; then
3289 ac_install_sh="$ac_aux_dir/install-sh -c"
3291 elif test -f "$ac_dir/install.sh"; then
3293 ac_install_sh="$ac_aux_dir/install.sh -c"
3295 elif test -f "$ac_dir/shtool"; then
3297 ac_install_sh="$ac_aux_dir/shtool install -c"
3301 if test -z "$ac_aux_dir"; then
3302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3305 # These three variables are undocumented and unsupported,
3306 # and are intended to be withdrawn in a future Autoconf release.
3307 # They can cause serious problems if a builder's source tree is in a directory
3308 # whose full name contains unusual characters.
3309 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3310 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3311 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3314 am__api_version='1.14'
3316 # Find a good install program. We prefer a C program (faster),
3317 # so one script is as good as another. But avoid the broken or
3318 # incompatible versions:
3319 # SysV /etc/install, /usr/sbin/install
3320 # SunOS /usr/etc/install
3321 # IRIX /sbin/install
3323 # AmigaOS /C/install, which installs bootblocks on floppy discs
3324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3327 # OS/2's system install, which has a completely different semantic
3328 # ./install, which can be erroneously created by make from ./install.sh.
3329 # Reject install programs that cannot install multiple files.
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3332 if test -z "$INSTALL"; then
3333 if ${ac_cv_path_install+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 # Account for people who put trailing slashes in PATH elements.
3342 case $as_dir/ in #((
3343 ./ | .// | /[cC]/* | \
3344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3348 # OSF1 and SCO ODT 3.0 have their own names for install.
3349 # Don't use installbsd from OSF since it installs stuff as root
3351 for ac_prog in ginstall scoinst install; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3354 if test $ac_prog = install &&
3355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356 # AIX install. It has an incompatible calling convention.
3358 elif test $ac_prog = install &&
3359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3360 # program-specific install script used by HP pwplus--don't use.
3363 rm -rf conftest.one conftest.two conftest.dir
3364 echo one > conftest.one
3365 echo two > conftest.two
3367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3368 test -s conftest.one && test -s conftest.two &&
3369 test -s conftest.dir/conftest.one &&
3370 test -s conftest.dir/conftest.two
3372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3385 rm -rf conftest.one conftest.two conftest.dir
3388 if test "${ac_cv_path_install+set}" = set; then
3389 INSTALL=$ac_cv_path_install
3391 # As a last resort, use the slow shell script. Don't cache a
3392 # value for INSTALL within a source directory, because that will
3393 # break other packages using the cache if that directory is
3394 # removed, or if the value is a relative name.
3395 INSTALL=$ac_install_sh
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3399 $as_echo "$INSTALL" >&6; }
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3410 $as_echo_n "checking whether build environment is sane... " >&6; }
3411 # Reject unsafe characters in $srcdir or the absolute working directory
3412 # name. Accept space and tab only in the latter.
3416 *[\\\"\#\$\&\'\`$am_lf]*)
3417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3424 # Do 'set' in a subshell so we don't clobber the current shell's
3425 # arguments. Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3431 for am_try in 1 2; do
3432 echo "timestamp, slept: $am_has_slept" > conftest.file
3433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3434 if test "$*" = "X"; then
3436 set X `ls -t "$srcdir/configure" conftest.file`
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3448 if test "$2" = conftest.file || test $am_try -eq 2; then
3455 test "$2" = conftest.file
3461 as_fn_error $? "newly created file is older than distributed files!
3462 Check your system clock" "$LINENO" 5
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3465 $as_echo "yes" >&6; }
3466 # If we didn't sleep, we still need to ensure time stamps of config.status and
3467 # generated files are strictly newer.
3469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3476 test "$program_prefix" != NONE &&
3477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3478 # Use a double $ so make ignores it.
3479 test "$program_suffix" != NONE &&
3480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3481 # Double any \ or $.
3482 # By default was `s,x,x', remove it if useless.
3483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3486 # expand $ac_aux_dir to an absolute path
3487 am_aux_dir=`cd $ac_aux_dir && pwd`
3489 if test x"${MISSING+set}" != xset; then
3492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3497 # Use eval to expand $SHELL
3498 if eval "$MISSING --is-lightweight"; then
3499 am_missing_run="$MISSING "
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3506 if test x"${install_sh}" != xset; then
3509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3511 install_sh="\${SHELL} $am_aux_dir/install-sh"
3515 # Installed binaries are usually stripped using 'strip' when the user
3516 # run "make install-strip". However 'strip' might not be the right
3517 # tool to use in cross-compilation environments, therefore Automake
3518 # will honor the 'STRIP' environment variable to overrule this program.
3519 if test "$cross_compiling" != no; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}strip; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_STRIP+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$STRIP"; then
3529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 STRIP=$ac_cv_prog_STRIP
3549 if test -n "$STRIP"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3551 $as_echo "$STRIP" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3559 if test -z "$ac_cv_prog_STRIP"; then
3561 # Extract the first word of "strip", so it can be a program name with args.
3562 set dummy strip; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$ac_ct_STRIP"; then
3569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_STRIP="strip"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3589 if test -n "$ac_ct_STRIP"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3591 $as_echo "$ac_ct_STRIP" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3597 if test "x$ac_ct_STRIP" = x; then
3600 case $cross_compiling:$ac_tool_warned in
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604 ac_tool_warned=yes ;;
3609 STRIP="$ac_cv_prog_STRIP"
3613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3617 if test -z "$MKDIR_P"; then
3618 if ${ac_cv_path_mkdir+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in mkdir gmkdir; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3630 'mkdir (GNU coreutils) '* | \
3631 'mkdir (coreutils) '* | \
3632 'mkdir (fileutils) '4.1*)
3633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3643 test -d ./--version && rmdir ./--version
3644 if test "${ac_cv_path_mkdir+set}" = set; then
3645 MKDIR_P="$ac_cv_path_mkdir -p"
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for MKDIR_P within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 MKDIR_P="$ac_install_sh -d"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3655 $as_echo "$MKDIR_P" >&6; }
3657 for ac_prog in gawk mawk nawk awk
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if ${ac_cv_prog_AWK+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 if test -n "$AWK"; then
3667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_AWK="$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$AWK"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3689 $as_echo "$AWK" >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$AWK" && break
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3704 $as_echo_n "(cached) " >&6
3706 cat >conftest.make <<\_ACEOF
3709 @echo '@@@%%%=$(MAKE)=@@@%%%'
3711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3714 eval ac_cv_prog_make_${ac_make}_set=yes;;
3716 eval ac_cv_prog_make_${ac_make}_set=no;;
3720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 SET_MAKE="MAKE=${MAKE-make}"
3730 rm -rf .tst 2>/dev/null
3731 mkdir .tst 2>/dev/null
3732 if test -d .tst; then
3737 rmdir .tst 2>/dev/null
3739 # Check whether --enable-silent-rules was given.
3740 if test "${enable_silent_rules+set}" = set; then :
3741 enableval=$enable_silent_rules;
3744 case $enable_silent_rules in # (((
3745 yes) AM_DEFAULT_VERBOSITY=0;;
3746 no) AM_DEFAULT_VERBOSITY=1;;
3747 *) AM_DEFAULT_VERBOSITY=1;;
3749 am_make=${MAKE-make}
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3752 if ${am_cv_make_support_nested_variables+:} false; then :
3753 $as_echo_n "(cached) " >&6
3755 if $as_echo 'TRUE=$(BAR$(V))
3761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3762 am_cv_make_support_nested_variables=yes
3764 am_cv_make_support_nested_variables=no
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3769 if test $am_cv_make_support_nested_variables = yes; then
3771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3773 AM_V=$AM_DEFAULT_VERBOSITY
3774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3780 # is not polluted with repeated "-I."
3781 am__isrc=' -I$(srcdir)'
3782 # test to see if srcdir already configured
3783 if test -f $srcdir/config.status; then
3784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3788 # test whether we have cygpath
3789 if test -z "$CYGPATH_W"; then
3790 if (cygpath --version) >/dev/null 2>/dev/null; then
3791 CYGPATH_W='cygpath -w'
3798 # Define the identity of the package.
3799 PACKAGE='libpipeline'
3803 cat >>confdefs.h <<_ACEOF
3804 #define PACKAGE "$PACKAGE"
3808 cat >>confdefs.h <<_ACEOF
3809 #define VERSION "$VERSION"
3812 # Some tools Automake needs.
3814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3828 # For better backward compatibility. To be removed once Automake 1.9.x
3829 # dies out for good. For more background, see:
3830 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3831 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3832 mkdir_p='$(MKDIR_P)'
3834 # We need awk for the "check" target. The system "awk" is bad on
3836 # Always define AMTAR for backward compatibility. Yes, it's still used
3837 # in the wild :-( We should find a proper way to deprecate it ...
3841 # We'll loop over all known methods to create a tar archive until one works.
3842 _am_tools='gnutar pax cpio none'
3844 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3851 # POSIX will say in a future version that running "rm -f" with no argument
3852 # is OK; and we want to be able to make that assumption in our Makefile
3853 # recipes. So use an aggressive probe to check that the usage we want is
3854 # actually supported "in the wild" to an acceptable degree.
3855 # See automake bug#10828.
3856 # To make any issue more visible, cause the running configure to be aborted
3857 # by default if the 'rm' program in use doesn't match our expectations; the
3858 # user can still override this though.
3859 if rm -f && rm -fr && rm -rf; then : OK; else
3863 Your 'rm' program seems unable to run without file operands specified
3864 on the command line, even when the '-f' option is present. This is contrary
3865 to the behaviour of most rm programs out there, and not conforming with
3866 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3868 Please tell bug-automake@gnu.org about your system, including the value
3869 of your $PATH and any error possibly output before this message. This
3870 can help us improve future automake versions.
3873 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3874 echo 'Configuration will proceed anyway, since you have set the' >&2
3875 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3879 Aborting the configuration process, to ensure you take notice of the issue.
3881 You can download and install GNU coreutils to get an 'rm' implementation
3882 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3884 If you want to complete the configuration process using your problematic
3885 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3886 to "yes", and re-run configure.
3889 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3896 # Check whether --enable-maintainer-mode was given.
3897 if test "${enable_maintainer_mode+set}" = set; then :
3898 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3900 USE_MAINTAINER_MODE=no
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3905 if test $USE_MAINTAINER_MODE = yes; then
3906 MAINTAINER_MODE_TRUE=
3907 MAINTAINER_MODE_FALSE='#'
3909 MAINTAINER_MODE_TRUE='#'
3910 MAINTAINER_MODE_FALSE=
3913 MAINT=$MAINTAINER_MODE_TRUE
3916 # Check whether --enable-silent-rules was given.
3917 if test "${enable_silent_rules+set}" = set; then :
3918 enableval=$enable_silent_rules;
3921 case $enable_silent_rules in # (((
3922 yes) AM_DEFAULT_VERBOSITY=0;;
3923 no) AM_DEFAULT_VERBOSITY=1;;
3924 *) AM_DEFAULT_VERBOSITY=0;;
3926 am_make=${MAKE-make}
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3928 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3929 if ${am_cv_make_support_nested_variables+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 if $as_echo 'TRUE=$(BAR$(V))
3938 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3939 am_cv_make_support_nested_variables=yes
3941 am_cv_make_support_nested_variables=no
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3945 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3946 if test $am_cv_make_support_nested_variables = yes; then
3948 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3950 AM_V=$AM_DEFAULT_VERBOSITY
3951 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3957 DEPDIR="${am__leading_dot}deps"
3959 ac_config_commands="$ac_config_commands depfiles"
3962 am_make=${MAKE-make}
3963 cat > confinc << 'END'
3965 @echo this is the am__doit target
3968 # If we don't find an include directive, just comment out the code.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3970 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3974 # First try GNU make style include.
3975 echo "include confinc" > confmf
3976 # Ignore all kinds of additional output from 'make'.
3977 case `$am_make -s -f confmf 2> /dev/null` in #(
3978 *the\ am__doit\ target*)
3984 # Now try BSD make style include.
3985 if test "$am__include" = "#"; then
3986 echo '.include "confinc"' > confmf
3987 case `$am_make -s -f confmf 2> /dev/null` in #(
3988 *the\ am__doit\ target*)
3989 am__include=.include
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3998 $as_echo "$_am_result" >&6; }
3999 rm -f confinc confmf
4001 # Check whether --enable-dependency-tracking was given.
4002 if test "${enable_dependency_tracking+set}" = set; then :
4003 enableval=$enable_dependency_tracking;
4006 if test "x$enable_dependency_tracking" != xno; then
4007 am_depcomp="$ac_aux_dir/depcomp"
4011 if test "x$enable_dependency_tracking" != xno; then
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_CC+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4064 if test -z "$ac_cv_prog_CC"; then
4066 # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CC="gcc"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4102 if test "x$ac_ct_CC" = x; then
4105 case $cross_compiling:$ac_tool_warned in
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4158 if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_CC+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4193 if test $# != 0; then
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4204 if test -n "$CC"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4255 test -n "$CC" && break
4258 if test -z "$CC"; then
4260 for ac_prog in cl.exe
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_CC="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$ac_ct_CC" && break
4302 if test "x$ac_ct_CC" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error $? "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details" "$LINENO" 5; }
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327 for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4337 if test -s conftest.err; then
4339 ... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4343 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4365 $as_echo_n "checking whether the C compiler works... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372 for ac_file in $ac_files
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4381 if { { ac_try="$ac_link_default"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4397 for ac_file in $ac_files ''
4399 test -f "$ac_file" || continue
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4404 # We found the default executable, but exeext='' is most
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4427 if test -z "$ac_file"; then :
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error 77 "C compiler cannot create executables
4436 See \`config.log' for more details" "$LINENO" 5; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442 $as_echo_n "checking for C compiler default output file name... " >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444 $as_echo "$ac_file" >&6; }
4445 ac_exeext=$ac_cv_exeext
4447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4448 ac_clean_files=$ac_clean_files_save
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { { ac_try="$ac_link"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_link") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4466 for ac_file in conftest.exe conftest conftest.*; do
4467 test -f "$ac_file" || continue
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details" "$LINENO" 5; }
4481 rm -f conftest conftest$ac_cv_exeext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4483 $as_echo "$ac_cv_exeext" >&6; }
4485 rm -f conftest.$ac_ext
4486 EXEEXT=$ac_cv_exeext
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4494 FILE *f = fopen ("conftest.out", "w");
4495 return ferror (f) || fclose (f) != 0;
4501 ac_clean_files="$ac_clean_files conftest.out"
4502 # Check that the compiler produces executables we can run. If not, either
4503 # the compiler is broken, or we cross compile.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4505 $as_echo_n "checking whether we are cross compiling... " >&6; }
4506 if test "$cross_compiling" != yes; then
4507 { { ac_try="$ac_link"
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_link") 2>&5
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4518 if { ac_try='./conftest$ac_cv_exeext'
4519 { { case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_try") 2>&5
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; }; then
4531 if test "$cross_compiling" = maybe; then
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot run C compiled programs.
4537 If you meant to cross compile, use \`--host'.
4538 See \`config.log' for more details" "$LINENO" 5; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4543 $as_echo "$cross_compiling" >&6; }
4545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4546 ac_clean_files=$ac_clean_files_save
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4548 $as_echo_n "checking for suffix of object files... " >&6; }
4549 if ${ac_cv_objext+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4563 rm -f conftest.o conftest.obj
4564 if { { ac_try="$ac_compile"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_compile") 2>&5
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 for ac_file in conftest.o conftest.obj conftest.*; do
4576 test -f "$ac_file" || continue;
4578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details" "$LINENO" 5; }
4592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4595 $as_echo "$ac_cv_objext" >&6; }
4596 OBJEXT=$ac_cv_objext
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4600 if ${ac_cv_c_compiler_gnu+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4617 if ac_fn_c_try_compile "$LINENO"; then :
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4628 if test $ac_compiler_gnu = yes; then
4633 ac_test_CFLAGS=${CFLAGS+set}
4634 ac_save_CFLAGS=$CFLAGS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4637 if ${ac_cv_prog_cc_g+:} false; then :
4638 $as_echo_n "(cached) " >&6
4640 ac_save_c_werror_flag=$ac_c_werror_flag
4641 ac_c_werror_flag=yes
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 if ac_fn_c_try_compile "$LINENO"; then :
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4670 if ac_fn_c_try_compile "$LINENO"; then :
4673 ac_c_werror_flag=$ac_save_c_werror_flag
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4686 if ac_fn_c_try_compile "$LINENO"; then :
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_c_werror_flag=$ac_save_c_werror_flag
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4697 $as_echo "$ac_cv_prog_cc_g" >&6; }
4698 if test "$ac_test_CFLAGS" = set; then
4699 CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701 if test "$GCC" = yes; then
4707 if test "$GCC" = yes; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4715 if ${ac_cv_prog_cc_c89+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_cv_prog_cc_c89=no
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4726 struct buf { int x; };
4727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728 static char *e (p, i)
4734 static char *f (char * (*g) (char **, int), char **p, ...)
4739 s = g (p, va_arg (v,int));
4744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4745 function prototypes and stuff, but not '\xHH' hex character constants.
4746 These don't provoke an error unfortunately, instead are silently treated
4747 as 'x'. The following induces an error, until -std is added to get
4748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4749 array size at least. It's necessary to write '\x00'==0 to get something
4750 that's true only with -std. */
4751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754 inside strings and character constants. */
4756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4775 CC="$ac_save_CC $ac_arg"
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_c89=$ac_arg
4779 rm -f core conftest.err conftest.$ac_objext
4780 test "x$ac_cv_prog_cc_c89" != "xno" && break
4782 rm -f conftest.$ac_ext
4787 case "x$ac_cv_prog_cc_c89" in
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790 $as_echo "none needed" >&6; } ;;
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793 $as_echo "unsupported" >&6; } ;;
4795 CC="$CC $ac_cv_prog_cc_c89"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4799 if test "x$ac_cv_prog_cc_c89" != xno; then :
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4815 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4816 if ${am_cv_prog_cc_c_o+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4830 # Make sure it works both with $CC and with simple cc.
4831 # Following AC_PROG_CC_C_O, we do the test twice because some
4832 # compilers refuse to overwrite an existing .o file with -o,
4833 # though they will create one.
4834 am_cv_prog_cc_c_o=yes
4836 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4837 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } \
4841 && test -f conftest2.$ac_objext; then
4844 am_cv_prog_cc_c_o=no
4848 rm -f core conftest*
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4852 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4853 if test "$am_cv_prog_cc_c_o" != yes; then
4854 # Losing compiler, so override with the script.
4855 # FIXME: It is wrong to rewrite CC.
4856 # But if we don't then we get into trouble of one sort or another.
4857 # A longer-term fix would be to have automake use am__CC in this case,
4858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4859 CC="$am_aux_dir/compile $CC"
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868 depcc="$CC" am_compiler_list=
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871 $as_echo_n "checking dependency style of $depcc... " >&6; }
4872 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876 # We make a subdir and do the tests there. Otherwise we can end up
4877 # making bogus files that we don't know about and never remove. For
4878 # instance it was reported that on HP-UX the gcc test will end up
4879 # making a dummy file named 'D' -- because '-MD' means "put the output
4883 # Copy depcomp to subdir because otherwise we won't find it if we're
4884 # using a relative directory.
4885 cp "$am_depcomp" conftest.dir
4887 # We will build objects and dependencies in a subdirectory because
4888 # it helps to detect inapplicable dependency modes. For instance
4889 # both Tru64's cc and ICC support -MD to output dependencies as a
4890 # side effect of compilation, but ICC will put the dependencies in
4891 # the current directory while Tru64 will put them in the object
4895 am_cv_CC_dependencies_compiler_type=none
4896 if test "$am_compiler_list" = ""; then
4897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4900 case " $depcc " in #(
4901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4904 for depmode in $am_compiler_list; do
4905 # Setup a source with many dependencies, because some compilers
4906 # like to wrap large dependency lists on column 80 (with \), and
4907 # we should not choose a depcomp mode which is confused by this.
4909 # We need to recreate these files for each test, as the compiler may
4910 # overwrite some of them when testing with obscure command lines.
4911 # This happens at least with the AIX C compiler.
4913 for i in 1 2 3 4 5 6; do
4914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4916 # Solaris 10 /bin/sh.
4917 echo '/* dummy */' > sub/conftst$i.h
4919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4922 # mode. It turns out that the SunPro C++ compiler does not properly
4923 # handle '-M -o', and we need to detect this. Also, some Intel
4924 # versions had trouble with output in subdirs.
4925 am__obj=sub/conftest.${OBJEXT-o}
4926 am__minus_obj="-o $am__obj"
4929 # This depmode causes a compiler race in universal mode.
4930 test "$am__universal" = false || continue
4933 # After this tag, mechanisms are not by side-effect, so they'll
4934 # only be used when explicitly requested.
4935 if test "x$enable_dependency_tracking" = xyes; then
4941 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4942 # This compiler won't grok '-c -o', but also, the minuso test has
4943 # not run yet. These depmodes are late enough in the game, and
4944 # so weak that their functioning should not be impacted.
4945 am__obj=conftest.${OBJEXT-o}
4950 if depmode=$depmode \
4951 source=sub/conftest.c object=$am__obj \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954 >/dev/null 2>conftest.err &&
4955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959 # icc doesn't choke on unknown options, it will just issue warnings
4960 # or remarks (even with -Werror). So we grep stderr for any message
4961 # that says an option was ignored or not supported.
4962 # When given -MP, icc 7.0 and 7.1 complain thusly:
4963 # icc: Command line warning: ignoring option '-M'; no argument required
4964 # The diagnosis changed in icc 8.0:
4965 # icc: Command line remark: option '-MP' not supported
4966 if (grep 'ignoring option' conftest.err ||
4967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968 am_cv_CC_dependencies_compiler_type=$depmode
4977 am_cv_CC_dependencies_compiler_type=none
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4982 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4983 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4986 test "x$enable_dependency_tracking" != xno \
4987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989 am__fastdepCC_FALSE='#'
4991 am__fastdepCC_TRUE='#'
4992 am__fastdepCC_FALSE=
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5003 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5004 # On Suns, sometimes $CPP names a directory.
5005 if test -n "$CPP" && test -d "$CPP"; then
5008 if test -z "$CPP"; then
5009 if ${ac_cv_prog_CPP+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 # Double quotes because CPP needs to be expanded
5013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5016 for ac_c_preproc_warn_flag in '' yes
5018 # Use a header file that comes with gcc, so configuring glibc
5019 # with a fresh cross-compiler works.
5020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5021 # <limits.h> exists even on freestanding compilers.
5022 # On the NeXT, cc -E runs the code through the compiler's parser,
5023 # not just through cpp. "Syntax error" is here to catch this case.
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5027 # include <limits.h>
5029 # include <assert.h>
5033 if ac_fn_c_try_cpp "$LINENO"; then :
5036 # Broken: fails on valid input.
5039 rm -f conftest.err conftest.i conftest.$ac_ext
5041 # OK, works on sane cases. Now check whether nonexistent headers
5042 # can be detected and how.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #include <ac_nonexistent.h>
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5048 # Broken: success on invalid input.
5051 # Passes both tests.
5055 rm -f conftest.err conftest.i conftest.$ac_ext
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.i conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then :
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5073 $as_echo "$CPP" >&6; }
5075 for ac_c_preproc_warn_flag in '' yes
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5086 # include <limits.h>
5088 # include <assert.h>
5092 if ac_fn_c_try_cpp "$LINENO"; then :
5095 # Broken: fails on valid input.
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #include <ac_nonexistent.h>
5106 if ac_fn_c_try_cpp "$LINENO"; then :
5107 # Broken: success on invalid input.
5110 # Passes both tests.
5114 rm -f conftest.err conftest.i conftest.$ac_ext
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.i conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then :
5122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5125 See \`config.log' for more details" "$LINENO" 5; }
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5136 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5137 if ${ac_cv_path_GREP+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -z "$GREP"; then
5141 ac_path_GREP_found=false
5142 # Loop through the user's path and test for each of PROGNAME-LIST
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147 test -z "$as_dir" && as_dir=.
5148 for ac_prog in grep ggrep; do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5151 as_fn_executable_p "$ac_path_GREP" || continue
5152 # Check for GNU ac_path_GREP and select it if it is found.
5153 # Check for GNU $ac_path_GREP
5154 case `"$ac_path_GREP" --version 2>&1` in
5156 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5159 $as_echo_n 0123456789 >"conftest.in"
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 $as_echo 'GREP' >> "conftest.nl"
5166 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 as_fn_arith $ac_count + 1 && ac_count=$as_val
5169 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_GREP="$ac_path_GREP"
5172 ac_path_GREP_max=$ac_count
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5180 $ac_path_GREP_found && break 3
5185 if test -z "$ac_cv_path_GREP"; then
5186 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5189 ac_cv_path_GREP=$GREP
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5194 $as_echo "$ac_cv_path_GREP" >&6; }
5195 GREP="$ac_cv_path_GREP"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5199 $as_echo_n "checking for egrep... " >&6; }
5200 if ${ac_cv_path_EGREP+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5204 then ac_cv_path_EGREP="$GREP -E"
5206 if test -z "$EGREP"; then
5207 ac_path_EGREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in egrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5217 as_fn_executable_p "$ac_path_EGREP" || continue
5218 # Check for GNU ac_path_EGREP and select it if it is found.
5219 # Check for GNU $ac_path_EGREP
5220 case `"$ac_path_EGREP" --version 2>&1` in
5222 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5225 $as_echo_n 0123456789 >"conftest.in"
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'EGREP' >> "conftest.nl"
5232 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_EGREP="$ac_path_EGREP"
5238 ac_path_EGREP_max=$ac_count
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 $ac_path_EGREP_found && break 3
5251 if test -z "$ac_cv_path_EGREP"; then
5252 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5255 ac_cv_path_EGREP=$EGREP
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5261 $as_echo "$ac_cv_path_EGREP" >&6; }
5262 EGREP="$ac_cv_path_EGREP"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5266 $as_echo_n "checking for ANSI C header files... " >&6; }
5267 if ${ac_cv_header_stdc+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_header_stdc=yes
5288 ac_cv_header_stdc=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 if test $ac_cv_header_stdc = yes; then
5293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 $EGREP "memchr" >/dev/null 2>&1; then :
5303 ac_cv_header_stdc=no
5309 if test $ac_cv_header_stdc = yes; then
5310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "free" >/dev/null 2>&1; then :
5320 ac_cv_header_stdc=no
5326 if test $ac_cv_header_stdc = yes; then
5327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5328 if test "$cross_compiling" = yes; then :
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5335 #if ((' ' & 0x0FF) == 0x020)
5336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5339 # define ISLOWER(c) \
5340 (('a' <= (c) && (c) <= 'i') \
5341 || ('j' <= (c) && (c) <= 'r') \
5342 || ('s' <= (c) && (c) <= 'z'))
5343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5351 for (i = 0; i < 256; i++)
5352 if (XOR (islower (i), ISLOWER (i))
5353 || toupper (i) != TOUPPER (i))
5358 if ac_fn_c_try_run "$LINENO"; then :
5361 ac_cv_header_stdc=no
5363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5364 conftest.$ac_objext conftest.beam conftest.$ac_ext
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5370 $as_echo "$ac_cv_header_stdc" >&6; }
5371 if test $ac_cv_header_stdc = yes; then
5373 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379 inttypes.h stdint.h unistd.h
5381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5385 cat >>confdefs.h <<_ACEOF
5386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5396 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5403 if test "$MINIX" = yes; then
5405 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5411 $as_echo "#define _MINIX 1" >>confdefs.h
5414 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5420 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5421 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5427 # define __EXTENSIONS__ 1
5428 $ac_includes_default
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 ac_cv_safe_to_define___extensions__=yes
5440 ac_cv_safe_to_define___extensions__=no
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5445 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5446 test $ac_cv_safe_to_define___extensions__ = yes &&
5447 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5449 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5451 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5453 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5455 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5457 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5460 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5461 if ${ac_cv_should_define__xopen_source+:} false; then :
5462 $as_echo_n "(cached) " >&6
5464 ac_cv_should_define__xopen_source=no
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5478 if ac_fn_c_try_compile "$LINENO"; then :
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 #define _XOPEN_SOURCE 500
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496 ac_cv_should_define__xopen_source=yes
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5503 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5504 test $ac_cv_should_define__xopen_source = yes &&
5505 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5509 if test -n "$ac_tool_prefix"; then
5510 for ac_prog in ar lib "link -lib"
5512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_AR+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 if test -n "$AR"; then
5520 ac_cv_prog_AR="$AR" # Let the user override the test.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 if test -n "$AR"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5542 $as_echo "$AR" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5549 test -n "$AR" && break
5552 if test -z "$AR"; then
5554 for ac_prog in ar lib "link -lib"
5556 # Extract the first word of "$ac_prog", so it can be a program name with args.
5557 set dummy $ac_prog; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$ac_ct_AR"; then
5564 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_AR="$ac_prog"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5584 if test -n "$ac_ct_AR"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5586 $as_echo "$ac_ct_AR" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 test -n "$ac_ct_AR" && break
5596 if test "x$ac_ct_AR" = x; then
5599 case $cross_compiling:$ac_tool_warned in
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5612 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5613 if ${am_cv_ar_interface+:} false; then :
5614 $as_echo_n "(cached) " >&6
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5622 am_cv_ar_interface=ar
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 int some_variable = 0;
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5630 (eval $am_ar_try) 2>&5
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; }
5634 if test "$ac_status" -eq 0; then
5635 am_cv_ar_interface=ar
5637 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5639 (eval $am_ar_try) 2>&5
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; }
5643 if test "$ac_status" -eq 0; then
5644 am_cv_ar_interface=lib
5646 am_cv_ar_interface=unknown
5649 rm -f conftest.lib libconftest.a
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5661 $as_echo "$am_cv_ar_interface" >&6; }
5663 case $am_cv_ar_interface in
5667 # Microsoft lib, so override with the ar-lib wrapper script.
5668 # FIXME: It is wrong to rewrite AR.
5669 # But if we don't then we get into trouble of one sort or another.
5670 # A longer-term fix would be to have automake use am__AR in this case,
5671 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5673 AR="$am_aux_dir/ar-lib $AR"
5676 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5683 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5688 macro_version='2.4.2'
5689 macro_revision='1.3337'
5703 ltmain="$ac_aux_dir/ltmain.sh"
5705 # Make sure we can run config.sub.
5706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5707 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5710 $as_echo_n "checking build system type... " >&6; }
5711 if ${ac_cv_build+:} false; then :
5712 $as_echo_n "(cached) " >&6
5714 ac_build_alias=$build_alias
5715 test "x$ac_build_alias" = x &&
5716 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5717 test "x$ac_build_alias" = x &&
5718 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5724 $as_echo "$ac_cv_build" >&6; }
5725 case $ac_cv_build in
5727 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5730 ac_save_IFS=$IFS; IFS='-'
5736 # Remember, the first character of IFS is used to create $*,
5737 # except with old shells:
5740 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5744 $as_echo_n "checking host system type... " >&6; }
5745 if ${ac_cv_host+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test "x$host_alias" = x; then
5749 ac_cv_host=$ac_cv_build
5751 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5752 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5757 $as_echo "$ac_cv_host" >&6; }
5760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5763 ac_save_IFS=$IFS; IFS='-'
5769 # Remember, the first character of IFS is used to create $*,
5770 # except with old shells:
5773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5776 # Backslashify metacharacters that are still active within
5777 # double-quoted strings.
5778 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5780 # Same as above, but do not quote variable references.
5781 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5783 # Sed substitution to delay expansion of an escaped shell variable in a
5784 # double_quote_subst'ed string.
5785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5787 # Sed substitution to delay expansion of an escaped single quote.
5788 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5790 # Sed substitution to avoid accidental globbing in evaled expressions
5791 no_glob_subst='s/\*/\\\*/g'
5793 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5795 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5798 $as_echo_n "checking how to print strings... " >&6; }
5799 # Test print first, because it will be a builtin if present.
5800 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5801 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5803 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5806 # Use this function as a fallback that always works.
5807 func_fallback_echo ()
5809 eval 'cat <<_LTECHO_EOF
5813 ECHO='func_fallback_echo'
5816 # func_echo_all arg...
5817 # Invoke $ECHO with all args, space-separated.
5824 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5825 $as_echo "printf" >&6; } ;;
5826 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5827 $as_echo "print -r" >&6; } ;;
5828 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5829 $as_echo "cat" >&6; } ;;
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5846 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5847 if ${ac_cv_path_SED+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5851 for ac_i in 1 2 3 4 5 6 7; do
5852 ac_script="$ac_script$as_nl$ac_script"
5854 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5855 { ac_script=; unset ac_script;}
5856 if test -z "$SED"; then
5857 ac_path_SED_found=false
5858 # Loop through the user's path and test for each of PROGNAME-LIST
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_prog in sed gsed; do
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5867 as_fn_executable_p "$ac_path_SED" || continue
5868 # Check for GNU ac_path_SED and select it if it is found.
5869 # Check for GNU $ac_path_SED
5870 case `"$ac_path_SED" --version 2>&1` in
5872 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5875 $as_echo_n 0123456789 >"conftest.in"
5878 cat "conftest.in" "conftest.in" >"conftest.tmp"
5879 mv "conftest.tmp" "conftest.in"
5880 cp "conftest.in" "conftest.nl"
5881 $as_echo '' >> "conftest.nl"
5882 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5884 as_fn_arith $ac_count + 1 && ac_count=$as_val
5885 if test $ac_count -gt ${ac_path_SED_max-0}; then
5886 # Best one so far, save it but keep looking for a better one
5887 ac_cv_path_SED="$ac_path_SED"
5888 ac_path_SED_max=$ac_count
5890 # 10*(2^10) chars as input seems more than enough
5891 test $ac_count -gt 10 && break
5893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5896 $ac_path_SED_found && break 3
5901 if test -z "$ac_cv_path_SED"; then
5902 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5910 $as_echo "$ac_cv_path_SED" >&6; }
5911 SED="$ac_cv_path_SED"
5914 test -z "$SED" && SED=sed
5915 Xsed="$SED -e 1s/^X//"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5928 $as_echo_n "checking for fgrep... " >&6; }
5929 if ${ac_cv_path_FGREP+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5933 then ac_cv_path_FGREP="$GREP -F"
5935 if test -z "$FGREP"; then
5936 ac_path_FGREP_found=false
5937 # Loop through the user's path and test for each of PROGNAME-LIST
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5942 test -z "$as_dir" && as_dir=.
5943 for ac_prog in fgrep; do
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5946 as_fn_executable_p "$ac_path_FGREP" || continue
5947 # Check for GNU ac_path_FGREP and select it if it is found.
5948 # Check for GNU $ac_path_FGREP
5949 case `"$ac_path_FGREP" --version 2>&1` in
5951 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5954 $as_echo_n 0123456789 >"conftest.in"
5957 cat "conftest.in" "conftest.in" >"conftest.tmp"
5958 mv "conftest.tmp" "conftest.in"
5959 cp "conftest.in" "conftest.nl"
5960 $as_echo 'FGREP' >> "conftest.nl"
5961 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5963 as_fn_arith $ac_count + 1 && ac_count=$as_val
5964 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5965 # Best one so far, save it but keep looking for a better one
5966 ac_cv_path_FGREP="$ac_path_FGREP"
5967 ac_path_FGREP_max=$ac_count
5969 # 10*(2^10) chars as input seems more than enough
5970 test $ac_count -gt 10 && break
5972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5975 $ac_path_FGREP_found && break 3
5980 if test -z "$ac_cv_path_FGREP"; then
5981 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5984 ac_cv_path_FGREP=$FGREP
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5990 $as_echo "$ac_cv_path_FGREP" >&6; }
5991 FGREP="$ac_cv_path_FGREP"
5994 test -z "$GREP" && GREP=grep
6014 # Check whether --with-gnu-ld was given.
6015 if test "${with_gnu_ld+set}" = set; then :
6016 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6022 if test "$GCC" = yes; then
6023 # Check if gcc -print-prog-name=ld gives a path.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6025 $as_echo_n "checking for ld used by $CC... " >&6; }
6028 # gcc leaves a trailing carriage return which upsets mingw
6029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6034 # Accept absolute paths.
6036 re_direlt='/[^/][^/]*/\.\./'
6037 # Canonicalize the pathname of ld
6038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6042 test -z "$LD" && LD="$ac_prog"
6045 # If it fails, then pretend we aren't using GCC.
6049 # If it is relative, then search for the first ld in PATH.
6053 elif test "$with_gnu_ld" = yes; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6055 $as_echo_n "checking for GNU ld... " >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6058 $as_echo_n "checking for non-GNU ld... " >&6; }
6060 if ${lt_cv_path_LD+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -z "$LD"; then
6064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6065 for ac_dir in $PATH; do
6067 test -z "$ac_dir" && ac_dir=.
6068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6069 lt_cv_path_LD="$ac_dir/$ac_prog"
6070 # Check to see if the program is GNU ld. I'd rather use --version,
6071 # but apparently some variants of GNU ld only accept -v.
6072 # Break only if it was the GNU/non-GNU ld that we prefer.
6073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6074 *GNU* | *'with BFD'*)
6075 test "$with_gnu_ld" != no && break
6078 test "$with_gnu_ld" != yes && break
6085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6090 if test -n "$LD"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6092 $as_echo "$LD" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6097 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6099 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6100 if ${lt_cv_prog_gnu_ld+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6104 case `$LD -v 2>&1 </dev/null` in
6105 *GNU* | *'with BFD'*)
6106 lt_cv_prog_gnu_ld=yes
6109 lt_cv_prog_gnu_ld=no
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6114 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6115 with_gnu_ld=$lt_cv_prog_gnu_ld
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6126 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6127 if ${lt_cv_path_NM+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$NM"; then
6131 # Let the user override the test.
6134 lt_nm_to_check="${ac_tool_prefix}nm"
6135 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6136 lt_nm_to_check="$lt_nm_to_check nm"
6138 for lt_tmp_nm in $lt_nm_to_check; do
6139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6140 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6142 test -z "$ac_dir" && ac_dir=.
6143 tmp_nm="$ac_dir/$lt_tmp_nm"
6144 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6145 # Check to see if the nm accepts a BSD-compat flag.
6146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6147 # nm: unknown option "B" ignored
6148 # Tru64's nm complains that /dev/null is an invalid object file
6149 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6150 */dev/null* | *'Invalid file or object type'*)
6151 lt_cv_path_NM="$tmp_nm -B"
6155 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6157 lt_cv_path_NM="$tmp_nm -p"
6161 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6162 continue # so that we can try to find one that supports BSD flags
6171 : ${lt_cv_path_NM=no}
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6175 $as_echo "$lt_cv_path_NM" >&6; }
6176 if test "$lt_cv_path_NM" != "no"; then
6179 # Didn't find any BSD compatible name lister, look for dumpbin.
6180 if test -n "$DUMPBIN"; then :
6181 # Let the user override the test.
6183 if test -n "$ac_tool_prefix"; then
6184 for ac_prog in dumpbin "link -dump"
6186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_DUMPBIN+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$DUMPBIN"; then
6194 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 DUMPBIN=$ac_cv_prog_DUMPBIN
6214 if test -n "$DUMPBIN"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6216 $as_echo "$DUMPBIN" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6223 test -n "$DUMPBIN" && break
6226 if test -z "$DUMPBIN"; then
6227 ac_ct_DUMPBIN=$DUMPBIN
6228 for ac_prog in dumpbin "link -dump"
6230 # Extract the first word of "$ac_prog", so it can be a program name with args.
6231 set dummy $ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 if test -n "$ac_ct_DUMPBIN"; then
6238 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6258 if test -n "$ac_ct_DUMPBIN"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6260 $as_echo "$ac_ct_DUMPBIN" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6267 test -n "$ac_ct_DUMPBIN" && break
6270 if test "x$ac_ct_DUMPBIN" = x; then
6273 case $cross_compiling:$ac_tool_warned in
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6279 DUMPBIN=$ac_ct_DUMPBIN
6283 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6285 DUMPBIN="$DUMPBIN -symbols"
6293 if test "$DUMPBIN" != ":"; then
6297 test -z "$NM" && NM=nm
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6305 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6306 if ${lt_cv_nm_interface+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 lt_cv_nm_interface="BSD nm"
6310 echo "int some_variable = 0;" > conftest.$ac_ext
6311 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6312 (eval "$ac_compile" 2>conftest.err)
6313 cat conftest.err >&5
6314 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6315 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6316 cat conftest.err >&5
6317 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6318 cat conftest.out >&5
6319 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6320 lt_cv_nm_interface="MS dumpbin"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6325 $as_echo "$lt_cv_nm_interface" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6328 $as_echo_n "checking whether ln -s works... " >&6; }
6330 if test "$LN_S" = "ln -s"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6332 $as_echo "yes" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6335 $as_echo "no, using $LN_S" >&6; }
6338 # find the maximum length of command line arguments
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6340 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6341 if ${lt_cv_sys_max_cmd_len+:} false; then :
6342 $as_echo_n "(cached) " >&6
6349 # On DJGPP, this test can blow up pretty badly due to problems in libc
6350 # (any single argument exceeding 2000 bytes causes a buffer overrun
6351 # during glob expansion). Even if it were fixed, the result of this
6352 # check would be larger than it should be.
6353 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6357 # Under GNU Hurd, this test is not required because there is
6358 # no limit to the length of command line arguments.
6359 # Libtool will interpret -1 as no limit whatsoever
6360 lt_cv_sys_max_cmd_len=-1;
6363 cygwin* | mingw* | cegcc*)
6364 # On Win9x/ME, this test blows up -- it succeeds, but takes
6365 # about 5 minutes as the teststring grows exponentially.
6366 # Worse, since 9x/ME are not pre-emptively multitasking,
6367 # you end up with a "frozen" computer, even though with patience
6368 # the test eventually succeeds (with a max line length of 256k).
6369 # Instead, let's just punt: use the minimum linelength reported by
6370 # all of the supported platforms: 8192 (on NT/2K/XP).
6371 lt_cv_sys_max_cmd_len=8192;
6375 # On MiNT this can take a long time and run out of memory.
6376 lt_cv_sys_max_cmd_len=8192;
6380 # On AmigaOS with pdksh, this test takes hours, literally.
6381 # So we just punt and use a minimum line length of 8192.
6382 lt_cv_sys_max_cmd_len=8192;
6385 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6386 # This has been around since 386BSD, at least. Likely further.
6387 if test -x /sbin/sysctl; then
6388 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6389 elif test -x /usr/sbin/sysctl; then
6390 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6392 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6394 # And add a safety zone
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6400 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6401 lt_cv_sys_max_cmd_len=196608
6405 # The test takes a long time on OS/2.
6406 lt_cv_sys_max_cmd_len=8192
6410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6412 # nice to cause kernel panics so lets avoid the loop below.
6413 # First set a reasonable default.
6414 lt_cv_sys_max_cmd_len=16384
6416 if test -x /sbin/sysconfig; then
6417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6423 lt_cv_sys_max_cmd_len=102400
6425 sysv5* | sco5v6* | sysv4.2uw2*)
6426 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6427 if test -n "$kargmax"; then
6428 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6430 lt_cv_sys_max_cmd_len=32768
6434 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6435 if test -n "$lt_cv_sys_max_cmd_len" && \
6436 test undefined != "$lt_cv_sys_max_cmd_len"; then
6437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440 # Make teststring a little bigger before we do anything with it.
6441 # a 1K string should be a reasonable start.
6442 for i in 1 2 3 4 5 6 7 8 ; do
6443 teststring=$teststring$teststring
6445 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6446 # If test is not a shell built-in, we'll probably end up computing a
6447 # maximum length that is only half of the actual maximum length, but
6449 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6450 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6451 test $i != 17 # 1/2 MB should be enough
6454 teststring=$teststring$teststring
6456 # Only check the string length outside the loop.
6457 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6459 # Add a significant safety factor because C++ compilers can tack on
6460 # massive amounts of additional arguments before passing them to the
6461 # linker. It appears as though 1/2 is a usable value.
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6469 if test -n $lt_cv_sys_max_cmd_len ; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6471 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6474 $as_echo "none" >&6; }
6476 max_cmd_len=$lt_cv_sys_max_cmd_len
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6488 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6489 # Try some XSI features
6492 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6494 && eval 'test $(( 1 + 1 )) -eq 2 \
6495 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6498 $as_echo "$xsi_shell" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6502 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6504 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6506 && lt_shell_append=yes
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6508 $as_echo "$lt_shell_append" >&6; }
6511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6521 # test EBCDIC or ASCII
6522 case `echo X|tr X '\101'` in
6523 A) # ASCII based system
6524 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6525 lt_SP2NL='tr \040 \012'
6526 lt_NL2SP='tr \015\012 \040\040'
6528 *) # EBCDIC based system
6529 lt_SP2NL='tr \100 \n'
6530 lt_NL2SP='tr \r\n \100\100'
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6543 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6544 if ${lt_cv_to_host_file_cmd+:} false; then :
6545 $as_echo_n "(cached) " >&6
6550 *-*-mingw* ) # actually msys
6551 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6554 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6556 * ) # otherwise, assume *nix
6557 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6563 *-*-mingw* ) # actually msys
6564 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6567 lt_cv_to_host_file_cmd=func_convert_file_noop
6569 * ) # otherwise, assume *nix
6570 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6574 * ) # unhandled hosts (and "normal" native builds)
6575 lt_cv_to_host_file_cmd=func_convert_file_noop
6581 to_host_file_cmd=$lt_cv_to_host_file_cmd
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6583 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6590 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6591 if ${lt_cv_to_tool_file_cmd+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 #assume ordinary cross tools, or native build.
6595 lt_cv_to_tool_file_cmd=func_convert_file_noop
6599 *-*-mingw* ) # actually msys
6600 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6608 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6610 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6617 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6618 if ${lt_cv_ld_reload_flag+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 lt_cv_ld_reload_flag='-r'
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6625 reload_flag=$lt_cv_ld_reload_flag
6626 case $reload_flag in
6628 *) reload_flag=" $reload_flag" ;;
6630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6632 cygwin* | mingw* | pw32* | cegcc*)
6633 if test "$GCC" != yes; then
6638 if test "$GCC" = yes; then
6639 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6641 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_OBJDUMP+:} false; then :
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$OBJDUMP"; then
6663 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 OBJDUMP=$ac_cv_prog_OBJDUMP
6683 if test -n "$OBJDUMP"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6685 $as_echo "$OBJDUMP" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6693 if test -z "$ac_cv_prog_OBJDUMP"; then
6694 ac_ct_OBJDUMP=$OBJDUMP
6695 # Extract the first word of "objdump", so it can be a program name with args.
6696 set dummy objdump; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_OBJDUMP"; then
6703 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6723 if test -n "$ac_ct_OBJDUMP"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6725 $as_echo "$ac_ct_OBJDUMP" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6731 if test "x$ac_ct_OBJDUMP" = x; then
6734 case $cross_compiling:$ac_tool_warned in
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6740 OBJDUMP=$ac_ct_OBJDUMP
6743 OBJDUMP="$ac_cv_prog_OBJDUMP"
6746 test -z "$OBJDUMP" && OBJDUMP=objdump
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6757 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6758 if ${lt_cv_deplibs_check_method+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 lt_cv_file_magic_cmd='$MAGIC_CMD'
6762 lt_cv_file_magic_test_file=
6763 lt_cv_deplibs_check_method='unknown'
6764 # Need to set the preceding variable on all platforms that support
6765 # interlibrary dependencies.
6766 # 'none' -- dependencies not supported.
6767 # `unknown' -- same as none, but documents that we really don't know.
6768 # 'pass_all' -- all dependencies passed with no checks.
6769 # 'test_compile' -- check by making test program.
6770 # 'file_magic [[regex]]' -- check by looking for files in library path
6771 # which responds to the $file_magic_cmd with a given extended regex.
6772 # If you have `file' or equivalent on your system and you're not sure
6773 # whether `pass_all' will *always* work, you probably want this one.
6777 lt_cv_deplibs_check_method=pass_all
6781 lt_cv_deplibs_check_method=pass_all
6785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6786 lt_cv_file_magic_cmd='/usr/bin/file -L'
6787 lt_cv_file_magic_test_file=/shlib/libc.so
6791 # func_win32_libid is a shell function defined in ltmain.sh
6792 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6793 lt_cv_file_magic_cmd='func_win32_libid'
6797 # Base MSYS/MinGW do not provide the 'file' command needed by
6798 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6799 # unless we find 'file', for example because we are cross-compiling.
6800 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6801 if ( test "$lt_cv_nm_interface" = "BSD nm" && 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__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6955 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6959 if test "$build" = "$host"; then
6962 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6965 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6971 file_magic_cmd=$lt_cv_file_magic_cmd
6972 deplibs_check_method=$lt_cv_deplibs_check_method
6973 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6996 if test -n "$ac_tool_prefix"; then
6997 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_DLLTOOL+:} false; then :
7002 $as_echo_n "(cached) " >&6
7004 if test -n "$DLLTOOL"; then
7005 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 DLLTOOL=$ac_cv_prog_DLLTOOL
7025 if test -n "$DLLTOOL"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7027 $as_echo "$DLLTOOL" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7035 if test -z "$ac_cv_prog_DLLTOOL"; then
7036 ac_ct_DLLTOOL=$DLLTOOL
7037 # Extract the first word of "dlltool", so it can be a program name with args.
7038 set dummy dlltool; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7042 $as_echo_n "(cached) " >&6
7044 if test -n "$ac_ct_DLLTOOL"; then
7045 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7065 if test -n "$ac_ct_DLLTOOL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7067 $as_echo "$ac_ct_DLLTOOL" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7073 if test "x$ac_ct_DLLTOOL" = x; then
7076 case $cross_compiling:$ac_tool_warned in
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7082 DLLTOOL=$ac_ct_DLLTOOL
7085 DLLTOOL="$ac_cv_prog_DLLTOOL"
7088 test -z "$DLLTOOL" && DLLTOOL=dlltool
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7100 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7101 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 lt_cv_sharedlib_from_linklib_cmd='unknown'
7107 cygwin* | mingw* | pw32* | cegcc*)
7108 # two different shell functions defined in ltmain.sh
7109 # decide which to use based on capabilities of $DLLTOOL
7110 case `$DLLTOOL --help 2>&1` in
7111 *--identify-strict*)
7112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7115 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7120 # fallback: assume linklib IS sharedlib
7121 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7127 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7128 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7129 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7137 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_AR+:} false; then :
7145 $as_echo_n "(cached) " >&6
7147 if test -n "$AR"; then
7148 ac_cv_prog_AR="$AR" # Let the user override the test.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 if test -n "$AR"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7170 $as_echo "$AR" >&6; }
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7177 test -n "$AR" && break
7180 if test -z "$AR"; then
7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
7185 set dummy $ac_prog; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$ac_ct_AR"; then
7192 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_AR="$ac_prog"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7212 if test -n "$ac_ct_AR"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7214 $as_echo "$ac_ct_AR" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7221 test -n "$ac_ct_AR" && break
7224 if test "x$ac_ct_AR" = x; then
7227 case $cross_compiling:$ac_tool_warned in
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7251 $as_echo_n "checking for archiver @FILE support... " >&6; }
7252 if ${lt_cv_ar_at_file+:} false; then :
7253 $as_echo_n "(cached) " >&6
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268 echo conftest.$ac_objext > conftest.lst
7269 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7271 (eval $lt_ar_try) 2>&5
7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; }
7275 if test "$ac_status" -eq 0; then
7276 # Ensure the archiver fails upon bogus file names.
7277 rm -f conftest.$ac_objext libconftest.a
7278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7279 (eval $lt_ar_try) 2>&5
7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; }
7283 if test "$ac_status" -ne 0; then
7287 rm -f conftest.* libconftest.a
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7294 $as_echo "$lt_cv_ar_at_file" >&6; }
7296 if test "x$lt_cv_ar_at_file" = xno; then
7299 archiver_list_spec=$lt_cv_ar_at_file
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_STRIP+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 if test -n "$STRIP"; then
7317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7339 $as_echo "$STRIP" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7347 if test -z "$ac_cv_prog_STRIP"; then
7349 # Extract the first word of "strip", so it can be a program name with args.
7350 set dummy strip; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$ac_ct_STRIP"; then
7357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_ac_ct_STRIP="strip"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7377 if test -n "$ac_ct_STRIP"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7379 $as_echo "$ac_ct_STRIP" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7385 if test "x$ac_ct_STRIP" = x; then
7388 case $cross_compiling:$ac_tool_warned in
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7397 STRIP="$ac_cv_prog_STRIP"
7400 test -z "$STRIP" && STRIP=:
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_RANLIB+:} false; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -n "$RANLIB"; then
7416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 RANLIB=$ac_cv_prog_RANLIB
7436 if test -n "$RANLIB"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438 $as_echo "$RANLIB" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_RANLIB"; then
7447 ac_ct_RANLIB=$RANLIB
7448 # Extract the first word of "ranlib", so it can be a program name with args.
7449 set dummy ranlib; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$ac_ct_RANLIB"; then
7456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_RANLIB="ranlib"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7476 if test -n "$ac_ct_RANLIB"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7478 $as_echo "$ac_ct_RANLIB" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_RANLIB" = x; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7493 RANLIB=$ac_ct_RANLIB
7496 RANLIB="$ac_cv_prog_RANLIB"
7499 test -z "$RANLIB" && RANLIB=:
7506 # Determine commands to create old-style static archives.
7507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7508 old_postinstall_cmds='chmod 644 $oldlib'
7509 old_postuninstall_cmds=
7511 if test -n "$RANLIB"; then
7514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7525 lock_old_archive_extraction=yes ;;
7527 lock_old_archive_extraction=no ;;
7568 # If no C compiler was specified, use CC.
7571 # If no C compiler flags were specified, use CFLAGS.
7572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7574 # Allow CC to be a program name with arguments.
7578 # Check for command to grab the raw symbol name followed by C symbol from nm.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7581 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7582 $as_echo_n "(cached) " >&6
7585 # These are sane defaults that work on at least a few old systems.
7586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7588 # Character class describing NM global symbol codes.
7589 symcode='[BCDEGRST]'
7591 # Regexp to match symbols that can be accessed directly from C.
7592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7594 # Define system-specific variables.
7599 cygwin* | mingw* | pw32* | cegcc*)
7600 symcode='[ABCDGISTW]'
7603 if test "$host_cpu" = ia64; then
7604 symcode='[ABCDEGRST]'
7608 symcode='[BCDEGRST]'
7611 symcode='[BCDEGQRST]'
7622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7630 # If we're using GNU nm, then use its standard symbol codes.
7631 case `$NM -V 2>&1` in
7632 *GNU* | *'with BFD'*)
7633 symcode='[ABCDGIRSTW]' ;;
7636 # Transform an extracted symbol line into a proper C declaration.
7637 # Some systems (esp. on ia64) link data and code symbols differently,
7638 # so use this general approach.
7639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7641 # Transform an extracted symbol line into symbol name and symbol address
7642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7643 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7645 # Handle CRLF in mingw tool chain
7649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7653 # Try without a prefix underscore, then with it.
7654 for ac_symprfx in "" "_"; do
7656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7657 symxfrm="\\1 $ac_symprfx\\2 \\2"
7659 # Write the raw and C identifiers.
7660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7661 # Fake it for dumpbin and say T for any non-static function
7662 # and D for any global variable.
7663 # Also find C++ and __fastcall symbols from MSVC++,
7664 # which start with @ or ?.
7665 lt_cv_sys_global_symbol_pipe="$AWK '"\
7666 " {last_section=section; section=\$ 3};"\
7667 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7668 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7669 " \$ 0!~/External *\|/{next};"\
7670 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7671 " {if(hide[section]) next};"\
7672 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7673 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7674 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7675 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7676 " ' prfx=^$ac_symprfx"
7678 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7680 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7682 # Check to see that the pipe works correctly.
7686 cat > conftest.$ac_ext <<_LT_EOF
7691 void nm_test_func(void);
7692 void nm_test_func(void){}
7696 int main(){nm_test_var='a';nm_test_func();return(0);}
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 # Now try to grab the symbols.
7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7707 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710 test $ac_status = 0; } && test -s "$nlist"; then
7711 # Try sorting and uniquifying the output.
7712 if sort "$nlist" | uniq > "$nlist"T; then
7713 mv -f "$nlist"T "$nlist"
7718 # Make sure that we snagged all the symbols we need.
7719 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7720 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7721 cat <<_LT_EOF > conftest.$ac_ext
7722 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7723 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7724 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7725 relocations are performed -- see ld's documentation on pseudo-relocs. */
7726 # define LT_DLSYM_CONST
7727 #elif defined(__osf__)
7728 /* This system does not cope well with relocations in const data. */
7729 # define LT_DLSYM_CONST
7731 # define LT_DLSYM_CONST const
7739 # Now generate the symbol file.
7740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7742 cat <<_LT_EOF >> conftest.$ac_ext
7744 /* The mapping between symbol names and symbols. */
7745 LT_DLSYM_CONST struct {
7749 lt__PROGRAM__LTX_preloaded_symbols[] =
7751 { "@PROGRAM@", (void *) 0 },
7753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7754 cat <<\_LT_EOF >> conftest.$ac_ext
7758 /* This works around a problem in FreeBSD linker */
7759 #ifdef FREEBSD_WORKAROUND
7760 static const void *lt_preloaded_setup() {
7761 return lt__PROGRAM__LTX_preloaded_symbols;
7769 # Now try linking the two files.
7770 mv conftest.$ac_objext conftstm.$ac_objext
7771 lt_globsym_save_LIBS=$LIBS
7772 lt_globsym_save_CFLAGS=$CFLAGS
7773 LIBS="conftstm.$ac_objext"
7774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7776 (eval $ac_link) 2>&5
7778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7782 LIBS=$lt_globsym_save_LIBS
7783 CFLAGS=$lt_globsym_save_CFLAGS
7785 echo "cannot find nm_test_func in $nlist" >&5
7788 echo "cannot find nm_test_var in $nlist" >&5
7791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7794 echo "$progname: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7797 rm -rf conftest* conftst*
7799 # Do not use the global_symbol_pipe unless it works.
7800 if test "$pipe_works" = yes; then
7803 lt_cv_sys_global_symbol_pipe=
7809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7810 lt_cv_sys_global_symbol_to_cdecl=
7812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7814 $as_echo "failed" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7817 $as_echo "ok" >&6; }
7820 # Response file support.
7821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7822 nm_file_list_spec='@'
7823 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7824 nm_file_list_spec='@'
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7854 $as_echo_n "checking for sysroot... " >&6; }
7856 # Check whether --with-sysroot was given.
7857 if test "${with_sysroot+set}" = set; then :
7858 withval=$with_sysroot;
7865 case ${with_sysroot} in #(
7867 if test "$GCC" = yes; then
7868 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7872 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7878 $as_echo "${with_sysroot}" >&6; }
7879 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7884 $as_echo "${lt_sysroot:-no}" >&6; }
7890 # Check whether --enable-libtool-lock was given.
7891 if test "${enable_libtool_lock+set}" = set; then :
7892 enableval=$enable_libtool_lock;
7895 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7897 # Some flags need to be propagated to the compiler or linker for good
7901 # Find out which ABI we are using.
7902 echo 'int i;' > conftest.$ac_ext
7903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7904 (eval $ac_compile) 2>&5
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; }; then
7908 case `/usr/bin/file conftest.$ac_objext` in
7920 # Find out which ABI we are using.
7921 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923 (eval $ac_compile) 2>&5
7925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; then
7927 if test "$lt_cv_prog_gnu_ld" = yes; then
7928 case `/usr/bin/file conftest.$ac_objext` in
7930 LD="${LD-ld} -melf32bsmip"
7933 LD="${LD-ld} -melf32bmipn32"
7936 LD="${LD-ld} -melf64bmip"
7940 case `/usr/bin/file conftest.$ac_objext` in
7956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7958 # Find out which ABI we are using.
7959 echo 'int i;' > conftest.$ac_ext
7960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7961 (eval $ac_compile) 2>&5
7963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964 test $ac_status = 0; }; then
7965 case `/usr/bin/file conftest.o` in
7968 x86_64-*kfreebsd*-gnu)
7969 LD="${LD-ld} -m elf_i386_fbsd"
7972 case `/usr/bin/file conftest.o` in
7974 LD="${LD-ld} -m elf32_x86_64"
7977 LD="${LD-ld} -m elf_i386"
7982 LD="${LD-ld} -m elf32lppclinux"
7985 LD="${LD-ld} -m elf32ppclinux"
7988 LD="${LD-ld} -m elf_s390"
7991 LD="${LD-ld} -m elf32_sparc"
7997 x86_64-*kfreebsd*-gnu)
7998 LD="${LD-ld} -m elf_x86_64_fbsd"
8001 LD="${LD-ld} -m elf_x86_64"
8004 LD="${LD-ld} -m elf64lppc"
8007 LD="${LD-ld} -m elf64ppc"
8009 s390*-*linux*|s390*-*tpf*)
8010 LD="${LD-ld} -m elf64_s390"
8013 LD="${LD-ld} -m elf64_sparc"
8023 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8024 SAVE_CFLAGS="$CFLAGS"
8025 CFLAGS="$CFLAGS -belf"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8027 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8028 if ${lt_cv_cc_needs_belf+:} false; then :
8029 $as_echo_n "(cached) " >&6
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8048 if ac_fn_c_try_link "$LINENO"; then :
8049 lt_cv_cc_needs_belf=yes
8051 lt_cv_cc_needs_belf=no
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8063 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8064 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8065 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8066 CFLAGS="$SAVE_CFLAGS"
8070 # Find out which ABI we are using.
8071 echo 'int i;' > conftest.$ac_ext
8072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8073 (eval $ac_compile) 2>&5
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 case `/usr/bin/file conftest.o` in
8079 case $lt_cv_prog_gnu_ld in
8083 LD="${LD-ld} -m elf_x86_64"
8086 LD="${LD-ld} -m elf64_sparc"
8089 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8090 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8095 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8107 need_locks="$enable_libtool_lock"
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}mt; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$MANIFEST_TOOL"; then
8118 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8138 if test -n "$MANIFEST_TOOL"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8140 $as_echo "$MANIFEST_TOOL" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8149 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8150 # Extract the first word of "mt", so it can be a program name with args.
8151 set dummy mt; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 if test -n "$ac_ct_MANIFEST_TOOL"; then
8158 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 test -z "$as_dir" && as_dir=.
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8178 if test -n "$ac_ct_MANIFEST_TOOL"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8180 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8186 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8189 case $cross_compiling:$ac_tool_warned in
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193 ac_tool_warned=yes ;;
8195 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8198 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8201 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8203 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8204 if ${lt_cv_path_mainfest_tool+:} false; then :
8205 $as_echo_n "(cached) " >&6
8207 lt_cv_path_mainfest_tool=no
8208 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8209 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8210 cat conftest.err >&5
8211 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8212 lt_cv_path_mainfest_tool=yes
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8217 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8218 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8228 rhapsody* | darwin*)
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 if test -n "$DSYMUTIL"; then
8238 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8258 if test -n "$DSYMUTIL"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8260 $as_echo "$DSYMUTIL" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8268 if test -z "$ac_cv_prog_DSYMUTIL"; then
8269 ac_ct_DSYMUTIL=$DSYMUTIL
8270 # Extract the first word of "dsymutil", so it can be a program name with args.
8271 set dummy dsymutil; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$ac_ct_DSYMUTIL"; then
8278 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8298 if test -n "$ac_ct_DSYMUTIL"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8300 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8306 if test "x$ac_ct_DSYMUTIL" = x; then
8309 case $cross_compiling:$ac_tool_warned in
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8315 DSYMUTIL=$ac_ct_DSYMUTIL
8318 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_NMEDIT+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$NMEDIT"; then
8330 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 NMEDIT=$ac_cv_prog_NMEDIT
8350 if test -n "$NMEDIT"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8352 $as_echo "$NMEDIT" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8360 if test -z "$ac_cv_prog_NMEDIT"; then
8361 ac_ct_NMEDIT=$NMEDIT
8362 # Extract the first word of "nmedit", so it can be a program name with args.
8363 set dummy nmedit; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -n "$ac_ct_NMEDIT"; then
8370 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8390 if test -n "$ac_ct_NMEDIT"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8392 $as_echo "$ac_ct_NMEDIT" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8398 if test "x$ac_ct_NMEDIT" = x; then
8401 case $cross_compiling:$ac_tool_warned in
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8407 NMEDIT=$ac_ct_NMEDIT
8410 NMEDIT="$ac_cv_prog_NMEDIT"
8413 if test -n "$ac_tool_prefix"; then
8414 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_LIPO+:} false; then :
8419 $as_echo_n "(cached) " >&6
8421 if test -n "$LIPO"; then
8422 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 LIPO=$ac_cv_prog_LIPO
8442 if test -n "$LIPO"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8444 $as_echo "$LIPO" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8452 if test -z "$ac_cv_prog_LIPO"; then
8454 # Extract the first word of "lipo", so it can be a program name with args.
8455 set dummy lipo; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8459 $as_echo_n "(cached) " >&6
8461 if test -n "$ac_ct_LIPO"; then
8462 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471 ac_cv_prog_ac_ct_LIPO="lipo"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8482 if test -n "$ac_ct_LIPO"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8484 $as_echo "$ac_ct_LIPO" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8490 if test "x$ac_ct_LIPO" = x; then
8493 case $cross_compiling:$ac_tool_warned in
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8502 LIPO="$ac_cv_prog_LIPO"
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}otool; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_OTOOL+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$OTOOL"; then
8514 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 OTOOL=$ac_cv_prog_OTOOL
8534 if test -n "$OTOOL"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8536 $as_echo "$OTOOL" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_OTOOL"; then
8546 # Extract the first word of "otool", so it can be a program name with args.
8547 set dummy otool; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$ac_ct_OTOOL"; then
8554 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_ac_ct_OTOOL="otool"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8574 if test -n "$ac_ct_OTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8576 $as_echo "$ac_ct_OTOOL" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_OTOOL" = x; then
8585 case $cross_compiling:$ac_tool_warned in
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8594 OTOOL="$ac_cv_prog_OTOOL"
8597 if test -n "$ac_tool_prefix"; then
8598 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8599 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_OTOOL64+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 if test -n "$OTOOL64"; then
8606 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 OTOOL64=$ac_cv_prog_OTOOL64
8626 if test -n "$OTOOL64"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8628 $as_echo "$OTOOL64" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8636 if test -z "$ac_cv_prog_OTOOL64"; then
8637 ac_ct_OTOOL64=$OTOOL64
8638 # Extract the first word of "otool64", so it can be a program name with args.
8639 set dummy otool64; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$ac_ct_OTOOL64"; then
8646 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_ac_ct_OTOOL64="otool64"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8666 if test -n "$ac_ct_OTOOL64"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8668 $as_echo "$ac_ct_OTOOL64" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8674 if test "x$ac_ct_OTOOL64" = x; then
8677 case $cross_compiling:$ac_tool_warned in
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned=yes ;;
8683 OTOOL64=$ac_ct_OTOOL64
8686 OTOOL64="$ac_cv_prog_OTOOL64"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8716 $as_echo_n "checking for -single_module linker flag... " >&6; }
8717 if ${lt_cv_apple_cc_single_mod+:} false; then :
8718 $as_echo_n "(cached) " >&6
8720 lt_cv_apple_cc_single_mod=no
8721 if test -z "${LT_MULTI_MODULE}"; then
8722 # By default we will add the -single_module flag. You can override
8723 # by either setting the environment variable LT_MULTI_MODULE
8724 # non-empty at configure time, or by adding -multi_module to the
8726 rm -rf libconftest.dylib*
8727 echo "int foo(void){return 1;}" > conftest.c
8728 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib -Wl,-single_module conftest.c" >&5
8730 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8731 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8733 # If there is a non-empty error log, and "single_module"
8734 # appears in it, assume the flag caused a linker warning
8735 if test -s conftest.err && $GREP single_module conftest.err; then
8736 cat conftest.err >&5
8737 # Otherwise, if the output was created with a 0 exit code from
8738 # the compiler, it worked.
8739 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8740 lt_cv_apple_cc_single_mod=yes
8742 cat conftest.err >&5
8744 rm -rf libconftest.dylib*
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8749 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8752 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8753 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 lt_cv_ld_exported_symbols_list=no
8757 save_LDFLAGS=$LDFLAGS
8758 echo "_main" > conftest.sym
8759 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 lt_cv_ld_exported_symbols_list=yes
8774 lt_cv_ld_exported_symbols_list=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LDFLAGS="$save_LDFLAGS"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8782 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8785 $as_echo_n "checking for -force_load linker flag... " >&6; }
8786 if ${lt_cv_ld_force_load+:} false; then :
8787 $as_echo_n "(cached) " >&6
8789 lt_cv_ld_force_load=no
8790 cat > conftest.c << _LT_EOF
8791 int forced_loaded() { return 2;}
8793 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8794 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8795 echo "$AR cru libconftest.a conftest.o" >&5
8796 $AR cru libconftest.a conftest.o 2>&5
8797 echo "$RANLIB libconftest.a" >&5
8798 $RANLIB libconftest.a 2>&5
8799 cat > conftest.c << _LT_EOF
8800 int main() { return 0;}
8802 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8803 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8805 if test -s conftest.err && $GREP force_load conftest.err; then
8806 cat conftest.err >&5
8807 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8808 lt_cv_ld_force_load=yes
8810 cat conftest.err >&5
8812 rm -f conftest.err libconftest.a conftest conftest.c
8813 rm -rf conftest.dSYM
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8817 $as_echo "$lt_cv_ld_force_load" >&6; }
8819 rhapsody* | darwin1.[012])
8820 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8822 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8823 darwin*) # darwin 5.x on
8824 # if running on 10.5 or later, the deployment target defaults
8825 # to the OS version, if on x86, and 10.4, the deployment
8826 # target defaults to 10.4. Don't you love it?
8827 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8828 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8829 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8831 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8833 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8837 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8838 _lt_dar_single_mod='$single_module'
8840 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8841 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8843 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8845 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8846 _lt_dsymutil='~$DSYMUTIL $lib || :'
8853 for ac_header in dlfcn.h
8855 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8857 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8858 cat >>confdefs.h <<_ACEOF
8859 #define HAVE_DLFCN_H 1
8871 # Check whether --enable-static was given.
8872 if test "${enable_static+set}" = set; then :
8873 enableval=$enable_static; p=${PACKAGE-default}
8875 yes) enable_static=yes ;;
8876 no) enable_static=no ;;
8879 # Look at the argument we got. We use all the common list separators.
8880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8881 for pkg in $enableval; do
8883 if test "X$pkg" = "X$p"; then
8909 # Check whether --enable-shared was given.
8910 if test "${enable_shared+set}" = set; then :
8911 enableval=$enable_shared; p=${PACKAGE-default}
8913 yes) enable_shared=yes ;;
8914 no) enable_shared=no ;;
8917 # Look at the argument we got. We use all the common list separators.
8918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8919 for pkg in $enableval; do
8921 if test "X$pkg" = "X$p"; then
8942 # Check whether --with-pic was given.
8943 if test "${with_pic+set}" = set; then :
8944 withval=$with_pic; lt_p=${PACKAGE-default}
8946 yes|no) pic_mode=$withval ;;
8949 # Look at the argument we got. We use all the common list separators.
8950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8951 for lt_pkg in $withval; do
8953 if test "X$lt_pkg" = "X$lt_p"; then
8965 test -z "$pic_mode" && pic_mode=default
8973 # Check whether --enable-fast-install was given.
8974 if test "${enable_fast_install+set}" = set; then :
8975 enableval=$enable_fast_install; p=${PACKAGE-default}
8977 yes) enable_fast_install=yes ;;
8978 no) enable_fast_install=no ;;
8980 enable_fast_install=no
8981 # Look at the argument we got. We use all the common list separators.
8982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983 for pkg in $enableval; do
8985 if test "X$pkg" = "X$p"; then
8986 enable_fast_install=yes
8993 enable_fast_install=yes
9006 # This can be used to rebuild libtool when needed
9007 LIBTOOL_DEPS="$ltmain"
9009 # Always use our own libtool.
9010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9041 test -z "$LN_S" && LN_S="ln -s"
9056 if test -n "${ZSH_VERSION+set}" ; then
9057 setopt NO_GLOB_SUBST
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9061 $as_echo_n "checking for objdir... " >&6; }
9062 if ${lt_cv_objdir+:} false; then :
9063 $as_echo_n "(cached) " >&6
9065 rm -f .libs 2>/dev/null
9066 mkdir .libs 2>/dev/null
9067 if test -d .libs; then
9070 # MS-DOS does not allow filenames that begin with a dot.
9073 rmdir .libs 2>/dev/null
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9076 $as_echo "$lt_cv_objdir" >&6; }
9077 objdir=$lt_cv_objdir
9083 cat >>confdefs.h <<_ACEOF
9084 #define LT_OBJDIR "$lt_cv_objdir/"
9092 # AIX sometimes has problems with the GCC collect2 program. For some
9093 # reason, if we set the COLLECT_NAMES environment variable, the problems
9094 # vanish in a puff of smoke.
9095 if test "X${COLLECT_NAMES+set}" != Xset; then
9097 export COLLECT_NAMES
9104 can_build_shared=yes
9106 # All known linkers require a `.a' archive for static linking (except MSVC,
9107 # which needs '.lib').
9110 with_gnu_ld="$lt_cv_prog_gnu_ld"
9113 old_CFLAGS="$CFLAGS"
9115 # Set sane defaults for various variables
9116 test -z "$CC" && CC=cc
9117 test -z "$LTCC" && LTCC=$CC
9118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9119 test -z "$LD" && LD=ld
9120 test -z "$ac_objext" && ac_objext=o
9122 for cc_temp in $compiler""; do
9124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9130 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9133 # Only perform the check for file, if the check method requires it
9134 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9135 case $deplibs_check_method in
9137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9139 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9141 $as_echo_n "(cached) " >&6
9145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9148 lt_save_MAGIC_CMD="$MAGIC_CMD"
9149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9151 for ac_dir in $ac_dummy; do
9153 test -z "$ac_dir" && ac_dir=.
9154 if test -f $ac_dir/${ac_tool_prefix}file; then
9155 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9156 if test -n "$file_magic_test_file"; then
9157 case $deplibs_check_method in
9159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9162 $EGREP "$file_magic_regex" > /dev/null; then
9167 *** Warning: the command libtool uses to detect shared libraries,
9168 *** $file_magic_cmd, produces output that libtool cannot recognize.
9169 *** The result is that libtool may fail to recognize shared libraries
9170 *** as such. This will affect the creation of libtool libraries that
9171 *** depend on shared libraries, but programs linked with such libtool
9172 *** libraries will work regardless of this problem. Nevertheless, you
9173 *** may want to report the problem to your system manager and/or to
9174 *** bug-libtool@gnu.org
9184 MAGIC_CMD="$lt_save_MAGIC_CMD"
9189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9190 if test -n "$MAGIC_CMD"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9192 $as_echo "$MAGIC_CMD" >&6; }
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9202 if test -z "$lt_cv_path_MAGIC_CMD"; then
9203 if test -n "$ac_tool_prefix"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9205 $as_echo_n "checking for file... " >&6; }
9206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9207 $as_echo_n "(cached) " >&6
9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9214 lt_save_MAGIC_CMD="$MAGIC_CMD"
9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217 for ac_dir in $ac_dummy; do
9219 test -z "$ac_dir" && ac_dir=.
9220 if test -f $ac_dir/file; then
9221 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9222 if test -n "$file_magic_test_file"; then
9223 case $deplibs_check_method in
9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228 $EGREP "$file_magic_regex" > /dev/null; then
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such. This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem. Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9250 MAGIC_CMD="$lt_save_MAGIC_CMD"
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9258 $as_echo "$MAGIC_CMD" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9274 # Use C for the default configuration in the libtool script
9278 ac_cpp='$CPP $CPPFLAGS'
9279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9284 # Source file extension for C test sources.
9287 # Object file extension for compiled C test sources.
9291 # Code to be used in simple compile tests
9292 lt_simple_compile_test_code="int some_variable = 0;"
9294 # Code to be used in simple link tests
9295 lt_simple_link_test_code='int main(){return(0);}'
9303 # If no C compiler was specified, use CC.
9306 # If no C compiler flags were specified, use CFLAGS.
9307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9309 # Allow CC to be a program name with arguments.
9312 # Save the default compiler, since it gets overwritten when the other
9313 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9314 compiler_DEFAULT=$CC
9316 # save warnings/boilerplate of simple test code
9317 ac_outfile=conftest.$ac_objext
9318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9320 _lt_compiler_boilerplate=`cat conftest.err`
9323 ac_outfile=conftest.$ac_objext
9324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9326 _lt_linker_boilerplate=`cat conftest.err`
9331 ## There is no encapsulation within the following macros, do not change
9332 ## the running order or otherwise move them around unless you know exactly
9333 ## what you are doing...
9334 if test -n "$compiler"; then
9336 lt_prog_compiler_no_builtin_flag=
9338 if test "$GCC" = yes; then
9339 case $cc_basename in
9341 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9343 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9347 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9348 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9349 $as_echo_n "(cached) " >&6
9351 lt_cv_prog_compiler_rtti_exceptions=no
9352 ac_outfile=conftest.$ac_objext
9353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354 lt_compiler_flag="-fno-rtti -fno-exceptions"
9355 # Insert the option either (1) after the last *FLAGS variable, or
9356 # (2) before a word containing "conftest.", or (3) at the end.
9357 # Note that $ac_compile itself does not contain backslashes and begins
9358 # with a dollar sign (not a hyphen), so the echo should work correctly.
9359 # The option is referenced via a variable to avoid confusing sed.
9360 lt_compile=`echo "$ac_compile" | $SED \
9361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363 -e 's:$: $lt_compiler_flag:'`
9364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365 (eval "$lt_compile" 2>conftest.err)
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 if (exit $ac_status) && test -s "$ac_outfile"; then
9370 # The compiler can only warn and ignore the option if not recognized
9371 # So say no if there are warnings other than the usual output.
9372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9375 lt_cv_prog_compiler_rtti_exceptions=yes
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9382 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9384 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9397 lt_prog_compiler_wl=
9398 lt_prog_compiler_pic=
9399 lt_prog_compiler_static=
9402 if test "$GCC" = yes; then
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_static='-static'
9408 # All AIX code is PIC.
9409 if test "$host_cpu" = ia64; then
9410 # AIX 5 now supports IA64 processor
9411 lt_prog_compiler_static='-Bstatic'
9418 # see comment about AmigaOS4 .so support
9419 lt_prog_compiler_pic='-fPIC'
9422 # FIXME: we need at least 68020 code to build shared libraries, but
9423 # adding the `-m68020' flag to GCC prevents building anything better,
9425 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9430 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9431 # PIC is the default for these OSes.
9434 mingw* | cygwin* | pw32* | os2* | cegcc*)
9435 # This hack is so that the source file can tell whether it is being
9436 # built for inclusion in a dll (and should export symbols for example).
9437 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9438 # (--disable-auto-import) libraries
9439 lt_prog_compiler_pic='-DDLL_EXPORT'
9442 darwin* | rhapsody*)
9443 # PIC is the default on this platform
9444 # Common symbols not allowed in MH_DYLIB files
9445 lt_prog_compiler_pic='-fno-common'
9449 # PIC is the default for Haiku.
9450 # The "-static" flag exists, but is broken.
9451 lt_prog_compiler_static=
9455 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9456 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9457 # sets the default TLS model and affects inlining.
9463 lt_prog_compiler_pic='-fPIC'
9469 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9470 # Instead, we relocate shared libraries at runtime.
9474 # Just because we use GCC doesn't mean we suddenly get shared libraries
9475 # on systems that don't support them.
9476 lt_prog_compiler_can_build_shared=no
9481 # QNX uses GNU C++, but need to define -shared option too, otherwise
9483 lt_prog_compiler_pic='-fPIC -shared'
9487 if test -d /usr/nec; then
9488 lt_prog_compiler_pic=-Kconform_pic
9493 lt_prog_compiler_pic='-fPIC'
9497 case $cc_basename in
9498 nvcc*) # Cuda Compiler Driver 2.2
9499 lt_prog_compiler_wl='-Xlinker '
9500 if test -n "$lt_prog_compiler_pic"; then
9501 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9506 # PORTME Check for flag to pass linker flags through the system compiler.
9509 lt_prog_compiler_wl='-Wl,'
9510 if test "$host_cpu" = ia64; then
9511 # AIX 5 now supports IA64 processor
9512 lt_prog_compiler_static='-Bstatic'
9514 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9518 mingw* | cygwin* | pw32* | os2* | cegcc*)
9519 # This hack is so that the source file can tell whether it is being
9520 # built for inclusion in a dll (and should export symbols for example).
9521 lt_prog_compiler_pic='-DDLL_EXPORT'
9524 hpux9* | hpux10* | hpux11*)
9525 lt_prog_compiler_wl='-Wl,'
9526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9533 lt_prog_compiler_pic='+Z'
9536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9537 lt_prog_compiler_static='${wl}-a ${wl}archive'
9540 irix5* | irix6* | nonstopux*)
9541 lt_prog_compiler_wl='-Wl,'
9542 # PIC (with -KPIC) is the default.
9543 lt_prog_compiler_static='-non_shared'
9546 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9547 case $cc_basename in
9548 # old Intel for x86_64 which still supported -KPIC.
9550 lt_prog_compiler_wl='-Wl,'
9551 lt_prog_compiler_pic='-KPIC'
9552 lt_prog_compiler_static='-static'
9554 # icc used to be incompatible with GCC.
9555 # ICC 10 doesn't accept -KPIC any more.
9557 lt_prog_compiler_wl='-Wl,'
9558 lt_prog_compiler_pic='-fPIC'
9559 lt_prog_compiler_static='-static'
9561 # Lahey Fortran 8.1.
9563 lt_prog_compiler_wl='-Wl,'
9564 lt_prog_compiler_pic='--shared'
9565 lt_prog_compiler_static='--static'
9568 # NAG Fortran compiler
9569 lt_prog_compiler_wl='-Wl,-Wl,,'
9570 lt_prog_compiler_pic='-PIC'
9571 lt_prog_compiler_static='-Bstatic'
9573 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9574 # Portland Group compilers (*not* the Pentium gcc compiler,
9575 # which looks to be a dead project)
9576 lt_prog_compiler_wl='-Wl,'
9577 lt_prog_compiler_pic='-fpic'
9578 lt_prog_compiler_static='-Bstatic'
9581 lt_prog_compiler_wl='-Wl,'
9582 # All Alpha code is PIC.
9583 lt_prog_compiler_static='-non_shared'
9585 xl* | bgxl* | bgf* | mpixl*)
9586 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9587 lt_prog_compiler_wl='-Wl,'
9588 lt_prog_compiler_pic='-qpic'
9589 lt_prog_compiler_static='-qstaticlink'
9592 case `$CC -V 2>&1 | sed 5q` in
9593 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9594 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9595 lt_prog_compiler_pic='-KPIC'
9596 lt_prog_compiler_static='-Bstatic'
9597 lt_prog_compiler_wl=''
9599 *Sun\ F* | *Sun*Fortran*)
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-Bstatic'
9602 lt_prog_compiler_wl='-Qoption ld '
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 lt_prog_compiler_wl='-Wl,'
9610 *Intel*\ [CF]*Compiler*)
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_pic='-fPIC'
9613 lt_prog_compiler_static='-static'
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-fpic'
9618 lt_prog_compiler_static='-Bstatic'
9626 lt_prog_compiler_pic='-KPIC'
9627 lt_prog_compiler_static='-Bstatic'
9631 # QNX uses GNU C++, but need to define -shared option too, otherwise
9633 lt_prog_compiler_pic='-fPIC -shared'
9636 osf3* | osf4* | osf5*)
9637 lt_prog_compiler_wl='-Wl,'
9638 # All OSF/1 code is PIC.
9639 lt_prog_compiler_static='-non_shared'
9643 lt_prog_compiler_static='-non_shared'
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 case $cc_basename in
9650 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9651 lt_prog_compiler_wl='-Qoption ld ';;
9653 lt_prog_compiler_wl='-Wl,';;
9658 lt_prog_compiler_wl='-Qoption ld '
9659 lt_prog_compiler_pic='-PIC'
9660 lt_prog_compiler_static='-Bstatic'
9663 sysv4 | sysv4.2uw2* | sysv4.3*)
9664 lt_prog_compiler_wl='-Wl,'
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9670 if test -d /usr/nec ;then
9671 lt_prog_compiler_pic='-Kconform_pic'
9672 lt_prog_compiler_static='-Bstatic'
9676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-Bstatic'
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_can_build_shared=no
9688 lt_prog_compiler_pic='-pic'
9689 lt_prog_compiler_static='-Bstatic'
9693 lt_prog_compiler_can_build_shared=no
9699 # For platforms which do not support PIC, -DPIC is meaningless:
9701 lt_prog_compiler_pic=
9704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9709 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9710 if ${lt_cv_prog_compiler_pic+:} false; then :
9711 $as_echo_n "(cached) " >&6
9713 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9716 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9717 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9720 # Check to make sure the PIC flag actually works.
9722 if test -n "$lt_prog_compiler_pic"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9724 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9725 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9726 $as_echo_n "(cached) " >&6
9728 lt_cv_prog_compiler_pic_works=no
9729 ac_outfile=conftest.$ac_objext
9730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9732 # Insert the option either (1) after the last *FLAGS variable, or
9733 # (2) before a word containing "conftest.", or (3) at the end.
9734 # Note that $ac_compile itself does not contain backslashes and begins
9735 # with a dollar sign (not a hyphen), so the echo should work correctly.
9736 # The option is referenced via a variable to avoid confusing sed.
9737 lt_compile=`echo "$ac_compile" | $SED \
9738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9740 -e 's:$: $lt_compiler_flag:'`
9741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9742 (eval "$lt_compile" 2>conftest.err)
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 if (exit $ac_status) && test -s "$ac_outfile"; then
9747 # The compiler can only warn and ignore the option if not recognized
9748 # So say no if there are warnings other than the usual output.
9749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9752 lt_cv_prog_compiler_pic_works=yes
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9759 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9761 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9762 case $lt_prog_compiler_pic in
9764 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9767 lt_prog_compiler_pic=
9768 lt_prog_compiler_can_build_shared=no
9784 # Check to make sure the static flag actually works.
9786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9789 if ${lt_cv_prog_compiler_static_works+:} false; then :
9790 $as_echo_n "(cached) " >&6
9792 lt_cv_prog_compiler_static_works=no
9793 save_LDFLAGS="$LDFLAGS"
9794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9797 # The linker can only warn and ignore the option if not recognized
9798 # So say no if there are warnings
9799 if test -s conftest.err; then
9800 # Append any errors to the config.log.
9801 cat conftest.err 1>&5
9802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804 if diff conftest.exp conftest.er2 >/dev/null; then
9805 lt_cv_prog_compiler_static_works=yes
9808 lt_cv_prog_compiler_static_works=yes
9812 LDFLAGS="$save_LDFLAGS"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9816 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9818 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9821 lt_prog_compiler_static=
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9832 if ${lt_cv_prog_compiler_c_o+:} false; then :
9833 $as_echo_n "(cached) " >&6
9835 lt_cv_prog_compiler_c_o=no
9836 $RM -r conftest 2>/dev/null
9840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9842 lt_compiler_flag="-o out/conftest2.$ac_objext"
9843 # Insert the option either (1) after the last *FLAGS variable, or
9844 # (2) before a word containing "conftest.", or (3) at the end.
9845 # Note that $ac_compile itself does not contain backslashes and begins
9846 # with a dollar sign (not a hyphen), so the echo should work correctly.
9847 lt_compile=`echo "$ac_compile" | $SED \
9848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850 -e 's:$: $lt_compiler_flag:'`
9851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9852 (eval "$lt_compile" 2>out/conftest.err)
9854 cat out/conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9858 # The compiler can only warn and ignore the option if not recognized
9859 # So say no if there are warnings
9860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9863 lt_cv_prog_compiler_c_o=yes
9868 # SGI C++ compiler will create directory out/ii_files/ for
9869 # template instantiation
9870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9871 $RM out/* && rmdir out
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9878 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9887 if ${lt_cv_prog_compiler_c_o+:} false; then :
9888 $as_echo_n "(cached) " >&6
9890 lt_cv_prog_compiler_c_o=no
9891 $RM -r conftest 2>/dev/null
9895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897 lt_compiler_flag="-o out/conftest2.$ac_objext"
9898 # Insert the option either (1) after the last *FLAGS variable, or
9899 # (2) before a word containing "conftest.", or (3) at the end.
9900 # Note that $ac_compile itself does not contain backslashes and begins
9901 # with a dollar sign (not a hyphen), so the echo should work correctly.
9902 lt_compile=`echo "$ac_compile" | $SED \
9903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9905 -e 's:$: $lt_compiler_flag:'`
9906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9907 (eval "$lt_compile" 2>out/conftest.err)
9909 cat out/conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9913 # The compiler can only warn and ignore the option if not recognized
9914 # So say no if there are warnings
9915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler_c_o=yes
9923 # SGI C++ compiler will create directory out/ii_files/ for
9924 # template instantiation
9925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9926 $RM out/* && rmdir out
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9938 hard_links="nottested"
9939 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9940 # do not overwrite the value of need_locks provided by the user
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9942 $as_echo_n "checking if we can lock with hard links... " >&6; }
9945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9947 ln conftest.a conftest.b 2>&5 || hard_links=no
9948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9950 $as_echo "$hard_links" >&6; }
9951 if test "$hard_links" = no; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9953 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9969 allow_undefined_flag=
9970 always_export_symbols=no
9972 archive_expsym_cmds=
9973 compiler_needs_object=no
9974 enable_shared_with_static_runtimes=no
9975 export_dynamic_flag_spec=
9976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9977 hardcode_automatic=no
9979 hardcode_direct_absolute=no
9980 hardcode_libdir_flag_spec=
9981 hardcode_libdir_separator=
9983 hardcode_shlibpath_var=unsupported
9985 link_all_deplibs=unknown
9988 old_archive_from_new_cmds=
9989 old_archive_from_expsyms_cmds=
9990 thread_safe_flag_spec=
9991 whole_archive_flag_spec=
9992 # include_expsyms should be a list of space-separated symbols to be *always*
9993 # included in the symbol list
9995 # exclude_expsyms can be an extended regexp of symbols to exclude
9996 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9997 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9998 # as well as any symbol that contains `d'.
9999 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10000 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10001 # platforms (ab)use it in PIC code, but their linkers get confused if
10002 # the symbol is explicitly referenced. Since portable code cannot
10003 # rely on this symbol name, it's probably fine to never include it in
10004 # preloaded symbol tables.
10005 # Exclude shared library initialization/finalization symbols.
10006 extract_expsyms_cmds=
10009 cygwin* | mingw* | pw32* | cegcc*)
10010 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10011 # When not using gcc, we currently assume that we are using
10012 # Microsoft Visual C++.
10013 if test "$GCC" != yes; then
10018 # we just hope/assume this is gcc and not c89 (= MSVC++)
10024 linux* | k*bsd*-gnu | gnu*)
10025 link_all_deplibs=no
10031 # On some targets, GNU ld is compatible enough with the native linker
10032 # that we're better off using the native interface for both.
10033 lt_use_gnu_ld_interface=no
10034 if test "$with_gnu_ld" = yes; then
10037 # The AIX port of GNU ld has always aspired to compatibility
10038 # with the native linker. However, as the warning in the GNU ld
10039 # block says, versions before 2.19.5* couldn't really create working
10040 # shared libraries, regardless of the interface used.
10041 case `$LD -v 2>&1` in
10042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10046 lt_use_gnu_ld_interface=yes
10051 lt_use_gnu_ld_interface=yes
10056 if test "$lt_use_gnu_ld_interface" = yes; then
10057 # If archive_cmds runs LD, not CC, wlarc should be empty
10060 # Set some defaults for GNU ld with shared library support. These
10061 # are reset later if shared libraries are not supported. Putting them
10062 # here allows them to be overridden if necessary.
10063 runpath_var=LD_RUN_PATH
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 export_dynamic_flag_spec='${wl}--export-dynamic'
10066 # ancient GNU ld didn't support --whole-archive et. al.
10067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10070 whole_archive_flag_spec=
10072 supports_anon_versioning=no
10073 case `$LD -v 2>&1` in
10074 *GNU\ gold*) supports_anon_versioning=yes ;;
10075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078 *\ 2.11.*) ;; # other 2.11 versions
10079 *) supports_anon_versioning=yes ;;
10082 # See if GNU ld supports shared libraries.
10085 # On AIX/PPC, the GNU linker is very broken
10086 if test "$host_cpu" != ia64; then
10090 *** Warning: the GNU linker, at least up to release 2.19, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support. If you
10093 *** really care for shared libraries, you may want to install binutils
10094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10095 *** You will then need to restart the configuration process.
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118 allow_undefined_flag=unsupported
10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120 # support --undefined. This deserves some investigation. FIXME
10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 export_dynamic_flag_spec='${wl}--export-all-symbols'
10132 allow_undefined_flag=unsupported
10133 always_export_symbols=no
10134 enable_shared_with_static_runtimes=yes
10135 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'
10136 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140 # If the export-symbols file already is a .def file (1st line
10141 # is EXPORTS), use it as is; otherwise, prepend...
10142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143 cp $export_symbols $output_objdir/$soname.def;
10145 echo EXPORTS > $output_objdir/$soname.def;
10146 cat $export_symbols >> $output_objdir/$soname.def;
10148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 link_all_deplibs=yes
10161 hardcode_shlibpath_var=no
10162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163 export_dynamic_flag_spec='${wl}-E'
10164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10165 # Instead, shared libraries are loaded at an image base (0x10000000 by
10166 # default) and relocated if they conflict, which is a slow very memory
10167 # consuming and fragmenting process. To avoid this, we pick a random,
10168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10171 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'
10174 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10176 if test "$host_os" = linux-dietlibc; then
10177 case $cc_basename in
10178 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10181 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10182 && test "$tmp_diet" = no
10184 tmp_addflag=' $pic_flag'
10185 tmp_sharedflag='-shared'
10186 case $cc_basename,$host_cpu in
10187 pgcc*) # Portland Group C compiler
10188 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'
10189 tmp_addflag=' $pic_flag'
10191 pgf77* | pgf90* | pgf95* | pgfortran*)
10192 # Portland Group f77 and f90 compilers
10193 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10194 tmp_addflag=' $pic_flag -Mnomain' ;;
10195 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10196 tmp_addflag=' -i_dynamic' ;;
10197 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10198 tmp_addflag=' -i_dynamic -nofor_main' ;;
10199 ifc* | ifort*) # Intel Fortran compiler
10200 tmp_addflag=' -nofor_main' ;;
10201 lf95*) # Lahey Fortran 8.1
10202 whole_archive_flag_spec=
10203 tmp_sharedflag='--shared' ;;
10204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10205 tmp_sharedflag='-qmkshrobj'
10207 nvcc*) # Cuda Compiler Driver 2.2
10208 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'
10209 compiler_needs_object=yes
10212 case `$CC -V 2>&1 | sed 5q` in
10213 *Sun\ C*) # Sun C 5.9
10214 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'
10215 compiler_needs_object=yes
10216 tmp_sharedflag='-G' ;;
10217 *Sun\ F*) # Sun Fortran 8.3
10218 tmp_sharedflag='-G' ;;
10220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 if test "x$supports_anon_versioning" = xyes; then
10223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10225 echo "local: *; };" >> $output_objdir/$libname.ver~
10226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10229 case $cc_basename in
10230 xlf* | bgf* | bgxlf* | mpixlf*)
10231 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10232 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10235 if test "x$supports_anon_versioning" = xyes; then
10236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10238 echo "local: *; };" >> $output_objdir/$libname.ver~
10239 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10248 netbsd* | netbsdelf*-gnu)
10249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10264 *** create shared libraries on Solaris systems. Therefore, libtool
10265 *** is disabling shared libraries support. We urge you to upgrade GNU
10266 *** binutils to release 2.9.1 or newer. Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10280 case `$LD -v 2>&1` in
10281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10286 *** reliably create shared libraries on SCO systems. Therefore, libtool
10287 *** is disabling shared libraries support. We urge you to upgrade GNU
10288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10289 *** your PATH or compiler configuration so that the native linker is
10290 *** used, and then restart.
10295 # For security reasons, it is highly recommended that you always
10296 # use absolute paths for naming shared libraries, and exclude the
10297 # DT_RUNPATH tag from executables and libraries. But doing so
10298 # requires that you compile everything twice, which is a pain.
10299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10327 if test "$ld_shlibs" = no; then
10329 hardcode_libdir_flag_spec=
10330 export_dynamic_flag_spec=
10331 whole_archive_flag_spec=
10334 # PORTME fill in a description of your system's linker (not GNU ld)
10337 allow_undefined_flag=unsupported
10338 always_export_symbols=yes
10339 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'
10340 # Note: this linker hardcodes the directories in LIBPATH if there
10341 # are no directories specified by -L.
10342 hardcode_minus_L=yes
10343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10344 # Neither direct hardcoding nor static linking is supported with a
10346 hardcode_direct=unsupported
10351 if test "$host_cpu" = ia64; then
10352 # On IA64, the linker does run time linking by default, so we don't
10353 # have to do anything special.
10354 aix_use_runtimelinking=no
10355 exp_sym_flag='-Bexport'
10358 # If we're using GNU nm, then we don't want the "-C" option.
10359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10360 # Also, AIX nm treats weak defined symbols like other global
10361 # defined symbols, whereas GNU nm marks them as "W".
10362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10363 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10365 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10367 aix_use_runtimelinking=no
10369 # Test if we are trying to use run time linking or normal
10370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10371 # need to do runtime linking.
10372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10373 for ld_flag in $LDFLAGS; do
10374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10375 aix_use_runtimelinking=yes
10382 exp_sym_flag='-bexport'
10383 no_entry_flag='-bnoentry'
10386 # When large executables or shared objects are built, AIX ld can
10387 # have problems creating the table of contents. If linking a library
10388 # or program results in "error TOC overflow" add -mminimal-toc to
10389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10393 hardcode_direct=yes
10394 hardcode_direct_absolute=yes
10395 hardcode_libdir_separator=':'
10396 link_all_deplibs=yes
10397 file_list_spec='${wl}-f,'
10399 if test "$GCC" = yes; then
10400 case $host_os in aix4.[012]|aix4.[012].*)
10401 # We only want to do this on AIX 4.2 and lower, the check
10402 # below for broken collect2 doesn't work under 4.3+
10403 collect2name=`${CC} -print-prog-name=collect2`
10404 if test -f "$collect2name" &&
10405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10407 # We have reworked collect2
10410 # We have old collect2
10411 hardcode_direct=unsupported
10412 # It fails to find uninstalled libraries when the uninstalled
10413 # path is not listed in the libpath. Setting hardcode_minus_L
10414 # to unsupported forces relinking
10415 hardcode_minus_L=yes
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_libdir_separator=
10421 shared_flag='-shared'
10422 if test "$aix_use_runtimelinking" = yes; then
10423 shared_flag="$shared_flag "'${wl}-G'
10425 link_all_deplibs=no
10428 if test "$host_cpu" = ia64; then
10429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10430 # chokes on -Wl,-G. The following line is correct:
10433 if test "$aix_use_runtimelinking" = yes; then
10434 shared_flag='${wl}-G'
10436 shared_flag='${wl}-bM:SRE'
10441 export_dynamic_flag_spec='${wl}-bexpall'
10442 # It seems that -bexpall does not export symbols beginning with
10443 # underscore (_), so it is better to generate a list of symbols to export.
10444 always_export_symbols=yes
10445 if test "$aix_use_runtimelinking" = yes; then
10446 # Warning - without using the other runtime loading flags (-brtl),
10447 # -berok will link without error, but may produce a broken library.
10448 allow_undefined_flag='-berok'
10449 # Determine the default libpath from the value encoded in an
10450 # empty executable.
10451 if test "${lt_cv_aix_libpath+set}" = set; then
10452 aix_libpath=$lt_cv_aix_libpath
10454 if ${lt_cv_aix_libpath_+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10468 if ac_fn_c_try_link "$LINENO"; then :
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10473 s/^0 *\([^ ]*\) *$/\1/
10477 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$lt_cv_aix_libpath_"; then
10480 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 if test -z "$lt_cv_aix_libpath_"; then
10486 lt_cv_aix_libpath_="/usr/lib:/lib"
10491 aix_libpath=$lt_cv_aix_libpath_
10494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10497 if test "$host_cpu" = ia64; then
10498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499 allow_undefined_flag="-z nodefs"
10500 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"
10502 # Determine the default libpath from the value encoded in an
10503 # empty executable.
10504 if test "${lt_cv_aix_libpath+set}" = set; then
10505 aix_libpath=$lt_cv_aix_libpath
10507 if ${lt_cv_aix_libpath_+:} false; then :
10508 $as_echo_n "(cached) " >&6
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10521 if ac_fn_c_try_link "$LINENO"; then :
10523 lt_aix_libpath_sed='
10524 /Import File Strings/,/^$/ {
10526 s/^0 *\([^ ]*\) *$/\1/
10530 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10531 # Check for a 64-bit object if we didn't find anything.
10532 if test -z "$lt_cv_aix_libpath_"; then
10533 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 if test -z "$lt_cv_aix_libpath_"; then
10539 lt_cv_aix_libpath_="/usr/lib:/lib"
10544 aix_libpath=$lt_cv_aix_libpath_
10547 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10548 # Warning - without using the other run time loading flags,
10549 # -berok will link without error, but may produce a broken library.
10550 no_undefined_flag=' ${wl}-bernotok'
10551 allow_undefined_flag=' ${wl}-berok'
10552 if test "$with_gnu_ld" = yes; then
10553 # We only use this code for GNU lds that support --whole-archive.
10554 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10556 # Exported symbols can be pulled into shared objects from archives
10557 whole_archive_flag_spec='$convenience'
10559 archive_cmds_need_lc=yes
10560 # This is similar to how AIX traditionally builds its shared libraries.
10561 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10569 # see comment about AmigaOS4 .so support
10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571 archive_expsym_cmds=''
10574 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)'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_minus_L=yes
10582 export_dynamic_flag_spec=-rdynamic
10585 cygwin* | mingw* | pw32* | cegcc*)
10586 # When not using gcc, we currently assume that we are using
10587 # Microsoft Visual C++.
10588 # hardcode_libdir_flag_spec is actually meaningless, as there is
10589 # no search path for DLLs.
10590 case $cc_basename in
10593 hardcode_libdir_flag_spec=' '
10594 allow_undefined_flag=unsupported
10595 always_export_symbols=yes
10597 # Tell ltmain to make .lib files, not .a files.
10599 # Tell ltmain to make .dll files, not .so files.
10601 # FIXME: Setting linknames here is a bad hack.
10602 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10604 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10606 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10608 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10610 # The linker will not automatically build a static lib if we build a DLL.
10611 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10612 enable_shared_with_static_runtimes=yes
10613 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10616 old_postinstall_cmds='chmod 644 $oldlib'
10617 postlink_cmds='lt_outputfile="@OUTPUT@"~
10618 lt_tool_outputfile="@TOOL_OUTPUT@"~
10619 case $lt_outputfile in
10622 lt_outputfile="$lt_outputfile.exe"
10623 lt_tool_outputfile="$lt_tool_outputfile.exe"
10626 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10628 $RM "$lt_outputfile.manifest";
10632 # Assume MSVC wrapper
10633 hardcode_libdir_flag_spec=' '
10634 allow_undefined_flag=unsupported
10635 # Tell ltmain to make .lib files, not .a files.
10637 # Tell ltmain to make .dll files, not .so files.
10639 # FIXME: Setting linknames here is a bad hack.
10640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10641 # The linker will automatically build a .lib file if we build a DLL.
10642 old_archive_from_new_cmds='true'
10643 # FIXME: Should let the user specify the lib program.
10644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10645 enable_shared_with_static_runtimes=yes
10650 darwin* | rhapsody*)
10653 archive_cmds_need_lc=no
10655 hardcode_automatic=yes
10656 hardcode_shlibpath_var=unsupported
10657 if test "$lt_cv_ld_force_load" = "yes"; then
10658 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\"`'
10661 whole_archive_flag_spec=''
10663 link_all_deplibs=yes
10664 allow_undefined_flag="$_lt_dar_allow_undefined"
10665 case $cc_basename in
10666 ifort*) _lt_dar_can_shared=yes ;;
10667 *) _lt_dar_can_shared=$GCC ;;
10669 if test "$_lt_dar_can_shared" = "yes"; then
10670 output_verbose_link_cmd=func_echo_all
10671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10673 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}"
10674 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}"
10683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_shlibpath_var=no
10688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10689 # support. Future versions do this automatically, but an explicit c++rt0.o
10690 # does not break anything, and helps significantly (at the cost of a little
10693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10694 hardcode_libdir_flag_spec='-R$libdir'
10695 hardcode_direct=yes
10696 hardcode_shlibpath_var=no
10699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_direct=yes
10703 hardcode_minus_L=yes
10704 hardcode_shlibpath_var=no
10707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10708 freebsd* | dragonfly*)
10709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710 hardcode_libdir_flag_spec='-R$libdir'
10711 hardcode_direct=yes
10712 hardcode_shlibpath_var=no
10716 if test "$GCC" = yes; then
10717 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10719 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10722 hardcode_libdir_separator=:
10723 hardcode_direct=yes
10725 # hardcode_minus_L: Not really in the search PATH,
10726 # but as the default location of the library.
10727 hardcode_minus_L=yes
10728 export_dynamic_flag_spec='${wl}-E'
10732 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10733 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10737 if test "$with_gnu_ld" = no; then
10738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10739 hardcode_libdir_separator=:
10740 hardcode_direct=yes
10741 hardcode_direct_absolute=yes
10742 export_dynamic_flag_spec='${wl}-E'
10743 # hardcode_minus_L: Not really in the search PATH,
10744 # but as the default location of the library.
10745 hardcode_minus_L=yes
10750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10772 # Older versions of the 11.00 compiler do not understand -b yet
10773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10775 $as_echo_n "checking if $CC understands -b... " >&6; }
10776 if ${lt_cv_prog_compiler__b+:} false; then :
10777 $as_echo_n "(cached) " >&6
10779 lt_cv_prog_compiler__b=no
10780 save_LDFLAGS="$LDFLAGS"
10781 LDFLAGS="$LDFLAGS -b"
10782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10784 # The linker can only warn and ignore the option if not recognized
10785 # So say no if there are warnings
10786 if test -s conftest.err; then
10787 # Append any errors to the config.log.
10788 cat conftest.err 1>&5
10789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10791 if diff conftest.exp conftest.er2 >/dev/null; then
10792 lt_cv_prog_compiler__b=yes
10795 lt_cv_prog_compiler__b=yes
10799 LDFLAGS="$save_LDFLAGS"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10805 if test x"$lt_cv_prog_compiler__b" = xyes; then
10806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10814 if test "$with_gnu_ld" = no; then
10815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10816 hardcode_libdir_separator=:
10821 hardcode_shlibpath_var=no
10824 hardcode_direct=yes
10825 hardcode_direct_absolute=yes
10826 export_dynamic_flag_spec='${wl}-E'
10828 # hardcode_minus_L: Not really in the search PATH,
10829 # but as the default location of the library.
10830 hardcode_minus_L=yes
10836 irix5* | irix6* | nonstopux*)
10837 if test "$GCC" = yes; then
10838 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'
10839 # Try to use the -exported_symbol ld option, if it does not
10840 # work, assume that -exports_file does not work either and
10841 # implicitly export all symbols.
10842 # This should be the same for all languages, so no per-tag cache variable.
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10844 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10845 if ${lt_cv_irix_exported_symbol+:} false; then :
10846 $as_echo_n "(cached) " >&6
10848 save_LDFLAGS="$LDFLAGS"
10849 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852 int foo (void) { return 0; }
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 lt_cv_irix_exported_symbol=yes
10857 lt_cv_irix_exported_symbol=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LDFLAGS="$save_LDFLAGS"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10864 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10865 if test "$lt_cv_irix_exported_symbol" = yes; then
10866 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'
10869 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'
10870 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'
10872 archive_cmds_need_lc='no'
10873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874 hardcode_libdir_separator=:
10876 link_all_deplibs=yes
10879 netbsd* | netbsdelf*-gnu)
10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10883 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10885 hardcode_libdir_flag_spec='-R$libdir'
10886 hardcode_direct=yes
10887 hardcode_shlibpath_var=no
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_direct=yes
10893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894 hardcode_libdir_separator=:
10895 hardcode_shlibpath_var=no
10902 if test -f /usr/libexec/ld.so; then
10903 hardcode_direct=yes
10904 hardcode_shlibpath_var=no
10905 hardcode_direct_absolute=yes
10906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10910 export_dynamic_flag_spec='${wl}-E'
10913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_libdir_flag_spec='-R$libdir'
10918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_minus_L=yes
10931 allow_undefined_flag=unsupported
10932 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10933 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10937 if test "$GCC" = yes; then
10938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10939 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'
10941 allow_undefined_flag=' -expect_unresolved \*'
10942 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'
10944 archive_cmds_need_lc='no'
10945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946 hardcode_libdir_separator=:
10949 osf4* | osf5*) # as osf3* with the addition of -msym flag
10950 if test "$GCC" = yes; then
10951 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10952 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'
10953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10955 allow_undefined_flag=' -expect_unresolved \*'
10956 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'
10957 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~
10958 $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'
10960 # Both c and cxx compiler support -rpath directly
10961 hardcode_libdir_flag_spec='-rpath $libdir'
10963 archive_cmds_need_lc='no'
10964 hardcode_libdir_separator=:
10968 no_undefined_flag=' -z defs'
10969 if test "$GCC" = yes; then
10971 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10973 $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'
10975 case `$CC -V 2>&1` in
10978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10984 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10986 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10990 hardcode_libdir_flag_spec='-R$libdir'
10991 hardcode_shlibpath_var=no
10993 solaris2.[0-5] | solaris2.[0-5].*) ;;
10995 # The compiler driver will combine and reorder linker options,
10996 # but understands `-z linker_flag'. GCC discards it without `$wl',
10997 # but is careful enough not to reorder.
10998 # Supported since Solaris 2.6 (maybe 2.5.1?)
10999 if test "$GCC" = yes; then
11000 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11002 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11006 link_all_deplibs=yes
11010 if test "x$host_vendor" = xsequent; then
11011 # Use $CC to link under sequent, because it throws in some extra .o
11012 # files that make .init and .fini sections work.
11013 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11017 hardcode_libdir_flag_spec='-L$libdir'
11018 hardcode_direct=yes
11019 hardcode_minus_L=yes
11020 hardcode_shlibpath_var=no
11024 case $host_vendor in
11026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027 hardcode_direct=yes # is this really true???
11030 ## LD is ld it makes a PLAMLIB
11031 ## CC just makes a GrossModule.
11032 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11033 reload_cmds='$CC -r -o $output$reload_objs'
11037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11041 runpath_var='LD_RUN_PATH'
11042 hardcode_shlibpath_var=no
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_shlibpath_var=no
11048 export_dynamic_flag_spec='-Bexport'
11052 if test -d /usr/nec; then
11053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11054 hardcode_shlibpath_var=no
11055 runpath_var=LD_RUN_PATH
11056 hardcode_runpath_var=yes
11061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11062 no_undefined_flag='${wl}-z,text'
11063 archive_cmds_need_lc=no
11064 hardcode_shlibpath_var=no
11065 runpath_var='LD_RUN_PATH'
11067 if test "$GCC" = yes; then
11068 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 sysv5* | sco3.2v5* | sco5v6*)
11077 # Note: We can NOT use -z defs as we might desire, because we do not
11078 # link with -lc, and that would cause any symbols used from libc to
11079 # always be unresolved, which means just about no library would
11080 # ever link correctly. If we're not using GNU ld we use -z text
11081 # though, which does catch some bad symbols but isn't as heavy-handed
11083 no_undefined_flag='${wl}-z,text'
11084 allow_undefined_flag='${wl}-z,nodefs'
11085 archive_cmds_need_lc=no
11086 hardcode_shlibpath_var=no
11087 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11088 hardcode_libdir_separator=':'
11089 link_all_deplibs=yes
11090 export_dynamic_flag_spec='${wl}-Bexport'
11091 runpath_var='LD_RUN_PATH'
11093 if test "$GCC" = yes; then
11094 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104 hardcode_libdir_flag_spec='-L$libdir'
11105 hardcode_shlibpath_var=no
11113 if test x$host_vendor = xsni; then
11115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11116 export_dynamic_flag_spec='${wl}-Blargedynsym'
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11123 $as_echo "$ld_shlibs" >&6; }
11124 test "$ld_shlibs" = no && can_build_shared=no
11126 with_gnu_ld=$with_gnu_ld
11143 # Do we need to explicitly link libc?
11145 case "x$archive_cmds_need_lc" in
11147 # Assume -lc should be added
11148 archive_cmds_need_lc=yes
11150 if test "$enable_shared" = yes && test "$GCC" = yes; then
11151 case $archive_cmds in
11153 # FIXME: we may have to deal with multi-command sequences.
11156 # Test whether the compiler implicitly links with -lc since on some
11157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11158 # to ld, don't add -lc before -lgcc.
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11161 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11162 $as_echo_n "(cached) " >&6
11165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11168 (eval $ac_compile) 2>&5
11170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171 test $ac_status = 0; } 2>conftest.err; then
11174 libobjs=conftest.$ac_objext
11176 wl=$lt_prog_compiler_wl
11177 pic_flag=$lt_prog_compiler_pic
11183 lt_save_allow_undefined_flag=$allow_undefined_flag
11184 allow_undefined_flag=
11185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11186 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189 test $ac_status = 0; }
11191 lt_cv_archive_cmds_need_lc=no
11193 lt_cv_archive_cmds_need_lc=yes
11195 allow_undefined_flag=$lt_save_allow_undefined_flag
11197 cat conftest.err 1>&5
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11203 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11204 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11363 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11365 if test "$GCC" = yes; then
11367 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11368 *) lt_awk_arg="/^libraries:/" ;;
11371 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11372 *) lt_sed_strip_eq="s,=/,/,g" ;;
11374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11375 case $lt_search_path_spec in
11377 # if the path contains ";" then we assume it to be the separator
11378 # otherwise default to the standard path separator (i.e. ":") - it is
11379 # assumed that no part of a normal pathname contains ";" but that should
11380 # okay in the real world where ";" in dirpaths is itself problematic.
11381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11384 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11387 # Ok, now we have the path, separated by spaces, we can step through it
11388 # and add multilib dir if necessary.
11389 lt_tmp_lt_search_path_spec=
11390 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11391 for lt_sys_path in $lt_search_path_spec; do
11392 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11395 test -d "$lt_sys_path" && \
11396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11400 BEGIN {RS=" "; FS="/|\n";} {
11403 for (lt_i = NF; lt_i > 0; lt_i--) {
11404 if ($lt_i != "" && $lt_i != ".") {
11405 if ($lt_i == "..") {
11408 if (lt_count == 0) {
11409 lt_foo="/" $lt_i lt_foo;
11416 if (lt_foo != "") { lt_freq[lt_foo]++; }
11417 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11419 # AWK program above erroneously prepends '/' to C:/dos/paths
11422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11423 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11429 library_names_spec=
11430 libname_spec='lib$name'
11434 postuninstall_cmds=
11438 shlibpath_overrides_runpath=unknown
11440 dynamic_linker="$host_os ld.so"
11441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11442 need_lib_prefix=unknown
11443 hardcode_into_libs=no
11445 # when you set need_version to no, make sure it does not cause -set_version
11446 # flags to be left without arguments
11447 need_version=unknown
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11453 shlibpath_var=LIBPATH
11455 # AIX 3 has no versioning support, so we append a major version to the name.
11456 soname_spec='${libname}${release}${shared_ext}$major'
11460 version_type=linux # correct to gnu/linux during the next big refactor
11463 hardcode_into_libs=yes
11464 if test "$host_cpu" = ia64; then
11465 # AIX 5 supports IA64
11466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11467 shlibpath_var=LD_LIBRARY_PATH
11469 # With GCC up to 2.95.x, collect2 would create an import file
11470 # for dependence libraries. The import file would start with
11471 # the line `#! .'. This would cause the generated library to
11472 # depend on `.', always an invalid library. This was fixed in
11473 # development snapshots of GCC prior to 3.0.
11475 aix4 | aix4.[01] | aix4.[01].*)
11476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11481 can_build_shared=no
11485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11486 # soname into executable. Probably we can add versioning support to
11487 # collect2, so additional links can be useful in future.
11488 if test "$aix_use_runtimelinking" = yes; then
11489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11490 # instead of lib<name>.a to let people know that these are not
11491 # typical AIX shared libraries.
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 # We preserve .a as extension for shared libraries through AIX4.2
11495 # and later when we are not doing run time linking.
11496 library_names_spec='${libname}${release}.a $libname.a'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LIBPATH
11506 # Since July 2007 AmigaOS4 officially supports .so libraries.
11507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 library_names_spec='$libname.ixlibrary $libname.a'
11512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11513 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11519 library_names_spec='${libname}${shared_ext}'
11520 dynamic_linker="$host_os ld.so"
11521 shlibpath_var=LIBRARY_PATH
11525 version_type=linux # correct to gnu/linux during the next big refactor
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11533 # the default ld.so.conf also contains /usr/contrib/lib and
11534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11535 # libtool to hard-code these into programs
11538 cygwin* | mingw* | pw32* | cegcc*)
11539 version_type=windows
11544 case $GCC,$cc_basename in
11547 library_names_spec='$libname.dll.a'
11548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11549 postinstall_cmds='base_file=`basename \${file}`~
11550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11551 dldir=$destdir/`dirname \$dlpath`~
11552 test -d \$dldir || mkdir -p \$dldir~
11553 $install_prog $dir/$dlname \$dldir/$dlname~
11554 chmod a+x \$dldir/$dlname~
11555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559 dlpath=$dir/\$dldll~
11561 shlibpath_overrides_runpath=yes
11565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11571 # MinGW DLLs use traditional 'lib' prefix
11572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11575 # pw32 DLLs use 'pw' prefix rather than 'lib'
11576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11579 dynamic_linker='Win32 ld.exe'
11584 libname_spec='$name'
11585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11586 library_names_spec='${libname}.dll.lib'
11590 sys_lib_search_path_spec=
11593 for lt_path in $LIB
11596 # Let DOS variable expansion print the short 8.3 style file name.
11597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11601 # Convert to MSYS style.
11602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11605 # Convert to unix form, then to dos form, then back to unix form
11606 # but this time dos style (no spaces!) so that the unix form looks
11607 # like /cygdrive/c/PROGRA~1:/cygdr...
11608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11613 sys_lib_search_path_spec="$LIB"
11614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11615 # It is most probably a Windows format PATH.
11616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11620 # FIXME: find the short name or the path components, as spaces are
11621 # common. (e.g. "Program Files" -> "PROGRA~1")
11625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626 postinstall_cmds='base_file=`basename \${file}`~
11627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11628 dldir=$destdir/`dirname \$dlpath`~
11629 test -d \$dldir || mkdir -p \$dldir~
11630 $install_prog $dir/$dlname \$dldir/$dlname'
11631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632 dlpath=$dir/\$dldll~
11634 shlibpath_overrides_runpath=yes
11635 dynamic_linker='Win32 link.exe'
11639 # Assume MSVC wrapper
11640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11641 dynamic_linker='Win32 ld.exe'
11644 # FIXME: first we should search . and the directory the executable is in
11648 darwin* | rhapsody*)
11649 dynamic_linker="$host_os dyld"
11650 version_type=darwin
11653 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11654 soname_spec='${libname}${release}${major}$shared_ext'
11655 shlibpath_overrides_runpath=yes
11656 shlibpath_var=DYLD_LIBRARY_PATH
11657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11664 version_type=linux # correct to gnu/linux during the next big refactor
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11668 soname_spec='${libname}${release}${shared_ext}$major'
11669 shlibpath_var=LD_LIBRARY_PATH
11672 freebsd* | dragonfly*)
11673 # DragonFly does not have aout. When/if they implement a new
11674 # versioning mechanism, adjust this.
11675 if test -x /usr/bin/objformat; then
11676 objformat=`/usr/bin/objformat`
11679 freebsd[23].*) objformat=aout ;;
11680 *) objformat=elf ;;
11683 version_type=freebsd-$objformat
11684 case $version_type in
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11695 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11700 freebsd3.[01]* | freebsdelf3.[01]*)
11701 shlibpath_overrides_runpath=yes
11702 hardcode_into_libs=yes
11704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11706 shlibpath_overrides_runpath=no
11707 hardcode_into_libs=yes
11709 *) # from 4.6 on, and DragonFly
11710 shlibpath_overrides_runpath=yes
11711 hardcode_into_libs=yes
11717 version_type=linux # correct to gnu/linux during the next big refactor
11720 dynamic_linker="$host_os runtime_loader"
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 shlibpath_var=LIBRARY_PATH
11724 shlibpath_overrides_runpath=yes
11725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11726 hardcode_into_libs=yes
11729 hpux9* | hpux10* | hpux11*)
11730 # Give a soname corresponding to the major version so that dld.sl refuses to
11731 # link against other versions.
11738 hardcode_into_libs=yes
11739 dynamic_linker="$host_os dld.so"
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 if test "X$HPUX_IA64_MODE" = X32; then
11745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11753 hardcode_into_libs=yes
11754 dynamic_linker="$host_os dld.sl"
11755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764 dynamic_linker="$host_os dld.sl"
11765 shlibpath_var=SHLIB_PATH
11766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11771 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11772 postinstall_cmds='chmod 555 $lib'
11773 # or fails outright, so override atomically:
11774 install_override_mode=555
11778 version_type=linux # correct to gnu/linux during the next big refactor
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 shlibpath_overrides_runpath=no
11786 hardcode_into_libs=yes
11789 irix5* | irix6* | nonstopux*)
11791 nonstopux*) version_type=nonstopux ;;
11793 if test "$lt_cv_prog_gnu_ld" = yes; then
11794 version_type=linux # correct to gnu/linux during the next big refactor
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11804 irix5* | nonstopux*)
11805 libsuff= shlibsuff=
11808 case $LD in # libtool.m4 will add one of these switches to LD
11809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11810 libsuff= shlibsuff= libmagic=32-bit;;
11811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11812 libsuff=32 shlibsuff=N32 libmagic=N32;;
11813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11814 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11815 *) libsuff= shlibsuff= libmagic=never-match;;
11819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11820 shlibpath_overrides_runpath=no
11821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11823 hardcode_into_libs=yes
11826 # No shared lib support for Linux oldld, aout, or coff.
11827 linux*oldld* | linux*aout* | linux*coff*)
11831 # This must be glibc/ELF.
11832 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11833 version_type=linux # correct to gnu/linux during the next big refactor
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 shlibpath_overrides_runpath=no
11842 # Some binutils ld are patched to set DT_RUNPATH
11843 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11844 $as_echo_n "(cached) " >&6
11846 lt_cv_shlibpath_overrides_runpath=no
11847 save_LDFLAGS=$LDFLAGS
11848 save_libdir=$libdir
11849 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11850 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11864 lt_cv_shlibpath_overrides_runpath=yes
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LDFLAGS=$save_LDFLAGS
11870 libdir=$save_libdir
11874 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11876 # This implies no fast_install, which is unacceptable.
11877 # Some rework will be needed to allow for fast_install
11878 # before this can be enabled.
11879 hardcode_into_libs=yes
11881 # Append ld.so.conf contents to the search path
11882 if test -f /etc/ld.so.conf; then
11883 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' ' '`
11884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11887 # We used to test for /lib/ld.so.1 and disable shared libraries on
11888 # powerpc, because MkLinux only supported shared libraries with the
11889 # GNU dynamic linker. Since this was broken with cross compilers,
11890 # most powerpc-linux boxes support dynamic linking these days and
11891 # people can always --disable-shared, the test was removed, and we
11892 # assume the GNU/Linux dynamic linker is in use.
11893 dynamic_linker='GNU/Linux ld.so'
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=no
11904 hardcode_into_libs=yes
11905 dynamic_linker='NetBSD ld.elf_so'
11912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11915 dynamic_linker='NetBSD (a.out) ld.so'
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 dynamic_linker='NetBSD ld.elf_so'
11921 shlibpath_var=LD_LIBRARY_PATH
11922 shlibpath_overrides_runpath=yes
11923 hardcode_into_libs=yes
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=yes
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=no
11941 hardcode_into_libs=yes
11942 dynamic_linker='ldqnx.so'
11947 sys_lib_dlsearch_path_spec="/usr/lib"
11949 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11951 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11952 *) need_version=no ;;
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11959 openbsd2.[89] | openbsd2.[89].*)
11960 shlibpath_overrides_runpath=no
11963 shlibpath_overrides_runpath=yes
11967 shlibpath_overrides_runpath=yes
11972 libname_spec='$name'
11975 library_names_spec='$libname${shared_ext} $libname.a'
11976 dynamic_linker='OS/2 ld.exe'
11977 shlibpath_var=LIBPATH
11980 osf3* | osf4* | osf5*)
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11996 version_type=linux # correct to gnu/linux during the next big refactor
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=yes
12003 hardcode_into_libs=yes
12004 # ldd complains unless libraries are executable
12005 postinstall_cmds='chmod +x $lib'
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12014 if test "$with_gnu_ld" = yes; then
12021 version_type=linux # correct to gnu/linux during the next big refactor
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 case $host_vendor in
12027 shlibpath_overrides_runpath=no
12029 runpath_var=LD_RUN_PATH
12037 shlibpath_overrides_runpath=no
12038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12044 if test -d /usr/nec ;then
12045 version_type=linux # correct to gnu/linux during the next big refactor
12046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12047 soname_spec='$libname${shared_ext}.$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12053 version_type=freebsd-elf
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12061 if test "$with_gnu_ld" = yes; then
12062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12071 sys_lib_dlsearch_path_spec='/usr/lib'
12075 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12076 version_type=linux # correct to gnu/linux during the next big refactor
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=no
12082 hardcode_into_libs=yes
12086 version_type=linux # correct to gnu/linux during the next big refactor
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 shlibpath_var=LD_LIBRARY_PATH
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12097 $as_echo "$dynamic_linker" >&6; }
12098 test "$dynamic_linker" = no && can_build_shared=no
12100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12101 if test "$GCC" = yes; then
12102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12106 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12109 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12206 if test -n "$hardcode_libdir_flag_spec" ||
12207 test -n "$runpath_var" ||
12208 test "X$hardcode_automatic" = "Xyes" ; then
12210 # We can hardcode non-existent directories.
12211 if test "$hardcode_direct" != no &&
12212 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12213 # have to relink, otherwise we might link with an installed library
12214 # when we should be linking with a yet-to-be-installed one
12215 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12216 test "$hardcode_minus_L" != no; then
12217 # Linking always hardcodes the temporary library directory.
12218 hardcode_action=relink
12220 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12221 hardcode_action=immediate
12224 # We cannot hardcode anything, or else we can only hardcode existing
12226 hardcode_action=unsupported
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12229 $as_echo "$hardcode_action" >&6; }
12231 if test "$hardcode_action" = relink ||
12232 test "$inherit_rpath" = yes; then
12233 # Fast installation is not supported
12234 enable_fast_install=no
12235 elif test "$shlibpath_overrides_runpath" = yes ||
12236 test "$enable_shared" = no; then
12237 # Fast installation is not necessary
12238 enable_fast_install=needless
12246 if test "x$enable_dlopen" != xyes; then
12247 enable_dlopen=unknown
12248 enable_dlopen_self=unknown
12249 enable_dlopen_self_static=unknown
12256 lt_cv_dlopen="load_add_on"
12258 lt_cv_dlopen_self=yes
12261 mingw* | pw32* | cegcc*)
12262 lt_cv_dlopen="LoadLibrary"
12267 lt_cv_dlopen="dlopen"
12272 # if libdl is installed we need to link against it
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12275 if ${ac_cv_lib_dl_dlopen+:} false; then :
12276 $as_echo_n "(cached) " >&6
12278 ac_check_lib_save_LIBS=$LIBS
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_dl_dlopen=yes
12301 ac_cv_lib_dl_dlopen=no
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12313 lt_cv_dlopen="dyld"
12315 lt_cv_dlopen_self=yes
12322 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12323 if test "x$ac_cv_func_shl_load" = xyes; then :
12324 lt_cv_dlopen="shl_load"
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12327 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12328 if ${ac_cv_lib_dld_shl_load+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 ac_check_lib_save_LIBS=$LIBS
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12346 return shl_load ();
12351 if ac_fn_c_try_link "$LINENO"; then :
12352 ac_cv_lib_dld_shl_load=yes
12354 ac_cv_lib_dld_shl_load=no
12356 rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12361 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12362 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12365 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12366 if test "x$ac_cv_func_dlopen" = xyes; then :
12367 lt_cv_dlopen="dlopen"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12371 if ${ac_cv_lib_dl_dlopen+:} false; then :
12372 $as_echo_n "(cached) " >&6
12374 ac_check_lib_save_LIBS=$LIBS
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12394 if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_dl_dlopen=yes
12397 ac_cv_lib_dl_dlopen=no
12399 rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12409 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12410 if ${ac_cv_lib_svld_dlopen+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-lsvld $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_lib_svld_dlopen=yes
12436 ac_cv_lib_svld_dlopen=no
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12443 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12444 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12448 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12449 if ${ac_cv_lib_dld_dld_link+:} false; then :
12450 $as_echo_n "(cached) " >&6
12452 ac_check_lib_save_LIBS=$LIBS
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 /* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12467 return dld_link ();
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_lib_dld_dld_link=yes
12475 ac_cv_lib_dld_dld_link=no
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12483 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12484 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12505 if test "x$lt_cv_dlopen" != xno; then
12511 case $lt_cv_dlopen in
12513 save_CPPFLAGS="$CPPFLAGS"
12514 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12516 save_LDFLAGS="$LDFLAGS"
12517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12520 LIBS="$lt_cv_dlopen_libs $LIBS"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12524 if ${lt_cv_dlopen_self+:} false; then :
12525 $as_echo_n "(cached) " >&6
12527 if test "$cross_compiling" = yes; then :
12528 lt_cv_dlopen_self=cross
12530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531 lt_status=$lt_dlunknown
12532 cat > conftest.$ac_ext <<_LT_EOF
12533 #line $LINENO "configure"
12534 #include "confdefs.h"
12543 # define LT_DLGLOBAL RTLD_GLOBAL
12546 # define LT_DLGLOBAL DL_GLOBAL
12548 # define LT_DLGLOBAL 0
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553 find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12559 # define LT_DLLAZY_OR_NOW DL_LAZY
12562 # define LT_DLLAZY_OR_NOW RTLD_NOW
12565 # define LT_DLLAZY_OR_NOW DL_NOW
12567 # define LT_DLLAZY_OR_NOW 0
12574 /* When -fvisbility=hidden is used, assume the code has been annotated
12575 correspondingly for the symbols needed. */
12576 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12577 int fnord () __attribute__((visibility("default")));
12580 int fnord () { return 42; }
12583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12584 int status = $lt_dlunknown;
12588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12592 else puts (dlerror ());
12594 /* dlclose (self); */
12602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12603 (eval $ac_link) 2>&5
12605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12607 (./conftest; exit; ) >&5 2>/dev/null
12609 case x$lt_status in
12610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12612 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12615 # compilation failed
12616 lt_cv_dlopen_self=no
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12624 $as_echo "$lt_cv_dlopen_self" >&6; }
12626 if test "x$lt_cv_dlopen_self" = xyes; then
12627 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12629 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12630 if ${lt_cv_dlopen_self_static+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 if test "$cross_compiling" = yes; then :
12634 lt_cv_dlopen_self_static=cross
12636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12637 lt_status=$lt_dlunknown
12638 cat > conftest.$ac_ext <<_LT_EOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12649 # define LT_DLGLOBAL RTLD_GLOBAL
12652 # define LT_DLGLOBAL DL_GLOBAL
12654 # define LT_DLGLOBAL 0
12658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12659 find out it does not work in some platform. */
12660 #ifndef LT_DLLAZY_OR_NOW
12662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12665 # define LT_DLLAZY_OR_NOW DL_LAZY
12668 # define LT_DLLAZY_OR_NOW RTLD_NOW
12671 # define LT_DLLAZY_OR_NOW DL_NOW
12673 # define LT_DLLAZY_OR_NOW 0
12680 /* When -fvisbility=hidden is used, assume the code has been annotated
12681 correspondingly for the symbols needed. */
12682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12683 int fnord () __attribute__((visibility("default")));
12686 int fnord () { return 42; }
12689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12690 int status = $lt_dlunknown;
12694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12698 else puts (dlerror ());
12700 /* dlclose (self); */
12708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12709 (eval $ac_link) 2>&5
12711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12713 (./conftest; exit; ) >&5 2>/dev/null
12715 case x$lt_status in
12716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12718 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12721 # compilation failed
12722 lt_cv_dlopen_self_static=no
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12733 CPPFLAGS="$save_CPPFLAGS"
12734 LDFLAGS="$save_LDFLAGS"
12739 case $lt_cv_dlopen_self in
12740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12741 *) enable_dlopen_self=unknown ;;
12744 case $lt_cv_dlopen_self_static in
12745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12746 *) enable_dlopen_self_static=unknown ;;
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12769 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12770 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12776 # FIXME - insert some real tests, host_os isn't really good enough
12779 if test -n "$STRIP" ; then
12780 striplib="$STRIP -x"
12781 old_striplib="$STRIP -S"
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783 $as_echo "yes" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12807 # Report which library types will actually be built
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12809 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12811 $as_echo "$can_build_shared" >&6; }
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12814 $as_echo_n "checking whether to build shared libraries... " >&6; }
12815 test "$can_build_shared" = "no" && enable_shared=no
12817 # On AIX, shared libraries and static libraries use the same namespace, and
12818 # are all built from PIC.
12821 test "$enable_shared" = yes && enable_static=no
12822 if test -n "$RANLIB"; then
12823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12824 postinstall_cmds='$RANLIB $lib'
12829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12830 test "$enable_shared" = yes && enable_static=no
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12835 $as_echo "$enable_shared" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12838 $as_echo_n "checking whether to build static libraries... " >&6; }
12839 # Make sure either enable_shared or enable_static is yes.
12840 test "$enable_shared" = yes || enable_static=yes
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12842 $as_echo "$enable_static" >&6; }
12849 ac_cpp='$CPP $CPPFLAGS'
12850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870 ac_config_commands="$ac_config_commands libtool"
12875 # Only expand once:
12879 ac_config_headers="$ac_config_headers config.h"
12883 # Check $PATH for the following programs and append suitable options.
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 if test -n "$ac_tool_prefix"; then
12890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if ${ac_cv_prog_CC+:} false; then :
12895 $as_echo_n "(cached) " >&6
12897 if test -n "$CC"; then
12898 ac_cv_prog_CC="$CC" # Let the user override the test.
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 if test -n "$CC"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12920 $as_echo "$CC" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test -z "$ac_cv_prog_CC"; then
12930 # Extract the first word of "gcc", so it can be a program name with args.
12931 set dummy gcc; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12935 $as_echo_n "(cached) " >&6
12937 if test -n "$ac_ct_CC"; then
12938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_prog_ac_ct_CC="gcc"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12958 if test -n "$ac_ct_CC"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12960 $as_echo "$ac_ct_CC" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12966 if test "x$ac_ct_CC" = x; then
12969 case $cross_compiling:$ac_tool_warned in
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12973 ac_tool_warned=yes ;;
12978 CC="$ac_cv_prog_CC"
12981 if test -z "$CC"; then
12982 if test -n "$ac_tool_prefix"; then
12983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12984 set dummy ${ac_tool_prefix}cc; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_prog_CC+:} false; then :
12988 $as_echo_n "(cached) " >&6
12990 if test -n "$CC"; then
12991 ac_cv_prog_CC="$CC" # Let the user override the test.
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_prog_CC="${ac_tool_prefix}cc"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 if test -n "$CC"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13013 $as_echo "$CC" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13022 if test -z "$CC"; then
13023 # Extract the first word of "cc", so it can be a program name with args.
13024 set dummy cc; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if ${ac_cv_prog_CC+:} false; then :
13028 $as_echo_n "(cached) " >&6
13030 if test -n "$CC"; then
13031 ac_cv_prog_CC="$CC" # Let the user override the test.
13033 ac_prog_rejected=no
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13038 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13042 ac_prog_rejected=yes
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 if test $ac_prog_rejected = yes; then
13054 # We found a bogon in the path, so make sure we never use it.
13055 set dummy $ac_cv_prog_CC
13057 if test $# != 0; then
13058 # We chose a different compiler from the bogus one.
13059 # However, it has the same basename, so the bogon will be chosen
13060 # first if we set CC to just the basename; use the full file name.
13062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13068 if test -n "$CC"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13070 $as_echo "$CC" >&6; }
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13078 if test -z "$CC"; then
13079 if test -n "$ac_tool_prefix"; then
13080 for ac_prog in cl.exe
13082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if ${ac_cv_prog_CC+:} false; then :
13087 $as_echo_n "(cached) " >&6
13089 if test -n "$CC"; then
13090 ac_cv_prog_CC="$CC" # Let the user override the test.
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 if test -n "$CC"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13112 $as_echo "$CC" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13119 test -n "$CC" && break
13122 if test -z "$CC"; then
13124 for ac_prog in cl.exe
13126 # Extract the first word of "$ac_prog", so it can be a program name with args.
13127 set dummy $ac_prog; ac_word=$2
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129 $as_echo_n "checking for $ac_word... " >&6; }
13130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13131 $as_echo_n "(cached) " >&6
13133 if test -n "$ac_ct_CC"; then
13134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143 ac_cv_prog_ac_ct_CC="$ac_prog"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13154 if test -n "$ac_ct_CC"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13156 $as_echo "$ac_ct_CC" >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13163 test -n "$ac_ct_CC" && break
13166 if test "x$ac_ct_CC" = x; then
13169 case $cross_compiling:$ac_tool_warned in
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173 ac_tool_warned=yes ;;
13182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13184 as_fn_error $? "no acceptable C compiler found in \$PATH
13185 See \`config.log' for more details" "$LINENO" 5; }
13187 # Provide some information about the compiler.
13188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13191 for ac_option in --version -v -V -qversion; do
13192 { { ac_try="$ac_compiler $ac_option >&5"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13198 $as_echo "$ac_try_echo"; } >&5
13199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13201 if test -s conftest.err; then
13203 ... rest of stderr output deleted ...
13204 10q' conftest.err >conftest.er1
13205 cat conftest.er1 >&5
13207 rm -f conftest.er1 conftest.err
13208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209 test $ac_status = 0; }
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13214 if ${ac_cv_c_compiler_gnu+:} false; then :
13215 $as_echo_n "(cached) " >&6
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 ac_compiler_gnu=yes
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13242 if test $ac_compiler_gnu = yes; then
13247 ac_test_CFLAGS=${CFLAGS+set}
13248 ac_save_CFLAGS=$CFLAGS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13251 if ${ac_cv_prog_cc_g+:} false; then :
13252 $as_echo_n "(cached) " >&6
13254 ac_save_c_werror_flag=$ac_c_werror_flag
13255 ac_c_werror_flag=yes
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13269 if ac_fn_c_try_compile "$LINENO"; then :
13270 ac_cv_prog_cc_g=yes
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13284 if ac_fn_c_try_compile "$LINENO"; then :
13287 ac_c_werror_flag=$ac_save_c_werror_flag
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301 ac_cv_prog_cc_g=yes
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308 ac_c_werror_flag=$ac_save_c_werror_flag
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13311 $as_echo "$ac_cv_prog_cc_g" >&6; }
13312 if test "$ac_test_CFLAGS" = set; then
13313 CFLAGS=$ac_save_CFLAGS
13314 elif test $ac_cv_prog_cc_g = yes; then
13315 if test "$GCC" = yes; then
13321 if test "$GCC" = yes; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13329 if ${ac_cv_prog_cc_c89+:} false; then :
13330 $as_echo_n "(cached) " >&6
13332 ac_cv_prog_cc_c89=no
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <stdarg.h>
13339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13340 struct buf { int x; };
13341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13342 static char *e (p, i)
13348 static char *f (char * (*g) (char **, int), char **p, ...)
13353 s = g (p, va_arg (v,int));
13358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13359 function prototypes and stuff, but not '\xHH' hex character constants.
13360 These don't provoke an error unfortunately, instead are silently treated
13361 as 'x'. The following induces an error, until -std is added to get
13362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13363 array size at least. It's necessary to write '\x00'==0 to get something
13364 that's true only with -std. */
13365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13368 inside strings and character constants. */
13370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13372 int test (int i, double x);
13373 struct s1 {int (*f) (int a);};
13374 struct s2 {int (*f) (double a);};
13375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13389 CC="$ac_save_CC $ac_arg"
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 ac_cv_prog_cc_c89=$ac_arg
13393 rm -f core conftest.err conftest.$ac_objext
13394 test "x$ac_cv_prog_cc_c89" != "xno" && break
13396 rm -f conftest.$ac_ext
13401 case "x$ac_cv_prog_cc_c89" in
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13404 $as_echo "none needed" >&6; } ;;
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13407 $as_echo "unsupported" >&6; } ;;
13409 CC="$CC $ac_cv_prog_cc_c89"
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13413 if test "x$ac_cv_prog_cc_c89" != xno; then :
13418 ac_cpp='$CPP $CPPFLAGS'
13419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13424 ac_cpp='$CPP $CPPFLAGS'
13425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13429 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13430 if ${am_cv_prog_cc_c_o+:} false; then :
13431 $as_echo_n "(cached) " >&6
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13444 # Make sure it works both with $CC and with simple cc.
13445 # Following AC_PROG_CC_C_O, we do the test twice because some
13446 # compilers refuse to overwrite an existing .o file with -o,
13447 # though they will create one.
13448 am_cv_prog_cc_c_o=yes
13449 for am_i in 1 2; do
13450 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13451 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } \
13455 && test -f conftest2.$ac_objext; then
13458 am_cv_prog_cc_c_o=no
13462 rm -f core conftest*
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13466 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13467 if test "$am_cv_prog_cc_c_o" != yes; then
13468 # Losing compiler, so override with the script.
13469 # FIXME: It is wrong to rewrite CC.
13470 # But if we don't then we get into trouble of one sort or another.
13471 # A longer-term fix would be to have automake use am__CC in this case,
13472 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13473 CC="$am_aux_dir/compile $CC"
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13482 depcc="$CC" am_compiler_list=
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13485 $as_echo_n "checking dependency style of $depcc... " >&6; }
13486 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13490 # We make a subdir and do the tests there. Otherwise we can end up
13491 # making bogus files that we don't know about and never remove. For
13492 # instance it was reported that on HP-UX the gcc test will end up
13493 # making a dummy file named 'D' -- because '-MD' means "put the output
13495 rm -rf conftest.dir
13497 # Copy depcomp to subdir because otherwise we won't find it if we're
13498 # using a relative directory.
13499 cp "$am_depcomp" conftest.dir
13501 # We will build objects and dependencies in a subdirectory because
13502 # it helps to detect inapplicable dependency modes. For instance
13503 # both Tru64's cc and ICC support -MD to output dependencies as a
13504 # side effect of compilation, but ICC will put the dependencies in
13505 # the current directory while Tru64 will put them in the object
13509 am_cv_CC_dependencies_compiler_type=none
13510 if test "$am_compiler_list" = ""; then
13511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13513 am__universal=false
13514 case " $depcc " in #(
13515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13518 for depmode in $am_compiler_list; do
13519 # Setup a source with many dependencies, because some compilers
13520 # like to wrap large dependency lists on column 80 (with \), and
13521 # we should not choose a depcomp mode which is confused by this.
13523 # We need to recreate these files for each test, as the compiler may
13524 # overwrite some of them when testing with obscure command lines.
13525 # This happens at least with the AIX C compiler.
13527 for i in 1 2 3 4 5 6; do
13528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13530 # Solaris 10 /bin/sh.
13531 echo '/* dummy */' > sub/conftst$i.h
13533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13536 # mode. It turns out that the SunPro C++ compiler does not properly
13537 # handle '-M -o', and we need to detect this. Also, some Intel
13538 # versions had trouble with output in subdirs.
13539 am__obj=sub/conftest.${OBJEXT-o}
13540 am__minus_obj="-o $am__obj"
13543 # This depmode causes a compiler race in universal mode.
13544 test "$am__universal" = false || continue
13547 # After this tag, mechanisms are not by side-effect, so they'll
13548 # only be used when explicitly requested.
13549 if test "x$enable_dependency_tracking" = xyes; then
13555 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13556 # This compiler won't grok '-c -o', but also, the minuso test has
13557 # not run yet. These depmodes are late enough in the game, and
13558 # so weak that their functioning should not be impacted.
13559 am__obj=conftest.${OBJEXT-o}
13564 if depmode=$depmode \
13565 source=sub/conftest.c object=$am__obj \
13566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13568 >/dev/null 2>conftest.err &&
13569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13573 # icc doesn't choke on unknown options, it will just issue warnings
13574 # or remarks (even with -Werror). So we grep stderr for any message
13575 # that says an option was ignored or not supported.
13576 # When given -MP, icc 7.0 and 7.1 complain thusly:
13577 # icc: Command line warning: ignoring option '-M'; no argument required
13578 # The diagnosis changed in icc 8.0:
13579 # icc: Command line remark: option '-MP' not supported
13580 if (grep 'ignoring option' conftest.err ||
13581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13582 am_cv_CC_dependencies_compiler_type=$depmode
13589 rm -rf conftest.dir
13591 am_cv_CC_dependencies_compiler_type=none
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13600 test "x$enable_dependency_tracking" != xno \
13601 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13602 am__fastdepCC_TRUE=
13603 am__fastdepCC_FALSE='#'
13605 am__fastdepCC_TRUE='#'
13606 am__fastdepCC_FALSE=
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13613 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13614 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13615 $as_echo_n "(cached) " >&6
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13627 $EGREP "Amsterdam" >/dev/null 2>&1; then :
13628 gl_cv_c_amsterdam_compiler=yes
13630 gl_cv_c_amsterdam_compiler=no
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13637 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13638 if test -z "$AR"; then
13639 if test $gl_cv_c_amsterdam_compiler = yes; then
13641 if test -z "$ARFLAGS"; then
13645 if test -n "$ac_tool_prefix"; then
13646 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13647 set dummy ${ac_tool_prefix}ar; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649 $as_echo_n "checking for $ac_word... " >&6; }
13650 if ${ac_cv_prog_AR+:} false; then :
13651 $as_echo_n "(cached) " >&6
13653 if test -n "$AR"; then
13654 ac_cv_prog_AR="$AR" # Let the user override the test.
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13663 ac_cv_prog_AR="${ac_tool_prefix}ar"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 if test -n "$AR"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13676 $as_echo "$AR" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13684 if test -z "$ac_cv_prog_AR"; then
13686 # Extract the first word of "ar", so it can be a program name with args.
13687 set dummy ar; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689 $as_echo_n "checking for $ac_word... " >&6; }
13690 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13691 $as_echo_n "(cached) " >&6
13693 if test -n "$ac_ct_AR"; then
13694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703 ac_cv_prog_ac_ct_AR="ar"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13714 if test -n "$ac_ct_AR"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13716 $as_echo "$ac_ct_AR" >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13722 if test "x$ac_ct_AR" = x; then
13725 case $cross_compiling:$ac_tool_warned in
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13729 ac_tool_warned=yes ;;
13734 AR="$ac_cv_prog_AR"
13737 if test -z "$ARFLAGS"; then
13742 if test -z "$ARFLAGS"; then
13748 if test -z "$RANLIB"; then
13749 if test $gl_cv_c_amsterdam_compiler = yes; then
13752 if test -n "$ac_tool_prefix"; then
13753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13754 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if ${ac_cv_prog_RANLIB+:} false; then :
13758 $as_echo_n "(cached) " >&6
13760 if test -n "$RANLIB"; then
13761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 RANLIB=$ac_cv_prog_RANLIB
13781 if test -n "$RANLIB"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13783 $as_echo "$RANLIB" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13791 if test -z "$ac_cv_prog_RANLIB"; then
13792 ac_ct_RANLIB=$RANLIB
13793 # Extract the first word of "ranlib", so it can be a program name with args.
13794 set dummy ranlib; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13798 $as_echo_n "(cached) " >&6
13800 if test -n "$ac_ct_RANLIB"; then
13801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_prog_ac_ct_RANLIB="ranlib"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13821 if test -n "$ac_ct_RANLIB"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13823 $as_echo "$ac_ct_RANLIB" >&6; }
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13829 if test "x$ac_ct_RANLIB" = x; then
13832 case $cross_compiling:$ac_tool_warned in
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13836 ac_tool_warned=yes ;;
13838 RANLIB=$ac_ct_RANLIB
13841 RANLIB="$ac_cv_prog_RANLIB"
13854 # Check whether --enable-largefile was given.
13855 if test "${enable_largefile+set}" = set; then :
13856 enableval=$enable_largefile;
13859 if test "$enable_largefile" != no; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13863 if ${ac_cv_sys_largefile_CC+:} false; then :
13864 $as_echo_n "(cached) " >&6
13866 ac_cv_sys_largefile_CC=no
13867 if test "$GCC" != yes; then
13870 # IRIX 6.2 and later do not support large files by default,
13871 # so use the C compiler's -n32 option if that helps.
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 #include <sys/types.h>
13875 /* Check that off_t can represent 2**63 - 1 correctly.
13876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13877 since some C++ compilers masquerading as C compilers
13878 incorrectly reject 9223372036854775807. */
13879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13881 && LARGE_OFF_T % 2147483647 == 1)
13891 if ac_fn_c_try_compile "$LINENO"; then :
13894 rm -f core conftest.err conftest.$ac_objext
13896 if ac_fn_c_try_compile "$LINENO"; then :
13897 ac_cv_sys_largefile_CC=' -n32'; break
13899 rm -f core conftest.err conftest.$ac_objext
13903 rm -f conftest.$ac_ext
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13908 if test "$ac_cv_sys_largefile_CC" != no; then
13909 CC=$CC$ac_cv_sys_largefile_CC
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13914 if ${ac_cv_sys_file_offset_bits+:} false; then :
13915 $as_echo_n "(cached) " >&6
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 #include <sys/types.h>
13921 /* Check that off_t can represent 2**63 - 1 correctly.
13922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13923 since some C++ compilers masquerading as C compilers
13924 incorrectly reject 9223372036854775807. */
13925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13927 && LARGE_OFF_T % 2147483647 == 1)
13937 if ac_fn_c_try_compile "$LINENO"; then :
13938 ac_cv_sys_file_offset_bits=no; break
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 #define _FILE_OFFSET_BITS 64
13944 #include <sys/types.h>
13945 /* Check that off_t can represent 2**63 - 1 correctly.
13946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13947 since some C++ compilers masquerading as C compilers
13948 incorrectly reject 9223372036854775807. */
13949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13951 && LARGE_OFF_T % 2147483647 == 1)
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962 ac_cv_sys_file_offset_bits=64; break
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 ac_cv_sys_file_offset_bits=unknown
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13971 case $ac_cv_sys_file_offset_bits in #(
13974 cat >>confdefs.h <<_ACEOF
13975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13980 if test $ac_cv_sys_file_offset_bits = unknown; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13983 if ${ac_cv_sys_large_files+:} false; then :
13984 $as_echo_n "(cached) " >&6
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 #include <sys/types.h>
13990 /* Check that off_t can represent 2**63 - 1 correctly.
13991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13992 since some C++ compilers masquerading as C compilers
13993 incorrectly reject 9223372036854775807. */
13994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13996 && LARGE_OFF_T % 2147483647 == 1)
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 ac_cv_sys_large_files=no; break
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 #define _LARGE_FILES 1
14013 #include <sys/types.h>
14014 /* Check that off_t can represent 2**63 - 1 correctly.
14015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14016 since some C++ compilers masquerading as C compilers
14017 incorrectly reject 9223372036854775807. */
14018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14020 && LARGE_OFF_T % 2147483647 == 1)
14030 if ac_fn_c_try_compile "$LINENO"; then :
14031 ac_cv_sys_large_files=1; break
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 ac_cv_sys_large_files=unknown
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14039 $as_echo "$ac_cv_sys_large_files" >&6; }
14040 case $ac_cv_sys_large_files in #(
14043 cat >>confdefs.h <<_ACEOF
14044 #define _LARGE_FILES $ac_cv_sys_large_files
14052 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14056 case $ac_cv_prog_cc_stdc in #(
14058 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14061 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14062 if ${ac_cv_prog_cc_c99+:} false; then :
14063 $as_echo_n "(cached) " >&6
14065 ac_cv_prog_cc_c99=no
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #include <stdarg.h>
14070 #include <stdbool.h>
14071 #include <stdlib.h>
14075 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14076 #define debug(...) fprintf (stderr, __VA_ARGS__)
14077 #define showlist(...) puts (#__VA_ARGS__)
14078 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14080 test_varargs_macros (void)
14085 debug ("X = %d\n", x);
14086 showlist (The first, second, and third items.);
14087 report (x>y, "x is %d but y is %d", x, y);
14090 // Check long long types.
14091 #define BIG64 18446744073709551615ull
14092 #define BIG32 4294967295ul
14093 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14095 your preprocessor is broken;
14099 your preprocessor is broken;
14101 static long long int bignum = -9223372036854775807LL;
14102 static unsigned long long int ubignum = BIG64;
14104 struct incomplete_array
14110 struct named_init {
14112 const wchar_t *name;
14116 typedef const char *ccp;
14119 test_restrict (ccp restrict text)
14121 // See if C++-style comments work.
14122 // Iterate through items via the restricted pointer.
14123 // Also check for declarations in for loops.
14124 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14129 // Check varargs and va_copy.
14131 test_varargs (const char *format, ...)
14134 va_start (args, format);
14136 va_copy (args_copy, args);
14146 case 's': // string
14147 str = va_arg (args_copy, const char *);
14150 number = va_arg (args_copy, int);
14153 fnumber = va_arg (args_copy, double);
14159 va_end (args_copy);
14168 _Bool success = false;
14171 if (test_restrict ("String literal") == 0)
14173 char *restrict newvar = "Another string";
14176 test_varargs ("s, d' f .", "string", 65, 34.234);
14177 test_varargs_macros ();
14179 // Check flexible array members.
14180 struct incomplete_array *ia =
14181 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14183 for (int i = 0; i < ia->datasize; ++i)
14184 ia->data[i] = i * 1.234;
14186 // Check named initializers.
14187 struct named_init ni = {
14189 .name = L"Test wide string",
14190 .average = 543.34343,
14195 int dynamic_array[ni.number];
14196 dynamic_array[ni.number - 1] = 543;
14198 // work around unused variable warnings
14199 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14200 || dynamic_array[ni.number - 1] != 543);
14206 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14208 CC="$ac_save_CC $ac_arg"
14209 if ac_fn_c_try_compile "$LINENO"; then :
14210 ac_cv_prog_cc_c99=$ac_arg
14212 rm -f core conftest.err conftest.$ac_objext
14213 test "x$ac_cv_prog_cc_c99" != "xno" && break
14215 rm -f conftest.$ac_ext
14220 case "x$ac_cv_prog_cc_c99" in
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14223 $as_echo "none needed" >&6; } ;;
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14226 $as_echo "unsupported" >&6; } ;;
14228 CC="$CC $ac_cv_prog_cc_c99"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14230 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14232 if test "x$ac_cv_prog_cc_c99" != xno; then :
14233 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14237 if ${ac_cv_prog_cc_c89+:} false; then :
14238 $as_echo_n "(cached) " >&6
14240 ac_cv_prog_cc_c89=no
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 #include <stdarg.h>
14247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14248 struct buf { int x; };
14249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14250 static char *e (p, i)
14256 static char *f (char * (*g) (char **, int), char **p, ...)
14261 s = g (p, va_arg (v,int));
14266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14267 function prototypes and stuff, but not '\xHH' hex character constants.
14268 These don't provoke an error unfortunately, instead are silently treated
14269 as 'x'. The following induces an error, until -std is added to get
14270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14271 array size at least. It's necessary to write '\x00'==0 to get something
14272 that's true only with -std. */
14273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14276 inside strings and character constants. */
14278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14280 int test (int i, double x);
14281 struct s1 {int (*f) (int a);};
14282 struct s2 {int (*f) (double a);};
14283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14297 CC="$ac_save_CC $ac_arg"
14298 if ac_fn_c_try_compile "$LINENO"; then :
14299 ac_cv_prog_cc_c89=$ac_arg
14301 rm -f core conftest.err conftest.$ac_objext
14302 test "x$ac_cv_prog_cc_c89" != "xno" && break
14304 rm -f conftest.$ac_ext
14309 case "x$ac_cv_prog_cc_c89" in
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14312 $as_echo "none needed" >&6; } ;;
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14315 $as_echo "unsupported" >&6; } ;;
14317 CC="$CC $ac_cv_prog_cc_c89"
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14321 if test "x$ac_cv_prog_cc_c89" != xno; then :
14322 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14324 ac_cv_prog_cc_stdc=no
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14331 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14332 if ${ac_cv_prog_cc_stdc+:} false; then :
14333 $as_echo_n "(cached) " >&6
14336 case $ac_cv_prog_cc_stdc in #(
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14339 $as_echo "unsupported" >&6; } ;; #(
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14342 $as_echo "none needed" >&6; } ;; #(
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14345 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14353 # Check whether --enable-threads was given.
14354 if test "${enable_threads+set}" = set; then :
14355 enableval=$enable_threads; gl_use_threads=$enableval
14357 if test -n "$gl_use_threads_default"; then
14358 gl_use_threads="$gl_use_threads_default"
14361 osf*) gl_use_threads=no ;;
14364 1.[0-5].*) gl_use_threads=no ;;
14365 *) gl_use_threads=yes ;;
14368 *) gl_use_threads=yes ;;
14374 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14375 # For using <pthread.h>:
14378 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14379 # groks <pthread.h>. cc also understands the flag -pthread, but
14380 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14381 # 2. putting a flag into CPPFLAGS that has an effect on the linker
14382 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14383 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14384 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14387 # Some systems optimize for single-threaded programs by default, and
14388 # need special flags to disable these optimizations. For example, the
14389 # definition of 'errno' in <errno.h>.
14391 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14392 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14399 # Code from module absolute-header:
14400 # Code from module alloca-opt:
14401 # Code from module dirname:
14402 # Code from module dirname-lgpl:
14403 # Code from module dosname:
14404 # Code from module double-slash-root:
14405 # Code from module environ:
14406 # Code from module errno:
14407 # Code from module error:
14408 # Code from module exitfail:
14409 # Code from module extensions:
14411 # Code from module extern-inline:
14412 # Code from module fcntl-h:
14413 # Code from module float:
14414 # Code from module full-write:
14415 # Code from module gettext-h:
14416 # Code from module gettimeofday:
14417 # Code from module gitlog-to-changelog:
14418 # Code from module gnupload:
14419 # Code from module havelib:
14420 # Code from module include_next:
14421 # Code from module intprops:
14422 # Code from module largefile:
14424 # Code from module lib-ignore:
14425 # Code from module lock:
14426 # Code from module lstat:
14427 # Code from module malloc-posix:
14428 # Code from module malloca:
14429 # Code from module memchr:
14430 # Code from module mkdtemp:
14431 # Code from module msvc-inval:
14432 # Code from module msvc-nothrow:
14433 # Code from module multiarch:
14434 # Code from module pathmax:
14435 # Code from module raise:
14436 # Code from module read:
14437 # Code from module safe-read:
14438 # Code from module safe-write:
14439 # Code from module secure_getenv:
14440 # Code from module setenv:
14441 # Code from module sigaction:
14442 # Code from module signal:
14443 # Code from module signal-h:
14444 # Code from module sigprocmask:
14445 # Code from module size_max:
14446 # Code from module snippet/_Noreturn:
14447 # Code from module snippet/arg-nonnull:
14448 # Code from module snippet/c++defs:
14449 # Code from module snippet/warn-on-use:
14450 # Code from module snprintf:
14451 # Code from module ssize_t:
14452 # Code from module stat:
14453 # Code from module stdarg:
14457 # Code from module stdbool:
14458 # Code from module stddef:
14459 # Code from module stdint:
14460 # Code from module stdio:
14461 # Code from module stdlib:
14462 # Code from module strerror:
14463 # Code from module strerror-override:
14464 # Code from module string:
14465 # Code from module strndup:
14466 # Code from module strnlen:
14467 # Code from module strsignal:
14468 # Code from module sys_select:
14469 # Code from module sys_stat:
14470 # Code from module sys_time:
14471 # Code from module sys_types:
14472 # Code from module sys_wait:
14473 # Code from module tempname:
14474 # Code from module threadlib:
14478 # Code from module time:
14479 # Code from module tls:
14480 # Code from module unistd:
14481 # Code from module unsetenv:
14482 # Code from module vasnprintf:
14483 # Code from module vasprintf:
14484 # Code from module verify:
14485 # Code from module waitpid:
14486 # Code from module warnings:
14487 # Code from module wchar:
14488 # Code from module write:
14489 # Code from module xalloc:
14490 # Code from module xalloc-die:
14491 # Code from module xalloc-oversized:
14492 # Code from module xsize:
14493 # Code from module xstrndup:
14494 # Code from module xvasprintf:
14497 ac_cpp='$CPP $CPPFLAGS'
14498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14502 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14503 # On Suns, sometimes $CPP names a directory.
14504 if test -n "$CPP" && test -d "$CPP"; then
14507 if test -z "$CPP"; then
14508 if ${ac_cv_prog_CPP+:} false; then :
14509 $as_echo_n "(cached) " >&6
14511 # Double quotes because CPP needs to be expanded
14512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14514 ac_preproc_ok=false
14515 for ac_c_preproc_warn_flag in '' yes
14517 # Use a header file that comes with gcc, so configuring glibc
14518 # with a fresh cross-compiler works.
14519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14520 # <limits.h> exists even on freestanding compilers.
14521 # On the NeXT, cc -E runs the code through the compiler's parser,
14522 # not just through cpp. "Syntax error" is here to catch this case.
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 # include <limits.h>
14528 # include <assert.h>
14532 if ac_fn_c_try_cpp "$LINENO"; then :
14535 # Broken: fails on valid input.
14538 rm -f conftest.err conftest.i conftest.$ac_ext
14540 # OK, works on sane cases. Now check whether nonexistent headers
14541 # can be detected and how.
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <ac_nonexistent.h>
14546 if ac_fn_c_try_cpp "$LINENO"; then :
14547 # Broken: success on invalid input.
14550 # Passes both tests.
14554 rm -f conftest.err conftest.i conftest.$ac_ext
14557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14558 rm -f conftest.i conftest.err conftest.$ac_ext
14559 if $ac_preproc_ok; then :
14564 ac_cv_prog_CPP=$CPP
14567 CPP=$ac_cv_prog_CPP
14569 ac_cv_prog_CPP=$CPP
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14572 $as_echo "$CPP" >&6; }
14573 ac_preproc_ok=false
14574 for ac_c_preproc_warn_flag in '' yes
14576 # Use a header file that comes with gcc, so configuring glibc
14577 # with a fresh cross-compiler works.
14578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14579 # <limits.h> exists even on freestanding compilers.
14580 # On the NeXT, cc -E runs the code through the compiler's parser,
14581 # not just through cpp. "Syntax error" is here to catch this case.
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14585 # include <limits.h>
14587 # include <assert.h>
14591 if ac_fn_c_try_cpp "$LINENO"; then :
14594 # Broken: fails on valid input.
14597 rm -f conftest.err conftest.i conftest.$ac_ext
14599 # OK, works on sane cases. Now check whether nonexistent headers
14600 # can be detected and how.
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603 #include <ac_nonexistent.h>
14605 if ac_fn_c_try_cpp "$LINENO"; then :
14606 # Broken: success on invalid input.
14609 # Passes both tests.
14613 rm -f conftest.err conftest.i conftest.$ac_ext
14616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14617 rm -f conftest.i conftest.err conftest.$ac_ext
14618 if $ac_preproc_ok; then :
14621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14623 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14624 See \`config.log' for more details" "$LINENO" 5; }
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14633 CFLAGS="$CFLAGS -Wall"
14634 if test "$GCC" = yes
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14637 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14638 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14639 $as_echo_n "(cached) " >&6
14642 gl_save_compiler_FLAGS="$CFLAGS"
14643 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14658 gl_cv_warn_c__Werror__Wunknown_warning_option=no
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 CFLAGS="$gl_save_compiler_FLAGS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14666 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14667 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14668 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14670 gl_unknown_warnings_are_errors=
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14675 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14676 if ${gl_cv_warn_c__W+:} false; then :
14677 $as_echo_n "(cached) " >&6
14680 gl_save_compiler_FLAGS="$CFLAGS"
14681 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 gl_cv_warn_c__W=yes
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14700 CFLAGS="$gl_save_compiler_FLAGS"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14704 $as_echo "$gl_cv_warn_c__W" >&6; }
14705 if test "x$gl_cv_warn_c__W" = xyes; then :
14706 as_fn_append WARN_CFLAGS " -W"
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14712 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14713 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14714 $as_echo_n "(cached) " >&6
14717 gl_save_compiler_FLAGS="$CFLAGS"
14718 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14730 if ac_fn_c_try_link "$LINENO"; then :
14731 gl_cv_warn_c__Wpointer_arith=yes
14733 gl_cv_warn_c__Wpointer_arith=no
14735 rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 CFLAGS="$gl_save_compiler_FLAGS"
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14741 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14742 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14743 as_fn_append WARN_CFLAGS " -Wpointer-arith"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14749 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14750 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14751 $as_echo_n "(cached) " >&6
14754 gl_save_compiler_FLAGS="$CFLAGS"
14755 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 gl_cv_warn_c__Wwrite_strings=yes
14770 gl_cv_warn_c__Wwrite_strings=no
14772 rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774 CFLAGS="$gl_save_compiler_FLAGS"
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14778 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14779 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14780 as_fn_append WARN_CFLAGS " -Wwrite-strings"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14786 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14787 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14788 $as_echo_n "(cached) " >&6
14791 gl_save_compiler_FLAGS="$CFLAGS"
14792 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 gl_cv_warn_c__Wstrict_prototypes=yes
14807 gl_cv_warn_c__Wstrict_prototypes=no
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 CFLAGS="$gl_save_compiler_FLAGS"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14815 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14816 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14817 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14823 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14824 if ${gl_cv_warn_c__Wshadow+:} false; then :
14825 $as_echo_n "(cached) " >&6
14828 gl_save_compiler_FLAGS="$CFLAGS"
14829 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 gl_cv_warn_c__Wshadow=yes
14844 gl_cv_warn_c__Wshadow=no
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 CFLAGS="$gl_save_compiler_FLAGS"
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14852 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14853 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14854 as_fn_append WARN_CFLAGS " -Wshadow"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14860 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14861 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14862 $as_echo_n "(cached) " >&6
14865 gl_save_compiler_FLAGS="$CFLAGS"
14866 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 gl_cv_warn_c__Wformat_security=yes
14881 gl_cv_warn_c__Wformat_security=no
14883 rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 CFLAGS="$gl_save_compiler_FLAGS"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14889 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14890 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14891 as_fn_append WARN_CFLAGS " -Wformat-security"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14897 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14898 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14899 $as_echo_n "(cached) " >&6
14902 gl_save_compiler_FLAGS="$CFLAGS"
14903 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 gl_cv_warn_c__Wredundant_decls=yes
14918 gl_cv_warn_c__Wredundant_decls=no
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 CFLAGS="$gl_save_compiler_FLAGS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14926 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14927 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14928 as_fn_append WARN_CFLAGS " -Wredundant-decls"
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14934 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14935 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14936 $as_echo_n "(cached) " >&6
14939 gl_save_compiler_FLAGS="$CFLAGS"
14940 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14952 if ac_fn_c_try_link "$LINENO"; then :
14953 gl_cv_warn_c__Wno_missing_field_initializers=yes
14955 gl_cv_warn_c__Wno_missing_field_initializers=no
14957 rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 CFLAGS="$gl_save_compiler_FLAGS"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14963 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14964 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14965 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14971 $as_echo_n "checking whether ln -s works... " >&6; }
14973 if test "$LN_S" = "ln -s"; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14975 $as_echo "yes" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14978 $as_echo "no, using $LN_S" >&6; }
14982 cat >>confdefs.h <<_ACEOF
14983 #define SHELL "$SHELL"
14993 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14994 if test -n "$ac_tool_prefix"; then
14995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14998 $as_echo_n "checking for $ac_word... " >&6; }
14999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15000 $as_echo_n "(cached) " >&6
15002 case $PKG_CONFIG in
15004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $PATH
15011 test -z "$as_dir" && as_dir=.
15012 for ac_exec_ext in '' $ac_executable_extensions; do
15013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15026 if test -n "$PKG_CONFIG"; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15028 $as_echo "$PKG_CONFIG" >&6; }
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15036 if test -z "$ac_cv_path_PKG_CONFIG"; then
15037 ac_pt_PKG_CONFIG=$PKG_CONFIG
15038 # Extract the first word of "pkg-config", so it can be a program name with args.
15039 set dummy pkg-config; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15043 $as_echo_n "(cached) " >&6
15045 case $ac_pt_PKG_CONFIG in
15047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15069 if test -n "$ac_pt_PKG_CONFIG"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15071 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15077 if test "x$ac_pt_PKG_CONFIG" = x; then
15080 case $cross_compiling:$ac_tool_warned in
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15084 ac_tool_warned=yes ;;
15086 PKG_CONFIG=$ac_pt_PKG_CONFIG
15089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15093 if test -n "$PKG_CONFIG"; then
15094 _pkg_min_version=0.9.0
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15096 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15099 $as_echo "yes" >&6; }
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15109 $as_echo_n "checking for CHECK... " >&6; }
15111 if test -n "$CHECK_CFLAGS"; then
15112 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15113 elif test -n "$PKG_CONFIG"; then
15114 if test -n "$PKG_CONFIG" && \
15115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15116 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119 test $ac_status = 0; }; then
15120 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15121 test "x$?" != "x0" && pkg_failed=yes
15128 if test -n "$CHECK_LIBS"; then
15129 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15130 elif test -n "$PKG_CONFIG"; then
15131 if test -n "$PKG_CONFIG" && \
15132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15133 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15136 test $ac_status = 0; }; then
15137 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15138 test "x$?" != "x0" && pkg_failed=yes
15148 if test $pkg_failed = yes; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15153 _pkg_short_errors_supported=yes
15155 _pkg_short_errors_supported=no
15157 if test $_pkg_short_errors_supported = yes; then
15158 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15160 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15162 # Put the nasty error message in config.log where it belongs
15163 echo "$CHECK_PKG_ERRORS" >&5
15166 elif test $pkg_failed = untried; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15171 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15172 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15174 $as_echo "yes" >&6; }
15177 if test "x$run_tests" = xyes; then
15179 RUN_TESTS_FALSE='#'
15186 # Check for various header files and associated libraries.
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15188 $as_echo_n "checking for library containing strerror... " >&6; }
15189 if ${ac_cv_search_strerror+:} false; then :
15190 $as_echo_n "(cached) " >&6
15192 ac_func_search_save_LIBS=$LIBS
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15196 /* Override any GCC internal prototype to avoid an error.
15197 Use char because int might match the return type of a GCC
15198 builtin and then its argument prototype would still apply. */
15206 return strerror ();
15211 for ac_lib in '' cposix; do
15212 if test -z "$ac_lib"; then
15213 ac_res="none required"
15216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15218 if ac_fn_c_try_link "$LINENO"; then :
15219 ac_cv_search_strerror=$ac_res
15221 rm -f core conftest.err conftest.$ac_objext \
15223 if ${ac_cv_search_strerror+:} false; then :
15227 if ${ac_cv_search_strerror+:} false; then :
15230 ac_cv_search_strerror=no
15232 rm conftest.$ac_ext
15233 LIBS=$ac_func_search_save_LIBS
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15236 $as_echo "$ac_cv_search_strerror" >&6; }
15237 ac_res=$ac_cv_search_strerror
15238 if test "$ac_res" != no; then :
15239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15248 LIBC_FATAL_STDERR_=1
15249 export LIBC_FATAL_STDERR_
15251 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15252 if test "x$ac_cv_type_size_t" = xyes; then :
15256 cat >>confdefs.h <<_ACEOF
15257 #define size_t unsigned int
15262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15263 # for constant arguments. Useless!
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15265 $as_echo_n "checking for working alloca.h... " >&6; }
15266 if ${ac_cv_working_alloca_h+:} false; then :
15267 $as_echo_n "(cached) " >&6
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 #include <alloca.h>
15275 char *p = (char *) alloca (2 * sizeof (int));
15281 if ac_fn_c_try_link "$LINENO"; then :
15282 ac_cv_working_alloca_h=yes
15284 ac_cv_working_alloca_h=no
15286 rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15290 $as_echo "$ac_cv_working_alloca_h" >&6; }
15291 if test $ac_cv_working_alloca_h = yes; then
15293 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15298 $as_echo_n "checking for alloca... " >&6; }
15299 if ${ac_cv_func_alloca_works+:} false; then :
15300 $as_echo_n "(cached) " >&6
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15305 # define alloca __builtin_alloca
15308 # include <malloc.h>
15309 # define alloca _alloca
15311 # ifdef HAVE_ALLOCA_H
15312 # include <alloca.h>
15317 # ifndef alloca /* predefined by HP cc +Olibcalls */
15318 void *alloca (size_t);
15328 char *p = (char *) alloca (1);
15334 if ac_fn_c_try_link "$LINENO"; then :
15335 ac_cv_func_alloca_works=yes
15337 ac_cv_func_alloca_works=no
15339 rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15343 $as_echo "$ac_cv_func_alloca_works" >&6; }
15345 if test $ac_cv_func_alloca_works = yes; then
15347 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15350 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15351 # that cause trouble. Some versions do not even contain alloca or
15352 # contain a buggy version. If you still want to use their alloca,
15353 # use ar to extract alloca.o from them instead of compiling alloca.c.
15359 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15361 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15365 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15366 if ${ac_cv_os_cray+:} false; then :
15367 $as_echo_n "(cached) " >&6
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371 #if defined CRAY && ! defined CRAY2
15378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379 $EGREP "webecray" >/dev/null 2>&1; then :
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15388 $as_echo "$ac_cv_os_cray" >&6; }
15389 if test $ac_cv_os_cray = yes; then
15390 for ac_func in _getb67 GETB67 getb67; do
15391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15395 cat >>confdefs.h <<_ACEOF
15396 #define CRAY_STACKSEG_END $ac_func
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15406 $as_echo_n "checking stack direction for C alloca... " >&6; }
15407 if ${ac_cv_c_stack_direction+:} false; then :
15408 $as_echo_n "(cached) " >&6
15410 if test "$cross_compiling" = yes; then :
15411 ac_cv_c_stack_direction=0
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 $ac_includes_default
15417 find_stack_direction (int *addr, int depth)
15419 int dir, dummy = 0;
15422 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15423 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15424 return dir + dummy;
15428 main (int argc, char **argv)
15430 return find_stack_direction (0, argc + !argv + 20) < 0;
15433 if ac_fn_c_try_run "$LINENO"; then :
15434 ac_cv_c_stack_direction=1
15436 ac_cv_c_stack_direction=-1
15438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15439 conftest.$ac_objext conftest.beam conftest.$ac_ext
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15444 $as_echo "$ac_cv_c_stack_direction" >&6; }
15445 cat >>confdefs.h <<_ACEOF
15446 #define STACK_DIRECTION $ac_cv_c_stack_direction
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15455 $as_echo_n "checking whether // is distinct from /... " >&6; }
15456 if ${gl_cv_double_slash_root+:} false; then :
15457 $as_echo_n "(cached) " >&6
15459 if test x"$cross_compiling" = xyes ; then
15460 # When cross-compiling, there is no way to tell whether // is special
15461 # short of a list of hosts. However, the only known hosts to date
15462 # that have a distinct // are Apollo DomainOS (too old to port to),
15463 # Cygwin, and z/OS. If anyone knows of another system for which // has
15464 # special semantics and is distinct from /, please report it to
15465 # <bug-gnulib@gnu.org>.
15467 *-cygwin | i370-ibm-openedition)
15468 gl_cv_double_slash_root=yes ;;
15470 # Be optimistic and assume that / and // are the same when we
15472 gl_cv_double_slash_root='unknown, assuming no' ;;
15475 set x `ls -di / // 2>/dev/null`
15476 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15477 gl_cv_double_slash_root=no
15479 gl_cv_double_slash_root=yes
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15484 $as_echo "$gl_cv_double_slash_root" >&6; }
15485 if test "$gl_cv_double_slash_root" = yes; then
15487 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15503 GNULIB_EUIDACCESS=0;
15504 GNULIB_FACCESSAT=0;
15507 GNULIB_FDATASYNC=0;
15509 GNULIB_FTRUNCATE=0;
15511 GNULIB_GETDOMAINNAME=0;
15512 GNULIB_GETDTABLESIZE=0;
15513 GNULIB_GETGROUPS=0;
15514 GNULIB_GETHOSTNAME=0;
15516 GNULIB_GETLOGIN_R=0;
15517 GNULIB_GETPAGESIZE=0;
15518 GNULIB_GETUSERSHELL=0;
15519 GNULIB_GROUP_MEMBER=0;
15531 GNULIB_READLINKAT=0;
15533 GNULIB_SETHOSTNAME=0;
15536 GNULIB_SYMLINKAT=0;
15537 GNULIB_TTYNAME_R=0;
15538 GNULIB_UNISTD_H_NONBLOCKING=0;
15539 GNULIB_UNISTD_H_SIGPIPE=0;
15554 HAVE_GETDTABLESIZE=1;
15556 HAVE_GETHOSTNAME=1;
15558 HAVE_GETPAGESIZE=1;
15559 HAVE_GROUP_MEMBER=1;
15569 HAVE_SETHOSTNAME=1;
15575 HAVE_DECL_ENVIRON=1;
15576 HAVE_DECL_FCHDIR=1;
15577 HAVE_DECL_FDATASYNC=1;
15578 HAVE_DECL_GETDOMAINNAME=1;
15579 HAVE_DECL_GETLOGIN_R=1;
15580 HAVE_DECL_GETPAGESIZE=1;
15581 HAVE_DECL_GETUSERSHELL=1;
15582 HAVE_DECL_SETHOSTNAME=1;
15583 HAVE_DECL_TTYNAME_R=1;
15585 HAVE_SYS_PARAM_H=0;
15590 REPLACE_FCHOWNAT=0;
15591 REPLACE_FTRUNCATE=0;
15593 REPLACE_GETDOMAINNAME=0;
15594 REPLACE_GETDTABLESIZE=0;
15595 REPLACE_GETLOGIN_R=0;
15596 REPLACE_GETGROUPS=0;
15597 REPLACE_GETPAGESIZE=0;
15606 REPLACE_READLINK=0;
15610 REPLACE_TTYNAME_R=0;
15612 REPLACE_UNLINKAT=0;
15615 UNISTD_H_HAVE_WINSOCK2_H=0;
15616 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15623 for ac_header in $gl_header_list
15625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15628 cat >>confdefs.h <<_ACEOF
15629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15654 $as_echo_n "checking if environ is properly declared... " >&6; }
15655 if ${gt_cv_var_environ_declaration+:} false; then :
15656 $as_echo_n "(cached) " >&6
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15662 #include <unistd.h>
15664 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
15665 #include <stdlib.h>
15667 extern struct { int foo; } environ;
15676 if ac_fn_c_try_compile "$LINENO"; then :
15677 gt_cv_var_environ_declaration=no
15679 gt_cv_var_environ_declaration=yes
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15685 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15686 if test $gt_cv_var_environ_declaration = yes; then
15688 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15693 if test $gt_cv_var_environ_declaration != yes; then
15694 HAVE_DECL_ENVIRON=0
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15700 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15701 if ${gl_cv_have_include_next+:} false; then :
15702 $as_echo_n "(cached) " >&6
15704 rm -rf conftestd1a conftestd1b conftestd2
15705 mkdir conftestd1a conftestd1b conftestd2
15706 cat <<EOF > conftestd1a/conftest.h
15707 #define DEFINED_IN_CONFTESTD1
15708 #include_next <conftest.h>
15709 #ifdef DEFINED_IN_CONFTESTD2
15712 #error "include_next doesn't work"
15715 cat <<EOF > conftestd1b/conftest.h
15716 #define DEFINED_IN_CONFTESTD1
15718 #include_next <conftest.h>
15719 #ifdef DEFINED_IN_CONFTESTD2
15722 #error "include_next doesn't work"
15725 cat <<EOF > conftestd2/conftest.h
15726 #ifndef DEFINED_IN_CONFTESTD1
15727 #error "include_next test doesn't work"
15729 #define DEFINED_IN_CONFTESTD2
15731 gl_save_CPPFLAGS="$CPPFLAGS"
15732 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 #include <conftest.h>
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 gl_cv_have_include_next=yes
15740 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <conftest.h>
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 gl_cv_have_include_next=buggy
15748 gl_cv_have_include_next=no
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 CPPFLAGS="$gl_save_CPPFLAGS"
15755 rm -rf conftestd1a conftestd1b conftestd2
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15759 $as_echo "$gl_cv_have_include_next" >&6; }
15760 PRAGMA_SYSTEM_HEADER=
15761 if test $gl_cv_have_include_next = yes; then
15762 INCLUDE_NEXT=include_next
15763 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15764 if test -n "$GCC"; then
15765 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15768 if test $gl_cv_have_include_next = buggy; then
15769 INCLUDE_NEXT=include
15770 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15772 INCLUDE_NEXT=include
15773 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15780 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15781 if ${gl_cv_pragma_columns+:} false; then :
15782 $as_echo_n "(cached) " >&6
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15793 $EGREP "choke me" >/dev/null 2>&1; then :
15794 gl_cv_pragma_columns=yes
15796 gl_cv_pragma_columns=no
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15803 $as_echo "$gl_cv_pragma_columns" >&6; }
15804 if test $gl_cv_pragma_columns = yes; then
15805 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15814 $as_echo_n "checking for complete errno.h... " >&6; }
15815 if ${gl_cv_header_errno_h_complete+:} false; then :
15816 $as_echo_n "(cached) " >&6
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15823 #if !defined ETXTBSY
15826 #if !defined ENOMSG
15832 #if !defined ENOLINK
15835 #if !defined EPROTO
15838 #if !defined EMULTIHOP
15841 #if !defined EBADMSG
15844 #if !defined EOVERFLOW
15847 #if !defined ENOTSUP
15850 #if !defined ENETRESET
15853 #if !defined ECONNABORTED
15856 #if !defined ESTALE
15859 #if !defined EDQUOT
15862 #if !defined ECANCELED
15865 #if !defined EOWNERDEAD
15868 #if !defined ENOTRECOVERABLE
15871 #if !defined EILSEQ
15876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15877 $EGREP "booboo" >/dev/null 2>&1; then :
15878 gl_cv_header_errno_h_complete=no
15880 gl_cv_header_errno_h_complete=yes
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15887 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15888 if test $gl_cv_header_errno_h_complete = yes; then
15899 if test $gl_cv_have_include_next = yes; then
15900 gl_cv_next_errno_h='<'errno.h'>'
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15903 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15904 if ${gl_cv_next_errno_h+:} false; then :
15905 $as_echo_n "(cached) " >&6
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15915 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15916 *) gl_absname_cpp="$ac_cpp" ;;
15921 gl_dirsep_regex='[/\\]'
15924 gl_dirsep_regex='\/'
15927 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15928 gl_header_literal_regex=`echo 'errno.h' \
15929 | sed -e "$gl_make_literal_regex_sed"`
15930 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15931 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15937 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15938 sed -n "$gl_absolute_header_sed"`
15940 gl_header=$gl_cv_absolute_errno_h
15941 gl_cv_next_errno_h='"'$gl_header'"'
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15946 $as_echo "$gl_cv_next_errno_h" >&6; }
15948 NEXT_ERRNO_H=$gl_cv_next_errno_h
15950 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15952 gl_next_as_first_directive='<'errno.h'>'
15954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15955 gl_next_as_first_directive=$gl_cv_next_errno_h
15957 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15965 if test -n "$ERRNO_H"; then
15966 GL_GENERATE_ERRNO_H_TRUE=
15967 GL_GENERATE_ERRNO_H_FALSE='#'
15969 GL_GENERATE_ERRNO_H_TRUE='#'
15970 GL_GENERATE_ERRNO_H_FALSE=
15974 if test -n "$ERRNO_H"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15976 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15977 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15978 $as_echo_n "(cached) " >&6
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15991 $EGREP "yes" >/dev/null 2>&1; then :
15992 gl_cv_header_errno_h_EMULTIHOP=yes
15994 gl_cv_header_errno_h_EMULTIHOP=no
15998 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16002 #define _XOPEN_SOURCE_EXTENDED 1
16009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16010 $EGREP "yes" >/dev/null 2>&1; then :
16011 gl_cv_header_errno_h_EMULTIHOP=hidden
16015 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16016 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16017 #define _XOPEN_SOURCE_EXTENDED 1
16019 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16021 #include <stdlib.h>
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16031 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16032 case $gl_cv_header_errno_h_EMULTIHOP in
16034 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16037 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16045 if test -n "$ERRNO_H"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16047 $as_echo_n "checking for ENOLINK value... " >&6; }
16048 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16049 $as_echo_n "(cached) " >&6
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16062 $EGREP "yes" >/dev/null 2>&1; then :
16063 gl_cv_header_errno_h_ENOLINK=yes
16065 gl_cv_header_errno_h_ENOLINK=no
16069 if test $gl_cv_header_errno_h_ENOLINK = no; then
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16073 #define _XOPEN_SOURCE_EXTENDED 1
16080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16081 $EGREP "yes" >/dev/null 2>&1; then :
16082 gl_cv_header_errno_h_ENOLINK=hidden
16086 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16087 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16088 #define _XOPEN_SOURCE_EXTENDED 1
16090 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16092 #include <stdlib.h>
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16102 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16103 case $gl_cv_header_errno_h_ENOLINK in
16105 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16108 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16116 if test -n "$ERRNO_H"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16118 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16119 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16120 $as_echo_n "(cached) " >&6
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16133 $EGREP "yes" >/dev/null 2>&1; then :
16134 gl_cv_header_errno_h_EOVERFLOW=yes
16136 gl_cv_header_errno_h_EOVERFLOW=no
16140 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16144 #define _XOPEN_SOURCE_EXTENDED 1
16151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16152 $EGREP "yes" >/dev/null 2>&1; then :
16153 gl_cv_header_errno_h_EOVERFLOW=hidden
16157 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16158 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16159 #define _XOPEN_SOURCE_EXTENDED 1
16161 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16163 #include <stdlib.h>
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16173 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16174 case $gl_cv_header_errno_h_EOVERFLOW in
16176 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16179 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16187 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16188 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16194 cat >>confdefs.h <<_ACEOF
16195 #define HAVE_DECL_STRERROR_R $ac_have_decl
16198 for ac_func in strerror_r
16200 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16201 if test "x$ac_cv_func_strerror_r" = xyes; then :
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STRERROR_R 1
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16210 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16211 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16212 $as_echo_n "(cached) " >&6
16215 ac_cv_func_strerror_r_char_p=no
16216 if test $ac_cv_have_decl_strerror_r = yes; then
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 $ac_includes_default
16225 char x = *strerror_r (0, buf, sizeof buf);
16226 char *p = strerror_r (0, buf, sizeof buf);
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 ac_cv_func_strerror_r_char_p=yes
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 # strerror_r is not declared. Choose between
16239 # systems that have relatively inaccessible declarations for the
16240 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16241 # former has a strerror_r that returns char*, while the latter
16242 # has a strerror_r that returns `int'.
16243 # This test should segfault on the DEC system.
16244 if test "$cross_compiling" = yes; then :
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 extern char *strerror_r ();
16255 char x = *strerror_r (0, buf, sizeof buf);
16256 return ! isalpha (x);
16261 if ac_fn_c_try_run "$LINENO"; then :
16262 ac_cv_func_strerror_r_char_p=yes
16264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16265 conftest.$ac_objext conftest.beam conftest.$ac_ext
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16272 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16273 if test $ac_cv_func_strerror_r_char_p = yes; then
16275 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16280 XGETTEXT_EXTRA_OPTIONS=
16287 GNULIB_NONBLOCKING=0;
16300 for ac_func in $gl_func_list
16302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16305 cat >>confdefs.h <<_ACEOF
16306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16334 $as_echo_n "checking for working fcntl.h... " >&6; }
16335 if ${gl_cv_header_working_fcntl_h+:} false; then :
16336 $as_echo_n "(cached) " >&6
16338 if test "$cross_compiling" = yes; then :
16339 gl_cv_header_working_fcntl_h=cross-compiling
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16343 #include <sys/types.h>
16344 #include <sys/stat.h>
16346 # include <unistd.h>
16347 #else /* on Windows with MSVC */
16349 # include <stdlib.h>
16350 # defined sleep(n) _sleep ((n) * 1000)
16354 #define O_NOATIME 0
16357 #define O_NOFOLLOW 0
16359 static int const constants[] =
16361 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16362 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16369 int result = !constants;
16372 static char const sym[] = "conftest.sym";
16373 if (symlink ("/dev/null", sym) != 0)
16377 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
16384 if (unlink (sym) != 0 || symlink (".", sym) != 0)
16388 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
16399 static char const file[] = "confdefs.h";
16400 int fd = open (file, O_RDONLY | O_NOATIME);
16406 if (fstat (fd, &st0) != 0)
16412 if (read (fd, &c, 1) != 1)
16416 if (close (fd) != 0)
16421 if (stat (file, &st1) != 0)
16424 if (st0.st_atime != st1.st_atime)
16436 if ac_fn_c_try_run "$LINENO"; then :
16437 gl_cv_header_working_fcntl_h=yes
16440 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16441 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16442 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16443 *) gl_cv_header_working_fcntl_h='no';;
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16447 conftest.$ac_objext conftest.beam conftest.$ac_ext
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16452 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16454 case $gl_cv_header_working_fcntl_h in #(
16455 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16459 cat >>confdefs.h <<_ACEOF
16460 #define HAVE_WORKING_O_NOATIME $ac_val
16464 case $gl_cv_header_working_fcntl_h in #(
16465 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_WORKING_O_NOFOLLOW $ac_val
16474 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_pid_t" = xyes; then :
16479 cat >>confdefs.h <<_ACEOF
16485 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16486 if test "x$ac_cv_type_mode_t" = xyes; then :
16490 cat >>confdefs.h <<_ACEOF
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16497 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16498 if ${ac_cv_c_restrict+:} false; then :
16499 $as_echo_n "(cached) " >&6
16501 ac_cv_c_restrict=no
16502 # The order here caters to the fact that C++ does not require restrict.
16503 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 typedef int * int_ptr;
16507 int foo (int_ptr $ac_kw ip) {
16514 int * $ac_kw t = s;
16521 if ac_fn_c_try_compile "$LINENO"; then :
16522 ac_cv_c_restrict=$ac_kw
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 test "$ac_cv_c_restrict" != no && break
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16530 $as_echo "$ac_cv_c_restrict" >&6; }
16532 case $ac_cv_c_restrict in
16534 no) $as_echo "#define restrict /**/" >>confdefs.h
16536 *) cat >>confdefs.h <<_ACEOF
16537 #define restrict $ac_cv_c_restrict
16543 GNULIB_GETTIMEOFDAY=0;
16544 HAVE_GETTIMEOFDAY=1;
16545 HAVE_STRUCT_TIMEVAL=1;
16547 REPLACE_GETTIMEOFDAY=0;
16548 REPLACE_STRUCT_TIMEVAL=0;
16585 if test $gl_cv_have_include_next = yes; then
16586 gl_cv_next_sys_time_h='<'sys/time.h'>'
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16589 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16590 if ${gl_cv_next_sys_time_h+:} false; then :
16591 $as_echo_n "(cached) " >&6
16594 if test $ac_cv_header_sys_time_h = yes; then
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601 #include <sys/time.h>
16604 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16605 *) gl_absname_cpp="$ac_cpp" ;;
16610 gl_dirsep_regex='[/\\]'
16613 gl_dirsep_regex='\/'
16616 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16617 gl_header_literal_regex=`echo 'sys/time.h' \
16618 | sed -e "$gl_make_literal_regex_sed"`
16619 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16620 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16626 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16627 sed -n "$gl_absolute_header_sed"`
16629 gl_header=$gl_cv_absolute_sys_time_h
16630 gl_cv_next_sys_time_h='"'$gl_header'"'
16632 gl_cv_next_sys_time_h='<'sys/time.h'>'
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16638 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16640 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16642 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16644 gl_next_as_first_directive='<'sys/time.h'>'
16646 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16647 gl_next_as_first_directive=$gl_cv_next_sys_time_h
16649 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16655 if test $ac_cv_header_sys_time_h != yes; then
16669 if test $ac_cv_header_sys_socket_h != yes; then
16670 for ac_header in winsock2.h
16672 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16673 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_WINSOCK2_H 1
16683 if test "$ac_cv_header_winsock2_h" = yes; then
16685 UNISTD_H_HAVE_WINSOCK2_H=1
16686 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16693 $as_echo_n "checking for struct timeval... " >&6; }
16694 if ${gl_cv_sys_struct_timeval+:} false; then :
16695 $as_echo_n "(cached) " >&6
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16699 #if HAVE_SYS_TIME_H
16700 #include <sys/time.h>
16703 #if HAVE_WINSOCK2_H
16704 # include <winsock2.h>
16710 static struct timeval x; x.tv_sec = x.tv_usec;
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716 gl_cv_sys_struct_timeval=yes
16718 gl_cv_sys_struct_timeval=no
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16724 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16725 if test $gl_cv_sys_struct_timeval != yes; then
16726 HAVE_STRUCT_TIMEVAL=0
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16729 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16730 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16731 $as_echo_n "(cached) " >&6
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 #if HAVE_SYS_TIME_H
16736 #include <sys/time.h>
16739 #if HAVE_WINSOCK2_H
16740 # include <winsock2.h>
16746 static struct timeval x;
16747 typedef int verify_tv_sec_type[
16748 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16755 if ac_fn_c_try_compile "$LINENO"; then :
16756 gl_cv_sys_struct_timeval_tv_sec=yes
16758 gl_cv_sys_struct_timeval_tv_sec=no
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16764 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16765 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16766 REPLACE_STRUCT_TIMEVAL=1
16771 for gl_func in gettimeofday; do
16772 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16775 if eval \${$as_gl_Symbol+:} false; then :
16776 $as_echo_n "(cached) " >&6
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16781 #if HAVE_SYS_TIME_H
16782 # include <sys/time.h>
16795 if ac_fn_c_try_compile "$LINENO"; then :
16796 eval "$as_gl_Symbol=yes"
16798 eval "$as_gl_Symbol=no"
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802 eval ac_res=\$$as_gl_Symbol
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16804 $as_echo "$ac_res" >&6; }
16805 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16806 cat >>confdefs.h <<_ACEOF
16807 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16810 eval ac_cv_have_decl_$gl_func=yes
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16828 $as_echo_n "checking for 64-bit off_t... " >&6; }
16829 if ${gl_cv_type_off_t_64+:} false; then :
16830 $as_echo_n "(cached) " >&6
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <sys/types.h>
16835 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16845 if ac_fn_c_try_compile "$LINENO"; then :
16846 gl_cv_type_off_t_64=yes
16848 gl_cv_type_off_t_64=no
16850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16854 $as_echo "$gl_cv_type_off_t_64" >&6; }
16855 if test $gl_cv_type_off_t_64 = no; then
16856 WINDOWS_64_BIT_OFF_T=1
16858 WINDOWS_64_BIT_OFF_T=0
16860 WINDOWS_64_BIT_ST_SIZE=1
16863 WINDOWS_64_BIT_OFF_T=0
16864 WINDOWS_64_BIT_ST_SIZE=0
16869 if test "X$prefix" = "XNONE"; then
16870 acl_final_prefix="$ac_default_prefix"
16872 acl_final_prefix="$prefix"
16874 if test "X$exec_prefix" = "XNONE"; then
16875 acl_final_exec_prefix='${prefix}'
16877 acl_final_exec_prefix="$exec_prefix"
16879 acl_save_prefix="$prefix"
16880 prefix="$acl_final_prefix"
16881 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16882 prefix="$acl_save_prefix"
16886 # Check whether --with-gnu-ld was given.
16887 if test "${with_gnu_ld+set}" = set; then :
16888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16893 # Prepare PATH_SEPARATOR.
16894 # The user is always right.
16895 if test "${PATH_SEPARATOR+set}" != set; then
16896 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16897 # contains only /bin. Note that ksh looks also at the FPATH variable,
16898 # so we have to set that as well for the test.
16900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16901 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16902 || PATH_SEPARATOR=';'
16907 if test "$GCC" = yes; then
16908 # Check if gcc -print-prog-name=ld gives a path.
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16910 $as_echo_n "checking for ld used by $CC... " >&6; }
16913 # gcc leaves a trailing carriage return which upsets mingw
16914 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16916 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16919 # Accept absolute paths.
16921 re_direlt='/[^/][^/]*/\.\./'
16922 # Canonicalize the pathname of ld
16923 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16924 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16925 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16927 test -z "$LD" && LD="$ac_prog"
16930 # If it fails, then pretend we aren't using GCC.
16934 # If it is relative, then search for the first ld in PATH.
16935 with_gnu_ld=unknown
16938 elif test "$with_gnu_ld" = yes; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16940 $as_echo_n "checking for GNU ld... " >&6; }
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16943 $as_echo_n "checking for non-GNU ld... " >&6; }
16945 if ${acl_cv_path_LD+:} false; then :
16946 $as_echo_n "(cached) " >&6
16948 if test -z "$LD"; then
16949 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16950 for ac_dir in $PATH; do
16951 IFS="$acl_save_ifs"
16952 test -z "$ac_dir" && ac_dir=.
16953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16954 acl_cv_path_LD="$ac_dir/$ac_prog"
16955 # Check to see if the program is GNU ld. I'd rather use --version,
16956 # but apparently some variants of GNU ld only accept -v.
16957 # Break only if it was the GNU/non-GNU ld that we prefer.
16958 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16959 *GNU* | *'with BFD'*)
16960 test "$with_gnu_ld" != no && break
16963 test "$with_gnu_ld" != yes && break
16968 IFS="$acl_save_ifs"
16970 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16974 LD="$acl_cv_path_LD"
16975 if test -n "$LD"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16977 $as_echo "$LD" >&6; }
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16982 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16985 if ${acl_cv_prog_gnu_ld+:} false; then :
16986 $as_echo_n "(cached) " >&6
16988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16989 case `$LD -v 2>&1 </dev/null` in
16990 *GNU* | *'with BFD'*)
16991 acl_cv_prog_gnu_ld=yes
16994 acl_cv_prog_gnu_ld=no
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16999 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17000 with_gnu_ld=$acl_cv_prog_gnu_ld
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17006 $as_echo_n "checking for shared library run path origin... " >&6; }
17007 if ${acl_cv_rpath+:} false; then :
17008 $as_echo_n "(cached) " >&6
17011 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17012 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17014 rm -f ./conftest.sh
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17019 $as_echo "$acl_cv_rpath" >&6; }
17021 acl_libext="$acl_cv_libext"
17022 acl_shlibext="$acl_cv_shlibext"
17023 acl_libname_spec="$acl_cv_libname_spec"
17024 acl_library_names_spec="$acl_cv_library_names_spec"
17025 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17026 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17027 acl_hardcode_direct="$acl_cv_hardcode_direct"
17028 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17029 # Check whether --enable-rpath was given.
17030 if test "${enable_rpath+set}" = set; then :
17031 enableval=$enable_rpath; :
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17044 $as_echo_n "checking for 64-bit host... " >&6; }
17045 if ${gl_cv_solaris_64bit+:} false; then :
17046 $as_echo_n "(cached) " >&6
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17057 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17058 gl_cv_solaris_64bit=yes
17060 gl_cv_solaris_64bit=no
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17067 $as_echo "$gl_cv_solaris_64bit" >&6; }
17068 if test $gl_cv_solaris_64bit = yes; then
17069 acl_libdirstem=lib/64
17070 case "$host_cpu" in
17071 sparc*) acl_libdirstem2=lib/sparcv9 ;;
17072 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17077 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17078 if test -n "$searchpath"; then
17079 acl_save_IFS="${IFS= }"; IFS=":"
17080 for searchdir in $searchpath; do
17081 if test -d "$searchdir"; then
17082 case "$searchdir" in
17083 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17085 # Better ignore directories of this form. They are misleading.
17087 *) searchdir=`cd "$searchdir" && pwd`
17088 case "$searchdir" in
17089 */lib64 ) acl_libdirstem=lib64 ;;
17094 IFS="$acl_save_IFS"
17098 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17102 gl_threads_api=none
17107 if test "$gl_use_threads" != no; then
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
17109 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
17110 if ${gl_cv_have_weak+:} false; then :
17111 $as_echo_n "(cached) " >&6
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17116 extern void xyzzy ();
17126 if ac_fn_c_try_link "$LINENO"; then :
17127 gl_cv_have_weak=maybe
17129 rm -f core conftest.err conftest.$ac_objext \
17130 conftest$ac_exeext conftest.$ac_ext
17131 if test $gl_cv_have_weak = maybe; then
17132 if test "$cross_compiling" = yes; then :
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17136 Extensible Linking Format
17140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17141 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17142 gl_cv_have_weak="guessing yes"
17144 gl_cv_have_weak="guessing no"
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17157 return (fputs == NULL);
17160 if ac_fn_c_try_run "$LINENO"; then :
17161 gl_cv_have_weak=yes
17165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17166 conftest.$ac_objext conftest.beam conftest.$ac_ext
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
17173 $as_echo "$gl_cv_have_weak" >&6; }
17174 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
17175 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
17176 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
17177 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17178 if test "x$ac_cv_header_pthread_h" = xyes; then :
17179 gl_have_pthread_h=yes
17181 gl_have_pthread_h=no
17185 if test "$gl_have_pthread_h" = yes; then
17186 # Other possible tests:
17187 # -lpthreads (FSU threads, PCthreads)
17190 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
17191 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
17192 # the second one only in libpthread, and lock.c needs it.
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17195 #include <pthread.h>
17199 pthread_mutex_lock((pthread_mutex_t*)0);
17200 pthread_mutexattr_init((pthread_mutexattr_t*)0);
17205 if ac_fn_c_try_link "$LINENO"; then :
17206 gl_have_pthread=yes
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17210 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
17211 # since it is defined as a macro on OSF/1.)
17212 if test -n "$gl_have_pthread"; then
17213 # The program links fine without libpthread. But it may actually
17214 # need to link with libpthread in order to create multiple threads.
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17216 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17217 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17218 $as_echo_n "(cached) " >&6
17220 ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lpthread $LIBS"
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17225 /* Override any GCC internal prototype to avoid an error.
17226 Use char because int might match the return type of a GCC
17227 builtin and then its argument prototype would still apply. */
17231 char pthread_kill ();
17235 return pthread_kill ();
17240 if ac_fn_c_try_link "$LINENO"; then :
17241 ac_cv_lib_pthread_pthread_kill=yes
17243 ac_cv_lib_pthread_pthread_kill=no
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_lib_save_LIBS
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17250 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17251 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17252 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17253 # On Solaris and HP-UX, most pthread functions exist also in libc.
17254 # Therefore pthread_in_use() needs to actually try to create a
17255 # thread: pthread_create from libc will fail, whereas
17256 # pthread_create will actually create a thread.
17260 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17267 # Some library is needed. Try libpthread and libc_r.
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17269 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17270 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17271 $as_echo_n "(cached) " >&6
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lpthread $LIBS"
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17284 char pthread_kill ();
17288 return pthread_kill ();
17293 if ac_fn_c_try_link "$LINENO"; then :
17294 ac_cv_lib_pthread_pthread_kill=yes
17296 ac_cv_lib_pthread_pthread_kill=no
17298 rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
17300 LIBS=$ac_check_lib_save_LIBS
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17303 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17304 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17305 gl_have_pthread=yes
17306 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17307 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17310 if test -z "$gl_have_pthread"; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17313 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17314 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17315 $as_echo_n "(cached) " >&6
17317 ac_check_lib_save_LIBS=$LIBS
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17328 char pthread_kill ();
17332 return pthread_kill ();
17337 if ac_fn_c_try_link "$LINENO"; then :
17338 ac_cv_lib_c_r_pthread_kill=yes
17340 ac_cv_lib_c_r_pthread_kill=no
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17347 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17348 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17349 gl_have_pthread=yes
17350 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17351 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17356 if test -n "$gl_have_pthread"; then
17357 gl_threads_api=posix
17359 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17361 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17362 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17364 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17373 if test -z "$gl_have_pthread"; then
17374 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17375 gl_have_solaristhread=
17376 gl_save_LIBS="$LIBS"
17377 LIBS="$LIBS -lthread"
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17381 #include <thread.h>
17392 if ac_fn_c_try_link "$LINENO"; then :
17393 gl_have_solaristhread=yes
17395 rm -f core conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS="$gl_save_LIBS"
17398 if test -n "$gl_have_solaristhread"; then
17399 gl_threads_api=solaris
17401 LTLIBTHREAD=-lthread
17402 LIBMULTITHREAD="$LIBTHREAD"
17403 LTLIBMULTITHREAD="$LTLIBTHREAD"
17405 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17407 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17409 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17417 if test "$gl_use_threads" = pth; then
17418 gl_save_CPPFLAGS="$CPPFLAGS"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17425 $as_echo_n "checking how to link with libpth... " >&6; }
17426 if ${ac_cv_libpth_libs+:} false; then :
17427 $as_echo_n "(cached) " >&6
17439 acl_save_prefix="$prefix"
17440 prefix="$acl_final_prefix"
17441 acl_save_exec_prefix="$exec_prefix"
17442 exec_prefix="$acl_final_exec_prefix"
17444 eval additional_includedir=\"$includedir\"
17445 eval additional_libdir=\"$libdir\"
17447 exec_prefix="$acl_save_exec_prefix"
17448 prefix="$acl_save_prefix"
17451 # Check whether --with-libpth-prefix was given.
17452 if test "${with_libpth_prefix+set}" = set; then :
17453 withval=$with_libpth_prefix;
17454 if test "X$withval" = "Xno"; then
17457 if test "X$withval" = "X"; then
17459 acl_save_prefix="$prefix"
17460 prefix="$acl_final_prefix"
17461 acl_save_exec_prefix="$exec_prefix"
17462 exec_prefix="$acl_final_exec_prefix"
17464 eval additional_includedir=\"$includedir\"
17465 eval additional_libdir=\"$libdir\"
17467 exec_prefix="$acl_save_exec_prefix"
17468 prefix="$acl_save_prefix"
17471 additional_includedir="$withval/include"
17472 additional_libdir="$withval/$acl_libdirstem"
17473 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17474 && ! test -d "$withval/$acl_libdirstem"; then
17475 additional_libdir="$withval/$acl_libdirstem2"
17489 names_already_handled=
17490 names_next_round='pth '
17491 while test -n "$names_next_round"; do
17492 names_this_round="$names_next_round"
17494 for name in $names_this_round; do
17496 for n in $names_already_handled; do
17497 if test "$n" = "$name"; then
17498 already_handled=yes
17502 if test -z "$already_handled"; then
17503 names_already_handled="$names_already_handled $name"
17504 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17505 eval value=\"\$HAVE_LIB$uppername\"
17506 if test -n "$value"; then
17507 if test "$value" = yes; then
17508 eval value=\"\$LIB$uppername\"
17509 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17510 eval value=\"\$LTLIB$uppername\"
17511 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17520 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17521 if test -n "$acl_shlibext"; then
17522 shrext=".$acl_shlibext" # typically: shrext=.so
17526 if test $use_additional = yes; then
17527 dir="$additional_libdir"
17528 if test -n "$acl_shlibext"; then
17529 if test -f "$dir/$libname$shrext"; then
17531 found_so="$dir/$libname$shrext"
17533 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17534 ver=`(cd "$dir" && \
17535 for f in "$libname$shrext".*; do echo "$f"; done \
17536 | sed -e "s,^$libname$shrext\\\\.,," \
17537 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17538 | sed 1q ) 2>/dev/null`
17539 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17541 found_so="$dir/$libname$shrext.$ver"
17544 eval library_names=\"$acl_library_names_spec\"
17545 for f in $library_names; do
17546 if test -f "$dir/$f"; then
17555 if test "X$found_dir" = "X"; then
17556 if test -f "$dir/$libname.$acl_libext"; then
17558 found_a="$dir/$libname.$acl_libext"
17561 if test "X$found_dir" != "X"; then
17562 if test -f "$dir/$libname.la"; then
17563 found_la="$dir/$libname.la"
17567 if test "X$found_dir" = "X"; then
17568 for x in $LDFLAGS $LTLIBPTH; do
17570 acl_save_prefix="$prefix"
17571 prefix="$acl_final_prefix"
17572 acl_save_exec_prefix="$exec_prefix"
17573 exec_prefix="$acl_final_exec_prefix"
17575 exec_prefix="$acl_save_exec_prefix"
17576 prefix="$acl_save_prefix"
17580 dir=`echo "X$x" | sed -e 's/^X-L//'`
17581 if test -n "$acl_shlibext"; then
17582 if test -f "$dir/$libname$shrext"; then
17584 found_so="$dir/$libname$shrext"
17586 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17587 ver=`(cd "$dir" && \
17588 for f in "$libname$shrext".*; do echo "$f"; done \
17589 | sed -e "s,^$libname$shrext\\\\.,," \
17590 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17591 | sed 1q ) 2>/dev/null`
17592 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17594 found_so="$dir/$libname$shrext.$ver"
17597 eval library_names=\"$acl_library_names_spec\"
17598 for f in $library_names; do
17599 if test -f "$dir/$f"; then
17608 if test "X$found_dir" = "X"; then
17609 if test -f "$dir/$libname.$acl_libext"; then
17611 found_a="$dir/$libname.$acl_libext"
17614 if test "X$found_dir" != "X"; then
17615 if test -f "$dir/$libname.la"; then
17616 found_la="$dir/$libname.la"
17621 if test "X$found_dir" != "X"; then
17626 if test "X$found_dir" != "X"; then
17627 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17628 if test "X$found_so" != "X"; then
17629 if test "$enable_rpath" = no \
17630 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17631 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17632 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17635 for x in $ltrpathdirs; do
17636 if test "X$x" = "X$found_dir"; then
17641 if test -z "$haveit"; then
17642 ltrpathdirs="$ltrpathdirs $found_dir"
17644 if test "$acl_hardcode_direct" = yes; then
17645 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17647 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17648 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17650 for x in $rpathdirs; do
17651 if test "X$x" = "X$found_dir"; then
17656 if test -z "$haveit"; then
17657 rpathdirs="$rpathdirs $found_dir"
17661 for x in $LDFLAGS $LIBPTH; do
17663 acl_save_prefix="$prefix"
17664 prefix="$acl_final_prefix"
17665 acl_save_exec_prefix="$exec_prefix"
17666 exec_prefix="$acl_final_exec_prefix"
17668 exec_prefix="$acl_save_exec_prefix"
17669 prefix="$acl_save_prefix"
17671 if test "X$x" = "X-L$found_dir"; then
17676 if test -z "$haveit"; then
17677 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17679 if test "$acl_hardcode_minus_L" != no; then
17680 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17682 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17688 if test "X$found_a" != "X"; then
17689 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17691 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17694 additional_includedir=
17695 case "$found_dir" in
17696 */$acl_libdirstem | */$acl_libdirstem/)
17697 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17698 if test "$name" = 'pth'; then
17699 LIBPTH_PREFIX="$basedir"
17701 additional_includedir="$basedir/include"
17703 */$acl_libdirstem2 | */$acl_libdirstem2/)
17704 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17705 if test "$name" = 'pth'; then
17706 LIBPTH_PREFIX="$basedir"
17708 additional_includedir="$basedir/include"
17711 if test "X$additional_includedir" != "X"; then
17712 if test "X$additional_includedir" != "X/usr/include"; then
17714 if test "X$additional_includedir" = "X/usr/local/include"; then
17715 if test -n "$GCC"; then
17717 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17721 if test -z "$haveit"; then
17722 for x in $CPPFLAGS $INCPTH; do
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17729 exec_prefix="$acl_save_exec_prefix"
17730 prefix="$acl_save_prefix"
17732 if test "X$x" = "X-I$additional_includedir"; then
17737 if test -z "$haveit"; then
17738 if test -d "$additional_includedir"; then
17739 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17745 if test -n "$found_la"; then
17746 save_libdir="$libdir"
17747 case "$found_la" in
17748 */* | *\\*) . "$found_la" ;;
17749 *) . "./$found_la" ;;
17751 libdir="$save_libdir"
17752 for dep in $dependency_libs; do
17755 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17756 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17757 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17759 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17760 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17761 if test -n "$GCC"; then
17763 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17767 if test -z "$haveit"; then
17769 for x in $LDFLAGS $LIBPTH; do
17771 acl_save_prefix="$prefix"
17772 prefix="$acl_final_prefix"
17773 acl_save_exec_prefix="$exec_prefix"
17774 exec_prefix="$acl_final_exec_prefix"
17776 exec_prefix="$acl_save_exec_prefix"
17777 prefix="$acl_save_prefix"
17779 if test "X$x" = "X-L$additional_libdir"; then
17784 if test -z "$haveit"; then
17785 if test -d "$additional_libdir"; then
17786 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17790 for x in $LDFLAGS $LTLIBPTH; do
17792 acl_save_prefix="$prefix"
17793 prefix="$acl_final_prefix"
17794 acl_save_exec_prefix="$exec_prefix"
17795 exec_prefix="$acl_final_exec_prefix"
17797 exec_prefix="$acl_save_exec_prefix"
17798 prefix="$acl_save_prefix"
17800 if test "X$x" = "X-L$additional_libdir"; then
17805 if test -z "$haveit"; then
17806 if test -d "$additional_libdir"; then
17807 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17814 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17815 if test "$enable_rpath" != no; then
17817 for x in $rpathdirs; do
17818 if test "X$x" = "X$dir"; then
17823 if test -z "$haveit"; then
17824 rpathdirs="$rpathdirs $dir"
17827 for x in $ltrpathdirs; do
17828 if test "X$x" = "X$dir"; then
17833 if test -z "$haveit"; then
17834 ltrpathdirs="$ltrpathdirs $dir"
17839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17842 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17845 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17846 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17852 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17853 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17859 if test "X$rpathdirs" != "X"; then
17860 if test -n "$acl_hardcode_libdir_separator"; then
17862 for found_dir in $rpathdirs; do
17863 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17865 acl_save_libdir="$libdir"
17867 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17868 libdir="$acl_save_libdir"
17869 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17871 for found_dir in $rpathdirs; do
17872 acl_save_libdir="$libdir"
17873 libdir="$found_dir"
17874 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17875 libdir="$acl_save_libdir"
17876 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17880 if test "X$ltrpathdirs" != "X"; then
17881 for found_dir in $ltrpathdirs; do
17882 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17891 ac_cv_libpth_libs="$LIBPTH"
17892 ac_cv_libpth_ltlibs="$LTLIBPTH"
17893 ac_cv_libpth_cppflags="$INCPTH"
17894 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17898 $as_echo "$ac_cv_libpth_libs" >&6; }
17899 LIBPTH="$ac_cv_libpth_libs"
17900 LTLIBPTH="$ac_cv_libpth_ltlibs"
17901 INCPTH="$ac_cv_libpth_cppflags"
17902 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17904 for element in $INCPTH; do
17906 for x in $CPPFLAGS; do
17908 acl_save_prefix="$prefix"
17909 prefix="$acl_final_prefix"
17910 acl_save_exec_prefix="$exec_prefix"
17911 exec_prefix="$acl_final_exec_prefix"
17913 exec_prefix="$acl_save_exec_prefix"
17914 prefix="$acl_save_prefix"
17916 if test "X$x" = "X$element"; then
17921 if test -z "$haveit"; then
17922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17934 gl_save_LIBS="$LIBS"
17935 LIBS="$LIBS $LIBPTH"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17947 if ac_fn_c_try_link "$LINENO"; then :
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 LIBS="$gl_save_LIBS"
17953 if test -n "$gl_have_pth"; then
17955 LIBTHREAD="$LIBPTH"
17956 LTLIBTHREAD="$LTLIBPTH"
17957 LIBMULTITHREAD="$LIBTHREAD"
17958 LTLIBMULTITHREAD="$LTLIBTHREAD"
17960 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17962 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17963 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17965 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17972 CPPFLAGS="$gl_save_CPPFLAGS"
17975 if test -z "$gl_have_pthread"; then
17976 case "$gl_use_threads" in
17977 yes | windows | win32) # The 'win32' is for backward compatibility.
17978 if { case "$host_os" in
17983 gl_threads_api=windows
17985 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17993 $as_echo_n "checking for multithread API to use... " >&6; }
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17995 $as_echo "$gl_threads_api" >&6; }
18018 GNULIB_UTIMENSAT=0;
18032 REPLACE_FUTIMENS=0;
18038 REPLACE_UTIMENSAT=0;
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18047 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18048 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18049 $as_echo_n "(cached) " >&6
18051 rm -f conftest.sym conftest.file
18052 echo >conftest.file
18053 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18054 if test "$cross_compiling" = yes; then :
18056 # Guess yes on glibc systems.
18057 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18058 # If we don't know, assume the worst.
18059 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 $ac_includes_default
18070 /* Linux will dereference the symlink and fail, as required by
18071 POSIX. That is better in the sense that it means we will not
18072 have to compile and use the lstat wrapper. */
18073 return lstat ("conftest.sym/", &sbuf) == 0;
18079 if ac_fn_c_try_run "$LINENO"; then :
18080 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18082 gl_cv_func_lstat_dereferences_slashed_symlink=no
18084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18085 conftest.$ac_objext conftest.beam conftest.$ac_ext
18089 # If the 'ln -s' command failed, then we probably don't even
18090 # have an lstat function.
18091 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18093 rm -f conftest.sym conftest.file
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18097 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18098 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18101 cat >>confdefs.h <<_ACEOF
18102 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18111 GNULIB_CALLOC_POSIX=0;
18112 GNULIB_CANONICALIZE_FILE_NAME=0;
18113 GNULIB_GETLOADAVG=0;
18114 GNULIB_GETSUBOPT=0;
18116 GNULIB_MALLOC_POSIX=0;
18120 GNULIB_MKOSTEMPS=0;
18123 GNULIB_POSIX_OPENPT=0;
18125 GNULIB_PTSNAME_R=0;
18129 GNULIB_REALLOC_POSIX=0;
18132 GNULIB_SECURE_GETENV=0;
18137 GNULIB_SYSTEM_POSIX=0;
18143 HAVE_CANONICALIZE_FILE_NAME=1;
18144 HAVE_DECL_GETLOADAVG=1;
18152 HAVE_POSIX_OPENPT=1;
18160 HAVE_SECURE_GETENV=1;
18162 HAVE_DECL_SETENV=1;
18166 HAVE_STRUCT_RANDOM_DATA=1;
18167 HAVE_SYS_LOADAVG_H=0;
18169 HAVE_DECL_UNSETENV=1;
18171 REPLACE_CANONICALIZE_FILE_NAME=0;
18176 REPLACE_PTSNAME_R=0;
18178 REPLACE_RANDOM_R=0;
18180 REPLACE_REALPATH=0;
18183 REPLACE_UNSETENV=0;
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18188 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18189 if ${gl_cv_func_malloc_posix+:} false; then :
18190 $as_echo_n "(cached) " >&6
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18199 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18207 if ac_fn_c_try_compile "$LINENO"; then :
18208 gl_cv_func_malloc_posix=yes
18210 gl_cv_func_malloc_posix=no
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
18216 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18220 for ac_header in stdlib.h
18222 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18223 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_STDLIB_H 1
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18233 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18234 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18235 $as_echo_n "(cached) " >&6
18237 if test "$cross_compiling" = yes; then :
18239 # Guess yes on platforms where we know the result.
18240 *-gnu* | freebsd* | netbsd* | openbsd* \
18241 | hpux* | solaris* | cygwin* | mingw*)
18242 ac_cv_func_malloc_0_nonnull=yes ;;
18243 # If we don't know, assume the worst.
18244 *) ac_cv_func_malloc_0_nonnull=no ;;
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18251 # include <stdlib.h>
18259 return ! malloc (0);
18265 if ac_fn_c_try_run "$LINENO"; then :
18266 ac_cv_func_malloc_0_nonnull=yes
18268 ac_cv_func_malloc_0_nonnull=no
18270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18271 conftest.$ac_objext conftest.beam conftest.$ac_ext
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18277 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18278 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18279 gl_cv_func_malloc_0_nonnull=1
18281 gl_cv_func_malloc_0_nonnull=0
18285 cat >>confdefs.h <<_ACEOF
18286 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18292 $as_echo_n "checking for unsigned long long int... " >&6; }
18293 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18294 $as_echo_n "(cached) " >&6
18296 ac_cv_type_unsigned_long_long_int=yes
18297 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 /* For now, do not test the preprocessor; as of 2007 there are too many
18302 implementations with broken preprocessors. Perhaps this can
18303 be revisited in 2012. In the meantime, code should not expect
18304 #if to work with literals wider than 32 bits. */
18305 /* Test literals. */
18306 long long int ll = 9223372036854775807ll;
18307 long long int nll = -9223372036854775807LL;
18308 unsigned long long int ull = 18446744073709551615ULL;
18309 /* Test constant expressions. */
18310 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18312 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18318 /* Test availability of runtime routines for shift and division. */
18319 long long int llmax = 9223372036854775807ll;
18320 unsigned long long int ullmax = 18446744073709551615ull;
18321 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18322 | (llmax / ll) | (llmax % ll)
18323 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18324 | (ullmax / ull) | (ullmax % ull));
18330 if ac_fn_c_try_link "$LINENO"; then :
18333 ac_cv_type_unsigned_long_long_int=no
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18340 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18341 if test $ac_cv_type_unsigned_long_long_int = yes; then
18343 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18350 $as_echo_n "checking for long long int... " >&6; }
18351 if ${ac_cv_type_long_long_int+:} false; then :
18352 $as_echo_n "(cached) " >&6
18354 ac_cv_type_long_long_int=yes
18355 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18356 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18357 if test $ac_cv_type_long_long_int = yes; then
18358 if test "$cross_compiling" = yes; then :
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363 #include <limits.h>
18366 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18367 # define LLONG_MAX (HALF - 1 + HALF)
18372 long long int n = 1;
18376 long long int m = n << i;
18379 if (LLONG_MAX / 2 < m)
18387 if ac_fn_c_try_run "$LINENO"; then :
18390 ac_cv_type_long_long_int=no
18392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18393 conftest.$ac_objext conftest.beam conftest.$ac_ext
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18400 $as_echo "$ac_cv_type_long_long_int" >&6; }
18401 if test $ac_cv_type_long_long_int = yes; then
18403 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18424 GNULIB_RAWMEMCHR=0;
18427 GNULIB_STRCHRNUL=0;
18435 GNULIB_STRCASESTR=0;
18442 GNULIB_MBSCASECMP=0;
18443 GNULIB_MBSNCASECMP=0;
18444 GNULIB_MBSPCASECMP=0;
18445 GNULIB_MBSCASESTR=0;
18452 GNULIB_STRERROR_R=0;
18453 GNULIB_STRSIGNAL=0;
18454 GNULIB_STRVERSCMP=0;
18459 HAVE_DECL_MEMMEM=1;
18461 HAVE_DECL_MEMRCHR=1;
18466 HAVE_DECL_STRDUP=1;
18467 HAVE_DECL_STRNDUP=1;
18468 HAVE_DECL_STRNLEN=1;
18472 HAVE_DECL_STRTOK_R=1;
18473 HAVE_DECL_STRERROR_R=1;
18474 HAVE_DECL_STRSIGNAL=1;
18481 REPLACE_STRCASESTR=0;
18482 REPLACE_STRCHRNUL=0;
18483 REPLACE_STRERROR=0;
18484 REPLACE_STRERROR_R=0;
18488 REPLACE_STRSIGNAL=0;
18489 REPLACE_STRTOK_R=0;
18490 UNDEFINE_STRTOK_R=0;
18496 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
18497 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
18498 # irrelevant for anonymous mappings.
18499 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18500 if test "x$ac_cv_func_mmap" = xyes; then :
18507 # Try to allow MAP_ANONYMOUS.
18508 gl_have_mmap_anonymous=no
18509 if test $gl_have_mmap = yes; then
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
18511 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18515 #include <sys/mman.h>
18516 #ifdef MAP_ANONYMOUS
18517 I cannot identify this map
18521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18522 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18523 gl_have_mmap_anonymous=yes
18527 if test $gl_have_mmap_anonymous != yes; then
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18531 #include <sys/mman.h>
18533 I cannot identify this map
18537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18538 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18540 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
18542 gl_have_mmap_anonymous=yes
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
18548 $as_echo "$gl_have_mmap_anonymous" >&6; }
18549 if test $gl_have_mmap_anonymous = yes; then
18551 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
18573 if test $HAVE_MEMCHR = 1; then
18574 # Detect platform-specific bugs in some versions of glibc:
18575 # memchr should not dereference anything with length 0
18576 # http://bugzilla.redhat.com/499689
18577 # memchr should not dereference overestimated length after a match
18578 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
18579 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
18580 # Assume that memchr works on platforms that lack mprotect.
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
18582 $as_echo_n "checking whether memchr works... " >&6; }
18583 if ${gl_cv_func_memchr_works+:} false; then :
18584 $as_echo_n "(cached) " >&6
18586 if test "$cross_compiling" = yes; then :
18587 gl_cv_func_memchr_works="guessing no"
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18592 #include <string.h>
18593 #if HAVE_SYS_MMAN_H
18594 # include <fcntl.h>
18595 # include <unistd.h>
18596 # include <sys/types.h>
18597 # include <sys/mman.h>
18599 # define MAP_FILE 0
18608 char *fence = NULL;
18609 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
18610 # if HAVE_MAP_ANONYMOUS
18611 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
18613 # else /* !HAVE_MAP_ANONYMOUS */
18614 const int flags = MAP_FILE | MAP_PRIVATE;
18615 int fd = open ("/dev/zero", O_RDONLY, 0666);
18619 int pagesize = getpagesize ();
18621 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
18623 if (two_pages != (char *)(-1)
18624 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
18625 fence = two_pages + pagesize;
18630 if (memchr (fence, 0, 0))
18632 strcpy (fence - 9, "12345678");
18633 if (memchr (fence - 9, 0, 79) != fence - 1)
18635 if (memchr (fence - 1, 0, 3) != fence - 1)
18644 if ac_fn_c_try_run "$LINENO"; then :
18645 gl_cv_func_memchr_works=yes
18647 gl_cv_func_memchr_works=no
18649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18650 conftest.$ac_objext conftest.beam conftest.$ac_ext
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
18655 $as_echo "$gl_cv_func_memchr_works" >&6; }
18656 if test "$gl_cv_func_memchr_works" != yes; then
18667 gl_cv_c_multiarch=no
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 #ifndef __APPLE_CC__
18671 not a universal capable compiler
18676 if ac_fn_c_try_compile "$LINENO"; then :
18680 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18681 if test -n "$prev"; then
18683 i?86 | x86_64 | ppc | ppc64)
18684 if test -z "$arch" || test "$arch" = "$word"; then
18687 gl_cv_c_multiarch=yes
18693 if test "x$word" = "x-arch"; then
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 if test $gl_cv_c_multiarch = yes; then
18702 APPLE_UNIVERSAL_BUILD=1
18704 APPLE_UNIVERSAL_BUILD=0
18714 GNULIB_PTHREAD_SIGMASK=0;
18716 GNULIB_SIGNAL_H_SIGPIPE=0;
18717 GNULIB_SIGPROCMASK=0;
18718 GNULIB_SIGACTION=0;
18719 HAVE_POSIX_SIGNALBLOCKING=1;
18720 HAVE_PTHREAD_SIGMASK=1;
18725 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18727 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18729 HAVE_SIGHANDLER_T=1;
18730 REPLACE_PTHREAD_SIGMASK=0;
18734 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18735 #include <signal.h>
18736 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18737 #include <sys/types.h>
18740 if test "x$ac_cv_type_sigset_t" = xyes; then :
18742 cat >>confdefs.h <<_ACEOF
18743 #define HAVE_SIGSET_T 1
18746 gl_cv_type_sigset_t=yes
18748 gl_cv_type_sigset_t=no
18751 if test $gl_cv_type_sigset_t != yes; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18757 $as_echo_n "checking for ssize_t... " >&6; }
18758 if ${gt_cv_ssize_t+:} false; then :
18759 $as_echo_n "(cached) " >&6
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763 #include <sys/types.h>
18767 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18773 if ac_fn_c_try_compile "$LINENO"; then :
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18781 $as_echo "$gt_cv_ssize_t" >&6; }
18782 if test $gt_cv_ssize_t = no; then
18784 $as_echo "#define ssize_t int" >>confdefs.h
18794 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18795 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18801 cat >>confdefs.h <<_ACEOF
18802 #define HAVE_DECL_SETENV $ac_have_decl
18820 if test $ac_cv_have_decl_setenv = no; then
18840 for ac_header in search.h
18842 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18843 if test "x$ac_cv_header_search_h" = xyes; then :
18844 cat >>confdefs.h <<_ACEOF
18845 #define HAVE_SEARCH_H 1
18852 for ac_func in tsearch
18854 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18855 if test "x$ac_cv_func_tsearch" = xyes; then :
18856 cat >>confdefs.h <<_ACEOF
18857 #define HAVE_TSEARCH 1
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18872 if ${ac_cv_type_uid_t+:} false; then :
18873 $as_echo_n "(cached) " >&6
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18877 #include <sys/types.h>
18880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18881 $EGREP "uid_t" >/dev/null 2>&1; then :
18882 ac_cv_type_uid_t=yes
18884 ac_cv_type_uid_t=no
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18890 $as_echo "$ac_cv_type_uid_t" >&6; }
18891 if test $ac_cv_type_uid_t = no; then
18893 $as_echo "#define uid_t int" >>confdefs.h
18896 $as_echo "#define gid_t int" >>confdefs.h
18920 GNULIB_FPRINTF_POSIX=0;
18936 GNULIB_OBSTACK_PRINTF=0;
18937 GNULIB_OBSTACK_PRINTF_POSIX=0;
18942 GNULIB_PRINTF_POSIX=0;
18951 GNULIB_SPRINTF_POSIX=0;
18952 GNULIB_STDIO_H_NONBLOCKING=0;
18953 GNULIB_STDIO_H_SIGPIPE=0;
18955 GNULIB_VASPRINTF=0;
18960 GNULIB_VFPRINTF_POSIX=0;
18962 GNULIB_VPRINTF_POSIX=0;
18963 GNULIB_VSNPRINTF=0;
18964 GNULIB_VSPRINTF_POSIX=0;
18965 HAVE_DECL_FPURGE=1;
18966 HAVE_DECL_FSEEKO=1;
18967 HAVE_DECL_FTELLO=1;
18968 HAVE_DECL_GETDELIM=1;
18969 HAVE_DECL_GETLINE=1;
18970 HAVE_DECL_OBSTACK_PRINTF=1;
18971 HAVE_DECL_SNPRINTF=1;
18972 HAVE_DECL_VSNPRINTF=1;
18993 REPLACE_GETDELIM=0;
18995 REPLACE_OBSTACK_PRINTF=0;
19001 REPLACE_RENAMEAT=0;
19002 REPLACE_SNPRINTF=0;
19004 REPLACE_STDIO_READ_FUNCS=0;
19005 REPLACE_STDIO_WRITE_FUNCS=0;
19007 REPLACE_VASPRINTF=0;
19008 REPLACE_VDPRINTF=0;
19009 REPLACE_VFPRINTF=0;
19011 REPLACE_VSNPRINTF=0;
19012 REPLACE_VSPRINTF=0;
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
19032 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
19033 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
19034 $as_echo_n "(cached) " >&6
19037 if test "$cross_compiling" = yes; then :
19040 # Guess yes on glibc systems.
19041 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19042 # Guess yes on FreeBSD >= 5.
19043 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
19044 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19045 # Guess yes on Mac OS X >= 10.3.
19046 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
19047 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19048 # Guess yes on OpenBSD >= 3.9.
19049 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
19050 gl_cv_func_snprintf_retval_c99="guessing no";;
19051 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19052 # Guess yes on Solaris >= 2.10.
19053 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
19054 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
19055 # Guess yes on AIX >= 4.
19056 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
19057 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19058 # Guess yes on NetBSD >= 3.
19059 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
19060 gl_cv_func_snprintf_retval_c99="guessing no";;
19061 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19062 # Guess yes on BeOS.
19063 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19064 # If we don't know, assume the worst.
19065 *) gl_cv_func_snprintf_retval_c99="guessing no";;
19069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070 /* end confdefs.h. */
19073 #include <string.h>
19075 # define my_snprintf snprintf
19077 # include <stdarg.h>
19078 static int my_snprintf (char *buf, int size, const char *format, ...)
19082 va_start (args, format);
19083 ret = vsnprintf (buf, size, format, args);
19088 static char buf[100];
19091 strcpy (buf, "ABCDEF");
19092 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
19094 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
19096 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
19101 if ac_fn_c_try_run "$LINENO"; then :
19102 gl_cv_func_snprintf_retval_c99=yes
19104 gl_cv_func_snprintf_retval_c99=no
19106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19107 conftest.$ac_objext conftest.beam conftest.$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
19113 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
19116 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
19117 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
19123 cat >>confdefs.h <<_ACEOF
19124 #define HAVE_DECL_SNPRINTF $ac_have_decl
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19129 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19130 if ${ac_cv_header_stdbool_h+:} false; then :
19131 $as_echo_n "(cached) " >&6
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19136 #include <stdbool.h>
19138 "error: bool is not defined"
19141 "error: false is not defined"
19144 "error: false is not 0"
19147 "error: true is not defined"
19150 "error: true is not 1"
19152 #ifndef __bool_true_false_are_defined
19153 "error: __bool_true_false_are_defined is not defined"
19156 struct s { _Bool s: 1; _Bool t; } s;
19158 char a[true == 1 ? 1 : -1];
19159 char b[false == 0 ? 1 : -1];
19160 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19161 char d[(bool) 0.5 == true ? 1 : -1];
19162 /* See body of main program for 'e'. */
19163 char f[(_Bool) 0.0 == false ? 1 : -1];
19165 char h[sizeof (_Bool)];
19166 char i[sizeof s.t];
19167 enum { j = false, k = true, l = false * true, m = true * 256 };
19168 /* The following fails for
19169 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19171 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19172 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19173 /* Catch a bug in an HP-UX C compiler. See
19174 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19175 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19187 /* Refer to every declared value, to avoid compiler optimizations. */
19188 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19189 + !m + !n + !o + !p + !q + !pq);
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196 ac_cv_header_stdbool_h=yes
19198 ac_cv_header_stdbool_h=no
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19203 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19204 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19205 if test "x$ac_cv_type__Bool" = xyes; then :
19207 cat >>confdefs.h <<_ACEOF
19208 #define HAVE__BOOL 1
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19221 $as_echo_n "checking for wchar_t... " >&6; }
19222 if ${gt_cv_c_wchar_t+:} false; then :
19223 $as_echo_n "(cached) " >&6
19225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h. */
19227 #include <stddef.h>
19228 wchar_t foo = (wchar_t)'\0';
19237 if ac_fn_c_try_compile "$LINENO"; then :
19238 gt_cv_c_wchar_t=yes
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19245 $as_echo "$gt_cv_c_wchar_t" >&6; }
19246 if test $gt_cv_c_wchar_t = yes; then
19248 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19265 if test $ac_cv_type_long_long_int = yes; then
19266 HAVE_LONG_LONG_INT=1
19268 HAVE_LONG_LONG_INT=0
19272 if test $ac_cv_type_unsigned_long_long_int = yes; then
19273 HAVE_UNSIGNED_LONG_LONG_INT=1
19275 HAVE_UNSIGNED_LONG_LONG_INT=0
19286 if test $ac_cv_header_wchar_h = yes; then
19293 if test $ac_cv_header_inttypes_h = yes; then
19300 if test $ac_cv_header_sys_types_h = yes; then
19322 if test $gl_cv_have_include_next = yes; then
19323 gl_cv_next_stdint_h='<'stdint.h'>'
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19326 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19327 if ${gl_cv_next_stdint_h+:} false; then :
19328 $as_echo_n "(cached) " >&6
19331 if test $ac_cv_header_stdint_h = yes; then
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 #include <stdint.h>
19341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19342 *) gl_absname_cpp="$ac_cpp" ;;
19347 gl_dirsep_regex='[/\\]'
19350 gl_dirsep_regex='\/'
19353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19354 gl_header_literal_regex=`echo 'stdint.h' \
19355 | sed -e "$gl_make_literal_regex_sed"`
19356 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19357 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19363 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19364 sed -n "$gl_absolute_header_sed"`
19366 gl_header=$gl_cv_absolute_stdint_h
19367 gl_cv_next_stdint_h='"'$gl_header'"'
19369 gl_cv_next_stdint_h='<'stdint.h'>'
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19375 $as_echo "$gl_cv_next_stdint_h" >&6; }
19377 NEXT_STDINT_H=$gl_cv_next_stdint_h
19379 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19381 gl_next_as_first_directive='<'stdint.h'>'
19383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19384 gl_next_as_first_directive=$gl_cv_next_stdint_h
19386 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19391 if test $ac_cv_header_stdint_h = yes; then
19398 if test $ac_cv_header_stdint_h = yes; then
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19400 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19401 if ${gl_cv_header_working_stdint_h+:} false; then :
19402 $as_echo_n "(cached) " >&6
19404 gl_cv_header_working_stdint_h=no
19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h. */
19409 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19410 #include <stdint.h>
19411 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19412 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19413 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19417 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19418 included before <wchar.h>. */
19419 #include <stddef.h>
19420 #include <signal.h>
19422 # include <stdio.h>
19424 # include <wchar.h>
19429 int8_t a1 = INT8_MAX;
19430 int8_t a1min = INT8_MIN;
19433 int16_t a2 = INT16_MAX;
19434 int16_t a2min = INT16_MIN;
19437 int32_t a3 = INT32_MAX;
19438 int32_t a3min = INT32_MIN;
19441 int64_t a4 = INT64_MAX;
19442 int64_t a4min = INT64_MIN;
19445 uint8_t b1 = UINT8_MAX;
19447 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19450 uint16_t b2 = UINT16_MAX;
19453 uint32_t b3 = UINT32_MAX;
19456 uint64_t b4 = UINT64_MAX;
19458 int_least8_t c1 = INT8_C (0x7f);
19459 int_least8_t c1max = INT_LEAST8_MAX;
19460 int_least8_t c1min = INT_LEAST8_MIN;
19461 int_least16_t c2 = INT16_C (0x7fff);
19462 int_least16_t c2max = INT_LEAST16_MAX;
19463 int_least16_t c2min = INT_LEAST16_MIN;
19464 int_least32_t c3 = INT32_C (0x7fffffff);
19465 int_least32_t c3max = INT_LEAST32_MAX;
19466 int_least32_t c3min = INT_LEAST32_MIN;
19467 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19468 int_least64_t c4max = INT_LEAST64_MAX;
19469 int_least64_t c4min = INT_LEAST64_MIN;
19470 uint_least8_t d1 = UINT8_C (0xff);
19471 uint_least8_t d1max = UINT_LEAST8_MAX;
19472 uint_least16_t d2 = UINT16_C (0xffff);
19473 uint_least16_t d2max = UINT_LEAST16_MAX;
19474 uint_least32_t d3 = UINT32_C (0xffffffff);
19475 uint_least32_t d3max = UINT_LEAST32_MAX;
19476 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19477 uint_least64_t d4max = UINT_LEAST64_MAX;
19478 int_fast8_t e1 = INT_FAST8_MAX;
19479 int_fast8_t e1min = INT_FAST8_MIN;
19480 int_fast16_t e2 = INT_FAST16_MAX;
19481 int_fast16_t e2min = INT_FAST16_MIN;
19482 int_fast32_t e3 = INT_FAST32_MAX;
19483 int_fast32_t e3min = INT_FAST32_MIN;
19484 int_fast64_t e4 = INT_FAST64_MAX;
19485 int_fast64_t e4min = INT_FAST64_MIN;
19486 uint_fast8_t f1 = UINT_FAST8_MAX;
19487 uint_fast16_t f2 = UINT_FAST16_MAX;
19488 uint_fast32_t f3 = UINT_FAST32_MAX;
19489 uint_fast64_t f4 = UINT_FAST64_MAX;
19491 intptr_t g = INTPTR_MAX;
19492 intptr_t gmin = INTPTR_MIN;
19495 uintptr_t h = UINTPTR_MAX;
19497 intmax_t i = INTMAX_MAX;
19498 uintmax_t j = UINTMAX_MAX;
19500 #include <limits.h> /* for CHAR_BIT */
19501 #define TYPE_MINIMUM(t) \
19502 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19503 #define TYPE_MAXIMUM(t) \
19504 ((t) ((t) 0 < (t) -1 \
19506 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19509 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19510 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19512 /* Detect bug in FreeBSD 6.0 / ia64. */
19513 int check_SIG_ATOMIC:
19514 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19515 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19517 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19519 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19520 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19522 /* Detect bug in mingw. */
19524 WINT_MIN == TYPE_MINIMUM (wint_t)
19525 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19528 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19530 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19531 int check_UINT16_C:
19532 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19534 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19536 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19539 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19542 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19545 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19547 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19548 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19549 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19550 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19551 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19552 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19553 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19554 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19555 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19556 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19557 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19568 if ac_fn_c_try_compile "$LINENO"; then :
19569 if test "$cross_compiling" = yes; then :
19570 gl_cv_header_working_stdint_h=yes
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19577 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19578 #include <stdint.h>
19581 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19582 included before <wchar.h>. */
19583 #include <stddef.h>
19584 #include <signal.h>
19586 # include <stdio.h>
19588 # include <wchar.h>
19593 #include <string.h>
19594 #define MVAL(macro) MVAL1(macro)
19595 #define MVAL1(expression) #expression
19596 static const char *macro_values[] =
19630 for (mv = macro_values; *mv != NULL; mv++)
19632 const char *value = *mv;
19633 /* Test whether it looks like a cast expression. */
19634 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19635 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19636 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19637 || strncmp (value, "((int)"/*)*/, 6) == 0
19638 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19639 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19640 return mv - macro_values + 1;
19648 if ac_fn_c_try_run "$LINENO"; then :
19649 gl_cv_header_working_stdint_h=yes
19651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19652 conftest.$ac_objext conftest.beam conftest.$ac_ext
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19661 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19663 if test "$gl_cv_header_working_stdint_h" = yes; then
19666 for ac_header in sys/inttypes.h sys/bitypes.h
19668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19669 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19671 cat >>confdefs.h <<_ACEOF
19672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 if test $ac_cv_header_sys_inttypes_h = yes; then
19680 HAVE_SYS_INTTYPES_H=1
19682 HAVE_SYS_INTTYPES_H=0
19685 if test $ac_cv_header_sys_bitypes_h = yes; then
19686 HAVE_SYS_BITYPES_H=1
19688 HAVE_SYS_BITYPES_H=0
19694 if test $APPLE_UNIVERSAL_BUILD = 0; then
19697 for gltype in ptrdiff_t size_t ; do
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19699 $as_echo_n "checking for bit size of $gltype... " >&6; }
19700 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19701 $as_echo_n "(cached) " >&6
19703 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19704 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19705 included before <wchar.h>. */
19706 #include <stddef.h>
19707 #include <signal.h>
19709 # include <stdio.h>
19711 # include <wchar.h>
19714 #include <limits.h>"; then :
19720 eval gl_cv_bitsizeof_${gltype}=\$result
19723 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19725 $as_echo "$ac_res" >&6; }
19726 eval result=\$gl_cv_bitsizeof_${gltype}
19727 if test $result = unknown; then
19730 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19731 cat >>confdefs.h <<_ACEOF
19732 #define BITSIZEOF_${GLTYPE} $result
19735 eval BITSIZEOF_${GLTYPE}=\$result
19742 for gltype in sig_atomic_t wchar_t wint_t ; do
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19744 $as_echo_n "checking for bit size of $gltype... " >&6; }
19745 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19746 $as_echo_n "(cached) " >&6
19748 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19749 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19750 included before <wchar.h>. */
19751 #include <stddef.h>
19752 #include <signal.h>
19754 # include <stdio.h>
19756 # include <wchar.h>
19759 #include <limits.h>"; then :
19765 eval gl_cv_bitsizeof_${gltype}=\$result
19768 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19770 $as_echo "$ac_res" >&6; }
19771 eval result=\$gl_cv_bitsizeof_${gltype}
19772 if test $result = unknown; then
19775 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19776 cat >>confdefs.h <<_ACEOF
19777 #define BITSIZEOF_${GLTYPE} $result
19780 eval BITSIZEOF_${GLTYPE}=\$result
19786 for gltype in sig_atomic_t wchar_t wint_t ; do
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19788 $as_echo_n "checking whether $gltype is signed... " >&6; }
19789 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19790 $as_echo_n "(cached) " >&6
19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19795 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19796 included before <wchar.h>. */
19797 #include <stddef.h>
19798 #include <signal.h>
19800 # include <stdio.h>
19802 # include <wchar.h>
19805 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19814 if ac_fn_c_try_compile "$LINENO"; then :
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 eval gl_cv_type_${gltype}_signed=\$result
19823 eval ac_res=\$gl_cv_type_${gltype}_signed
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19825 $as_echo "$ac_res" >&6; }
19826 eval result=\$gl_cv_type_${gltype}_signed
19827 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19828 if test "$result" = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_SIGNED_${GLTYPE} 1
19833 eval HAVE_SIGNED_${GLTYPE}=1
19835 eval HAVE_SIGNED_${GLTYPE}=0
19840 gl_cv_type_ptrdiff_t_signed=yes
19841 gl_cv_type_size_t_signed=no
19842 if test $APPLE_UNIVERSAL_BUILD = 0; then
19845 for gltype in ptrdiff_t size_t ; do
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19847 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19848 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19849 $as_echo_n "(cached) " >&6
19851 eval gl_cv_type_${gltype}_suffix=no
19852 eval result=\$gl_cv_type_${gltype}_signed
19853 if test "$result" = yes; then
19858 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19860 '') gltype1='int';;
19861 l) gltype1='long int';;
19862 ll) gltype1='long long int';;
19863 i64) gltype1='__int64';;
19864 u) gltype1='unsigned int';;
19865 ul) gltype1='unsigned long int';;
19866 ull) gltype1='unsigned long long int';;
19867 ui64)gltype1='unsigned __int64';;
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19872 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19873 included before <wchar.h>. */
19874 #include <stddef.h>
19875 #include <signal.h>
19877 # include <stdio.h>
19879 # include <wchar.h>
19882 extern $gltype foo;
19883 extern $gltype1 foo;
19892 if ac_fn_c_try_compile "$LINENO"; then :
19893 eval gl_cv_type_${gltype}_suffix=\$glsuf
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 eval result=\$gl_cv_type_${gltype}_suffix
19897 test "$result" != no && break
19900 eval ac_res=\$gl_cv_type_${gltype}_suffix
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19902 $as_echo "$ac_res" >&6; }
19903 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19904 eval result=\$gl_cv_type_${gltype}_suffix
19905 test "$result" = no && result=
19906 eval ${GLTYPE}_SUFFIX=\$result
19907 cat >>confdefs.h <<_ACEOF
19908 #define ${GLTYPE}_SUFFIX $result
19917 for gltype in sig_atomic_t wchar_t wint_t ; do
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19919 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19920 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19921 $as_echo_n "(cached) " >&6
19923 eval gl_cv_type_${gltype}_suffix=no
19924 eval result=\$gl_cv_type_${gltype}_signed
19925 if test "$result" = yes; then
19930 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19932 '') gltype1='int';;
19933 l) gltype1='long int';;
19934 ll) gltype1='long long int';;
19935 i64) gltype1='__int64';;
19936 u) gltype1='unsigned int';;
19937 ul) gltype1='unsigned long int';;
19938 ull) gltype1='unsigned long long int';;
19939 ui64)gltype1='unsigned __int64';;
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19944 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19945 included before <wchar.h>. */
19946 #include <stddef.h>
19947 #include <signal.h>
19949 # include <stdio.h>
19951 # include <wchar.h>
19954 extern $gltype foo;
19955 extern $gltype1 foo;
19964 if ac_fn_c_try_compile "$LINENO"; then :
19965 eval gl_cv_type_${gltype}_suffix=\$glsuf
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 eval result=\$gl_cv_type_${gltype}_suffix
19969 test "$result" != no && break
19972 eval ac_res=\$gl_cv_type_${gltype}_suffix
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19976 eval result=\$gl_cv_type_${gltype}_suffix
19977 test "$result" = no && result=
19978 eval ${GLTYPE}_SUFFIX=\$result
19979 cat >>confdefs.h <<_ACEOF
19980 #define ${GLTYPE}_SUFFIX $result
19987 if test $BITSIZEOF_WINT_T -lt 32; then
19988 BITSIZEOF_WINT_T=32
19994 if test -n "$STDINT_H"; then
19995 GL_GENERATE_STDINT_H_TRUE=
19996 GL_GENERATE_STDINT_H_FALSE='#'
19998 GL_GENERATE_STDINT_H_TRUE='#'
19999 GL_GENERATE_STDINT_H_FALSE=
20004 REPLACE_STRERROR_0=0
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
20006 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
20007 if ${gl_cv_func_strerror_0_works+:} false; then :
20008 $as_echo_n "(cached) " >&6
20010 if test "$cross_compiling" = yes; then :
20012 # Guess yes on glibc systems.
20013 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
20014 # If we don't know, assume the worst.
20015 *) gl_cv_func_strerror_0_works="guessing no" ;;
20019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h. */
20021 #include <string.h>
20030 str = strerror (0);
20031 if (!*str) result |= 1;
20032 if (errno) result |= 2;
20033 if (strstr (str, "nknown") || strstr (str, "ndefined"))
20040 if ac_fn_c_try_run "$LINENO"; then :
20041 gl_cv_func_strerror_0_works=yes
20043 gl_cv_func_strerror_0_works=no
20045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20046 conftest.$ac_objext conftest.beam conftest.$ac_ext
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
20052 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
20053 case "$gl_cv_func_strerror_0_works" in
20056 REPLACE_STRERROR_0=1
20058 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
20074 if test $gl_cv_have_include_next = yes; then
20075 gl_cv_next_string_h='<'string.h'>'
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20078 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20079 if ${gl_cv_next_string_h+:} false; then :
20080 $as_echo_n "(cached) " >&6
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 #include <string.h>
20090 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20091 *) gl_absname_cpp="$ac_cpp" ;;
20096 gl_dirsep_regex='[/\\]'
20099 gl_dirsep_regex='\/'
20102 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20103 gl_header_literal_regex=`echo 'string.h' \
20104 | sed -e "$gl_make_literal_regex_sed"`
20105 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20106 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20112 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20113 sed -n "$gl_absolute_header_sed"`
20115 gl_header=$gl_cv_absolute_string_h
20116 gl_cv_next_string_h='"'$gl_header'"'
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20121 $as_echo "$gl_cv_next_string_h" >&6; }
20123 NEXT_STRING_H=$gl_cv_next_string_h
20125 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20126 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20127 gl_next_as_first_directive='<'string.h'>'
20129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20130 gl_next_as_first_directive=$gl_cv_next_string_h
20132 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20139 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
20140 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20142 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20143 if eval \${$as_gl_Symbol+:} false; then :
20144 $as_echo_n "(cached) " >&6
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148 #include <string.h>
20159 if ac_fn_c_try_compile "$LINENO"; then :
20160 eval "$as_gl_Symbol=yes"
20162 eval "$as_gl_Symbol=no"
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166 eval ac_res=\$$as_gl_Symbol
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20168 $as_echo "$ac_res" >&6; }
20169 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20170 cat >>confdefs.h <<_ACEOF
20171 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20174 eval ac_cv_have_decl_$gl_func=yes
20180 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
20181 if test "x$ac_cv_have_decl_strndup" = xyes; then :
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_DECL_STRNDUP $ac_have_decl
20198 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
20199 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_DECL_STRNLEN $ac_have_decl
20211 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
20212 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
20218 cat >>confdefs.h <<_ACEOF
20219 #define HAVE_DECL_STRSIGNAL $ac_have_decl
20223 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
20224 /* NetBSD declares sys_siglist in unistd.h. */
20225 #ifdef HAVE_UNISTD_H
20226 # include <unistd.h>
20230 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
20236 cat >>confdefs.h <<_ACEOF
20237 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20254 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20255 if ${ac_cv_header_stat_broken+:} false; then :
20256 $as_echo_n "(cached) " >&6
20258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h. */
20260 #include <sys/types.h>
20261 #include <sys/stat.h>
20263 #if defined S_ISBLK && defined S_IFDIR
20264 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20267 #if defined S_ISBLK && defined S_IFCHR
20268 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20271 #if defined S_ISLNK && defined S_IFREG
20272 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20275 #if defined S_ISSOCK && defined S_IFREG
20276 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281 ac_cv_header_stat_broken=no
20283 ac_cv_header_stat_broken=yes
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20288 $as_echo "$ac_cv_header_stat_broken" >&6; }
20289 if test $ac_cv_header_stat_broken = yes; then
20291 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20318 if test $gl_cv_have_include_next = yes; then
20319 gl_cv_next_sys_types_h='<'sys/types.h'>'
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20322 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20323 if ${gl_cv_next_sys_types_h+:} false; then :
20324 $as_echo_n "(cached) " >&6
20329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20330 /* end confdefs.h. */
20331 #include <sys/types.h>
20334 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20335 *) gl_absname_cpp="$ac_cpp" ;;
20340 gl_dirsep_regex='[/\\]'
20343 gl_dirsep_regex='\/'
20346 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20347 gl_header_literal_regex=`echo 'sys/types.h' \
20348 | sed -e "$gl_make_literal_regex_sed"`
20349 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20350 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20356 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20357 sed -n "$gl_absolute_header_sed"`
20359 gl_header=$gl_cv_absolute_sys_types_h
20360 gl_cv_next_sys_types_h='"'$gl_header'"'
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20365 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20367 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20369 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20371 gl_next_as_first_directive='<'sys/types.h'>'
20373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20374 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20376 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20398 GNULIB_NANOSLEEP=0;
20402 HAVE_DECL_LOCALTIME_R=1;
20406 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20407 REPLACE_MKTIME=GNULIB_PORTCHECK;
20408 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20409 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20411 : ${GNULIB_GETTIMEOFDAY=0};
20413 REPLACE_LOCALTIME=0;
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20424 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20425 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20426 $as_echo_n "(cached) " >&6
20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h. */
20435 static struct timespec x; x.tv_sec = x.tv_nsec;
20440 if ac_fn_c_try_compile "$LINENO"; then :
20441 gl_cv_sys_struct_timespec_in_time_h=yes
20443 gl_cv_sys_struct_timespec_in_time_h=no
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20448 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20450 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20451 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20452 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20453 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20454 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20457 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20458 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20459 $as_echo_n "(cached) " >&6
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h. */
20463 #include <sys/time.h>
20468 static struct timespec x; x.tv_sec = x.tv_nsec;
20473 if ac_fn_c_try_compile "$LINENO"; then :
20474 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20476 gl_cv_sys_struct_timespec_in_sys_time_h=no
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20481 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20482 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20483 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20486 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20487 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20488 $as_echo_n "(cached) " >&6
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20492 #include <pthread.h>
20497 static struct timespec x; x.tv_sec = x.tv_nsec;
20502 if ac_fn_c_try_compile "$LINENO"; then :
20503 gl_cv_sys_struct_timespec_in_pthread_h=yes
20505 gl_cv_sys_struct_timespec_in_pthread_h=no
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20510 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20511 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20512 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20531 if test $gl_cv_have_include_next = yes; then
20532 gl_cv_next_time_h='<'time.h'>'
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20535 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20536 if ${gl_cv_next_time_h+:} false; then :
20537 $as_echo_n "(cached) " >&6
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20547 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20548 *) gl_absname_cpp="$ac_cpp" ;;
20553 gl_dirsep_regex='[/\\]'
20556 gl_dirsep_regex='\/'
20559 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20560 gl_header_literal_regex=`echo 'time.h' \
20561 | sed -e "$gl_make_literal_regex_sed"`
20562 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20563 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20569 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20570 sed -n "$gl_absolute_header_sed"`
20572 gl_header=$gl_cv_absolute_time_h
20573 gl_cv_next_time_h='"'$gl_header'"'
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20578 $as_echo "$gl_cv_next_time_h" >&6; }
20580 NEXT_TIME_H=$gl_cv_next_time_h
20582 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20584 gl_next_as_first_directive='<'time.h'>'
20586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20587 gl_next_as_first_directive=$gl_cv_next_time_h
20589 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20597 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20598 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_DECL_UNSETENV $ac_have_decl
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20616 $as_echo_n "checking for wint_t... " >&6; }
20617 if ${gt_cv_c_wint_t+:} false; then :
20618 $as_echo_n "(cached) " >&6
20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20623 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20625 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20626 before <wchar.h>. */
20627 #include <stddef.h>
20631 wint_t foo = (wchar_t)'\0';
20640 if ac_fn_c_try_compile "$LINENO"; then :
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20648 $as_echo "$gt_cv_c_wint_t" >&6; }
20649 if test $gt_cv_c_wint_t = yes; then
20651 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20668 if test $ac_cv_header_features_h = yes; then
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20677 $as_echo_n "checking for inttypes.h... " >&6; }
20678 if ${gl_cv_header_inttypes_h+:} false; then :
20679 $as_echo_n "(cached) " >&6
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20684 #include <sys/types.h>
20685 #include <inttypes.h>
20690 uintmax_t i = (uintmax_t) -1; return !i;
20695 if ac_fn_c_try_compile "$LINENO"; then :
20696 gl_cv_header_inttypes_h=yes
20698 gl_cv_header_inttypes_h=no
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20703 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20704 if test $gl_cv_header_inttypes_h = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20714 $as_echo_n "checking for stdint.h... " >&6; }
20715 if ${gl_cv_header_stdint_h+:} false; then :
20716 $as_echo_n "(cached) " >&6
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20721 #include <stdint.h>
20725 uintmax_t i = (uintmax_t) -1; return !i;
20730 if ac_fn_c_try_compile "$LINENO"; then :
20731 gl_cv_header_stdint_h=yes
20733 gl_cv_header_stdint_h=no
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20738 $as_echo "$gl_cv_header_stdint_h" >&6; }
20739 if test $gl_cv_header_stdint_h = yes; then
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_STDINT_H_WITH_UINTMAX 1
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20751 $as_echo_n "checking for intmax_t... " >&6; }
20752 if ${gt_cv_c_intmax_t+:} false; then :
20753 $as_echo_n "(cached) " >&6
20755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20756 /* end confdefs.h. */
20758 #include <stddef.h>
20759 #include <stdlib.h>
20760 #if HAVE_STDINT_H_WITH_UINTMAX
20761 #include <stdint.h>
20763 #if HAVE_INTTYPES_H_WITH_UINTMAX
20764 #include <inttypes.h>
20770 intmax_t x = -1; return !x;
20775 if ac_fn_c_try_compile "$LINENO"; then :
20776 gt_cv_c_intmax_t=yes
20778 gt_cv_c_intmax_t=no
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20783 $as_echo "$gt_cv_c_intmax_t" >&6; }
20784 if test $gt_cv_c_intmax_t = yes; then
20786 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20790 test $ac_cv_type_long_long_int = yes \
20791 && ac_type='long long' \
20794 cat >>confdefs.h <<_ACEOF
20795 #define intmax_t $ac_type
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20802 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20803 if ${gl_cv_cc_double_expbit0+:} false; then :
20804 $as_echo_n "(cached) " >&6
20807 if test "$cross_compiling" = yes; then :
20809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810 /* end confdefs.h. */
20812 #if defined arm || defined __arm || defined __arm__
20817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20818 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20819 gl_cv_cc_double_expbit0="unknown"
20823 if ${ac_cv_c_bigendian+:} false; then :
20824 $as_echo_n "(cached) " >&6
20826 ac_cv_c_bigendian=unknown
20827 # See if we're dealing with a universal compiler.
20828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h. */
20830 #ifndef __APPLE_CC__
20831 not a universal capable compiler
20836 if ac_fn_c_try_compile "$LINENO"; then :
20838 # Check for potential -arch flags. It is not universal unless
20839 # there are at least two -arch flags with different values.
20842 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20843 if test -n "$ac_prev"; then
20845 i?86 | x86_64 | ppc | ppc64)
20846 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20849 ac_cv_c_bigendian=universal
20855 elif test "x$ac_word" = "x-arch"; then
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 if test $ac_cv_c_bigendian = unknown; then
20862 # See if sys/param.h defines the BYTE_ORDER macro.
20863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h. */
20865 #include <sys/types.h>
20866 #include <sys/param.h>
20871 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20872 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20874 bogus endian macros
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882 # It does; now see whether it defined to BIG_ENDIAN or not.
20883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20885 #include <sys/types.h>
20886 #include <sys/param.h>
20891 #if BYTE_ORDER != BIG_ENDIAN
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 ac_cv_c_bigendian=yes
20902 ac_cv_c_bigendian=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 if test $ac_cv_c_bigendian = unknown; then
20909 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911 /* end confdefs.h. */
20912 #include <limits.h>
20917 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20918 bogus endian macros
20925 if ac_fn_c_try_compile "$LINENO"; then :
20926 # It does; now see whether it defined to _BIG_ENDIAN or not.
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h. */
20929 #include <limits.h>
20934 #ifndef _BIG_ENDIAN
20942 if ac_fn_c_try_compile "$LINENO"; then :
20943 ac_cv_c_bigendian=yes
20945 ac_cv_c_bigendian=no
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 if test $ac_cv_c_bigendian = unknown; then
20952 # Compile a test program.
20953 if test "$cross_compiling" = yes; then :
20954 # Try to guess by grepping values from an object file.
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20957 short int ascii_mm[] =
20958 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20959 short int ascii_ii[] =
20960 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20961 int use_ascii (int i) {
20962 return ascii_mm[i] + ascii_ii[i];
20964 short int ebcdic_ii[] =
20965 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20966 short int ebcdic_mm[] =
20967 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20968 int use_ebcdic (int i) {
20969 return ebcdic_mm[i] + ebcdic_ii[i];
20976 return use_ascii (foo) == use_ebcdic (foo);
20981 if ac_fn_c_try_compile "$LINENO"; then :
20982 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20983 ac_cv_c_bigendian=yes
20985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20986 if test "$ac_cv_c_bigendian" = unknown; then
20987 ac_cv_c_bigendian=no
20989 # finding both strings is unlikely to happen, but who knows?
20990 ac_cv_c_bigendian=unknown
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h. */
20998 $ac_includes_default
21003 /* Are we little or big endian? From Harbison&Steele. */
21007 char c[sizeof (long int)];
21010 return u.c[sizeof (long int) - 1] == 1;
21016 if ac_fn_c_try_run "$LINENO"; then :
21017 ac_cv_c_bigendian=no
21019 ac_cv_c_bigendian=yes
21021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21022 conftest.$ac_objext conftest.beam conftest.$ac_ext
21028 case $ac_cv_c_bigendian in #(
21030 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
21032 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
21035 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21039 gl_cv_cc_double_expbit0="unknown" ;;
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21052 #include <stddef.h>
21054 #include <string.h>
21056 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21057 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
21058 static unsigned int ored_words[NWORDS];
21059 static unsigned int anded_words[NWORDS];
21060 static void add_to_ored_words (double x)
21064 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
21065 memset (&m, 0, sizeof (memory_double));
21067 for (i = 0; i < NWORDS; i++)
21069 ored_words[i] |= m.word[i];
21070 anded_words[i] &= m.word[i];
21076 FILE *fp = fopen ("conftest.out", "w");
21079 for (j = 0; j < NWORDS; j++)
21080 anded_words[j] = ~ (unsigned int) 0;
21081 add_to_ored_words (0.25);
21082 add_to_ored_words (0.5);
21083 add_to_ored_words (1.0);
21084 add_to_ored_words (2.0);
21085 add_to_ored_words (4.0);
21086 /* Remove bits that are common (e.g. if representation of the first mantissa
21087 bit is explicit). */
21088 for (j = 0; j < NWORDS; j++)
21089 ored_words[j] &= ~anded_words[j];
21090 /* Now find the nonzero word. */
21091 for (j = 0; j < NWORDS; j++)
21092 if (ored_words[j] != 0)
21097 for (i = j + 1; i < NWORDS; i++)
21098 if (ored_words[i] != 0)
21100 fprintf (fp, "unknown");
21101 return (fclose (fp) != 0);
21104 if ((ored_words[j] >> i) & 1)
21106 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21107 return (fclose (fp) != 0);
21110 fprintf (fp, "unknown");
21111 return (fclose (fp) != 0);
21115 if ac_fn_c_try_run "$LINENO"; then :
21116 gl_cv_cc_double_expbit0=`cat conftest.out`
21118 gl_cv_cc_double_expbit0="unknown"
21120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21121 conftest.$ac_objext conftest.beam conftest.$ac_ext
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
21128 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
21129 case "$gl_cv_cc_double_expbit0" in
21131 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21132 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
21134 cat >>confdefs.h <<_ACEOF
21135 #define DBL_EXPBIT0_WORD $word
21139 cat >>confdefs.h <<_ACEOF
21140 #define DBL_EXPBIT0_BIT $bit
21151 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21156 cat >>confdefs.h <<_ACEOF
21157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21163 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21165 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21171 cat >>confdefs.h <<_ACEOF
21172 #define HAVE_DECL__SNPRINTF $ac_have_decl
21177 case "$gl_cv_func_snprintf_retval_c99" in
21180 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
21191 GNULIB_MBSRTOWCS=0;
21192 GNULIB_MBSNRTOWCS=0;
21194 GNULIB_WCSRTOMBS=0;
21195 GNULIB_WCSNRTOMBS=0;
21212 GNULIB_WCSCASECMP=0;
21213 GNULIB_WCSNCASECMP=0;
21250 HAVE_WCSNCASECMP=1;
21263 HAVE_DECL_WCWIDTH=1;
21264 REPLACE_MBSTATE_T=0;
21270 REPLACE_MBSRTOWCS=0;
21271 REPLACE_MBSNRTOWCS=0;
21273 REPLACE_WCSRTOMBS=0;
21274 REPLACE_WCSNRTOMBS=0;
21276 REPLACE_WCSWIDTH=0;
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21280 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21281 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21282 $as_echo_n "(cached) " >&6
21284 gl_cv_header_wchar_h_correct_inline=yes
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21288 #define wcstod renamed_wcstod
21289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21291 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21292 included before <wchar.h>. */
21293 #include <stddef.h>
21297 extern int zero (void);
21298 int main () { return zero(); }
21301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21302 (eval $ac_compile) 2>&5
21304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21305 test $ac_status = 0; }; then
21306 mv conftest.$ac_objext conftest1.$ac_objext
21307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308 /* end confdefs.h. */
21310 #define wcstod renamed_wcstod
21311 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21313 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21314 included before <wchar.h>. */
21315 #include <stddef.h>
21319 int zero (void) { return 0; }
21322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21323 (eval $ac_compile) 2>&5
21325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21326 test $ac_status = 0; }; then
21327 mv conftest.$ac_objext conftest2.$ac_objext
21328 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21331 gl_cv_header_wchar_h_correct_inline=no
21335 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21339 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21340 if test $gl_cv_header_wchar_h_correct_inline = no; then
21341 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21342 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21343 C99 mode. You have four options:
21344 - Add the flag -fgnu89-inline to CC and reconfigure, or
21345 - Fix your include files, using parts of
21346 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21347 - Use a gcc version older than 4.3, or
21348 - Don't use the flags -std=c99 or -std=gnu99.
21349 Configuration aborted." "$LINENO" 5
21354 GL_COND_LIBTOOL_TRUE=
21355 GL_COND_LIBTOOL_FALSE='#'
21357 GL_COND_LIBTOOL_TRUE='#'
21358 GL_COND_LIBTOOL_FALSE=
21361 gl_cond_libtool=true
21362 gl_m4_base='gnulib/m4'
21372 gl_source_base='gnulib/lib'
21375 if test $ac_cv_func_alloca_works = no; then
21379 # Define an additional variable used in the Makefile substitution.
21380 if test $ac_cv_working_alloca_h = yes; then
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21382 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21383 if ${gl_cv_rpl_alloca+:} false; then :
21384 $as_echo_n "(cached) " >&6
21387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h. */
21390 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21396 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21397 gl_cv_rpl_alloca=yes
21399 gl_cv_rpl_alloca=no
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21406 $as_echo "$gl_cv_rpl_alloca" >&6; }
21407 if test $gl_cv_rpl_alloca = yes; then
21409 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21419 if test -n "$ALLOCA_H"; then
21420 GL_GENERATE_ALLOCA_H_TRUE=
21421 GL_GENERATE_ALLOCA_H_FALSE='#'
21423 GL_GENERATE_ALLOCA_H_TRUE='#'
21424 GL_GENERATE_ALLOCA_H_FALSE=
21433 cat >>confdefs.h <<_ACEOF
21434 #define GNULIB_DIRNAME 1
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21445 $as_echo_n "checking whether // is distinct from /... " >&6; }
21446 if ${gl_cv_double_slash_root+:} false; then :
21447 $as_echo_n "(cached) " >&6
21449 if test x"$cross_compiling" = xyes ; then
21450 # When cross-compiling, there is no way to tell whether // is special
21451 # short of a list of hosts. However, the only known hosts to date
21452 # that have a distinct // are Apollo DomainOS (too old to port to),
21453 # Cygwin, and z/OS. If anyone knows of another system for which // has
21454 # special semantics and is distinct from /, please report it to
21455 # <bug-gnulib@gnu.org>.
21457 *-cygwin | i370-ibm-openedition)
21458 gl_cv_double_slash_root=yes ;;
21460 # Be optimistic and assume that / and // are the same when we
21462 gl_cv_double_slash_root='unknown, assuming no' ;;
21465 set x `ls -di / // 2>/dev/null`
21466 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21467 gl_cv_double_slash_root=no
21469 gl_cv_double_slash_root=yes
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21474 $as_echo "$gl_cv_double_slash_root" >&6; }
21475 if test "$gl_cv_double_slash_root" = yes; then
21477 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21493 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21500 $as_echo_n "checking for error_at_line... " >&6; }
21501 if ${ac_cv_lib_error_at_line+:} false; then :
21502 $as_echo_n "(cached) " >&6
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21510 error_at_line (0, 0, "", 0, "an error occurred");
21515 if ac_fn_c_try_link "$LINENO"; then :
21516 ac_cv_lib_error_at_line=yes
21518 ac_cv_lib_error_at_line=no
21520 rm -f core conftest.err conftest.$ac_objext \
21521 conftest$ac_exeext conftest.$ac_ext
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21524 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21526 if test $ac_cv_lib_error_at_line = no; then
21535 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21544 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21548 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21562 if test $gl_cv_have_include_next = yes; then
21563 gl_cv_next_fcntl_h='<'fcntl.h'>'
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21566 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21567 if ${gl_cv_next_fcntl_h+:} false; then :
21568 $as_echo_n "(cached) " >&6
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21578 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21579 *) gl_absname_cpp="$ac_cpp" ;;
21584 gl_dirsep_regex='[/\\]'
21587 gl_dirsep_regex='\/'
21590 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21591 gl_header_literal_regex=`echo 'fcntl.h' \
21592 | sed -e "$gl_make_literal_regex_sed"`
21593 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21600 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21601 sed -n "$gl_absolute_header_sed"`
21603 gl_header=$gl_cv_absolute_fcntl_h
21604 gl_cv_next_fcntl_h='"'$gl_header'"'
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21609 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21611 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21613 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21615 gl_next_as_first_directive='<'fcntl.h'>'
21617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21618 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21620 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21631 for gl_func in fcntl openat; do
21632 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21634 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21635 if eval \${$as_gl_Symbol+:} false; then :
21636 $as_echo_n "(cached) " >&6
21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h. */
21651 if ac_fn_c_try_compile "$LINENO"; then :
21652 eval "$as_gl_Symbol=yes"
21654 eval "$as_gl_Symbol=no"
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 eval ac_res=\$$as_gl_Symbol
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21660 $as_echo "$ac_res" >&6; }
21661 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21662 cat >>confdefs.h <<_ACEOF
21663 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21666 eval ac_cv_have_decl_$gl_func=yes
21675 REPLACE_FLOAT_LDBL=0
21677 aix* | beos* | openbsd* | mirbsd* | irix*)
21681 case "$host_cpu" in
21686 # On x86_64 systems, the C compiler may still be generating
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21690 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21695 $EGREP "yes" >/dev/null 2>&1; then :
21706 case "$host_cpu" in
21714 aix* | freebsd* | linux*)
21715 if test -n "$FLOAT_H"; then
21716 REPLACE_FLOAT_LDBL=1
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21723 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21724 if ${gl_cv_func_itold_works+:} false; then :
21725 $as_echo_n "(cached) " >&6
21728 if test "$cross_compiling" = yes; then :
21731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h. */
21733 #if defined __LP64__ || defined __arch64__
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738 $EGREP "yes" >/dev/null 2>&1; then :
21739 gl_cv_func_itold_works="guessing no"
21741 gl_cv_func_itold_works="guessing yes"
21746 *) gl_cv_func_itold_works="guessing yes" ;;
21750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751 /* end confdefs.h. */
21754 volatile long double ld;
21763 if ac_fn_c_try_run "$LINENO"; then :
21764 gl_cv_func_itold_works=yes
21766 gl_cv_func_itold_works=no
21768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21769 conftest.$ac_objext conftest.beam conftest.$ac_ext
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21775 $as_echo "$gl_cv_func_itold_works" >&6; }
21776 case "$gl_cv_func_itold_works" in
21783 if test -n "$FLOAT_H"; then
21792 if test $gl_cv_have_include_next = yes; then
21793 gl_cv_next_float_h='<'float.h'>'
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21796 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21797 if ${gl_cv_next_float_h+:} false; then :
21798 $as_echo_n "(cached) " >&6
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21808 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21809 *) gl_absname_cpp="$ac_cpp" ;;
21814 gl_dirsep_regex='[/\\]'
21817 gl_dirsep_regex='\/'
21820 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21821 gl_header_literal_regex=`echo 'float.h' \
21822 | sed -e "$gl_make_literal_regex_sed"`
21823 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21824 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21830 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21831 sed -n "$gl_absolute_header_sed"`
21833 gl_header=$gl_cv_absolute_float_h
21834 gl_cv_next_float_h='"'$gl_header'"'
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21839 $as_echo "$gl_cv_next_float_h" >&6; }
21841 NEXT_FLOAT_H=$gl_cv_next_float_h
21843 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21845 gl_next_as_first_directive='<'float.h'>'
21847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21848 gl_next_as_first_directive=$gl_cv_next_float_h
21850 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21857 if test -n "$FLOAT_H"; then
21858 GL_GENERATE_FLOAT_H_TRUE=
21859 GL_GENERATE_FLOAT_H_FALSE='#'
21861 GL_GENERATE_FLOAT_H_TRUE='#'
21862 GL_GENERATE_FLOAT_H_FALSE=
21867 if test $REPLACE_FLOAT_LDBL = 1; then
21876 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21879 if test $REPLACE_ITOLD = 1; then
21888 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21905 gl_gettimeofday_timezone=void
21906 if test $ac_cv_func_gettimeofday != yes; then
21907 HAVE_GETTIMEOFDAY=0
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21913 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21914 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21915 $as_echo_n "(cached) " >&6
21917 if test "$cross_compiling" = yes; then :
21918 # When cross-compiling:
21920 # Guess all is fine on glibc systems.
21921 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21922 # If we don't know, assume the worst.
21923 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 #include <string.h>
21930 #include <sys/time.h>
21932 #include <stdlib.h>
21940 struct tm saved_lt;
21942 lt = localtime (&t);
21944 gettimeofday (&tv, NULL);
21945 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21951 if ac_fn_c_try_run "$LINENO"; then :
21952 gl_cv_func_gettimeofday_clobber=no
21954 gl_cv_func_gettimeofday_clobber=yes
21956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21957 conftest.$ac_objext conftest.beam conftest.$ac_ext
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21962 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21964 case "$gl_cv_func_gettimeofday_clobber" in
21966 REPLACE_GETTIMEOFDAY=1
21969 REPLACE_LOCALTIME=1
21972 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21978 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21979 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21980 $as_echo_n "(cached) " >&6
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21984 #include <sys/time.h>
21986 int gettimeofday (struct timeval *restrict, void *restrict);
21991 /* glibc uses struct timezone * rather than the POSIX void *
21992 if _GNU_SOURCE is defined. However, since the only portable
21993 use of gettimeofday uses NULL as the second parameter, and
21994 since the glibc definition is actually more typesafe, it is
21995 not worth wrapping this to get a compliant signature. */
21996 int (*f) (struct timeval *restrict, void *restrict)
21999 return !(x | c.tv_sec | c.tv_usec);
22005 if ac_fn_c_try_compile "$LINENO"; then :
22006 gl_cv_func_gettimeofday_posix_signature=yes
22008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22009 /* end confdefs.h. */
22010 #include <sys/time.h>
22011 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22021 if ac_fn_c_try_compile "$LINENO"; then :
22022 gl_cv_func_gettimeofday_posix_signature=almost
22024 gl_cv_func_gettimeofday_posix_signature=no
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22031 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22032 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22033 gl_gettimeofday_timezone='struct timezone'
22034 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22035 REPLACE_GETTIMEOFDAY=1
22037 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22038 REPLACE_GETTIMEOFDAY=1
22043 cat >>confdefs.h <<_ACEOF
22044 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22048 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22057 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22060 for ac_header in sys/timeb.h
22062 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22063 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22064 cat >>confdefs.h <<_ACEOF
22065 #define HAVE_SYS_TIMEB_H 1
22072 for ac_func in _ftime
22074 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22075 if test "x$ac_cv_func__ftime" = xyes; then :
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE__FTIME 1
22090 GNULIB_GETTIMEOFDAY=1
22096 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
22103 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
22104 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
22105 $as_echo_n "(cached) " >&6
22107 gl_cv_prog_c_ignore_unused_libraries=none
22108 gl_saved_ldflags=$LDFLAGS
22109 gl_saved_libs=$LIBS
22110 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
22111 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
22113 # Use long option sequences like '-z ignore' to test for the feature,
22114 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
22115 # GCC + binutils likes '-Wl,--as-needed'.
22116 # GCC + Solaris ld likes '-Wl,-z,ignore'.
22117 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
22118 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
22119 # native cc issues annoying warnings and then ignores it,
22120 # which would cause us to incorrectly conclude that it worked.
22121 for gl_flags in '-Wl,--as-needed' \
22126 LDFLAGS="$gl_flags $LDFLAGS"
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22138 if ac_fn_c_try_link "$LINENO"; then :
22139 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
22141 rm -f core conftest.err conftest.$ac_objext \
22142 conftest$ac_exeext conftest.$ac_ext
22143 LDFLAGS=$gl_saved_ldflags
22144 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
22147 LIBS=$gl_saved_libs
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
22151 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
22152 IGNORE_UNUSED_LIBRARIES_CFLAGS=
22153 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
22154 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
22160 if test "$gl_threads_api" = posix; then
22161 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22162 # pthread_rwlock_* functions.
22163 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22165 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
22167 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22171 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22175 #include <pthread.h>
22180 #if __FreeBSD__ == 4
22181 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22182 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22183 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22184 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22186 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22194 if ac_fn_c_try_compile "$LINENO"; then :
22196 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 cat >>confdefs.h <<_ACEOF
22206 #define GNULIB_LOCK 1
22219 if test $ac_cv_func_lstat = yes; then
22221 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22230 if test $REPLACE_LSTAT = 1; then
22239 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22254 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22261 if test $gl_cv_func_malloc_posix = yes; then
22263 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22269 if test $REPLACE_MALLOC = 1; then
22278 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22286 GNULIB_MALLOC_POSIX=1
22292 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22301 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22310 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22313 for ac_header in bp-sym.h
22315 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22316 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22317 cat >>confdefs.h <<_ACEOF
22318 #define HAVE_BP_SYM_H 1
22338 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22344 for ac_func in mkdtemp
22346 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22347 if test "x$ac_cv_func_mkdtemp" = xyes; then :
22348 cat >>confdefs.h <<_ACEOF
22349 #define HAVE_MKDTEMP 1
22355 if test $ac_cv_func_mkdtemp = no; then
22359 if test $HAVE_MKDTEMP = 0; then
22368 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
22384 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22396 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22397 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22399 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22402 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22406 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22415 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22421 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22430 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22447 for ac_func in raise
22449 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22450 if test "x$ac_cv_func_raise" = xyes; then :
22451 cat >>confdefs.h <<_ACEOF
22452 #define HAVE_RAISE 1
22458 if test $ac_cv_func_raise = no; then
22461 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22468 if test $gl_cv_type_sigset_t = yes; then
22469 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22470 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22471 gl_cv_func_sigprocmask=1
22475 if test -z "$gl_cv_func_sigprocmask"; then
22476 HAVE_POSIX_SIGNALBLOCKING=0
22479 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22485 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
22494 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
22509 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
22516 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22521 if test $REPLACE_READ = 1; then
22530 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
22545 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
22568 if test $ac_cv_func_secure_getenv = no; then
22569 HAVE_SECURE_GETENV=0
22572 if test $HAVE_SECURE_GETENV = 0; then
22581 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
22584 for ac_func in __secure_getenv
22586 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
22587 if test "x$ac_cv_func___secure_getenv" = xyes; then :
22588 cat >>confdefs.h <<_ACEOF
22589 #define HAVE___SECURE_GETENV 1
22595 if test $ac_cv_func___secure_getenv = no; then
22596 for ac_func in issetugid
22598 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
22599 if test "x$ac_cv_func_issetugid" = xyes; then :
22600 cat >>confdefs.h <<_ACEOF
22601 #define HAVE_ISSETUGID 1
22615 GNULIB_SECURE_GETENV=1
22621 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
22627 if test $ac_cv_func_setenv = no; then
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22631 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22632 if ${gl_cv_func_setenv_works+:} false; then :
22633 $as_echo_n "(cached) " >&6
22635 if test "$cross_compiling" = yes; then :
22637 # Guess yes on glibc systems.
22638 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
22639 # If we don't know, assume the worst.
22640 *) gl_cv_func_setenv_works="guessing no" ;;
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h. */
22647 #include <stdlib.h>
22649 #include <string.h>
22657 if (setenv ("", "", 0) != -1)
22659 else if (errno != EINVAL)
22663 if (setenv ("a", "=", 1) != 0)
22665 else if (strcmp (getenv ("a"), "=") != 0)
22674 if ac_fn_c_try_run "$LINENO"; then :
22675 gl_cv_func_setenv_works=yes
22677 gl_cv_func_setenv_works=no
22679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22680 conftest.$ac_objext conftest.beam conftest.$ac_ext
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22685 $as_echo "$gl_cv_func_setenv_works" >&6; }
22686 case "$gl_cv_func_setenv_works" in
22694 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
22703 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22717 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22730 if test $ac_cv_func_sigaction = yes; then
22731 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
22733 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
22742 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
22743 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
22749 if test $HAVE_SIGACTION = 0; then
22758 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
22775 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
22776 #include <signal.h>
22779 if test "x$ac_cv_type_siginfo_t" = xyes; then :
22781 cat >>confdefs.h <<_ACEOF
22782 #define HAVE_SIGINFO_T 1
22788 if test $ac_cv_type_siginfo_t = no; then
22804 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
22819 if test $gl_cv_have_include_next = yes; then
22820 gl_cv_next_signal_h='<'signal.h'>'
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22823 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22824 if ${gl_cv_next_signal_h+:} false; then :
22825 $as_echo_n "(cached) " >&6
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22832 #include <signal.h>
22835 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22836 *) gl_absname_cpp="$ac_cpp" ;;
22841 gl_dirsep_regex='[/\\]'
22844 gl_dirsep_regex='\/'
22847 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22848 gl_header_literal_regex=`echo 'signal.h' \
22849 | sed -e "$gl_make_literal_regex_sed"`
22850 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22851 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22857 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22858 sed -n "$gl_absolute_header_sed"`
22860 gl_header=$gl_cv_absolute_signal_h
22861 gl_cv_next_signal_h='"'$gl_header'"'
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22866 $as_echo "$gl_cv_next_signal_h" >&6; }
22868 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22870 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22872 gl_next_as_first_directive='<'signal.h'>'
22874 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22875 gl_next_as_first_directive=$gl_cv_next_signal_h
22877 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22883 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22884 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22885 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22886 #include <signal.h>
22889 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22892 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22901 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22902 #include <signal.h>
22905 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22908 HAVE_SIGHANDLER_T=0
22913 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
22914 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22916 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22917 if eval \${$as_gl_Symbol+:} false; then :
22918 $as_echo_n "(cached) " >&6
22920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921 /* end confdefs.h. */
22922 #include <signal.h>
22933 if ac_fn_c_try_compile "$LINENO"; then :
22934 eval "$as_gl_Symbol=yes"
22936 eval "$as_gl_Symbol=no"
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 eval ac_res=\$$as_gl_Symbol
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22942 $as_echo "$ac_res" >&6; }
22943 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22944 cat >>confdefs.h <<_ACEOF
22945 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22948 eval ac_cv_have_decl_$gl_func=yes
22956 if test $gl_cv_type_sigset_t = yes; then
22957 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22958 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22959 gl_cv_func_sigprocmask=1
22963 if test -z "$gl_cv_func_sigprocmask"; then
22964 HAVE_POSIX_SIGNALBLOCKING=0
22967 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22976 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22985 GNULIB_SIGPROCMASK=1
22991 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22996 for ac_header in stdint.h
22998 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22999 if test "x$ac_cv_header_stdint_h" = xyes; then :
23000 cat >>confdefs.h <<_ACEOF
23001 #define HAVE_STDINT_H 1
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23009 $as_echo_n "checking for SIZE_MAX... " >&6; }
23010 if ${gl_cv_size_max+:} false; then :
23011 $as_echo_n "(cached) " >&6
23015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016 /* end confdefs.h. */
23018 #include <limits.h>
23020 #include <stdint.h>
23027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23028 $EGREP "Found it" >/dev/null 2>&1; then :
23033 if test -z "$gl_cv_size_max"; then
23034 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
23035 #include <limits.h>"; then :
23038 size_t_bits_minus_1=
23041 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
23047 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23048 if test $fits_in_uint = 1; then
23049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23050 /* end confdefs.h. */
23051 #include <stddef.h>
23053 extern unsigned long foo;
23063 if ac_fn_c_try_compile "$LINENO"; then :
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 if test $fits_in_uint = 1; then
23069 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23071 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23074 gl_cv_size_max='((size_t)~(size_t)0)'
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23080 $as_echo "$gl_cv_size_max" >&6; }
23081 if test "$gl_cv_size_max" != yes; then
23083 cat >>confdefs.h <<_ACEOF
23084 #define SIZE_MAX $gl_cv_size_max
23092 gl_cv_func_snprintf_usable=no
23093 for ac_func in snprintf
23095 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23096 if test "x$ac_cv_func_snprintf" = xyes; then :
23097 cat >>confdefs.h <<_ACEOF
23098 #define HAVE_SNPRINTF 1
23104 if test $ac_cv_func_snprintf = yes; then
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23109 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23110 if ${gl_cv_func_snprintf_size1+:} false; then :
23111 $as_echo_n "(cached) " >&6
23114 if test "$cross_compiling" = yes; then :
23115 gl_cv_func_snprintf_size1="guessing yes"
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23122 # define my_snprintf snprintf
23124 # include <stdarg.h>
23125 static int my_snprintf (char *buf, int size, const char *format, ...)
23129 va_start (args, format);
23130 ret = vsnprintf (buf, size, format, args);
23137 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23138 my_snprintf (buf, 1, "%d", 12345);
23139 return buf[1] != 'E';
23142 if ac_fn_c_try_run "$LINENO"; then :
23143 gl_cv_func_snprintf_size1=yes
23145 gl_cv_func_snprintf_size1=no
23147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23148 conftest.$ac_objext conftest.beam conftest.$ac_ext
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23154 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23156 case "$gl_cv_func_snprintf_size1" in
23159 case "$gl_cv_func_snprintf_retval_c99" in
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23164 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23165 if ${gl_cv_func_printf_positions+:} false; then :
23166 $as_echo_n "(cached) " >&6
23169 if test "$cross_compiling" = yes; then :
23172 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23173 gl_cv_func_printf_positions="guessing no";;
23174 beos*) gl_cv_func_printf_positions="guessing no";;
23175 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23176 *) gl_cv_func_printf_positions="guessing yes";;
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23184 #include <string.h>
23185 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23186 dollar expansion (possibly an autoconf bug). */
23187 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23188 static char buf[100];
23191 sprintf (buf, format, 33, 55);
23192 return (strcmp (buf, "55 33") != 0);
23195 if ac_fn_c_try_run "$LINENO"; then :
23196 gl_cv_func_printf_positions=yes
23198 gl_cv_func_printf_positions=no
23200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23201 conftest.$ac_objext conftest.beam conftest.$ac_ext
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23207 $as_echo "$gl_cv_func_printf_positions" >&6; }
23209 case "$gl_cv_func_printf_positions" in
23211 gl_cv_func_snprintf_usable=yes
23219 if test $gl_cv_func_snprintf_usable = no; then
23230 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23232 if test $ac_cv_func_snprintf = yes; then
23245 if test $ac_cv_have_decl_snprintf = no; then
23246 HAVE_DECL_SNPRINTF=0
23260 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23266 cat >>confdefs.h <<_ACEOF
23267 #define GNULIB_SNPRINTF 1
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23273 $as_echo_n "checking for ssize_t... " >&6; }
23274 if ${gt_cv_ssize_t+:} false; then :
23275 $as_echo_n "(cached) " >&6
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23279 #include <sys/types.h>
23283 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23289 if ac_fn_c_try_compile "$LINENO"; then :
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23297 $as_echo "$gt_cv_ssize_t" >&6; }
23298 if test $gt_cv_ssize_t = no; then
23300 $as_echo "#define ssize_t int" >>confdefs.h
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23314 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23315 if ${gl_cv_func_stat_dir_slash+:} false; then :
23316 $as_echo_n "(cached) " >&6
23318 if test "$cross_compiling" = yes; then :
23320 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23321 *) gl_cv_func_stat_dir_slash="guessing yes";;
23324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23325 /* end confdefs.h. */
23326 #include <sys/stat.h>
23331 struct stat st; return stat (".", &st) != stat ("./", &st);
23336 if ac_fn_c_try_run "$LINENO"; then :
23337 gl_cv_func_stat_dir_slash=yes
23339 gl_cv_func_stat_dir_slash=no
23341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23342 conftest.$ac_objext conftest.beam conftest.$ac_ext
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23347 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23349 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23350 if ${gl_cv_func_stat_file_slash+:} false; then :
23351 $as_echo_n "(cached) " >&6
23354 # Assume that if we have lstat, we can also check symlinks.
23355 if test $ac_cv_func_lstat = yes; then
23356 ln -s conftest.tmp conftest.lnk
23358 if test "$cross_compiling" = yes; then :
23360 # Guess yes on glibc systems.
23361 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23362 # If we don't know, assume the worst.
23363 *) gl_cv_func_stat_file_slash="guessing no" ;;
23367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h. */
23369 #include <sys/stat.h>
23376 if (!stat ("conftest.tmp/", &st))
23379 if (!stat ("conftest.lnk/", &st))
23388 if ac_fn_c_try_run "$LINENO"; then :
23389 gl_cv_func_stat_file_slash=yes
23391 gl_cv_func_stat_file_slash=no
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23394 conftest.$ac_objext conftest.beam conftest.$ac_ext
23397 rm -f conftest.tmp conftest.lnk
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23400 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23401 case $gl_cv_func_stat_dir_slash in
23402 *no) REPLACE_STAT=1
23404 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23407 case $gl_cv_func_stat_file_slash in
23408 *no) REPLACE_STAT=1
23410 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23414 if test $REPLACE_STAT = 1; then
23423 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23438 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23444 NEXT_STDARG_H='<stdarg.h>'
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23446 $as_echo_n "checking for va_copy... " >&6; }
23447 if ${gl_cv_func_va_copy+:} false; then :
23448 $as_echo_n "(cached) " >&6
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453 #include <stdarg.h>
23459 void (*func) (va_list, va_list) = va_copy;
23466 if ac_fn_c_try_compile "$LINENO"; then :
23467 gl_cv_func_va_copy=yes
23469 gl_cv_func_va_copy=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23475 $as_echo "$gl_cv_func_va_copy" >&6; }
23476 if test $gl_cv_func_va_copy = no; then
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23479 #if defined _AIX && !defined __GNUC__
23484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23485 $EGREP "vaccine" >/dev/null 2>&1; then :
23492 if test $gl_aixcc = yes; then
23502 if test $gl_cv_have_include_next = yes; then
23503 gl_cv_next_stdarg_h='<'stdarg.h'>'
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23506 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23507 if ${gl_cv_next_stdarg_h+:} false; then :
23508 $as_echo_n "(cached) " >&6
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23515 #include <stdarg.h>
23518 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23519 *) gl_absname_cpp="$ac_cpp" ;;
23524 gl_dirsep_regex='[/\\]'
23527 gl_dirsep_regex='\/'
23530 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23531 gl_header_literal_regex=`echo 'stdarg.h' \
23532 | sed -e "$gl_make_literal_regex_sed"`
23533 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23540 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23541 sed -n "$gl_absolute_header_sed"`
23543 gl_header=$gl_cv_absolute_stdarg_h
23544 gl_cv_next_stdarg_h='"'$gl_header'"'
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23549 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23551 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23553 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23555 gl_next_as_first_directive='<'stdarg.h'>'
23557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23558 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23560 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23565 if test "$gl_cv_next_stdarg_h" = '""'; then
23566 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23567 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23571 saved_as_echo_n="$as_echo_n"
23573 if ${gl_cv_func___va_copy+:} false; then :
23574 $as_echo_n "(cached) " >&6
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h. */
23579 #include <stdarg.h>
23592 if ac_fn_c_try_compile "$LINENO"; then :
23593 gl_cv_func___va_copy=yes
23595 gl_cv_func___va_copy=no
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 as_echo_n="$saved_as_echo_n"
23602 if test $gl_cv_func___va_copy = yes; then
23604 $as_echo "#define va_copy __va_copy" >>confdefs.h
23609 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23615 if test -n "$STDARG_H"; then
23616 GL_GENERATE_STDARG_H_TRUE=
23617 GL_GENERATE_STDARG_H_FALSE='#'
23619 GL_GENERATE_STDARG_H_TRUE='#'
23620 GL_GENERATE_STDARG_H_FALSE=
23628 # Define two additional variables used in the Makefile substitution.
23630 if test "$ac_cv_header_stdbool_h" = yes; then
23633 STDBOOL_H='stdbool.h'
23636 if test -n "$STDBOOL_H"; then
23637 GL_GENERATE_STDBOOL_H_TRUE=
23638 GL_GENERATE_STDBOOL_H_FALSE='#'
23640 GL_GENERATE_STDBOOL_H_TRUE='#'
23641 GL_GENERATE_STDBOOL_H_FALSE=
23645 if test "$ac_cv_type__Bool" = yes; then
23656 if test $gt_cv_c_wchar_t = no; then
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23661 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23662 if ${gl_cv_decl_null_works+:} false; then :
23663 $as_echo_n "(cached) " >&6
23665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666 /* end confdefs.h. */
23667 #include <stddef.h>
23668 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23678 if ac_fn_c_try_compile "$LINENO"; then :
23679 gl_cv_decl_null_works=yes
23681 gl_cv_decl_null_works=no
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23686 $as_echo "$gl_cv_decl_null_works" >&6; }
23687 if test $gl_cv_decl_null_works = no; then
23692 if test -n "$STDDEF_H"; then
23693 GL_GENERATE_STDDEF_H_TRUE=
23694 GL_GENERATE_STDDEF_H_FALSE='#'
23696 GL_GENERATE_STDDEF_H_TRUE='#'
23697 GL_GENERATE_STDDEF_H_FALSE=
23700 if test -n "$STDDEF_H"; then
23709 if test $gl_cv_have_include_next = yes; then
23710 gl_cv_next_stddef_h='<'stddef.h'>'
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23713 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23714 if ${gl_cv_next_stddef_h+:} false; then :
23715 $as_echo_n "(cached) " >&6
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23722 #include <stddef.h>
23725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23726 *) gl_absname_cpp="$ac_cpp" ;;
23731 gl_dirsep_regex='[/\\]'
23734 gl_dirsep_regex='\/'
23737 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23738 gl_header_literal_regex=`echo 'stddef.h' \
23739 | sed -e "$gl_make_literal_regex_sed"`
23740 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23741 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23747 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23748 sed -n "$gl_absolute_header_sed"`
23750 gl_header=$gl_cv_absolute_stddef_h
23751 gl_cv_next_stddef_h='"'$gl_header'"'
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23756 $as_echo "$gl_cv_next_stddef_h" >&6; }
23758 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23760 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23762 gl_next_as_first_directive='<'stddef.h'>'
23764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23765 gl_next_as_first_directive=$gl_cv_next_stddef_h
23767 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23785 if test $gl_cv_have_include_next = yes; then
23786 gl_cv_next_stdio_h='<'stdio.h'>'
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23789 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23790 if ${gl_cv_next_stdio_h+:} false; then :
23791 $as_echo_n "(cached) " >&6
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23801 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23802 *) gl_absname_cpp="$ac_cpp" ;;
23807 gl_dirsep_regex='[/\\]'
23810 gl_dirsep_regex='\/'
23813 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23814 gl_header_literal_regex=`echo 'stdio.h' \
23815 | sed -e "$gl_make_literal_regex_sed"`
23816 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23817 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23823 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23824 sed -n "$gl_absolute_header_sed"`
23826 gl_header=$gl_cv_absolute_stdio_h
23827 gl_cv_next_stdio_h='"'$gl_header'"'
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23832 $as_echo "$gl_cv_next_stdio_h" >&6; }
23834 NEXT_STDIO_H=$gl_cv_next_stdio_h
23836 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23838 gl_next_as_first_directive='<'stdio.h'>'
23840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23841 gl_next_as_first_directive=$gl_cv_next_stdio_h
23843 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23852 cat >>confdefs.h <<_ACEOF
23853 #define GNULIB_FSCANF 1
23860 cat >>confdefs.h <<_ACEOF
23861 #define GNULIB_SCANF 1
23886 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
23887 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23889 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23890 if eval \${$as_gl_Symbol+:} false; then :
23891 $as_echo_n "(cached) " >&6
23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h. */
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907 eval "$as_gl_Symbol=yes"
23909 eval "$as_gl_Symbol=no"
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23913 eval ac_res=\$$as_gl_Symbol
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23915 $as_echo "$ac_res" >&6; }
23916 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23917 cat >>confdefs.h <<_ACEOF
23918 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23921 eval ac_cv_have_decl_$gl_func=yes
23936 if test $gl_cv_have_include_next = yes; then
23937 gl_cv_next_stdlib_h='<'stdlib.h'>'
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23940 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23941 if ${gl_cv_next_stdlib_h+:} false; then :
23942 $as_echo_n "(cached) " >&6
23947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h. */
23949 #include <stdlib.h>
23952 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23953 *) gl_absname_cpp="$ac_cpp" ;;
23958 gl_dirsep_regex='[/\\]'
23961 gl_dirsep_regex='\/'
23964 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23965 gl_header_literal_regex=`echo 'stdlib.h' \
23966 | sed -e "$gl_make_literal_regex_sed"`
23967 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23968 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23974 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23975 sed -n "$gl_absolute_header_sed"`
23977 gl_header=$gl_cv_absolute_stdlib_h
23978 gl_cv_next_stdlib_h='"'$gl_header'"'
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23983 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23985 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23987 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23989 gl_next_as_first_directive='<'stdlib.h'>'
23991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23992 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23994 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24001 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
24002 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24004 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24005 if eval \${$as_gl_Symbol+:} false; then :
24006 $as_echo_n "(cached) " >&6
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24010 #include <stdlib.h>
24011 #if HAVE_SYS_LOADAVG_H
24012 # include <sys/loadavg.h>
24015 # include <random.h>
24027 if ac_fn_c_try_compile "$LINENO"; then :
24028 eval "$as_gl_Symbol=yes"
24030 eval "$as_gl_Symbol=no"
24032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034 eval ac_res=\$$as_gl_Symbol
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24036 $as_echo "$ac_res" >&6; }
24037 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24038 cat >>confdefs.h <<_ACEOF
24039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24042 eval ac_cv_have_decl_$gl_func=yes
24052 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24054 $as_echo_n "checking for working strerror function... " >&6; }
24055 if ${gl_cv_func_working_strerror+:} false; then :
24056 $as_echo_n "(cached) " >&6
24058 if test "$cross_compiling" = yes; then :
24060 # Guess yes on glibc systems.
24061 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24062 # If we don't know, assume the worst.
24063 *) gl_cv_func_working_strerror="guessing no" ;;
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24069 #include <string.h>
24074 if (!*strerror (-2)) return 1;
24079 if ac_fn_c_try_run "$LINENO"; then :
24080 gl_cv_func_working_strerror=yes
24082 gl_cv_func_working_strerror=no
24084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24085 conftest.$ac_objext conftest.beam conftest.$ac_ext
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24091 $as_echo "$gl_cv_func_working_strerror" >&6; }
24092 case "$gl_cv_func_working_strerror" in
24103 if test $REPLACE_STRERROR = 1; then
24112 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24117 cat >>confdefs.h <<_ACEOF
24118 #define GNULIB_STRERROR 1
24133 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24139 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24148 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24160 if test $ac_cv_header_sys_socket_h != yes; then
24161 for ac_header in winsock2.h
24163 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24164 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_WINSOCK2_H 1
24174 if test "$ac_cv_header_winsock2_h" = yes; then
24176 UNISTD_H_HAVE_WINSOCK2_H=1
24177 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24205 if test $ac_cv_have_decl_strndup = no; then
24206 HAVE_DECL_STRNDUP=0
24209 if test $ac_cv_func_strndup = yes; then
24211 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24213 $as_echo_n "checking for working strndup... " >&6; }
24214 if ${gl_cv_func_strndup_works+:} false; then :
24215 $as_echo_n "(cached) " >&6
24217 if test "$cross_compiling" = yes; then :
24220 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24221 *) gl_cv_func_strndup_works="guessing yes";;
24225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24226 /* end confdefs.h. */
24228 #include <string.h>
24229 #include <stdlib.h>
24234 #if !HAVE_DECL_STRNDUP
24239 char *strndup (const char *, size_t);
24242 s = strndup ("some longer string", 15);
24244 s = strndup ("shorter string", 13);
24245 return s[13] != '\0';
24250 if ac_fn_c_try_run "$LINENO"; then :
24251 gl_cv_func_strndup_works=yes
24253 gl_cv_func_strndup_works=no
24255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24256 conftest.$ac_objext conftest.beam conftest.$ac_ext
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24261 $as_echo "$gl_cv_func_strndup_works" >&6; }
24262 case $gl_cv_func_strndup_works in
24263 *no) REPLACE_STRNDUP=1 ;;
24269 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24278 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24292 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24308 if test $ac_cv_have_decl_strnlen = no; then
24309 HAVE_DECL_STRNLEN=0
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24313 $as_echo_n "checking for working strnlen... " >&6; }
24314 if ${ac_cv_func_strnlen_working+:} false; then :
24315 $as_echo_n "(cached) " >&6
24317 if test "$cross_compiling" = yes; then :
24318 # Guess no on AIX systems, yes otherwise.
24320 aix*) ac_cv_func_strnlen_working=no;;
24321 *) ac_cv_func_strnlen_working=yes;;
24324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24326 $ac_includes_default
24332 #define S_LEN (sizeof S - 1)
24334 /* At least one implementation is buggy: that of AIX 4.3 would
24335 give strnlen (S, 1) == 3. */
24338 for (i = 0; i < S_LEN + 1; ++i)
24340 int expected = i <= S_LEN ? i : S_LEN;
24341 if (strnlen (S, i) != expected)
24350 if ac_fn_c_try_run "$LINENO"; then :
24351 ac_cv_func_strnlen_working=yes
24353 ac_cv_func_strnlen_working=no
24355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24356 conftest.$ac_objext conftest.beam conftest.$ac_ext
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24361 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24362 test $ac_cv_func_strnlen_working = no && :
24365 if test $ac_cv_func_strnlen_working = no; then
24370 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24379 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24394 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24410 if test $ac_cv_have_decl_strsignal = no; then
24411 HAVE_DECL_STRSIGNAL=0
24414 for ac_func in strsignal
24416 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
24417 if test "x$ac_cv_func_strsignal" = xyes; then :
24418 cat >>confdefs.h <<_ACEOF
24419 #define HAVE_STRSIGNAL 1
24425 if test $ac_cv_func_strsignal = yes; then
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
24428 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
24429 if ${gl_cv_func_working_strsignal+:} false; then :
24430 $as_echo_n "(cached) " >&6
24432 if test "$cross_compiling" = yes; then :
24434 solaris* | aix*) gl_cv_func_working_strsignal=no;;
24435 *) gl_cv_func_working_strsignal="guessing yes";;
24438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24439 /* end confdefs.h. */
24440 #include <string.h>
24441 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
24447 char *s = strsignal (-1);
24448 if (s == (char *) 0)
24450 if (s == (char *) -1)
24458 if ac_fn_c_try_run "$LINENO"; then :
24459 gl_cv_func_working_strsignal=yes
24461 gl_cv_func_working_strsignal=no
24463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24464 conftest.$ac_objext conftest.beam conftest.$ac_ext
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
24469 $as_echo "$gl_cv_func_working_strsignal" >&6; }
24470 if test "$gl_cv_func_working_strsignal" = no; then
24471 REPLACE_STRSIGNAL=1
24477 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
24486 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
24497 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
24499 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
24505 cat >>confdefs.h <<_ACEOF
24506 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
24522 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24530 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24531 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
24532 $as_echo_n "(cached) " >&6
24535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24537 #include <sys/select.h>
24546 if ac_fn_c_try_compile "$LINENO"; then :
24547 gl_cv_header_sys_select_h_selfcontained=yes
24549 gl_cv_header_sys_select_h_selfcontained=no
24551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h. */
24555 #include <sys/select.h>
24559 int memset; int bzero;
24565 if ac_fn_c_try_compile "$LINENO"; then :
24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h. */
24568 #include <sys/select.h>
24574 #define memset nonexistent_memset
24579 void *memset (void *, int, unsigned long);
24581 #define bzero nonexistent_bzero
24586 void bzero (void *, unsigned long);
24595 if ac_fn_c_try_link "$LINENO"; then :
24598 gl_cv_header_sys_select_h_selfcontained=no
24600 rm -f core conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24609 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24625 if test $gl_cv_have_include_next = yes; then
24626 gl_cv_next_sys_select_h='<'sys/select.h'>'
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24629 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24630 if ${gl_cv_next_sys_select_h+:} false; then :
24631 $as_echo_n "(cached) " >&6
24634 if test $ac_cv_header_sys_select_h = yes; then
24639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24640 /* end confdefs.h. */
24641 #include <sys/select.h>
24644 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24645 *) gl_absname_cpp="$ac_cpp" ;;
24650 gl_dirsep_regex='[/\\]'
24653 gl_dirsep_regex='\/'
24656 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24657 gl_header_literal_regex=`echo 'sys/select.h' \
24658 | sed -e "$gl_make_literal_regex_sed"`
24659 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24660 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24666 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24667 sed -n "$gl_absolute_header_sed"`
24669 gl_header=$gl_cv_absolute_sys_select_h
24670 gl_cv_next_sys_select_h='"'$gl_header'"'
24672 gl_cv_next_sys_select_h='<'sys/select.h'>'
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24678 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24680 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24682 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24683 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24684 gl_next_as_first_directive='<'sys/select.h'>'
24686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24687 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24689 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24694 if test $ac_cv_header_sys_select_h = yes; then
24695 HAVE_SYS_SELECT_H=1
24697 HAVE_SYS_SELECT_H=0
24710 if test $ac_cv_header_sys_socket_h != yes; then
24711 for ac_header in winsock2.h
24713 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24714 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24715 cat >>confdefs.h <<_ACEOF
24716 #define HAVE_WINSOCK2_H 1
24724 if test "$ac_cv_header_winsock2_h" = yes; then
24726 UNISTD_H_HAVE_WINSOCK2_H=1
24727 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24735 for gl_func in pselect select; do
24736 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24738 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24739 if eval \${$as_gl_Symbol+:} false; then :
24740 $as_echo_n "(cached) " >&6
24742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24743 /* end confdefs.h. */
24745 /* Some systems require prerequisite headers. */
24746 #include <sys/types.h>
24747 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
24748 # include <sys/time.h>
24750 #include <sys/select.h>
24761 if ac_fn_c_try_compile "$LINENO"; then :
24762 eval "$as_gl_Symbol=yes"
24764 eval "$as_gl_Symbol=no"
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24768 eval ac_res=\$$as_gl_Symbol
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24770 $as_echo "$ac_res" >&6; }
24771 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24772 cat >>confdefs.h <<_ACEOF
24773 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24776 eval ac_cv_have_decl_$gl_func=yes
24802 if test $gl_cv_have_include_next = yes; then
24803 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24806 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24807 if ${gl_cv_next_sys_stat_h+:} false; then :
24808 $as_echo_n "(cached) " >&6
24811 if test $ac_cv_header_sys_stat_h = yes; then
24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817 /* end confdefs.h. */
24818 #include <sys/stat.h>
24821 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24822 *) gl_absname_cpp="$ac_cpp" ;;
24827 gl_dirsep_regex='[/\\]'
24830 gl_dirsep_regex='\/'
24833 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24834 gl_header_literal_regex=`echo 'sys/stat.h' \
24835 | sed -e "$gl_make_literal_regex_sed"`
24836 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24837 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24843 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24844 sed -n "$gl_absolute_header_sed"`
24846 gl_header=$gl_cv_absolute_sys_stat_h
24847 gl_cv_next_sys_stat_h='"'$gl_header'"'
24849 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24855 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24857 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24859 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24861 gl_next_as_first_directive='<'sys/stat.h'>'
24863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24864 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24866 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24878 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24880 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24884 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24885 #include <sys/stat.h>
24887 if test "x$ac_cv_type_nlink_t" = xyes; then :
24891 $as_echo "#define nlink_t int" >>confdefs.h
24897 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
24898 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24900 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24901 if eval \${$as_gl_Symbol+:} false; then :
24902 $as_echo_n "(cached) " >&6
24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h. */
24906 #include <sys/stat.h>
24917 if ac_fn_c_try_compile "$LINENO"; then :
24918 eval "$as_gl_Symbol=yes"
24920 eval "$as_gl_Symbol=no"
24922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 eval ac_res=\$$as_gl_Symbol
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24926 $as_echo "$ac_res" >&6; }
24927 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24928 cat >>confdefs.h <<_ACEOF
24929 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24932 eval ac_cv_have_decl_$gl_func=yes
24962 if test $gl_cv_have_include_next = yes; then
24963 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
24966 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
24967 if ${gl_cv_next_sys_wait_h+:} false; then :
24968 $as_echo_n "(cached) " >&6
24971 if test $ac_cv_header_sys_wait_h = yes; then
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24978 #include <sys/wait.h>
24981 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24982 *) gl_absname_cpp="$ac_cpp" ;;
24987 gl_dirsep_regex='[/\\]'
24990 gl_dirsep_regex='\/'
24993 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24994 gl_header_literal_regex=`echo 'sys/wait.h' \
24995 | sed -e "$gl_make_literal_regex_sed"`
24996 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24997 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25003 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25004 sed -n "$gl_absolute_header_sed"`
25006 gl_header=$gl_cv_absolute_sys_wait_h
25007 gl_cv_next_sys_wait_h='"'$gl_header'"'
25009 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
25015 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
25017 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
25019 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25021 gl_next_as_first_directive='<'sys/wait.h'>'
25023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25024 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
25026 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
25035 for gl_func in waitpid; do
25036 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25038 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25039 if eval \${$as_gl_Symbol+:} false; then :
25040 $as_echo_n "(cached) " >&6
25042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h. */
25044 #include <sys/wait.h>
25054 if ac_fn_c_try_compile "$LINENO"; then :
25055 eval "$as_gl_Symbol=yes"
25057 eval "$as_gl_Symbol=no"
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 eval ac_res=\$$as_gl_Symbol
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25063 $as_echo "$ac_res" >&6; }
25064 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25065 cat >>confdefs.h <<_ACEOF
25066 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25069 eval ac_cv_have_decl_$gl_func=yes
25108 if test $gl_cv_have_include_next = yes; then
25109 gl_cv_next_unistd_h='<'unistd.h'>'
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25112 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25113 if ${gl_cv_next_unistd_h+:} false; then :
25114 $as_echo_n "(cached) " >&6
25117 if test $ac_cv_header_unistd_h = yes; then
25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h. */
25124 #include <unistd.h>
25127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25128 *) gl_absname_cpp="$ac_cpp" ;;
25133 gl_dirsep_regex='[/\\]'
25136 gl_dirsep_regex='\/'
25139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25140 gl_header_literal_regex=`echo 'unistd.h' \
25141 | sed -e "$gl_make_literal_regex_sed"`
25142 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25149 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25150 sed -n "$gl_absolute_header_sed"`
25152 gl_header=$gl_cv_absolute_unistd_h
25153 gl_cv_next_unistd_h='"'$gl_header'"'
25155 gl_cv_next_unistd_h='<'unistd.h'>'
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25161 $as_echo "$gl_cv_next_unistd_h" >&6; }
25163 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25165 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25167 gl_next_as_first_directive='<'unistd.h'>'
25169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25170 gl_next_as_first_directive=$gl_cv_next_unistd_h
25172 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25177 if test $ac_cv_header_unistd_h = yes; then
25189 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
25190 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25193 if eval \${$as_gl_Symbol+:} false; then :
25194 $as_echo_n "(cached) " >&6
25196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h. */
25200 # include <unistd.h>
25202 /* Some systems declare various items in the wrong headers. */
25203 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25204 # include <fcntl.h>
25205 # include <stdio.h>
25206 # include <stdlib.h>
25207 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25221 if ac_fn_c_try_compile "$LINENO"; then :
25222 eval "$as_gl_Symbol=yes"
25224 eval "$as_gl_Symbol=no"
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 eval ac_res=\$$as_gl_Symbol
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25230 $as_echo "$ac_res" >&6; }
25231 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25232 cat >>confdefs.h <<_ACEOF
25233 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25236 eval ac_cv_have_decl_$gl_func=yes
25250 if test $ac_cv_have_decl_unsetenv = no; then
25251 HAVE_DECL_UNSETENV=0
25253 for ac_func in unsetenv
25255 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25256 if test "x$ac_cv_func_unsetenv" = xyes; then :
25257 cat >>confdefs.h <<_ACEOF
25258 #define HAVE_UNSETENV 1
25264 if test $ac_cv_func_unsetenv = no; then
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25269 $as_echo_n "checking for unsetenv() return type... " >&6; }
25270 if ${gt_cv_func_unsetenv_ret+:} false; then :
25271 $as_echo_n "(cached) " >&6
25273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274 /* end confdefs.h. */
25277 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25278 #include <stdlib.h>
25283 int unsetenv (const char *name);
25293 if ac_fn_c_try_compile "$LINENO"; then :
25294 gt_cv_func_unsetenv_ret='int'
25296 gt_cv_func_unsetenv_ret='void'
25298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25301 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25302 if test $gt_cv_func_unsetenv_ret = 'void'; then
25304 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25310 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25311 if ${gl_cv_func_unsetenv_works+:} false; then :
25312 $as_echo_n "(cached) " >&6
25314 if test "$cross_compiling" = yes; then :
25316 # Guess yes on glibc systems.
25317 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25318 # If we don't know, assume the worst.
25319 *) gl_cv_func_unsetenv_works="guessing no" ;;
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25326 #include <stdlib.h>
25328 extern char **environ;
25334 char entry1[] = "a=1";
25335 char entry2[] = "b=2";
25336 char *env[] = { entry1, entry2, NULL };
25337 if (putenv ((char *) "a=1")) return 1;
25338 if (putenv (entry2)) return 2;
25341 if (getenv ("a")) return 3;
25342 if (!unsetenv ("") || errno != EINVAL) return 4;
25345 if (!getenv ("a")) return 5;
25348 if (getenv ("a")) return 6;
25354 if ac_fn_c_try_run "$LINENO"; then :
25355 gl_cv_func_unsetenv_works=yes
25357 gl_cv_func_unsetenv_works=no
25359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360 conftest.$ac_objext conftest.beam conftest.$ac_ext
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25365 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25366 case "$gl_cv_func_unsetenv_works" in
25374 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25383 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25407 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25419 if test $ac_cv_func_vasnprintf = no; then
25436 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25446 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25456 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25466 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25468 if test $ac_cv_func_vasnprintf = yes; then
25470 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25484 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25485 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25489 $as_echo "#define ptrdiff_t long" >>confdefs.h
25503 for ac_func in vasprintf
25505 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25506 if test "x$ac_cv_func_vasprintf" = xyes; then :
25507 cat >>confdefs.h <<_ACEOF
25508 #define HAVE_VASPRINTF 1
25514 if test $ac_cv_func_vasprintf = no; then
25524 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
25534 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
25537 if test $ac_cv_func_vasprintf = yes; then
25538 REPLACE_VASPRINTF=1
25563 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
25569 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
25573 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
25579 mingw*) HAVE_WAITPID=0 ;;
25582 if test $HAVE_WAITPID = 0; then
25591 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
25605 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
25627 if test $gl_cv_have_include_next = yes; then
25628 gl_cv_next_wchar_h='<'wchar.h'>'
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25631 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25632 if ${gl_cv_next_wchar_h+:} false; then :
25633 $as_echo_n "(cached) " >&6
25636 if test $ac_cv_header_wchar_h = yes; then
25641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h. */
25646 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25647 *) gl_absname_cpp="$ac_cpp" ;;
25652 gl_dirsep_regex='[/\\]'
25655 gl_dirsep_regex='\/'
25658 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25659 gl_header_literal_regex=`echo 'wchar.h' \
25660 | sed -e "$gl_make_literal_regex_sed"`
25661 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25662 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25668 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25669 sed -n "$gl_absolute_header_sed"`
25671 gl_header=$gl_cv_absolute_wchar_h
25672 gl_cv_next_wchar_h='"'$gl_header'"'
25674 gl_cv_next_wchar_h='<'wchar.h'>'
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25680 $as_echo "$gl_cv_next_wchar_h" >&6; }
25682 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25684 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25686 gl_next_as_first_directive='<'wchar.h'>'
25688 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25689 gl_next_as_first_directive=$gl_cv_next_wchar_h
25691 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25696 if test $ac_cv_header_wchar_h = yes; then
25706 if test $gt_cv_c_wint_t = yes; then
25714 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
25715 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25717 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25718 if eval \${$as_gl_Symbol+:} false; then :
25719 $as_echo_n "(cached) " >&6
25721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25722 /* end confdefs.h. */
25724 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25726 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25727 included before <wchar.h>. */
25728 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25729 # include <stddef.h>
25730 # include <stdio.h>
25744 if ac_fn_c_try_compile "$LINENO"; then :
25745 eval "$as_gl_Symbol=yes"
25747 eval "$as_gl_Symbol=no"
25749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 eval ac_res=\$$as_gl_Symbol
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25753 $as_echo "$ac_res" >&6; }
25754 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25755 cat >>confdefs.h <<_ACEOF
25756 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25759 eval ac_cv_have_decl_$gl_func=yes
25767 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25773 if test $REPLACE_WRITE = 1; then
25782 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
25797 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
25804 for ac_header in stdint.h
25806 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25807 if test "x$ac_cv_header_stdint_h" = xyes; then :
25808 cat >>confdefs.h <<_ACEOF
25809 #define HAVE_STDINT_H 1
25825 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
25827 # End of code from modules
25848 gl_source_base='tests'
25849 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
25851 gl_module_indicator_condition=$gltests_WITNESS
25862 for ac_header in fcntl.h
25864 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25865 if test "x$ac_cv_header_fcntl_h" = xyes; then :
25866 cat >>confdefs.h <<_ACEOF
25867 #define HAVE_FCNTL_H 1
25874 for ac_func in clearenv
25876 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
25877 if test "x$ac_cv_func_clearenv" = xyes; then :
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_CLEARENV 1
25886 # Checks for structures and compiler characteristics.
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25888 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25889 if ${ac_cv_c_const+:} false; then :
25890 $as_echo_n "(cached) " >&6
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h. */
25899 #ifndef __cplusplus
25900 /* Ultrix mips cc rejects this sort of thing. */
25901 typedef int charset[2];
25902 const charset cs = { 0, 0 };
25903 /* SunOS 4.1.1 cc rejects this. */
25904 char const *const *pcpcc;
25906 /* NEC SVR4.0.2 mips cc rejects this. */
25907 struct point {int x, y;};
25908 static struct point const zero = {0,0};
25909 /* AIX XL C 1.02.0.0 rejects this.
25910 It does not let you subtract one const X* pointer from another in
25911 an arm of an if-expression whose if-part is not a constant
25913 const char *g = "string";
25914 pcpcc = &g + (g ? g-g : 0);
25915 /* HPUX 7.0 cc rejects these. */
25917 ppc = (char**) pcpcc;
25918 pcpcc = (char const *const *) ppc;
25919 { /* SCO 3.2v4 cc rejects this sort of thing. */
25922 char const *s = 0 ? (char *) 0 : (char const *) 0;
25927 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25928 int x[] = {25, 17};
25929 const int *foo = &x[0];
25932 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25933 typedef const int *iptr;
25937 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25938 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25939 struct s { int j; const int *ap[3]; } bx;
25940 struct s *b = &bx; b->j = 5;
25942 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25943 const int foo = 10;
25944 if (!foo) return 0;
25946 return !cs[0] && !zero.x;
25953 if ac_fn_c_try_compile "$LINENO"; then :
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25961 $as_echo "$ac_cv_c_const" >&6; }
25962 if test $ac_cv_c_const = no; then
25964 $as_echo "#define const /**/" >>confdefs.h
25968 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25969 if test "x$ac_cv_type_pid_t" = xyes; then :
25973 cat >>confdefs.h <<_ACEOF
25979 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25980 if test "x$ac_cv_type_size_t" = xyes; then :
25984 cat >>confdefs.h <<_ACEOF
25985 #define size_t unsigned int
25991 # We must have fork(2) support.
25992 for ac_header in vfork.h
25994 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25995 if test "x$ac_cv_header_vfork_h" = xyes; then :
25996 cat >>confdefs.h <<_ACEOF
25997 #define HAVE_VFORK_H 1
26004 for ac_func in fork vfork
26006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26009 cat >>confdefs.h <<_ACEOF
26010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26016 if test "x$ac_cv_func_fork" = xyes; then
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
26018 $as_echo_n "checking for working fork... " >&6; }
26019 if ${ac_cv_func_fork_works+:} false; then :
26020 $as_echo_n "(cached) " >&6
26022 if test "$cross_compiling" = yes; then :
26023 ac_cv_func_fork_works=cross
26025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h. */
26027 $ac_includes_default
26032 /* By Ruediger Kuhlmann. */
26033 return fork () < 0;
26039 if ac_fn_c_try_run "$LINENO"; then :
26040 ac_cv_func_fork_works=yes
26042 ac_cv_func_fork_works=no
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26045 conftest.$ac_objext conftest.beam conftest.$ac_ext
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
26050 $as_echo "$ac_cv_func_fork_works" >&6; }
26053 ac_cv_func_fork_works=$ac_cv_func_fork
26055 if test "x$ac_cv_func_fork_works" = xcross; then
26057 *-*-amigaos* | *-*-msdosdjgpp*)
26058 # Override, as these systems have only a dummy fork() stub
26059 ac_cv_func_fork_works=no
26062 ac_cv_func_fork_works=yes
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26066 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26068 ac_cv_func_vfork_works=$ac_cv_func_vfork
26069 if test "x$ac_cv_func_vfork" = xyes; then
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
26071 $as_echo_n "checking for working vfork... " >&6; }
26072 if ${ac_cv_func_vfork_works+:} false; then :
26073 $as_echo_n "(cached) " >&6
26075 if test "$cross_compiling" = yes; then :
26076 ac_cv_func_vfork_works=cross
26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h. */
26080 /* Thanks to Paul Eggert for this test. */
26081 $ac_includes_default
26082 #include <sys/wait.h>
26083 #ifdef HAVE_VFORK_H
26084 # include <vfork.h>
26086 /* On some sparc systems, changes by the child to local and incoming
26087 argument registers are propagated back to the parent. The compiler
26088 is told about this with #include <vfork.h>, but some compilers
26089 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26090 static variable whose address is put into a register that is
26091 clobbered by the vfork. */
26094 sparc_address_test (int arg)
26096 sparc_address_test (arg) int arg;
26099 static pid_t child;
26117 pid_t parent = getpid ();
26120 sparc_address_test (0);
26125 /* Here is another test for sparc vfork register problems. This
26126 test uses lots of local variables, at least as many local
26127 variables as main has allocated so far including compiler
26128 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26129 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26130 reuse the register of parent for one of the local variables,
26131 since it will think that parent can't possibly be used any more
26132 in this routine. Assigning to the local variable will thus
26133 munge parent in the parent process. */
26135 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26136 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26137 /* Convince the compiler that p..p7 are live; otherwise, it might
26138 use the same hardware register for all 8 local variables. */
26139 if (p != p1 || p != p2 || p != p3 || p != p4
26140 || p != p5 || p != p6 || p != p7)
26143 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26144 from child file descriptors. If the child closes a descriptor
26145 before it execs or exits, this munges the parent's descriptor
26146 as well. Test for this by closing stdout in the child. */
26147 _exit(close(fileno(stdout)) != 0);
26152 while (wait(&status) != child)
26155 /* Was there some problem with vforking? */
26158 /* Did the child fail? (This shouldn't happen.) */
26161 /* Did the vfork/compiler bug occur? */
26162 || parent != getpid()
26164 /* Did the file descriptor bug occur? */
26165 || fstat(fileno(stdout), &st) != 0
26170 if ac_fn_c_try_run "$LINENO"; then :
26171 ac_cv_func_vfork_works=yes
26173 ac_cv_func_vfork_works=no
26175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26176 conftest.$ac_objext conftest.beam conftest.$ac_ext
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
26181 $as_echo "$ac_cv_func_vfork_works" >&6; }
26184 if test "x$ac_cv_func_fork_works" = xcross; then
26185 ac_cv_func_vfork_works=$ac_cv_func_vfork
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26187 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26190 if test "x$ac_cv_func_vfork_works" = xyes; then
26192 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
26196 $as_echo "#define vfork fork" >>confdefs.h
26199 if test "x$ac_cv_func_fork_works" = xyes; then
26201 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
26205 if test "x$ac_cv_func_fork_works" != xyes; then
26206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26208 as_fn_error $? "cannot use libpipeline on systems without fork
26209 See \`config.log' for more details" "$LINENO" 5; }
26212 # Check for socketpair(2) as fast replacement for pipe(2).
26213 # Check whether --enable-socketpair-pipe was given.
26214 if test "${enable_socketpair_pipe+set}" = set; then :
26215 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
26218 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
26219 if ${pipeline_cv_socketpair_pipe+:} false; then :
26220 $as_echo_n "(cached) " >&6
26223 if test "$cross_compiling" = yes; then :
26224 pipeline_cv_socketpair_pipe=no
26226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h. */
26230 #include <netinet/in.h>
26231 #include <signal.h>
26232 #include <sys/socket.h>
26233 #include <sys/types.h>
26234 #include <sys/wait.h>
26235 #include <unistd.h>
26243 static void sigpipe(int sig)
26250 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
26254 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26256 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26258 if ((pid = fork()) < 0)
26263 if (read(sfd[0],buf,sizeof(buf)) < 0)
26267 write(sfd[1],test,sizeof(test) - 1);
26271 signal(SIGPIPE, sigpipe);
26272 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26274 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26277 write(sfd[1],test,sizeof(test) - 1);
26281 if ac_fn_c_try_run "$LINENO"; then :
26282 pipeline_cv_socketpair_pipe=yes
26284 pipeline_cv_socketpair_pipe=no
26286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26287 conftest.$ac_objext conftest.beam conftest.$ac_ext
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
26294 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
26295 if test "$pipeline_cv_socketpair_pipe" = yes; then
26297 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
26301 if test "$pipeline_cv_socketpair_pipe" = yes; then
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
26303 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
26304 if ${pipeline_cv_socketpair_mode+:} false; then :
26305 $as_echo_n "(cached) " >&6
26308 if test "$cross_compiling" = yes; then :
26309 pipeline_cv_socketpair_mode=no
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26315 #include <netinet/in.h>
26316 #include <sys/stat.h>
26317 #include <sys/socket.h>
26318 #include <sys/types.h>
26319 #include <unistd.h>
26331 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26333 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26335 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26337 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
26339 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
26341 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26343 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
26348 if ac_fn_c_try_run "$LINENO"; then :
26349 pipeline_cv_socketpair_mode=yes
26351 pipeline_cv_socketpair_mode=no
26353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26354 conftest.$ac_objext conftest.beam conftest.$ac_ext
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
26361 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
26362 if test "$pipeline_cv_socketpair_mode" = yes; then
26364 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
26375 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
26377 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
26379 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
26381 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
26383 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
26385 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
26387 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
26389 cat >confcache <<\_ACEOF
26390 # This file is a shell script that caches the results of configure
26391 # tests run on this system so they can be shared between configure
26392 # scripts and configure runs, see configure's option --config-cache.
26393 # It is not useful on other systems. If it contains results you don't
26394 # want to keep, you may remove or edit it.
26396 # config.status only pays attention to the cache file if you give it
26397 # the --recheck option to rerun configure.
26399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26401 # following values.
26405 # The following way of writing the cache mishandles newlines in values,
26406 # but we know of no workaround that is simple, portable, and efficient.
26407 # So, we kill variables containing newlines.
26408 # Ultrix sh set writes to stderr and can't be redirected directly,
26409 # and sets the high bit in the cache file unless we assign to the vars.
26411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26412 eval ac_val=\$$ac_var
26416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26420 _ | IFS | as_nl) ;; #(
26421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26422 *) { eval $ac_var=; unset $ac_var;} ;;
26428 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26429 *${as_nl}ac_space=\ *)
26430 # `set' does not quote correctly, so add quotes: double-quote
26431 # substitution turns \\\\ into \\, and sed turns \\ into \.
26434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26437 # `set' quotes correctly as required by POSIX, so do not add quotes.
26438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26452 if test -w "$cache_file"; then
26453 if test "x$cache_file" != "x/dev/null"; then
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26455 $as_echo "$as_me: updating cache $cache_file" >&6;}
26456 if test ! -f "$cache_file" || test -h "$cache_file"; then
26457 cat confcache >"$cache_file"
26459 case $cache_file in #(
26461 mv -f confcache "$cache_file"$$ &&
26462 mv -f "$cache_file"$$ "$cache_file" ;; #(
26464 mv -f confcache "$cache_file" ;;
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26476 # Let make expand exec_prefix.
26477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26479 DEFS=-DHAVE_CONFIG_H
26484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26485 # 1. Remove the extension, and $U if already installed.
26486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26487 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26489 # will be set to the directory where LIBOBJS objects are built.
26490 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26491 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26493 LIBOBJS=$ac_libobjs
26495 LTLIBOBJS=$ac_ltlibobjs
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26499 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26500 if test -n "$am_sleep_pid"; then
26501 # Hide warnings about reused PIDs.
26502 wait $am_sleep_pid 2>/dev/null
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26505 $as_echo "done" >&6; }
26506 if test -n "$EXEEXT"; then
26508 am__EXEEXT_FALSE='#'
26510 am__EXEEXT_TRUE='#'
26514 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26515 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26519 as_fn_error $? "conditional \"AMDEP\" was never defined.
26520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26523 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26526 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26527 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26530 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
26531 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
26532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26534 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26535 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
26536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26538 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26539 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26542 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
26543 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
26544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26546 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
26547 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
26548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26550 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26551 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26554 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26555 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26558 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26559 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26562 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26563 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26570 if test -n "$gl_LIBOBJS"; then
26571 # Remove the extension.
26572 sed_drop_objext='s/\.o$//;s/\.obj$//'
26573 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26574 gl_libobjs="$gl_libobjs $i.$ac_objext"
26575 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26578 gl_LIBOBJS=$gl_libobjs
26580 gl_LTLIBOBJS=$gl_ltlibobjs
26586 if test -n "$gltests_LIBOBJS"; then
26587 # Remove the extension.
26588 sed_drop_objext='s/\.o$//;s/\.obj$//'
26589 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26590 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26591 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26594 gltests_LIBOBJS=$gltests_libobjs
26596 gltests_LTLIBOBJS=$gltests_ltlibobjs
26600 : "${CONFIG_STATUS=./config.status}"
26602 ac_clean_files_save=$ac_clean_files
26603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26609 # Generated by $as_me.
26610 # Run this file to recreate the current configuration.
26611 # Compiler output produced by configure, useful for debugging
26612 # configure, is in config.log if it exists.
26615 ac_cs_recheck=false
26618 SHELL=\${CONFIG_SHELL-$SHELL}
26621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26622 ## -------------------- ##
26623 ## M4sh Initialization. ##
26624 ## -------------------- ##
26626 # Be more Bourne compatible
26627 DUALCASE=1; export DUALCASE # for MKS sh
26628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26632 # is contrary to our usage. Disable this feature.
26633 alias -g '${1+"$@"}'='"$@"'
26634 setopt NO_GLOB_SUBST
26636 case `(set -o) 2>/dev/null` in #(
26648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26652 # Prefer a ksh shell builtin over an external printf program on Solaris,
26653 # but without wasting forks for bash or zsh.
26654 if test -z "$BASH_VERSION$ZSH_VERSION" \
26655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26656 as_echo='print -r --'
26657 as_echo_n='print -rn --'
26658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26659 as_echo='printf %s\n'
26660 as_echo_n='printf %s'
26662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26664 as_echo_n='/usr/ucb/echo -n'
26666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26667 as_echo_n_body='eval
26671 expr "X$arg" : "X\\(.*\\)$as_nl";
26672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26676 export as_echo_n_body
26677 as_echo_n='sh -c $as_echo_n_body as_echo'
26679 export as_echo_body
26680 as_echo='sh -c $as_echo_body as_echo'
26683 # The user is always right.
26684 if test "${PATH_SEPARATOR+set}" != set; then
26686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26694 # We need space, tab and new line, in precisely that order. Quoting is
26695 # there to prevent editors from complaining about space-tab.
26696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26697 # splitting by setting IFS to empty value.)
26700 # Find who we are. Look in the path if we contain no directory separator.
26703 *[\\/]* ) as_myself=$0 ;;
26704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26705 for as_dir in $PATH
26708 test -z "$as_dir" && as_dir=.
26709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26715 # We did not find ourselves, most probably we were run as `sh COMMAND'
26716 # in which case we are not to be found in the path.
26717 if test "x$as_myself" = x; then
26720 if test ! -f "$as_myself"; then
26721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26725 # Unset variables that we do not need and which cause bugs (e.g. in
26726 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26727 # suppresses any "Segmentation fault" message there. '((' could
26728 # trigger a bug in pdksh 5.2.14.
26729 for as_var in BASH_ENV ENV MAIL MAILPATH
26730 do eval test x\${$as_var+set} = xset \
26731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26747 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26748 # ----------------------------------------
26749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26751 # script with STATUS, using 1 if that was 0.
26754 as_status=$1; test $as_status -eq 0 && as_status=1
26756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26759 $as_echo "$as_me: error: $2" >&2
26760 as_fn_exit $as_status
26764 # as_fn_set_status STATUS
26765 # -----------------------
26766 # Set $? to STATUS, without forking.
26767 as_fn_set_status ()
26770 } # as_fn_set_status
26772 # as_fn_exit STATUS
26773 # -----------------
26774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26778 as_fn_set_status $1
26784 # Portably unset VAR.
26787 { eval $1=; unset $1;}
26789 as_unset=as_fn_unset
26790 # as_fn_append VAR VALUE
26791 # ----------------------
26792 # Append the text in VALUE to the end of the definition contained in VAR. Take
26793 # advantage of any shell optimizations that allow amortized linear growth over
26794 # repeated appends, instead of the typical quadratic growth present in naive
26796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26797 eval 'as_fn_append ()
26808 # as_fn_arith ARG...
26809 # ------------------
26810 # Perform arithmetic evaluation on the ARGs, and store the result in the
26811 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26812 # must be portable across $(()) and expr.
26813 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26814 eval 'as_fn_arith ()
26821 as_val=`expr "$@" || test $? -eq 1`
26826 if expr a : '\(a\)' >/dev/null 2>&1 &&
26827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26833 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26834 as_basename=basename
26839 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26845 as_me=`$as_basename -- "$0" ||
26846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26847 X"$0" : 'X\(//\)$' \| \
26848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26850 sed '/^.*\/\([^/][^/]*\)\/*$/{
26864 # Avoid depending upon Character Ranges.
26865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26868 as_cr_digits='0123456789'
26869 as_cr_alnum=$as_cr_Letters$as_cr_digits
26871 ECHO_C= ECHO_N= ECHO_T=
26872 case `echo -n x` in #(((((
26874 case `echo 'xy\c'` in
26875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26884 rm -f conf$$ conf$$.exe conf$$.file
26885 if test -d conf$$.dir; then
26886 rm -f conf$$.dir/conf$$.file
26889 mkdir conf$$.dir 2>/dev/null
26891 if (echo >conf$$.file) 2>/dev/null; then
26892 if ln -s conf$$.file conf$$ 2>/dev/null; then
26894 # ... but there are two gotchas:
26895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26897 # In both cases, we have to default to `cp -pR'.
26898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26900 elif ln conf$$.file conf$$ 2>/dev/null; then
26908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26909 rmdir conf$$.dir 2>/dev/null
26914 # Create "$as_dir" as a directory, including parents if necessary.
26919 -*) as_dir=./$as_dir;;
26921 test -d "$as_dir" || eval $as_mkdir_p || {
26925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26926 *) as_qdir=$as_dir;;
26928 as_dirs="'$as_qdir' $as_dirs"
26929 as_dir=`$as_dirname -- "$as_dir" ||
26930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26931 X"$as_dir" : 'X\(//\)[^/]' \| \
26932 X"$as_dir" : 'X\(//\)$' \| \
26933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26934 $as_echo X"$as_dir" |
26935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26939 /^X\(\/\/\)[^/].*/{
26952 test -d "$as_dir" && break
26954 test -z "$as_dirs" || eval "mkdir $as_dirs"
26955 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26959 if mkdir -p . 2>/dev/null; then
26960 as_mkdir_p='mkdir -p "$as_dir"'
26962 test -d ./-p && rmdir ./-p
26967 # as_fn_executable_p FILE
26968 # -----------------------
26969 # Test if FILE is an executable regular file.
26970 as_fn_executable_p ()
26972 test -f "$1" && test -x "$1"
26973 } # as_fn_executable_p
26974 as_test_x='test -x'
26975 as_executable_p=as_fn_executable_p
26977 # Sed expression to map a string onto a valid CPP name.
26978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26980 # Sed expression to map a string onto a valid variable name.
26981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26985 ## ----------------------------------- ##
26986 ## Main body of $CONFIG_STATUS script. ##
26987 ## ----------------------------------- ##
26989 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26992 # Save the log message, to keep $0 and so on meaningful, and to
26993 # report actual input values of CONFIG_FILES etc. instead of their
26994 # values after options handling.
26996 This file was extended by libpipeline $as_me 1.4.0, which was
26997 generated by GNU Autoconf 2.69. Invocation command line was
26999 CONFIG_FILES = $CONFIG_FILES
27000 CONFIG_HEADERS = $CONFIG_HEADERS
27001 CONFIG_LINKS = $CONFIG_LINKS
27002 CONFIG_COMMANDS = $CONFIG_COMMANDS
27005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27010 case $ac_config_files in *"
27011 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27014 case $ac_config_headers in *"
27015 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27020 # Files that config.status was made for.
27021 config_files="$ac_config_files"
27022 config_headers="$ac_config_headers"
27023 config_commands="$ac_config_commands"
27027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27029 \`$as_me' instantiates files and other configuration actions
27030 from templates according to the current configuration. Unless the files
27031 and actions are specified as TAGs, all are instantiated by default.
27033 Usage: $0 [OPTION]... [TAG]...
27035 -h, --help print this help, then exit
27036 -V, --version print version number and configuration settings, then exit
27037 --config print configuration, then exit
27038 -q, --quiet, --silent
27039 do not print progress messages
27040 -d, --debug don't remove temporary files
27041 --recheck update $as_me by reconfiguring in the same conditions
27042 --file=FILE[:TEMPLATE]
27043 instantiate the configuration file FILE
27044 --header=FILE[:TEMPLATE]
27045 instantiate the configuration header FILE
27047 Configuration files:
27050 Configuration headers:
27053 Configuration commands:
27056 Report bugs to <cjwatson@debian.org>."
27059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27060 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27062 libpipeline config.status 1.4.0
27063 configured by $0, generated by GNU Autoconf 2.69,
27064 with options \\"\$ac_cs_config\\"
27066 Copyright (C) 2012 Free Software Foundation, Inc.
27067 This config.status script is free software; the Free Software Foundation
27068 gives unlimited permission to copy, distribute and modify it."
27075 test -n "\$AWK" || AWK=awk
27078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27079 # The default lists apply if the user does not specify any file.
27085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27102 # Handling of the options.
27103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27105 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27106 $as_echo "$ac_cs_version"; exit ;;
27107 --config | --confi | --conf | --con | --co | --c )
27108 $as_echo "$ac_cs_config"; exit ;;
27109 --debug | --debu | --deb | --de | --d | -d )
27111 --file | --fil | --fi | --f )
27114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27115 '') as_fn_error $? "missing file argument" ;;
27117 as_fn_append CONFIG_FILES " '$ac_optarg'"
27118 ac_need_defaults=false;;
27119 --header | --heade | --head | --hea )
27122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27124 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27125 ac_need_defaults=false;;
27127 # Conflict between --help and --header
27128 as_fn_error $? "ambiguous option: \`$1'
27129 Try \`$0 --help' for more information.";;
27130 --help | --hel | -h )
27131 $as_echo "$ac_cs_usage"; exit ;;
27132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27136 # This is an error.
27137 -*) as_fn_error $? "unrecognized option: \`$1'
27138 Try \`$0 --help' for more information." ;;
27140 *) as_fn_append ac_config_targets " $1"
27141 ac_need_defaults=false ;;
27147 ac_configure_extra_args=
27149 if $ac_cs_silent; then
27151 ac_configure_extra_args="$ac_configure_extra_args --silent"
27155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27156 if \$ac_cs_recheck; then
27157 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27160 CONFIG_SHELL='$SHELL'
27161 export CONFIG_SHELL
27166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27171 ## Running $as_me. ##
27177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27181 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27184 # The HP-UX ksh and POSIX shell print the target directory to stdout
27185 # if CDPATH is set.
27186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27188 sed_quote_subst='$sed_quote_subst'
27189 double_quote_subst='$double_quote_subst'
27190 delay_variable_subst='$delay_variable_subst'
27191 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27192 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27193 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27195 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27196 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27199 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27200 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27201 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27202 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27203 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27204 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27205 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27206 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27207 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27208 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27209 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27210 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27211 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27220 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27221 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27222 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27223 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27224 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27225 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27226 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27227 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27228 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27229 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27230 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27231 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27232 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27233 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27234 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27235 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27236 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27237 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27238 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27239 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27240 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27241 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27242 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27243 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27244 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27245 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27246 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27247 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"`'
27248 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27249 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27250 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27251 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27252 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27253 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27254 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27255 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27256 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27257 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27258 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27259 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27260 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27261 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27262 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27263 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27264 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27265 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27266 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27267 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27268 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27269 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27270 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27271 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27272 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27273 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27274 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27275 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27276 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27277 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27278 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27279 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27280 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27281 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27282 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27283 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27284 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27285 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27286 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27287 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27288 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27289 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27290 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27291 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27292 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27293 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27294 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27295 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27296 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27297 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27298 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27299 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27300 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27301 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27302 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27303 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27304 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27305 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27306 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27307 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27308 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27309 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27310 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27311 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27312 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27313 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27314 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27315 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27316 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27317 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27318 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27319 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27320 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27323 LTCFLAGS='$LTCFLAGS'
27324 compiler='$compiler_DEFAULT'
27326 # A function that is used when there is no print builtin or printf.
27327 func_fallback_echo ()
27329 eval 'cat <<_LTECHO_EOF
27334 # Quote evaled strings.
27349 deplibs_check_method \
27354 sharedlib_from_linklib_cmd \
27357 archiver_list_spec \
27363 lt_cv_sys_global_symbol_pipe \
27364 lt_cv_sys_global_symbol_to_cdecl \
27365 lt_cv_sys_global_symbol_to_c_name_address \
27366 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27367 nm_file_list_spec \
27368 lt_prog_compiler_no_builtin_flag \
27369 lt_prog_compiler_pic \
27370 lt_prog_compiler_wl \
27371 lt_prog_compiler_static \
27372 lt_cv_prog_compiler_c_o \
27381 export_dynamic_flag_spec \
27382 whole_archive_flag_spec \
27383 compiler_needs_object \
27385 allow_undefined_flag \
27386 no_undefined_flag \
27387 hardcode_libdir_flag_spec \
27388 hardcode_libdir_separator \
27392 variables_saved_for_relink \
27394 library_names_spec \
27396 install_override_mode \
27400 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27401 *[\\\\\\\`\\"\\\$]*)
27402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27410 # Double-quote double-evaled strings.
27411 for var in reload_cmds \
27412 old_postinstall_cmds \
27413 old_postuninstall_cmds \
27415 extract_expsyms_cmds \
27416 old_archive_from_new_cmds \
27417 old_archive_from_expsyms_cmds \
27419 archive_expsym_cmds \
27421 module_expsym_cmds \
27422 export_symbols_cmds \
27426 postuninstall_cmds \
27428 sys_lib_search_path_spec \
27429 sys_lib_dlsearch_path_spec; do
27430 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27431 *[\\\\\\\`\\"\\\$]*)
27432 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27435 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27440 ac_aux_dir='$ac_aux_dir'
27441 xsi_shell='$xsi_shell'
27442 lt_shell_append='$lt_shell_append'
27444 # See if we are running on zsh, and set the options which allow our
27445 # commands through without removal of \ escapes INIT.
27446 if test -n "\${ZSH_VERSION+set}" ; then
27447 setopt NO_GLOB_SUBST
27453 TIMESTAMP='$TIMESTAMP'
27462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27464 # Handling of arguments.
27465 for ac_config_target in $ac_config_targets
27467 case $ac_config_target in
27468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27470 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27472 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
27473 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27474 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
27475 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27476 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27478 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27483 # If the user did not use the arguments to specify the items to instantiate,
27484 # then the envvar interface is used. Set only those that are not.
27485 # We use the long form for the default assignment because of an extremely
27486 # bizarre bug on SunOS 4.1.3.
27487 if $ac_need_defaults; then
27488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27493 # Have a temporary directory for convenience. Make it in the build tree
27494 # simply because there is no reason against having it here, and in addition,
27495 # creating and moving files from /tmp can sometimes cause problems.
27496 # Hook for its removal unless debugging.
27497 # Note that there is a small window in which the directory will not be cleaned:
27498 # after its creation but before its name has been assigned to `$tmp'.
27502 trap 'exit_status=$?
27503 : "${ac_tmp:=$tmp}"
27504 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27506 trap 'as_fn_exit 1' 1 2 13 15
27508 # Create a (secure) tmp directory for tmp files.
27511 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27515 tmp=./conf$$-$RANDOM
27516 (umask 077 && mkdir "$tmp")
27517 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27520 # Set up the scripts for CONFIG_FILES section.
27521 # No need to generate them if there are no CONFIG_FILES.
27522 # This happens for instance with `./config.status config.h'.
27523 if test -n "$CONFIG_FILES"; then
27526 ac_cr=`echo X | tr X '\015'`
27527 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27528 # But we know of no other shell where ac_cr would be empty at this
27529 # point, so we can use a bashism as a fallback.
27530 if test "x$ac_cr" = x; then
27531 eval ac_cr=\$\'\\r\'
27533 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27534 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27537 ac_cs_awk_cr=$ac_cr
27540 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27545 echo "cat >conf$$subs.awk <<_ACEOF" &&
27546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27548 } >conf$$subs.sh ||
27549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27550 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27552 for ac_last_try in false false false false false :; do
27553 . ./conf$$subs.sh ||
27554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27557 if test $ac_delim_n = $ac_delim_num; then
27559 elif $ac_last_try; then
27560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27565 rm -f conf$$subs.sh
27567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27568 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27572 s/^/S["/; s/!.*/"]=/
27582 s/\(.\{148\}\)..*/\1/
27584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27596 s/\(.\{148\}\)..*/\1/
27598 s/["\\]/\\&/g; s/^/"/; s/$/"/
27602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27607 ' <conf$$subs.awk | sed '
27612 ' >>$CONFIG_STATUS || ac_write_fail=1
27613 rm -f conf$$subs.awk
27614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27617 for (key in S) S_is_set[key] = 1
27623 nfields = split(line, field, "@")
27625 len = length(field[1])
27626 for (i = 2; i < nfields; i++) {
27628 keylen = length(key)
27629 if (S_is_set[key]) {
27631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27632 len += length(value) + length(field[++i])
27643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27644 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27648 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27649 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27652 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27653 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27654 # trailing colons and then remove the whole line if VPATH becomes empty
27655 # (actually we leave an empty line to preserve line numbers).
27656 if test "x$srcdir" = x.; then
27657 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27676 fi # test -n "$CONFIG_FILES"
27678 # Set up the scripts for CONFIG_HEADERS section.
27679 # No need to generate them if there are no CONFIG_HEADERS.
27680 # This happens for instance with `./config.status Makefile'.
27681 if test -n "$CONFIG_HEADERS"; then
27682 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27686 # Transform confdefs.h into an awk script `defines.awk', embedded as
27687 # here-document in config.status, that substitutes the proper values into
27688 # config.h.in to produce config.h.
27690 # Create a delimiter string that does not exist in confdefs.h, to ease
27691 # handling of long lines.
27693 for ac_last_try in false false :; do
27694 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27695 if test -z "$ac_tt"; then
27697 elif $ac_last_try; then
27698 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27704 # For the awk script, D is an array of macro values keyed by name,
27705 # likewise P contains macro parameters if any. Preserve backslash
27706 # newline sequences.
27708 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27710 s/.\{148\}/&'"$ac_delim"'/g
27713 s/^[ ]*#[ ]*define[ ][ ]*/ /
27720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27727 D["\1"]=" \3\\\\\\n"\\/p
27729 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27734 s/.\{148\}/&'"$ac_delim"'/g
27739 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27742 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27744 ' <confdefs.h | sed '
27745 s/'"$ac_delim"'/"\\\
27746 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27749 for (key in D) D_is_set[key] = 1
27752 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27754 split(line, arg, " ")
27755 if (arg[1] == "#") {
27759 defundef = substr(arg[1], 2)
27762 split(mac1, mac2, "(") #)
27764 prefix = substr(line, 1, index(line, defundef) - 1)
27765 if (D_is_set[macro]) {
27766 # Preserve the white space surrounding the "#".
27767 print prefix "define", macro P[macro] D[macro]
27770 # Replace #undef with comments. This is necessary, for example,
27771 # in the case of _POSIX_SOURCE, which is predefined and required
27772 # on some systems where configure will not decide to define it.
27773 if (defundef == "undef") {
27774 print "/*", prefix defundef, macro, "*/"
27782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27783 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27784 fi # test -n "$CONFIG_HEADERS"
27787 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27792 :[FHLC]) ac_mode=$ac_tag; continue;;
27794 case $ac_mode$ac_tag in
27796 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27797 :[FH]-) ac_tag=-:-;;
27798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27815 -) ac_f="$ac_tmp/stdin";;
27816 *) # Look for the file first in the build tree, then in the source tree
27817 # (if the path is not absolute). The absolute path cannot be DOS-style,
27818 # because $ac_f cannot contain `:'.
27822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27824 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27827 as_fn_append ac_file_inputs " '$ac_f'"
27830 # Let's still pretend it is `configure' which instantiates (i.e., don't
27831 # use $as_me), people would be surprised to read:
27832 # /* config.h. Generated by config.status. */
27833 configure_input='Generated from '`
27834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27836 if test x"$ac_file" != x-; then
27837 configure_input="$ac_file. $configure_input"
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27839 $as_echo "$as_me: creating $ac_file" >&6;}
27841 # Neutralize special characters interpreted by sed in replacement strings.
27842 case $configure_input in #(
27843 *\&* | *\|* | *\\* )
27844 ac_sed_conf_input=`$as_echo "$configure_input" |
27845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27846 *) ac_sed_conf_input=$configure_input;;
27850 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27856 ac_dir=`$as_dirname -- "$ac_file" ||
27857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27858 X"$ac_file" : 'X\(//\)[^/]' \| \
27859 X"$ac_file" : 'X\(//\)$' \| \
27860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27861 $as_echo X"$ac_file" |
27862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27866 /^X\(\/\/\)[^/].*/{
27879 as_dir="$ac_dir"; as_fn_mkdir_p
27883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27886 # A ".." for each directory in $ac_dir_suffix.
27887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27888 case $ac_top_builddir_sub in
27889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27893 ac_abs_top_builddir=$ac_pwd
27894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27895 # for backward compatibility:
27896 ac_top_builddir=$ac_top_build_prefix
27899 .) # We are building in place.
27901 ac_top_srcdir=$ac_top_builddir_sub
27902 ac_abs_top_srcdir=$ac_pwd ;;
27903 [\\/]* | ?:[\\/]* ) # Absolute name.
27904 ac_srcdir=$srcdir$ac_dir_suffix;
27905 ac_top_srcdir=$srcdir
27906 ac_abs_top_srcdir=$srcdir ;;
27907 *) # Relative name.
27908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27909 ac_top_srcdir=$ac_top_build_prefix$srcdir
27910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27925 ac_MKDIR_P=$MKDIR_P
27927 [\\/$]* | ?:[\\/]* ) ;;
27928 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27933 # If the template does not know about datarootdir, expand it.
27934 # FIXME: This hack should be removed a few years after 2.60.
27935 ac_datarootdir_hack=; ac_datarootdir_seen=
27946 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27947 *datarootdir*) ac_datarootdir_seen=yes;;
27948 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27950 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953 ac_datarootdir_hack='
27954 s&@datadir@&$datadir&g
27955 s&@docdir@&$docdir&g
27956 s&@infodir@&$infodir&g
27957 s&@localedir@&$localedir&g
27958 s&@mandir@&$mandir&g
27959 s&\\\${datarootdir}&$datarootdir&g' ;;
27963 # Neutralize VPATH when `$srcdir' = `.'.
27964 # Shell code in configure.ac might set extrasub.
27965 # FIXME: do we really want to maintain this feature?
27966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27967 ac_sed_extra="$ac_vpsub
27970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27973 s|@configure_input@|$ac_sed_conf_input|;t t
27974 s&@top_builddir@&$ac_top_builddir_sub&;t t
27975 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27976 s&@srcdir@&$ac_srcdir&;t t
27977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27978 s&@top_srcdir@&$ac_top_srcdir&;t t
27979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27980 s&@builddir@&$ac_builddir&;t t
27981 s&@abs_builddir@&$ac_abs_builddir&;t t
27982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27983 s&@INSTALL@&$ac_INSTALL&;t t
27984 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27985 $ac_datarootdir_hack
27987 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27995 which seems to be undefined. Please make sure it is defined" >&5
27996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27997 which seems to be undefined. Please make sure it is defined" >&2;}
27999 rm -f "$ac_tmp/stdin"
28001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28010 if test x"$ac_file" != x-; then
28012 $as_echo "/* $configure_input */" \
28013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28014 } >"$ac_tmp/config.h" \
28015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28018 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28021 mv "$ac_tmp/config.h" "$ac_file" \
28022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28025 $as_echo "/* $configure_input */" \
28026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28027 || as_fn_error $? "could not create -" "$LINENO" 5
28029 # Compute "$ac_file"'s index in $config_headers.
28032 for _am_header in $config_headers :; do
28033 case $_am_header in
28034 $_am_arg | $_am_arg:* )
28037 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28040 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28041 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042 X"$_am_arg" : 'X\(//\)[^/]' \| \
28043 X"$_am_arg" : 'X\(//\)$' \| \
28044 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28045 $as_echo X"$_am_arg" |
28046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28050 /^X\(\/\/\)[^/].*/{
28062 s/.*/./; q'`/stamp-h$_am_stamp_count
28065 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28066 $as_echo "$as_me: executing $ac_file commands" >&6;}
28071 case $ac_file$ac_mode in
28072 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28073 # Older Autoconf quotes --file arguments for eval, but not when files
28074 # are listed without --file. Let's play safe and only enable the eval
28075 # if we detect the quoting.
28076 case $CONFIG_FILES in
28077 *\'*) eval set x "$CONFIG_FILES" ;;
28078 *) set x $CONFIG_FILES ;;
28083 # Strip MF so we end up with the name of the file.
28084 mf=`echo "$mf" | sed -e 's/:.*$//'`
28085 # Check whether this is an Automake generated Makefile or not.
28086 # We used to match only the files named 'Makefile.in', but
28087 # some people rename them; so instead we look at the file content.
28088 # Grep'ing the first line is not enough: some people post-process
28089 # each Makefile.in and add a new line on top of each file to say so.
28090 # Grep'ing the whole file is not good either: AIX grep has a line
28091 # limit of 2048, but all sed's we know have understand at least 4000.
28092 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28093 dirpart=`$as_dirname -- "$mf" ||
28094 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28095 X"$mf" : 'X\(//\)[^/]' \| \
28096 X"$mf" : 'X\(//\)$' \| \
28097 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28103 /^X\(\/\/\)[^/].*/{
28119 # Extract the definition of DEPDIR, am__include, and am__quote
28120 # from the Makefile without running 'make'.
28121 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28122 test -z "$DEPDIR" && continue
28123 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28124 test -z "$am__include" && continue
28125 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28126 # Find all dependency output files, they are included files with
28127 # $(DEPDIR) in their names. We invoke sed twice because it is the
28128 # simplest approach to changing $(DEPDIR) to its actual value in the
28130 for file in `sed -n "
28131 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28132 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28133 # Make sure the directory exists.
28134 test -f "$dirpart/$file" && continue
28135 fdir=`$as_dirname -- "$file" ||
28136 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28137 X"$file" : 'X\(//\)[^/]' \| \
28138 X"$file" : 'X\(//\)$' \| \
28139 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28140 $as_echo X"$file" |
28141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28145 /^X\(\/\/\)[^/].*/{
28158 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28159 # echo "creating $dirpart/$file"
28160 echo '# dummy' > "$dirpart/$file"
28167 # See if we are running on zsh, and set the options which allow our
28168 # commands through without removal of \ escapes.
28169 if test -n "${ZSH_VERSION+set}" ; then
28170 setopt NO_GLOB_SUBST
28173 cfgfile="${ofile}T"
28174 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28177 cat <<_LT_EOF >> "$cfgfile"
28180 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28181 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28183 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28185 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28186 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28188 # Written by Gordon Matzigkeit, 1996
28190 # This file is part of GNU Libtool.
28192 # GNU Libtool is free software; you can redistribute it and/or
28193 # modify it under the terms of the GNU General Public License as
28194 # published by the Free Software Foundation; either version 2 of
28195 # the License, or (at your option) any later version.
28197 # As a special exception to the GNU General Public License,
28198 # if you distribute this file as part of a program or library that
28199 # is built using GNU Libtool, you may include this file under the
28200 # same distribution terms that you use for the rest of that program.
28202 # GNU Libtool is distributed in the hope that it will be useful,
28203 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28205 # GNU General Public License for more details.
28207 # You should have received a copy of the GNU General Public License
28208 # along with GNU Libtool; see the file COPYING. If not, a copy
28209 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28210 # obtained by writing to the Free Software Foundation, Inc.,
28211 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28214 # The names of the tagged configurations supported by this script.
28217 # ### BEGIN LIBTOOL CONFIG
28219 # Which release of libtool.m4 was used?
28220 macro_version=$macro_version
28221 macro_revision=$macro_revision
28223 # Whether or not to build static libraries.
28224 build_old_libs=$enable_static
28226 # Whether or not to build shared libraries.
28227 build_libtool_libs=$enable_shared
28229 # What type of objects to build.
28232 # Whether or not to optimize for fast installation.
28233 fast_install=$enable_fast_install
28235 # Shell to use when invoking shell scripts.
28238 # An echo program that protects backslashes.
28241 # The PATH separator for the build system.
28242 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28245 host_alias=$host_alias
28249 # The build system.
28250 build_alias=$build_alias
28254 # A sed program that does not truncate output.
28257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28258 Xsed="\$SED -e 1s/^X//"
28260 # A grep program that handles long lines.
28266 # A literal string matcher.
28269 # A BSD- or MS-compatible name lister.
28272 # Whether we need soft or hard links.
28275 # What is the maximum length of a command?
28276 max_cmd_len=$max_cmd_len
28278 # Object file suffix (normally "o").
28281 # Executable file suffix (normally "").
28284 # whether the shell understands "unset".
28287 # turn spaces into newlines.
28290 # turn newlines into spaces.
28293 # convert \$build file names to \$host format.
28294 to_host_file_cmd=$lt_cv_to_host_file_cmd
28296 # convert \$build files to toolchain format.
28297 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28299 # An object symbol dumper.
28300 OBJDUMP=$lt_OBJDUMP
28302 # Method to check whether dependent libraries are shared objects.
28303 deplibs_check_method=$lt_deplibs_check_method
28305 # Command to use when deplibs_check_method = "file_magic".
28306 file_magic_cmd=$lt_file_magic_cmd
28308 # How to find potential files when deplibs_check_method = "file_magic".
28309 file_magic_glob=$lt_file_magic_glob
28311 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28312 want_nocaseglob=$lt_want_nocaseglob
28314 # DLL creation program.
28315 DLLTOOL=$lt_DLLTOOL
28317 # Command to associate shared and link libraries.
28318 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28323 # Flags to create an archive.
28324 AR_FLAGS=$lt_AR_FLAGS
28326 # How to feed a file listing to the archiver.
28327 archiver_list_spec=$lt_archiver_list_spec
28329 # A symbol stripping program.
28332 # Commands used to install an old-style archive.
28334 old_postinstall_cmds=$lt_old_postinstall_cmds
28335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28337 # Whether to use a lock for old archive extraction.
28338 lock_old_archive_extraction=$lock_old_archive_extraction
28343 # LTCC compiler flags.
28344 LTCFLAGS=$lt_CFLAGS
28346 # Take the output of nm and produce a listing of raw symbols and C names.
28347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28349 # Transform the output of nm in a proper C declaration.
28350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28352 # Transform the output of nm in a C name address pair.
28353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28355 # Transform the output of nm in a C name address pair when lib prefix is needed.
28356 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28358 # Specify filename containing input files for \$NM.
28359 nm_file_list_spec=$lt_nm_file_list_spec
28361 # The root where to search for dependent libraries,and in which our libraries should be installed.
28362 lt_sysroot=$lt_sysroot
28364 # The name of the directory that contains temporary libtool files.
28367 # Used to examine libraries when file_magic_cmd begins with "file".
28368 MAGIC_CMD=$MAGIC_CMD
28370 # Must we lock files when doing compilation?
28371 need_locks=$lt_need_locks
28374 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28376 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28377 DSYMUTIL=$lt_DSYMUTIL
28379 # Tool to change global to local symbols on Mac OS X.
28382 # Tool to manipulate fat objects and archives on Mac OS X.
28385 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28388 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28389 OTOOL64=$lt_OTOOL64
28391 # Old archive suffix (normally "a").
28394 # Shared library suffix (normally ".so").
28395 shrext_cmds=$lt_shrext_cmds
28397 # The commands to extract the exported symbol list from a shared archive.
28398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28400 # Variables whose values should be saved in libtool wrapper scripts and
28401 # restored at link time.
28402 variables_saved_for_relink=$lt_variables_saved_for_relink
28404 # Do we need the "lib" prefix for modules?
28405 need_lib_prefix=$need_lib_prefix
28407 # Do we need a version for libraries?
28408 need_version=$need_version
28410 # Library versioning type.
28411 version_type=$version_type
28413 # Shared library runtime path variable.
28414 runpath_var=$runpath_var
28416 # Shared library path variable.
28417 shlibpath_var=$shlibpath_var
28419 # Is shlibpath searched before the hard-coded library search path?
28420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28422 # Format of library name prefix.
28423 libname_spec=$lt_libname_spec
28425 # List of archive names. First name is the real one, the rest are links.
28426 # The last name is the one that the linker finds with -lNAME
28427 library_names_spec=$lt_library_names_spec
28429 # The coded name of the library, if different from the real name.
28430 soname_spec=$lt_soname_spec
28432 # Permission mode override for installation of shared libraries.
28433 install_override_mode=$lt_install_override_mode
28435 # Command to use after installation of a shared archive.
28436 postinstall_cmds=$lt_postinstall_cmds
28438 # Command to use after uninstallation of a shared archive.
28439 postuninstall_cmds=$lt_postuninstall_cmds
28441 # Commands used to finish a libtool library installation in a directory.
28442 finish_cmds=$lt_finish_cmds
28444 # As "finish_cmds", except a single script fragment to be evaled but
28446 finish_eval=$lt_finish_eval
28448 # Whether we should hardcode library paths into libraries.
28449 hardcode_into_libs=$hardcode_into_libs
28451 # Compile-time system search path for libraries.
28452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28454 # Run-time system search path for libraries.
28455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28457 # Whether dlopen is supported.
28458 dlopen_support=$enable_dlopen
28460 # Whether dlopen of programs is supported.
28461 dlopen_self=$enable_dlopen_self
28463 # Whether dlopen of statically linked programs is supported.
28464 dlopen_self_static=$enable_dlopen_self_static
28466 # Commands to strip libraries.
28467 old_striplib=$lt_old_striplib
28468 striplib=$lt_striplib
28471 # The linker used to build libraries.
28474 # How to create reloadable object files.
28475 reload_flag=$lt_reload_flag
28476 reload_cmds=$lt_reload_cmds
28478 # Commands used to build an old-style archive.
28479 old_archive_cmds=$lt_old_archive_cmds
28481 # A language specific compiler.
28484 # Is the compiler the GNU compiler?
28487 # Compiler flag to turn off builtin functions.
28488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28490 # Additional compiler flags for building library objects.
28491 pic_flag=$lt_lt_prog_compiler_pic
28493 # How to pass a linker flag through the compiler.
28494 wl=$lt_lt_prog_compiler_wl
28496 # Compiler flag to prevent dynamic linking.
28497 link_static_flag=$lt_lt_prog_compiler_static
28499 # Does compiler simultaneously support -c and -o options?
28500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28502 # Whether or not to add -lc for building shared libraries.
28503 build_libtool_need_lc=$archive_cmds_need_lc
28505 # Whether or not to disallow shared libs when runtime libs are static.
28506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28508 # Compiler flag to allow reflexive dlopens.
28509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28511 # Compiler flag to generate shared objects directly from archives.
28512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28514 # Whether the compiler copes with passing no objects directly.
28515 compiler_needs_object=$lt_compiler_needs_object
28517 # Create an old-style archive from a shared archive.
28518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28520 # Create a temporary old-style archive to link instead of a shared archive.
28521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28523 # Commands used to build a shared archive.
28524 archive_cmds=$lt_archive_cmds
28525 archive_expsym_cmds=$lt_archive_expsym_cmds
28527 # Commands used to build a loadable module if different from building
28528 # a shared archive.
28529 module_cmds=$lt_module_cmds
28530 module_expsym_cmds=$lt_module_expsym_cmds
28532 # Whether we are building with GNU ld or not.
28533 with_gnu_ld=$lt_with_gnu_ld
28535 # Flag that allows shared libraries with undefined symbols to be built.
28536 allow_undefined_flag=$lt_allow_undefined_flag
28538 # Flag that enforces no undefined symbols.
28539 no_undefined_flag=$lt_no_undefined_flag
28541 # Flag to hardcode \$libdir into a binary during linking.
28542 # This must work even if \$libdir does not exist
28543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28545 # Whether we need a single "-rpath" flag with a separated argument.
28546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28549 # DIR into the resulting binary.
28550 hardcode_direct=$hardcode_direct
28552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28553 # DIR into the resulting binary and the resulting library dependency is
28554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28555 # library is relocated.
28556 hardcode_direct_absolute=$hardcode_direct_absolute
28558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28559 # into the resulting binary.
28560 hardcode_minus_L=$hardcode_minus_L
28562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28563 # into the resulting binary.
28564 hardcode_shlibpath_var=$hardcode_shlibpath_var
28566 # Set to "yes" if building a shared library automatically hardcodes DIR
28567 # into the library and all subsequent libraries and executables linked
28569 hardcode_automatic=$hardcode_automatic
28571 # Set to yes if linker adds runtime paths of dependent libraries
28572 # to runtime path list.
28573 inherit_rpath=$inherit_rpath
28575 # Whether libtool must link a program against all its dependency libraries.
28576 link_all_deplibs=$link_all_deplibs
28578 # Set to "yes" if exported symbols are required.
28579 always_export_symbols=$always_export_symbols
28581 # The commands to list exported symbols.
28582 export_symbols_cmds=$lt_export_symbols_cmds
28584 # Symbols that should not be listed in the preloaded symbols.
28585 exclude_expsyms=$lt_exclude_expsyms
28587 # Symbols that must always be exported.
28588 include_expsyms=$lt_include_expsyms
28590 # Commands necessary for linking programs (against libraries) with templates.
28591 prelink_cmds=$lt_prelink_cmds
28593 # Commands necessary for finishing linking programs.
28594 postlink_cmds=$lt_postlink_cmds
28596 # Specify filename containing input files.
28597 file_list_spec=$lt_file_list_spec
28599 # How to hardcode a shared library path into an executable.
28600 hardcode_action=$hardcode_action
28602 # ### END LIBTOOL CONFIG
28608 cat <<\_LT_EOF >> "$cfgfile"
28609 # AIX sometimes has problems with the GCC collect2 program. For some
28610 # reason, if we set the COLLECT_NAMES environment variable, the problems
28611 # vanish in a puff of smoke.
28612 if test "X${COLLECT_NAMES+set}" != Xset; then
28614 export COLLECT_NAMES
28621 ltmain="$ac_aux_dir/ltmain.sh"
28624 # We use sed instead of cat because bash on DJGPP gets confused if
28625 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28626 # text mode, it properly converts lines to CR/LF. This bash problem
28627 # is reportedly fixed, but why not run on old versions too?
28628 sed '$q' "$ltmain" >> "$cfgfile" \
28629 || (rm -f "$cfgfile"; exit 1)
28631 if test x"$xsi_shell" = xyes; then
28632 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28636 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28637 \ * ) func_dirname_result="${3}" ;;\
28639 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28640 && mv -f "$cfgfile.tmp" "$cfgfile" \
28641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28642 test 0 -eq $? || _lt_function_replace_fail=:
28645 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28648 \ func_basename_result="${1##*/}"\
28649 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28650 && mv -f "$cfgfile.tmp" "$cfgfile" \
28651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28652 test 0 -eq $? || _lt_function_replace_fail=:
28655 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28656 func_dirname_and_basename ()\
28659 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28660 \ * ) func_dirname_result="${3}" ;;\
28662 \ func_basename_result="${1##*/}"\
28663 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28664 && mv -f "$cfgfile.tmp" "$cfgfile" \
28665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28666 test 0 -eq $? || _lt_function_replace_fail=:
28669 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28672 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28673 \ # positional parameters, so assign one to ordinary parameter first.\
28674 \ func_stripname_result=${3}\
28675 \ func_stripname_result=${func_stripname_result#"${1}"}\
28676 \ func_stripname_result=${func_stripname_result%"${2}"}\
28677 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28678 && mv -f "$cfgfile.tmp" "$cfgfile" \
28679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28680 test 0 -eq $? || _lt_function_replace_fail=:
28683 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28684 func_split_long_opt ()\
28686 \ func_split_long_opt_name=${1%%=*}\
28687 \ func_split_long_opt_arg=${1#*=}\
28688 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28689 && mv -f "$cfgfile.tmp" "$cfgfile" \
28690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28691 test 0 -eq $? || _lt_function_replace_fail=:
28694 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28695 func_split_short_opt ()\
28697 \ func_split_short_opt_arg=${1#??}\
28698 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28699 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28700 && mv -f "$cfgfile.tmp" "$cfgfile" \
28701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28702 test 0 -eq $? || _lt_function_replace_fail=:
28705 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28709 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28710 \ *) func_lo2o_result=${1} ;;\
28712 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28713 && mv -f "$cfgfile.tmp" "$cfgfile" \
28714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28715 test 0 -eq $? || _lt_function_replace_fail=:
28718 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28721 func_xform_result=${1%.*}.lo\
28722 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28723 && mv -f "$cfgfile.tmp" "$cfgfile" \
28724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28725 test 0 -eq $? || _lt_function_replace_fail=:
28728 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28731 func_arith_result=$(( $* ))\
28732 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28733 && mv -f "$cfgfile.tmp" "$cfgfile" \
28734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28735 test 0 -eq $? || _lt_function_replace_fail=:
28738 sed -e '/^func_len ()$/,/^} # func_len /c\
28741 func_len_result=${#1}\
28742 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28743 && mv -f "$cfgfile.tmp" "$cfgfile" \
28744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28745 test 0 -eq $? || _lt_function_replace_fail=:
28749 if test x"$lt_shell_append" = xyes; then
28750 sed -e '/^func_append ()$/,/^} # func_append /c\
28753 eval "${1}+=\\${2}"\
28754 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28755 && mv -f "$cfgfile.tmp" "$cfgfile" \
28756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28757 test 0 -eq $? || _lt_function_replace_fail=:
28760 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28761 func_append_quoted ()\
28763 \ func_quote_for_eval "${2}"\
28764 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28765 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28766 && mv -f "$cfgfile.tmp" "$cfgfile" \
28767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28768 test 0 -eq $? || _lt_function_replace_fail=:
28771 # Save a `func_append' function call where possible by direct use of '+='
28772 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28773 && mv -f "$cfgfile.tmp" "$cfgfile" \
28774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28775 test 0 -eq $? || _lt_function_replace_fail=:
28777 # Save a `func_append' function call even when '+=' is not available
28778 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28779 && mv -f "$cfgfile.tmp" "$cfgfile" \
28780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28781 test 0 -eq $? || _lt_function_replace_fail=:
28784 if test x"$_lt_function_replace_fail" = x":"; then
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28786 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28790 mv -f "$cfgfile" "$ofile" ||
28791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28802 ac_clean_files=$ac_clean_files_save
28804 test $ac_write_fail = 0 ||
28805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28808 # configure is writing to config.log, and then calls config.status.
28809 # config.status does its own redirection, appending to config.log.
28810 # Unfortunately, on DOS this fails, as config.log is still kept open
28811 # by configure, so config.status won't be able to write to it; its
28812 # output is simply discarded. So we exec the FD to /dev/null,
28813 # effectively closing config.log, so it can be properly (re)opened and
28814 # appended to by config.status. When coming back to configure, we
28815 # need to make the FD available again.
28816 if test "$no_create" != yes; then
28818 ac_config_status_args=
28819 test "$silent" = yes &&
28820 ac_config_status_args="$ac_config_status_args --quiet"
28822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28825 # would make configure fail if this is the last instruction.
28826 $ac_cs_success || as_fn_exit 1
28828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}