2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Libtasn1 4.19.0.
5 # Report bugs to <help-libtasn1@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: help-libtasn1@gnu.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='GNU Libtasn1'
623 PACKAGE_TARNAME='libtasn1'
624 PACKAGE_VERSION='4.19.0'
625 PACKAGE_STRING='GNU Libtasn1 4.19.0'
626 PACKAGE_BUGREPORT='help-libtasn1@gnu.org'
627 PACKAGE_URL='https://www.gnu.org/software/libtasn1/'
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
662 gl_getopt_required=POSIX
663 ac_subst_vars='sgltests_LIBOBJDEPS
686 CODE_COVERAGE_CXXFLAGS
688 CODE_COVERAGE_CPPFLAGS
694 CODE_COVERAGE_ENABLED
695 CODE_COVERAGE_ENABLED_FALSE
696 CODE_COVERAGE_ENABLED_TRUE
698 GL_SGL_GNULIB_MDA_WCSDUP
699 GL_SGL_GNULIB_WCSFTIME
700 GL_SGL_GNULIB_WCSWIDTH
703 GL_SGL_GNULIB_WCSPBRK
705 GL_SGL_GNULIB_WCSCSPN
706 GL_SGL_GNULIB_WCSRCHR
709 GL_SGL_GNULIB_WCSXFRM
710 GL_SGL_GNULIB_WCSCOLL
711 GL_SGL_GNULIB_WCSNCASECMP
712 GL_SGL_GNULIB_WCSCASECMP
713 GL_SGL_GNULIB_WCSNCMP
715 GL_SGL_GNULIB_WCSNCAT
717 GL_SGL_GNULIB_WCPNCPY
718 GL_SGL_GNULIB_WCSNCPY
721 GL_SGL_GNULIB_WCSNLEN
723 GL_SGL_GNULIB_WMEMSET
724 GL_SGL_GNULIB_WMEMPCPY
725 GL_SGL_GNULIB_WMEMMOVE
726 GL_SGL_GNULIB_WMEMCPY
727 GL_SGL_GNULIB_WMEMCMP
728 GL_SGL_GNULIB_WMEMCHR
729 GL_SGL_GNULIB_WCWIDTH
730 GL_SGL_GNULIB_WCSNRTOMBS
731 GL_SGL_GNULIB_WCSRTOMBS
732 GL_SGL_GNULIB_WCRTOMB
733 GL_SGL_GNULIB_MBSNRTOWCS
734 GL_SGL_GNULIB_MBSRTOWCS
736 GL_SGL_GNULIB_MBRTOWC
737 GL_SGL_GNULIB_MBSINIT
743 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
802 GL_SGL_GNULIB_MDA_TZSET
804 GL_SGL_GNULIB_TIME_RZ
806 GL_SGL_GNULIB_TIMESPEC_GETRES
807 GL_SGL_GNULIB_TIMESPEC_GET
809 GL_SGL_GNULIB_STRPTIME
810 GL_SGL_GNULIB_STRFTIME
811 GL_SGL_GNULIB_NANOSLEEP
812 GL_SGL_GNULIB_LOCALTIME
815 TIME_H_DEFINES_TIME_UTC
816 UNISTD_H_DEFINES_STRUCT_TIMESPEC
817 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
818 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
819 TIME_H_DEFINES_STRUCT_TIMESPEC
820 NEXT_AS_FIRST_DIRECTIVE_TIME_H
838 HAVE_DECL_LOCALTIME_R
839 GL_COND_OBJ_STDIO_WRITE_FALSE
840 GL_COND_OBJ_STDIO_WRITE_TRUE
841 GL_COND_OBJ_STDIO_READ_FALSE
842 GL_COND_OBJ_STDIO_READ_TRUE
843 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
845 GL_GENERATE_STDCKDINT_H_FALSE
846 GL_GENERATE_STDCKDINT_H_TRUE
848 GL_GENERATE_STDARG_H_FALSE
849 GL_GENERATE_STDARG_H_TRUE
851 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
853 GL_COND_OBJ_STAT_FALSE
854 GL_COND_OBJ_STAT_TRUE
855 GL_COND_OBJ_OPEN_FALSE
856 GL_COND_OBJ_OPEN_TRUE
857 GL_COND_OBJ_MSVC_NOTHROW_FALSE
858 GL_COND_OBJ_MSVC_NOTHROW_TRUE
859 GL_COND_OBJ_MSVC_INVAL_FALSE
860 GL_COND_OBJ_MSVC_INVAL_TRUE
861 GL_COND_OBJ_LSEEK_FALSE
862 GL_COND_OBJ_LSEEK_TRUE
863 GL_SGL_GNULIB_STRTOUMAX
864 GL_SGL_GNULIB_STRTOIMAX
865 GL_SGL_GNULIB_IMAXDIV
866 GL_SGL_GNULIB_IMAXABS
867 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
869 UINT64_MAX_EQ_ULONG_MAX
870 UINT32_MAX_LT_UINTMAX_MAX
872 INT64_MAX_EQ_LONG_MAX
873 INT32_MAX_LT_INTMAX_MAX
881 GL_SGL_GNULIB_GETTIMEOFDAY
882 GL_COND_OBJ_GETTIMEOFDAY_FALSE
883 GL_COND_OBJ_GETTIMEOFDAY_TRUE
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
893 GL_COND_OBJ_GETOPT_FALSE
894 GL_COND_OBJ_GETOPT_TRUE
895 GL_GENERATE_GETOPT_CDEFS_H_FALSE
896 GL_GENERATE_GETOPT_CDEFS_H_TRUE
898 GL_GENERATE_GETOPT_H_FALSE
899 GL_GENERATE_GETOPT_H_TRUE
903 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
905 GL_COND_OBJ_GETDTABLESIZE_FALSE
906 GL_COND_OBJ_GETDTABLESIZE_TRUE
907 GL_COND_OBJ_FTELLO_FALSE
908 GL_COND_OBJ_FTELLO_TRUE
909 GL_COND_OBJ_FTELL_FALSE
910 GL_COND_OBJ_FTELL_TRUE
911 GL_SGL_GNULIB_MDA_UMASK
912 GL_SGL_GNULIB_MDA_MKDIR
913 GL_SGL_GNULIB_MDA_CHMOD
914 GL_SGL_GNULIB_OVERRIDES_STRUCT_STAT
915 GL_SGL_GNULIB_UTIMENSAT
917 GL_SGL_GNULIB_MKNODAT
919 GL_SGL_GNULIB_MKFIFOAT
921 GL_SGL_GNULIB_MKDIRAT
925 GL_SGL_GNULIB_GETUMASK
926 GL_SGL_GNULIB_FUTIMENS
927 GL_SGL_GNULIB_FSTATAT
929 GL_SGL_GNULIB_FCHMODAT
931 WINDOWS_64_BIT_ST_SIZE
932 WINDOWS_STAT_TIMESPEC
933 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
935 GL_COND_OBJ_FSTAT_FALSE
936 GL_COND_OBJ_FSTAT_TRUE
962 GL_COND_OBJ_FREE_FALSE
963 GL_COND_OBJ_FREE_TRUE
964 GL_SGL_GNULIB_MDA_TEMPNAM
965 GL_SGL_GNULIB_MDA_PUTW
966 GL_SGL_GNULIB_MDA_GETW
967 GL_SGL_GNULIB_MDA_FILENO
968 GL_SGL_GNULIB_MDA_FDOPEN
969 GL_SGL_GNULIB_MDA_FCLOSEALL
970 GL_SGL_GNULIB_VSPRINTF_POSIX
971 GL_SGL_GNULIB_VSNPRINTF
972 GL_SGL_GNULIB_VPRINTF_POSIX
973 GL_SGL_GNULIB_VPRINTF
974 GL_SGL_GNULIB_VFPRINTF_POSIX
975 GL_SGL_GNULIB_VFPRINTF
976 GL_SGL_GNULIB_VDPRINTF
978 GL_SGL_GNULIB_VFSCANF
979 GL_SGL_GNULIB_VASPRINTF
980 GL_SGL_GNULIB_TMPFILE
981 GL_SGL_GNULIB_STDIO_H_SIGPIPE
982 GL_SGL_GNULIB_STDIO_H_NONBLOCKING
983 GL_SGL_GNULIB_SPRINTF_POSIX
984 GL_SGL_GNULIB_SNPRINTF
986 GL_SGL_GNULIB_RENAMEAT
990 GL_SGL_GNULIB_PUTCHAR
992 GL_SGL_GNULIB_PRINTF_POSIX
997 GL_SGL_GNULIB_OBSTACK_PRINTF_POSIX
998 GL_SGL_GNULIB_OBSTACK_PRINTF
999 GL_SGL_GNULIB_GETLINE
1000 GL_SGL_GNULIB_GETDELIM
1001 GL_SGL_GNULIB_GETCHAR
1003 GL_SGL_GNULIB_FWRITE
1004 GL_SGL_GNULIB_FTELLO
1006 GL_SGL_GNULIB_FSEEKO
1008 GL_SGL_GNULIB_FSCANF
1009 GL_SGL_GNULIB_FREOPEN
1013 GL_SGL_GNULIB_FPURGE
1014 GL_SGL_GNULIB_FPRINTF_POSIX
1015 GL_SGL_GNULIB_FPRINTF
1016 GL_SGL_GNULIB_FOPEN_GNU
1020 GL_SGL_GNULIB_FFLUSH
1021 GL_SGL_GNULIB_FDOPEN
1022 GL_SGL_GNULIB_FCLOSE
1023 GL_SGL_GNULIB_DPRINTF
1031 REPLACE_STDIO_WRITE_FUNCS
1032 REPLACE_STDIO_READ_FUNCS
1041 REPLACE_OBSTACK_PRINTF
1051 REPLACE_FOPEN_FOR_FOPEN_GNU
1067 HAVE_DECL_OBSTACK_PRINTF
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1076 GL_SGL_GNULIB_MDA_OPEN
1077 GL_SGL_GNULIB_MDA_CREAT
1078 GL_SGL_GNULIB_OPENAT
1080 GL_SGL_GNULIB_NONBLOCKING
1083 GL_COND_OBJ_FCNTL_FALSE
1084 GL_COND_OBJ_FCNTL_TRUE
1091 GL_SGL_GNULIB_MDA_PUTENV
1092 GL_SGL_GNULIB_MDA_MKTEMP
1093 GL_SGL_GNULIB_MDA_GCVT
1094 GL_SGL_GNULIB_MDA_FCVT
1095 GL_SGL_GNULIB_MDA_ECVT
1096 GL_SGL_GNULIB_WCTOMB
1097 GL_SGL_GNULIB_UNSETENV
1098 GL_SGL_GNULIB_UNLOCKPT
1099 GL_SGL_GNULIB_SYSTEM_POSIX
1100 GL_SGL_GNULIB_STRTOULL
1101 GL_SGL_GNULIB_STRTOUL
1102 GL_SGL_GNULIB_STRTOLL
1103 GL_SGL_GNULIB_STRTOLD
1104 GL_SGL_GNULIB_STRTOL
1105 GL_SGL_GNULIB_STRTOD
1106 GL_SGL_GNULIB_SETENV
1107 GL_SGL_GNULIB_SECURE_GETENV
1108 GL_SGL_GNULIB_RPMATCH
1109 GL_SGL_GNULIB_REALPATH
1110 GL_SGL_GNULIB_REALLOC_POSIX
1111 GL_SGL_GNULIB_REALLOC_GNU
1112 GL_SGL_GNULIB_REALLOCARRAY
1113 GL_SGL_GNULIB_RANDOM_R
1114 GL_SGL_GNULIB_RANDOM
1115 GL_SGL_GNULIB_QSORT_R
1116 GL_SGL_GNULIB_PUTENV
1117 GL_SGL_GNULIB_PTSNAME_R
1118 GL_SGL_GNULIB_PTSNAME
1119 GL_SGL_GNULIB_POSIX_OPENPT
1120 GL_SGL_GNULIB_POSIX_MEMALIGN
1121 GL_SGL_GNULIB_MKSTEMPS
1122 GL_SGL_GNULIB_MKSTEMP
1123 GL_SGL_GNULIB_MKOSTEMPS
1124 GL_SGL_GNULIB_MKOSTEMP
1125 GL_SGL_GNULIB_MKDTEMP
1126 GL_SGL_GNULIB_MBTOWC
1127 GL_SGL_GNULIB_MALLOC_POSIX
1128 GL_SGL_GNULIB_MALLOC_GNU
1129 GL_SGL_GNULIB_GRANTPT
1130 GL_SGL_GNULIB_GETSUBOPT
1131 GL_SGL_GNULIB_GETLOADAVG
1132 GL_SGL_GNULIB_FREE_POSIX
1133 GL_SGL_GNULIB_CANONICALIZE_FILE_NAME
1134 GL_SGL_GNULIB_CALLOC_POSIX
1135 GL_SGL_GNULIB_CALLOC_GNU
1137 GL_SGL_GNULIB_ALIGNED_ALLOC
1139 GL_SGL_GNULIB_MDA_STRDUP
1140 GL_SGL_GNULIB_MDA_MEMCCPY
1141 GL_SGL_GNULIB_STRVERSCMP
1142 GL_SGL_GNULIB_STRSIGNAL
1143 GL_SGL_GNULIB_SIGDESCR_NP
1144 GL_SGL_GNULIB_SIGABBREV_NP
1145 GL_SGL_GNULIB_STRERRORNAME_NP
1146 GL_SGL_GNULIB_STRERROR_R
1147 GL_SGL_GNULIB_STRERROR
1148 GL_SGL_GNULIB_MBSTOK_R
1149 GL_SGL_GNULIB_MBSSEP
1150 GL_SGL_GNULIB_MBSSPN
1151 GL_SGL_GNULIB_MBSPBRK
1152 GL_SGL_GNULIB_MBSCSPN
1153 GL_SGL_GNULIB_MBSCASESTR
1154 GL_SGL_GNULIB_MBSPCASECMP
1155 GL_SGL_GNULIB_MBSNCASECMP
1156 GL_SGL_GNULIB_MBSCASECMP
1157 GL_SGL_GNULIB_MBSSTR
1158 GL_SGL_GNULIB_MBSRCHR
1159 GL_SGL_GNULIB_MBSCHR
1160 GL_SGL_GNULIB_MBSNLEN
1161 GL_SGL_GNULIB_MBSLEN
1162 GL_SGL_GNULIB_STRTOK_R
1163 GL_SGL_GNULIB_STRCASESTR
1164 GL_SGL_GNULIB_STRSTR
1165 GL_SGL_GNULIB_STRSEP
1166 GL_SGL_GNULIB_STRPBRK
1167 GL_SGL_GNULIB_STRNLEN
1168 GL_SGL_GNULIB_STRNDUP
1169 GL_SGL_GNULIB_STRNCAT
1170 GL_SGL_GNULIB_STRDUP
1171 GL_SGL_GNULIB_STRCHRNUL
1172 GL_SGL_GNULIB_STPNCPY
1173 GL_SGL_GNULIB_STPCPY
1174 GL_SGL_GNULIB_RAWMEMCHR
1175 GL_SGL_GNULIB_MEMRCHR
1176 GL_SGL_GNULIB_MEMPCPY
1177 GL_SGL_GNULIB_MEMMEM
1178 GL_SGL_GNULIB_MEMCHR
1181 GL_SGL_GNULIB_EXPLICIT_BZERO
1182 GL_COND_OBJ_EXPLICIT_BZERO_FALSE
1183 GL_COND_OBJ_EXPLICIT_BZERO_TRUE
1184 GL_GENERATE_ERRNO_H_FALSE
1185 GL_GENERATE_ERRNO_H_TRUE
1193 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1195 GL_COND_OBJ_DUP2_FALSE
1196 GL_COND_OBJ_DUP2_TRUE
1197 GL_SGL_GNULIB_MDA_WRITE
1198 GL_SGL_GNULIB_MDA_UNLINK
1199 GL_SGL_GNULIB_MDA_SWAB
1200 GL_SGL_GNULIB_MDA_RMDIR
1201 GL_SGL_GNULIB_MDA_READ
1202 GL_SGL_GNULIB_MDA_LSEEK
1203 GL_SGL_GNULIB_MDA_ISATTY
1204 GL_SGL_GNULIB_MDA_GETPID
1205 GL_SGL_GNULIB_MDA_GETCWD
1206 GL_SGL_GNULIB_MDA_EXECVPE
1207 GL_SGL_GNULIB_MDA_EXECVP
1208 GL_SGL_GNULIB_MDA_EXECVE
1209 GL_SGL_GNULIB_MDA_EXECV
1210 GL_SGL_GNULIB_MDA_EXECLP
1211 GL_SGL_GNULIB_MDA_EXECLE
1212 GL_SGL_GNULIB_MDA_EXECL
1213 GL_SGL_GNULIB_MDA_DUP2
1214 GL_SGL_GNULIB_MDA_DUP
1215 GL_SGL_GNULIB_MDA_CLOSE
1216 GL_SGL_GNULIB_MDA_CHDIR
1217 GL_SGL_GNULIB_MDA_ACCESS
1219 GL_SGL_GNULIB_USLEEP
1220 GL_SGL_GNULIB_UNLINKAT
1221 GL_SGL_GNULIB_UNLINK
1222 GL_SGL_GNULIB_UNISTD_H_SIGPIPE
1223 GL_SGL_GNULIB_UNISTD_H_NONBLOCKING
1224 GL_SGL_GNULIB_UNISTD_H_GETOPT
1225 GL_SGL_GNULIB_TTYNAME_R
1226 GL_SGL_GNULIB_TRUNCATE
1227 GL_SGL_GNULIB_SYMLINKAT
1228 GL_SGL_GNULIB_SYMLINK
1230 GL_SGL_GNULIB_SETHOSTNAME
1232 GL_SGL_GNULIB_READLINKAT
1233 GL_SGL_GNULIB_READLINK
1235 GL_SGL_GNULIB_PWRITE
1240 GL_SGL_GNULIB_LINKAT
1242 GL_SGL_GNULIB_LCHOWN
1243 GL_SGL_GNULIB_ISATTY
1244 GL_SGL_GNULIB_GROUP_MEMBER
1245 GL_SGL_GNULIB_GETUSERSHELL
1246 GL_SGL_GNULIB_GETPASS_GNU
1247 GL_SGL_GNULIB_GETPASS
1248 GL_SGL_GNULIB_GETPAGESIZE
1249 GL_SGL_GNULIB_GETOPT_POSIX
1250 GL_SGL_GNULIB_GETLOGIN_R
1251 GL_SGL_GNULIB_GETLOGIN
1252 GL_SGL_GNULIB_GETHOSTNAME
1253 GL_SGL_GNULIB_GETGROUPS
1254 GL_SGL_GNULIB_GETENTROPY
1255 GL_SGL_GNULIB_GETDTABLESIZE
1256 GL_SGL_GNULIB_GETDOMAINNAME
1257 GL_SGL_GNULIB_GETCWD
1258 GL_SGL_GNULIB_FTRUNCATE
1260 GL_SGL_GNULIB_FDATASYNC
1261 GL_SGL_GNULIB_FCHOWNAT
1262 GL_SGL_GNULIB_FCHDIR
1263 GL_SGL_GNULIB_FACCESSAT
1264 GL_SGL_GNULIB_EXECVPE
1265 GL_SGL_GNULIB_EXECVP
1266 GL_SGL_GNULIB_EXECVE
1268 GL_SGL_GNULIB_EXECLP
1269 GL_SGL_GNULIB_EXECLE
1271 GL_SGL_GNULIB_EUIDACCESS
1272 GL_SGL_GNULIB_ENVIRON
1276 GL_SGL_GNULIB_COPY_FILE_RANGE
1280 GL_SGL_GNULIB_ACCESS
1281 GL_COND_OBJ_CLOSE_FALSE
1282 GL_COND_OBJ_CLOSE_TRUE
1284 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1286 GL_GENERATE_ALLOCA_H_FALSE
1287 GL_GENERATE_ALLOCA_H_TRUE
1292 GL_CFLAG_GNULIB_WARNINGS
1294 GL_CXXFLAG_ALLOW_WARNINGS
1295 GL_CFLAG_ALLOW_WARNINGS
1299 DEFAULT_VALGRINDFLAGS
1303 GL_GNULIB_MDA_UNLINK
1308 GL_GNULIB_MDA_ISATTY
1309 GL_GNULIB_MDA_GETPID
1310 GL_GNULIB_MDA_GETCWD
1311 GL_GNULIB_MDA_EXECVPE
1312 GL_GNULIB_MDA_EXECVP
1313 GL_GNULIB_MDA_EXECVE
1315 GL_GNULIB_MDA_EXECLP
1316 GL_GNULIB_MDA_EXECLE
1322 GL_GNULIB_MDA_ACCESS
1327 GL_GNULIB_UNISTD_H_SIGPIPE
1328 GL_GNULIB_UNISTD_H_NONBLOCKING
1329 GL_GNULIB_UNISTD_H_GETOPT
1335 GL_GNULIB_SETHOSTNAME
1337 GL_GNULIB_READLINKAT
1349 GL_GNULIB_GROUP_MEMBER
1350 GL_GNULIB_GETUSERSHELL
1351 GL_GNULIB_GETPASS_GNU
1353 GL_GNULIB_GETPAGESIZE
1354 GL_GNULIB_GETOPT_POSIX
1355 GL_GNULIB_GETLOGIN_R
1357 GL_GNULIB_GETHOSTNAME
1359 GL_GNULIB_GETENTROPY
1360 GL_GNULIB_GETDTABLESIZE
1361 GL_GNULIB_GETDOMAINNAME
1376 GL_GNULIB_EUIDACCESS
1381 GL_GNULIB_COPY_FILE_RANGE
1387 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1389 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1390 UNISTD_H_HAVE_WINSOCK2_H
1391 UNISTD_H_HAVE_SYS_RANDOM_H
1412 REPLACE_GETPASS_FOR_GETPASS_GNU
1417 REPLACE_GETDTABLESIZE
1418 REPLACE_GETDOMAINNAME
1432 REPLACE_COPY_FILE_RANGE
1440 HAVE_DECL_SETHOSTNAME
1441 HAVE_DECL_GETUSERSHELL
1442 HAVE_DECL_GETPAGESIZE
1443 HAVE_DECL_GETLOGIN_R
1445 HAVE_DECL_GETDOMAINNAME
1482 HAVE_COPY_FILE_RANGE
1485 WINDOWS_64_BIT_OFF_T
1486 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1488 GL_COND_OBJ_STRVERSCMP_FALSE
1489 GL_COND_OBJ_STRVERSCMP_TRUE
1490 GL_GNULIB_MDA_STRDUP
1491 GL_GNULIB_MDA_MEMCCPY
1492 GL_GNULIB_STRVERSCMP
1494 GL_GNULIB_SIGDESCR_NP
1495 GL_GNULIB_SIGABBREV_NP
1496 GL_GNULIB_STRERRORNAME_NP
1497 GL_GNULIB_STRERROR_R
1504 GL_GNULIB_MBSCASESTR
1505 GL_GNULIB_MBSPCASECMP
1506 GL_GNULIB_MBSNCASECMP
1507 GL_GNULIB_MBSCASECMP
1514 GL_GNULIB_STRCASESTR
1532 GL_GNULIB_EXPLICIT_BZERO
1533 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1537 REPLACE_STRERRORNAME_NP
1556 HAVE_STRERRORNAME_NP
1557 HAVE_DECL_STRERROR_R
1576 GL_GNULIB_MDA_PUTENV
1577 GL_GNULIB_MDA_MKTEMP
1584 GL_GNULIB_SYSTEM_POSIX
1592 GL_GNULIB_SECURE_GETENV
1595 GL_GNULIB_REALLOC_POSIX
1596 GL_GNULIB_REALLOC_GNU
1597 GL_GNULIB_REALLOCARRAY
1604 GL_GNULIB_POSIX_OPENPT
1605 GL_GNULIB_POSIX_MEMALIGN
1612 GL_GNULIB_MALLOC_POSIX
1613 GL_GNULIB_MALLOC_GNU
1616 GL_GNULIB_GETLOADAVG
1617 GL_GNULIB_FREE_POSIX
1618 GL_GNULIB_CANONICALIZE_FILE_NAME
1619 GL_GNULIB_CALLOC_POSIX
1620 GL_GNULIB_CALLOC_GNU
1622 GL_GNULIB_ALIGNED_ALLOC
1624 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1637 REPLACE_REALLOCARRAY
1638 REPLACE_REALLOC_FOR_REALLOC_POSIX
1639 REPLACE_REALLOC_FOR_REALLOC_GNU
1646 REPLACE_POSIX_MEMALIGN
1649 REPLACE_MALLOC_FOR_MALLOC_POSIX
1650 REPLACE_MALLOC_FOR_MALLOC_GNU
1653 REPLACE_CANONICALIZE_FILE_NAME
1654 REPLACE_CALLOC_FOR_CALLOC_POSIX
1655 REPLACE_CALLOC_FOR_CALLOC_GNU
1656 REPLACE_ALIGNED_ALLOC
1660 HAVE_STRUCT_RANDOM_DATA
1693 HAVE_DECL_GETLOADAVG
1697 HAVE_CANONICALIZE_FILE_NAME
1701 GL_GENERATE_STDINT_H_FALSE
1702 GL_GENERATE_STDINT_H_TRUE
1714 HAVE_SIGNED_SIG_ATOMIC_T
1717 BITSIZEOF_SIG_ATOMIC_T
1721 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1726 GNULIBHEADERS_OVERRIDE_WINT_T
1727 GL_GENERATE_STDDEF_H_FALSE
1728 GL_GENERATE_STDDEF_H_TRUE
1730 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1735 GL_GENERATE_STDBOOL_H_FALSE
1736 GL_GENERATE_STDBOOL_H_TRUE
1739 APPLE_UNIVERSAL_BUILD
1740 GL_GENERATE_LIMITS_H_FALSE
1741 GL_GENERATE_LIMITS_H_TRUE
1743 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1746 PRAGMA_SYSTEM_HEADER
1747 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1751 HAVE_LD_VERSION_SCRIPT_FALSE
1752 HAVE_LD_VERSION_SCRIPT_TRUE
1753 HAVE_LD_OUTPUT_DEF_FALSE
1754 HAVE_LD_OUTPUT_DEF_TRUE
1755 GL_COND_LIBTOOL_FALSE
1756 GL_COND_LIBTOOL_TRUE
1757 GTK_DOC_USE_REBASE_FALSE
1758 GTK_DOC_USE_REBASE_TRUE
1759 GTK_DOC_USE_LIBTOOL_FALSE
1760 GTK_DOC_USE_LIBTOOL_TRUE
1761 GTK_DOC_BUILD_PDF_FALSE
1762 GTK_DOC_BUILD_PDF_TRUE
1763 GTK_DOC_BUILD_HTML_FALSE
1764 GTK_DOC_BUILD_HTML_TRUE
1765 ENABLE_GTK_DOC_FALSE
1832 AM_DEFAULT_VERBOSITY
1846 INSTALL_STRIP_PROGRAM
1896 program_transform_name
1910 enable_option_checking
1912 enable_dependency_tracking
1928 enable_cross_guesses
1929 enable_ld_version_script
1930 enable_valgrind_tests
1932 with_packager_version
1933 with_packager_bug_reports
1935 enable_code_coverage
1939 ac_precious_vars='build_alias
1957 # Initialize some variables set by options.
1959 ac_init_version=false
1960 ac_unrecognized_opts=
1961 ac_unrecognized_sep=
1962 # The variables have the same names as the options, with
1963 # dashes changed to underlines.
1964 cache_file=/dev/null
1971 program_transform_name=s,x,x,
1979 # Installation directory options.
1980 # These are left unexpanded so users can "make install exec_prefix=/foo"
1981 # and all the variables that are supposed to be based on exec_prefix
1982 # by default will actually change.
1983 # Use braces instead of parens because sh, perl, etc. also accept them.
1984 # (The list follows the same order as the GNU Coding Standards.)
1985 bindir='${exec_prefix}/bin'
1986 sbindir='${exec_prefix}/sbin'
1987 libexecdir='${exec_prefix}/libexec'
1988 datarootdir='${prefix}/share'
1989 datadir='${datarootdir}'
1990 sysconfdir='${prefix}/etc'
1991 sharedstatedir='${prefix}/com'
1992 localstatedir='${prefix}/var'
1993 runstatedir='${localstatedir}/run'
1994 includedir='${prefix}/include'
1995 oldincludedir='/usr/include'
1996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1997 infodir='${datarootdir}/info'
2002 libdir='${exec_prefix}/lib'
2003 localedir='${datarootdir}/locale'
2004 mandir='${datarootdir}/man'
2010 # If the previous option needs an argument, assign it.
2011 if test -n "$ac_prev"; then
2012 eval $ac_prev=\$ac_option
2018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2023 case $ac_dashdash$ac_option in
2027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2030 bindir=$ac_optarg ;;
2032 -build | --build | --buil | --bui | --bu)
2033 ac_prev=build_alias ;;
2034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2035 build_alias=$ac_optarg ;;
2037 -cache-file | --cache-file | --cache-fil | --cache-fi \
2038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2039 ac_prev=cache_file ;;
2040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2042 cache_file=$ac_optarg ;;
2044 --config-cache | -C)
2045 cache_file=config.cache ;;
2047 -datadir | --datadir | --datadi | --datad)
2049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2050 datadir=$ac_optarg ;;
2052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2053 | --dataroo | --dataro | --datar)
2054 ac_prev=datarootdir ;;
2055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2057 datarootdir=$ac_optarg ;;
2059 -disable-* | --disable-*)
2060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2061 # Reject names that are not valid shell variable names.
2062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2063 as_fn_error $? "invalid feature name: \`$ac_useropt'"
2064 ac_useropt_orig=$ac_useropt
2065 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2066 case $ac_user_opts in
2068 "enable_$ac_useropt"
2070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2071 ac_unrecognized_sep=', ';;
2073 eval enable_$ac_useropt=no ;;
2075 -docdir | --docdir | --docdi | --doc | --do)
2077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2078 docdir=$ac_optarg ;;
2080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2083 dvidir=$ac_optarg ;;
2085 -enable-* | --enable-*)
2086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2087 # Reject names that are not valid shell variable names.
2088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2089 as_fn_error $? "invalid feature name: \`$ac_useropt'"
2090 ac_useropt_orig=$ac_useropt
2091 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2092 case $ac_user_opts in
2094 "enable_$ac_useropt"
2096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2097 ac_unrecognized_sep=', ';;
2099 eval enable_$ac_useropt=\$ac_optarg ;;
2101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2103 | --exec | --exe | --ex)
2104 ac_prev=exec_prefix ;;
2105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2107 | --exec=* | --exe=* | --ex=*)
2108 exec_prefix=$ac_optarg ;;
2110 -gas | --gas | --ga | --g)
2111 # Obsolete; use --with-gas.
2114 -help | --help | --hel | --he | -h)
2115 ac_init_help=long ;;
2116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2117 ac_init_help=recursive ;;
2118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2119 ac_init_help=short ;;
2121 -host | --host | --hos | --ho)
2122 ac_prev=host_alias ;;
2123 -host=* | --host=* | --hos=* | --ho=*)
2124 host_alias=$ac_optarg ;;
2126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2130 htmldir=$ac_optarg ;;
2132 -includedir | --includedir | --includedi | --included | --include \
2133 | --includ | --inclu | --incl | --inc)
2134 ac_prev=includedir ;;
2135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2136 | --includ=* | --inclu=* | --incl=* | --inc=*)
2137 includedir=$ac_optarg ;;
2139 -infodir | --infodir | --infodi | --infod | --info | --inf)
2141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2142 infodir=$ac_optarg ;;
2144 -libdir | --libdir | --libdi | --libd)
2146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2147 libdir=$ac_optarg ;;
2149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2150 | --libexe | --libex | --libe)
2151 ac_prev=libexecdir ;;
2152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2153 | --libexe=* | --libex=* | --libe=*)
2154 libexecdir=$ac_optarg ;;
2156 -localedir | --localedir | --localedi | --localed | --locale)
2157 ac_prev=localedir ;;
2158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2159 localedir=$ac_optarg ;;
2161 -localstatedir | --localstatedir | --localstatedi | --localstated \
2162 | --localstate | --localstat | --localsta | --localst | --locals)
2163 ac_prev=localstatedir ;;
2164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2166 localstatedir=$ac_optarg ;;
2168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2171 mandir=$ac_optarg ;;
2173 -nfp | --nfp | --nf)
2174 # Obsolete; use --without-fp.
2177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2178 | --no-cr | --no-c | -n)
2181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2187 | --oldin | --oldi | --old | --ol | --o)
2188 ac_prev=oldincludedir ;;
2189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2192 oldincludedir=$ac_optarg ;;
2194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2197 prefix=$ac_optarg ;;
2199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2200 | --program-pre | --program-pr | --program-p)
2201 ac_prev=program_prefix ;;
2202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2204 program_prefix=$ac_optarg ;;
2206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2207 | --program-suf | --program-su | --program-s)
2208 ac_prev=program_suffix ;;
2209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2211 program_suffix=$ac_optarg ;;
2213 -program-transform-name | --program-transform-name \
2214 | --program-transform-nam | --program-transform-na \
2215 | --program-transform-n | --program-transform- \
2216 | --program-transform | --program-transfor \
2217 | --program-transfo | --program-transf \
2218 | --program-trans | --program-tran \
2219 | --progr-tra | --program-tr | --program-t)
2220 ac_prev=program_transform_name ;;
2221 -program-transform-name=* | --program-transform-name=* \
2222 | --program-transform-nam=* | --program-transform-na=* \
2223 | --program-transform-n=* | --program-transform-=* \
2224 | --program-transform=* | --program-transfor=* \
2225 | --program-transfo=* | --program-transf=* \
2226 | --program-trans=* | --program-tran=* \
2227 | --progr-tra=* | --program-tr=* | --program-t=*)
2228 program_transform_name=$ac_optarg ;;
2230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2233 pdfdir=$ac_optarg ;;
2235 -psdir | --psdir | --psdi | --psd | --ps)
2237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2244 -runstatedir | --runstatedir | --runstatedi | --runstated \
2245 | --runstate | --runstat | --runsta | --runst | --runs \
2246 | --run | --ru | --r)
2247 ac_prev=runstatedir ;;
2248 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2249 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2250 | --run=* | --ru=* | --r=*)
2251 runstatedir=$ac_optarg ;;
2253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2257 sbindir=$ac_optarg ;;
2259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2261 | --sharedst | --shareds | --shared | --share | --shar \
2263 ac_prev=sharedstatedir ;;
2264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2268 sharedstatedir=$ac_optarg ;;
2270 -site | --site | --sit)
2272 -site=* | --site=* | --sit=*)
2275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2278 srcdir=$ac_optarg ;;
2280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2281 | --syscon | --sysco | --sysc | --sys | --sy)
2282 ac_prev=sysconfdir ;;
2283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2285 sysconfdir=$ac_optarg ;;
2287 -target | --target | --targe | --targ | --tar | --ta | --t)
2288 ac_prev=target_alias ;;
2289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2290 target_alias=$ac_optarg ;;
2292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2295 -version | --version | --versio | --versi | --vers | -V)
2296 ac_init_version=: ;;
2299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2300 # Reject names that are not valid shell variable names.
2301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2302 as_fn_error $? "invalid package name: \`$ac_useropt'"
2303 ac_useropt_orig=$ac_useropt
2304 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2305 case $ac_user_opts in
2309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2310 ac_unrecognized_sep=', ';;
2312 eval with_$ac_useropt=\$ac_optarg ;;
2314 -without-* | --without-*)
2315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2316 # Reject names that are not valid shell variable names.
2317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2318 as_fn_error $? "invalid package name: \`$ac_useropt'"
2319 ac_useropt_orig=$ac_useropt
2320 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2321 case $ac_user_opts in
2325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2326 ac_unrecognized_sep=', ';;
2328 eval with_$ac_useropt=no ;;
2331 # Obsolete; use --with-x.
2334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2335 | --x-incl | --x-inc | --x-in | --x-i)
2336 ac_prev=x_includes ;;
2337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2339 x_includes=$ac_optarg ;;
2341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2343 ac_prev=x_libraries ;;
2344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2346 x_libraries=$ac_optarg ;;
2348 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2349 Try \`$0 --help' for more information"
2353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2354 # Reject names that are not valid shell variable names.
2355 case $ac_envvar in #(
2356 '' | [0-9]* | *[!_$as_cr_alnum]* )
2357 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2359 eval $ac_envvar=\$ac_optarg
2360 export $ac_envvar ;;
2363 # FIXME: should be removed in autoconf 3.0.
2364 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2366 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2373 if test -n "$ac_prev"; then
2374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2375 as_fn_error $? "missing argument to $ac_option"
2378 if test -n "$ac_unrecognized_opts"; then
2379 case $enable_option_checking in
2381 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2382 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2386 # Check all directory arguments for consistency.
2387 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2388 datadir sysconfdir sharedstatedir localstatedir includedir \
2389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2390 libdir localedir mandir runstatedir
2392 eval ac_val=\$$ac_var
2393 # Remove trailing slashes.
2396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2397 eval $ac_var=\$ac_val;;
2399 # Be sure to have absolute directory names.
2401 [\\/$]* | ?:[\\/]* ) continue;;
2402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2404 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2407 # There might be people who depend on the old broken behavior: `$host'
2408 # used to hold the argument of --host etc.
2409 # FIXME: To remove some day.
2412 target=$target_alias
2414 # FIXME: To remove some day.
2415 if test "x$host_alias" != x; then
2416 if test "x$build_alias" = x; then
2417 cross_compiling=maybe
2418 elif test "x$build_alias" != "x$host_alias"; then
2424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2426 test "$silent" = yes && exec 6>/dev/null
2429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2430 ac_ls_di=`ls -di .` &&
2431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2432 as_fn_error $? "working directory cannot be determined"
2433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2434 as_fn_error $? "pwd does not report name of working directory"
2437 # Find the source files, if location was not specified.
2438 if test -z "$srcdir"; then
2439 ac_srcdir_defaulted=yes
2440 # Try the directory containing this script, then the parent directory.
2441 ac_confdir=`$as_dirname -- "$as_myself" ||
2442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2443 X"$as_myself" : 'X\(//\)[^/]' \| \
2444 X"$as_myself" : 'X\(//\)$' \| \
2445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2446 printf "%s\n" X"$as_myself" |
2447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2465 if test ! -r "$srcdir/$ac_unique_file"; then
2469 ac_srcdir_defaulted=no
2471 if test ! -r "$srcdir/$ac_unique_file"; then
2472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2473 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2479 # When building in place, set srcdir=.
2480 if test "$ac_abs_confdir" = "$ac_pwd"; then
2483 # Remove unnecessary trailing slashes from srcdir.
2484 # Double slashes in file names in object file debugging info
2485 # mess up M-x gdb in Emacs.
2487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2489 for ac_var in $ac_precious_vars; do
2490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2491 eval ac_env_${ac_var}_value=\$${ac_var}
2492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2497 # Report the --help message.
2499 if test "$ac_init_help" = "long"; then
2500 # Omit some internal or obsolete options to make the list less imposing.
2501 # This message is too long to be a string in the A/UX 3.1 sh.
2503 \`configure' configures GNU Libtasn1 4.19.0 to adapt to many kinds of systems.
2505 Usage: $0 [OPTION]... [VAR=VALUE]...
2507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2508 VAR=VALUE. See below for descriptions of some of the useful variables.
2510 Defaults for the options are specified in brackets.
2513 -h, --help display this help and exit
2514 --help=short display options specific to this package
2515 --help=recursive display the short help of all the included packages
2516 -V, --version display version information and exit
2517 -q, --quiet, --silent do not print \`checking ...' messages
2518 --cache-file=FILE cache test results in FILE [disabled]
2519 -C, --config-cache alias for \`--cache-file=config.cache'
2520 -n, --no-create do not create output files
2521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2523 Installation directories:
2524 --prefix=PREFIX install architecture-independent files in PREFIX
2525 [$ac_default_prefix]
2526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2529 By default, \`make install' will install all the files in
2530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2532 for instance \`--prefix=\$HOME'.
2534 For better control, use the options below.
2536 Fine tuning of the installation directories:
2537 --bindir=DIR user executables [EPREFIX/bin]
2538 --sbindir=DIR system admin executables [EPREFIX/sbin]
2539 --libexecdir=DIR program executables [EPREFIX/libexec]
2540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2543 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2544 --libdir=DIR object code libraries [EPREFIX/lib]
2545 --includedir=DIR C header files [PREFIX/include]
2546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2549 --infodir=DIR info documentation [DATAROOTDIR/info]
2550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2551 --mandir=DIR man documentation [DATAROOTDIR/man]
2552 --docdir=DIR documentation root [DATAROOTDIR/doc/libtasn1]
2553 --htmldir=DIR html documentation [DOCDIR]
2554 --dvidir=DIR dvi documentation [DOCDIR]
2555 --pdfdir=DIR pdf documentation [DOCDIR]
2556 --psdir=DIR ps documentation [DOCDIR]
2562 --program-prefix=PREFIX prepend PREFIX to installed program names
2563 --program-suffix=SUFFIX append SUFFIX to installed program names
2564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2567 --build=BUILD configure for building on BUILD [guessed]
2568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2572 if test -n "$ac_init_help"; then
2573 case $ac_init_help in
2574 short | recursive ) echo "Configuration of GNU Libtasn1 4.19.0:";;
2579 --disable-option-checking ignore unrecognized --enable/--with options
2580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2582 --enable-silent-rules less verbose build output (undo: "make V=1")
2583 --disable-silent-rules verbose build output (undo: "make V=0")
2584 --enable-dependency-tracking
2585 do not reject slow dependency extractors
2586 --disable-dependency-tracking
2587 speeds up one-time build
2588 --disable-largefile omit support for large files
2589 --disable-year2038 omit support for timestamps past the year 2038
2590 --disable-doc don't generate any documentation
2591 --enable-shared[=PKGS] build shared libraries [default=yes]
2592 --enable-static[=PKGS] build static libraries [default=yes]
2593 --enable-fast-install[=PKGS]
2594 optimize for fast installation [default=yes]
2595 --disable-libtool-lock avoid locking (might break parallel builds)
2596 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
2597 --enable-gtk-doc-html build documentation in html format [[default=yes]]
2598 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
2599 --enable-cross-guesses={conservative|risky}
2600 specify policy for cross-compilation guesses
2601 --enable-ld-version-script
2602 enable linker version script (default is enabled
2604 --disable-valgrind-tests
2605 don't try to run self tests under valgrind
2606 --enable-code-coverage Whether to enable code coverage support
2607 --disable-gcc-warnings disable GCC warnings (for developers)
2608 --enable-fuzzing Turn on fuzzing build (for developers)
2611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2613 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2615 --with-aix-soname=aix|svr4|both
2616 shared library versioning (aka "SONAME") variant to
2617 provide on AIX, [default=aix].
2618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2619 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2620 compiler's sysroot if not specified).
2621 --with-html-dir=PATH path to installed docs
2622 --with-packager String identifying the packager of this software
2623 --with-packager-version Packager-specific version information
2624 --with-packager-bug-reports
2625 Packager info for bug reports (URL/e-mail/...)
2626 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
2628 Some influential environment variables:
2629 CC C compiler command
2630 CFLAGS C compiler flags
2631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2632 nonstandard directory <lib dir>
2633 LIBS libraries to pass to the linker, e.g. -l<library>
2634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2635 you have headers in a nonstandard directory <include dir>
2637 YACC The `Yet Another Compiler Compiler' implementation to use.
2638 Defaults to the first program found out of: `bison -y', `byacc',
2640 YFLAGS The list of arguments that will be passed by default to $YACC.
2641 This script will default YFLAGS to the empty string to avoid a
2642 default value of `-d' given by some make applications.
2644 User-defined run-time library search path.
2645 PKG_CONFIG path to pkg-config utility
2647 C compiler flags for GTKDOC_DEPS, overriding pkg-config
2649 linker flags for GTKDOC_DEPS, overriding pkg-config
2651 Additional flags for Valgrind
2653 Use these variables to override the choices made by `configure' or to help
2654 it to find libraries and programs with nonstandard names/locations.
2656 Report bugs to <help-libtasn1@gnu.org>.
2657 GNU Libtasn1 home page: <https://www.gnu.org/software/libtasn1/>.
2658 General help using GNU software: <https://www.gnu.org/gethelp/>.
2663 if test "$ac_init_help" = "recursive"; then
2664 # If there are subdirs, report their specific --help.
2665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2666 test -d "$ac_dir" ||
2667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2674 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2675 # A ".." for each directory in $ac_dir_suffix.
2676 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2677 case $ac_top_builddir_sub in
2678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2682 ac_abs_top_builddir=$ac_pwd
2683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2684 # for backward compatibility:
2685 ac_top_builddir=$ac_top_build_prefix
2688 .) # We are building in place.
2690 ac_top_srcdir=$ac_top_builddir_sub
2691 ac_abs_top_srcdir=$ac_pwd ;;
2692 [\\/]* | ?:[\\/]* ) # Absolute name.
2693 ac_srcdir=$srcdir$ac_dir_suffix;
2694 ac_top_srcdir=$srcdir
2695 ac_abs_top_srcdir=$srcdir ;;
2697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2698 ac_top_srcdir=$ac_top_build_prefix$srcdir
2699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2703 cd "$ac_dir" || { ac_status=$?; continue; }
2704 # Check for configure.gnu first; this name is used for a wrapper for
2705 # Metaconfig's "Configure" on case-insensitive file systems.
2706 if test -f "$ac_srcdir/configure.gnu"; then
2708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2709 elif test -f "$ac_srcdir/configure"; then
2711 $SHELL "$ac_srcdir/configure" --help=recursive
2713 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2715 cd "$ac_pwd" || { ac_status=$?; break; }
2719 test -n "$ac_init_help" && exit $ac_status
2720 if $ac_init_version; then
2722 GNU Libtasn1 configure 4.19.0
2723 generated by GNU Autoconf 2.71
2725 Copyright (C) 2021 Free Software Foundation, Inc.
2726 This configure script is free software; the Free Software Foundation
2727 gives unlimited permission to copy, distribute and modify it.
2732 ## ------------------------ ##
2733 ## Autoconf initialization. ##
2734 ## ------------------------ ##
2736 # ac_fn_c_try_compile LINENO
2737 # --------------------------
2738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2739 ac_fn_c_try_compile ()
2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742 rm -f conftest.$ac_objext conftest.beam
2743 if { { ac_try="$ac_compile"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 printf "%s\n" "$ac_try_echo"; } >&5
2750 (eval "$ac_compile") 2>conftest.err
2752 if test -s conftest.err; then
2753 grep -v '^ *+' conftest.err >conftest.er1
2754 cat conftest.er1 >&5
2755 mv -f conftest.er1 conftest.err
2757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext
2765 printf "%s\n" "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771 as_fn_set_status $ac_retval
2773 } # ac_fn_c_try_compile
2775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2776 # -------------------------------------------------------
2777 # Tests whether HEADER exists and can be compiled using the include files in
2778 # INCLUDES, setting the cache variable VAR accordingly.
2779 ac_fn_c_check_header_compile ()
2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2783 printf %s "checking for $2... " >&6; }
2784 if eval test \${$3+y}
2786 printf %s "(cached) " >&6
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2793 if ac_fn_c_try_compile "$LINENO"
2799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 printf "%s\n" "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 } # ac_fn_c_check_header_compile
2808 # ac_fn_c_try_cpp LINENO
2809 # ----------------------
2810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 if { { ac_try="$ac_cpp conftest.$ac_ext"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 printf "%s\n" "$ac_try_echo"; } >&5
2821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2823 if test -s conftest.err; then
2824 grep -v '^ *+' conftest.err >conftest.er1
2825 cat conftest.er1 >&5
2826 mv -f conftest.er1 conftest.err
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; } > conftest.i && {
2830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2836 printf "%s\n" "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 as_fn_set_status $ac_retval
2846 # ac_fn_c_try_link LINENO
2847 # -----------------------
2848 # Try to link conftest.$ac_ext, and return whether this succeeded.
2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2853 if { { ac_try="$ac_link"
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859 printf "%s\n" "$ac_try_echo"; } >&5
2860 (eval "$ac_link") 2>conftest.err
2862 if test -s conftest.err; then
2863 grep -v '^ *+' conftest.err >conftest.er1
2864 cat conftest.er1 >&5
2865 mv -f conftest.er1 conftest.err
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; } && {
2869 test -z "$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 } && test -s conftest$ac_exeext && {
2872 test "$cross_compiling" = yes ||
2873 test -x conftest$ac_exeext
2878 printf "%s\n" "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2885 # interfere with the next link command; also delete a directory that is
2886 # left behind by Apple's compiler. We do this before executing the actions.
2887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2889 as_fn_set_status $ac_retval
2891 } # ac_fn_c_try_link
2893 # ac_fn_c_check_func LINENO FUNC VAR
2894 # ----------------------------------
2895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2896 ac_fn_c_check_func ()
2898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 printf %s "checking for $2... " >&6; }
2901 if eval test \${$3+y}
2903 printf %s "(cached) " >&6
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2909 #define $2 innocuous_$2
2911 /* System header to define __stub macros and hopefully few prototypes,
2912 which can conflict with char $2 (); below. */
2917 /* Override any GCC internal prototype to avoid an error.
2918 Use char because int might match the return type of a GCC
2919 builtin and then its argument prototype would still apply. */
2924 /* The GNU C library defines this for functions which it implements
2925 to always fail with ENOSYS. Some functions are actually named
2926 something starting with __ and the normal name is an alias. */
2927 #if defined __stub_$2 || defined __stub___$2
2939 if ac_fn_c_try_link "$LINENO"
2945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2946 conftest$ac_exeext conftest.$ac_ext
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2950 printf "%s\n" "$ac_res" >&6; }
2951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2953 } # ac_fn_c_check_func
2955 # ac_fn_c_try_run LINENO
2956 # ----------------------
2957 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2958 # executables *can* be run.
2961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962 if { { ac_try="$ac_link"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 printf "%s\n" "$ac_try_echo"; } >&5
2969 (eval "$ac_link") 2>&5
2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2973 { { case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 printf "%s\n" "$ac_try_echo"; } >&5
2979 (eval "$ac_try") 2>&5
2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; }
2986 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2987 printf "%s\n" "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_retval=$ac_status
2992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994 as_fn_set_status $ac_retval
2998 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2999 # --------------------------------------------
3000 # Tries to find the compile-time value of EXPR in a program that includes
3001 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3003 ac_fn_c_compute_int ()
3005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3006 if test "$cross_compiling" = yes; then
3007 # Depending upon the size, compute the lo and hi bounds.
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3014 static int test_array [1 - 2 * !(($2) >= 0)];
3016 return test_array [0];
3022 if ac_fn_c_try_compile "$LINENO"
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h. */
3032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3034 return test_array [0];
3040 if ac_fn_c_try_compile "$LINENO"
3042 ac_hi=$ac_mid; break
3044 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3045 if test $ac_lo -le $ac_mid; then
3049 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3060 static int test_array [1 - 2 * !(($2) < 0)];
3062 return test_array [0];
3068 if ac_fn_c_try_compile "$LINENO"
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3080 return test_array [0];
3086 if ac_fn_c_try_compile "$LINENO"
3088 ac_lo=$ac_mid; break
3090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3091 if test $ac_mid -le $ac_hi; then
3095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3105 # Binary search between lo and hi bounds.
3106 while test "x$ac_lo" != "x$ac_hi"; do
3107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3116 return test_array [0];
3122 if ac_fn_c_try_compile "$LINENO"
3126 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3131 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3138 static long int longval (void) { return $2; }
3139 static unsigned long int ulongval (void) { return $2; }
3146 FILE *f = fopen ("conftest.val", "w");
3151 long int i = longval ();
3154 fprintf (f, "%ld", i);
3158 unsigned long int i = ulongval ();
3161 fprintf (f, "%lu", i);
3163 /* Do not output a trailing newline, as this causes \r\n confusion
3164 on some platforms. */
3165 return ferror (f) || fclose (f) != 0;
3171 if ac_fn_c_try_run "$LINENO"
3173 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3178 conftest.$ac_objext conftest.beam conftest.$ac_ext
3182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3183 as_fn_set_status $ac_retval
3185 } # ac_fn_c_compute_int
3187 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3188 # -------------------------------------------
3189 # Tests whether TYPE exists after having included INCLUDES, setting cache
3190 # variable VAR accordingly.
3191 ac_fn_c_check_type ()
3193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3195 printf %s "checking for $2... " >&6; }
3196 if eval test \${$3+y}
3198 printf %s "(cached) " >&6
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3213 if ac_fn_c_try_compile "$LINENO"
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"
3233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3239 printf "%s\n" "$ac_res" >&6; }
3240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3242 } # ac_fn_c_check_type
3244 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
3245 # ------------------------------------------------------------------
3246 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3247 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3250 ac_save_ac_compile="$ac_compile"
3251 if test -n "$ac_compile_for_check_decl"; then
3252 ac_compile="$ac_compile_for_check_decl"
3254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3255 as_decl_name=`echo $2|sed 's/ *(.*//'`
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3257 printf %s "checking whether $as_decl_name is declared... " >&6; }
3258 if eval test \${$3+y}
3260 printf %s "(cached) " >&6
3262 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3263 eval ac_save_FLAGS=\$$6
3264 as_fn_append $6 " $5"
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3271 #ifndef $as_decl_name
3273 (void) $as_decl_use;
3275 (void) $as_decl_name;
3283 if ac_fn_c_try_compile "$LINENO"
3289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3290 eval $6=\$ac_save_FLAGS
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3295 printf "%s\n" "$ac_res" >&6; }
3296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3297 ac_compile="$ac_save_ac_compile"
3299 } # ac_fn_check_decl
3301 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3302 # ----------------------------------------------------
3303 # Tries to find if the field MEMBER exists in type AGGR, after including
3304 # INCLUDES, setting cache variable VAR accordingly.
3305 ac_fn_c_check_member ()
3307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3309 printf %s "checking for $2.$3... " >&6; }
3310 if eval test \${$4+y}
3312 printf %s "(cached) " >&6
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3327 if ac_fn_c_try_compile "$LINENO"
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3338 if (sizeof ac_aggr.$3)
3344 if ac_fn_c_try_compile "$LINENO"
3350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3356 printf "%s\n" "$ac_res" >&6; }
3357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3359 } # ac_fn_c_check_member
3360 ac_configure_args_raw=
3365 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3367 as_fn_append ac_configure_args_raw " '$ac_arg'"
3370 case $ac_configure_args_raw in
3374 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3375 ac_unsafe_a="$ac_unsafe_z#~"
3376 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3377 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3380 cat >config.log <<_ACEOF
3381 This file contains any messages produced by compilers while
3382 running configure, to aid debugging if configure makes a mistake.
3384 It was created by GNU Libtasn1 $as_me 4.19.0, which was
3385 generated by GNU Autoconf 2.71. Invocation command line was
3387 $ $0$ac_configure_args_raw
3397 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3398 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3399 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3400 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3401 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3403 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3404 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3406 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3407 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3408 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3409 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3410 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3411 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3412 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 case $as_dir in #(((
3423 *) as_dir=$as_dir/ ;;
3425 printf "%s\n" "PATH: $as_dir"
3441 # Keep a trace of the command line.
3442 # Strip out --no-create and --no-recursion so they do not pile up.
3443 # Strip out --silent because we don't want to record it for future runs.
3444 # Also quote any args containing shell meta-characters.
3445 # Make two passes to allow for proper duplicate-argument suppression.
3449 ac_must_keep_next=false
3455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3457 | -silent | --silent | --silen | --sile | --sil)
3460 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3463 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3465 as_fn_append ac_configure_args1 " '$ac_arg'"
3466 if test $ac_must_keep_next = true; then
3467 ac_must_keep_next=false # Got value, back to normal.
3470 *=* | --config-cache | -C | -disable-* | --disable-* \
3471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3473 | -with-* | --with-* | -without-* | --without-* | --x)
3474 case "$ac_configure_args0 " in
3475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3478 -* ) ac_must_keep_next=true ;;
3481 as_fn_append ac_configure_args " '$ac_arg'"
3486 { ac_configure_args0=; unset ac_configure_args0;}
3487 { ac_configure_args1=; unset ac_configure_args1;}
3489 # When interrupted or exit'd, cleanup temporary files, and complete
3490 # config.log. We remove comments because anyway the quotes in there
3491 # would cause problems or look ugly.
3492 # WARNING: Use '\'' to represent an apostrophe within the trap.
3493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3494 trap 'exit_status=$?
3497 # Save into config.log some information that might help in debugging.
3501 printf "%s\n" "## ---------------- ##
3502 ## Cache variables. ##
3503 ## ---------------- ##"
3505 # The following way of writing the cache mishandles newlines in values,
3507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3508 eval ac_val=\$$ac_var
3512 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3513 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3516 _ | IFS | as_nl) ;; #(
3517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3518 *) { eval $ac_var=; unset $ac_var;} ;;
3523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3524 *${as_nl}ac_space=\ *)
3526 "s/'\''/'\''\\\\'\'''\''/g;
3527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3537 printf "%s\n" "## ----------------- ##
3538 ## Output variables. ##
3539 ## ----------------- ##"
3541 for ac_var in $ac_subst_vars
3543 eval ac_val=\$$ac_var
3545 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3547 printf "%s\n" "$ac_var='\''$ac_val'\''"
3551 if test -n "$ac_subst_files"; then
3552 printf "%s\n" "## ------------------- ##
3553 ## File substitutions. ##
3554 ## ------------------- ##"
3556 for ac_var in $ac_subst_files
3558 eval ac_val=\$$ac_var
3560 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3562 printf "%s\n" "$ac_var='\''$ac_val'\''"
3567 if test -s confdefs.h; then
3568 printf "%s\n" "## ----------- ##
3575 test "$ac_signal" != 0 &&
3576 printf "%s\n" "$as_me: caught signal $ac_signal"
3577 printf "%s\n" "$as_me: exit $exit_status"
3579 rm -f core *.core core.conftest.* &&
3580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3583 for ac_signal in 1 2 13 15; do
3584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3589 rm -f -r conftest* confdefs.h
3591 printf "%s\n" "/* confdefs.h */" > confdefs.h
3593 # Predefined preprocessor variables.
3595 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3597 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3599 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3601 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3603 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3605 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3608 # Let the site file select an alternate cache file if it wants to.
3609 # Prefer an explicitly selected file to automatically selected ones.
3610 if test -n "$CONFIG_SITE"; then
3611 ac_site_files="$CONFIG_SITE"
3612 elif test "x$prefix" != xNONE; then
3613 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3615 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3618 for ac_site_file in $ac_site_files
3620 case $ac_site_file in #(
3624 ac_site_file=./$ac_site_file ;;
3626 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3628 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3629 sed 's/^/| /' "$ac_site_file" >&5
3631 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "failed to load site script $ac_site_file
3634 See \`config.log' for more details" "$LINENO" 5; }
3638 if test -r "$cache_file"; then
3639 # Some versions of bash will fail to source /dev/null (special files
3640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3641 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3643 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3645 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3646 *) . "./$cache_file";;
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3651 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3655 # Test code for whether the C compiler supports C89 (global declarations)
3656 ac_c_conftest_c89_globals='
3657 /* Does the compiler advertise C89 conformance?
3658 Do not test the value of __STDC__, because some compilers set it to 0
3659 while being otherwise adequately conformant. */
3660 #if !defined __STDC__
3661 # error "Compiler does not advertise C89 conformance"
3667 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3668 struct buf { int x; };
3669 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3681 s = g (p, va_arg (v,int));
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not \xHH hex character constants.
3688 These do not provoke an error unfortunately, instead are silently treated
3689 as an "x". The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3691 array size at least. It is necessary to write \x00 == 0 to get something
3692 that is true only with -std. */
3693 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697 #define FOO(x) '\''x'\''
3698 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3706 # Test code for whether the C compiler supports C89 (body of main).
3707 ac_c_conftest_c89_main='
3708 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3711 # Test code for whether the C compiler supports C99 (global declarations)
3712 ac_c_conftest_c99_globals='
3713 // Does the compiler advertise C99 conformance?
3714 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3715 # error "Compiler does not advertise C99 conformance"
3718 #include <stdbool.h>
3719 extern int puts (const char *);
3720 extern int printf (const char *, ...);
3721 extern int dprintf (int, const char *, ...);
3722 extern void *malloc (size_t);
3724 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3725 // dprintf is used instead of fprintf to avoid needing to declare
3727 #define debug(...) dprintf (2, __VA_ARGS__)
3728 #define showlist(...) puts (#__VA_ARGS__)
3729 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3731 test_varargs_macros (void)
3736 debug ("X = %d\n", x);
3737 showlist (The first, second, and third items.);
3738 report (x>y, "x is %d but y is %d", x, y);
3741 // Check long long types.
3742 #define BIG64 18446744073709551615ull
3743 #define BIG32 4294967295ul
3744 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3746 #error "your preprocessor is broken"
3750 #error "your preprocessor is broken"
3752 static long long int bignum = -9223372036854775807LL;
3753 static unsigned long long int ubignum = BIG64;
3755 struct incomplete_array
3763 const wchar_t *name;
3767 typedef const char *ccp;
3770 test_restrict (ccp restrict text)
3772 // See if C++-style comments work.
3773 // Iterate through items via the restricted pointer.
3774 // Also check for declarations in for loops.
3775 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3780 // Check varargs and va_copy.
3782 test_varargs (const char *format, ...)
3785 va_start (args, format);
3787 va_copy (args_copy, args);
3789 const char *str = "";
3797 case '\''s'\'': // string
3798 str = va_arg (args_copy, const char *);
3800 case '\''d'\'': // int
3801 number = va_arg (args_copy, int);
3803 case '\''f'\'': // float
3804 fnumber = va_arg (args_copy, double);
3813 return *str && number && fnumber;
3817 # Test code for whether the C compiler supports C99 (body of main).
3818 ac_c_conftest_c99_main='
3820 _Bool success = false;
3821 success |= (argc != 0);
3824 if (test_restrict ("String literal") == 0)
3826 char *restrict newvar = "Another string";
3829 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3830 test_varargs_macros ();
3832 // Check flexible array members.
3833 struct incomplete_array *ia =
3834 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3836 for (int i = 0; i < ia->datasize; ++i)
3837 ia->data[i] = i * 1.234;
3839 // Check named initializers.
3840 struct named_init ni = {
3842 .name = L"Test wide string",
3843 .average = 543.34343,
3848 int dynamic_array[ni.number];
3849 dynamic_array[0] = argv[0][0];
3850 dynamic_array[ni.number - 1] = 543;
3852 // work around unused variable warnings
3853 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3854 || dynamic_array[ni.number - 1] != 543);
3857 # Test code for whether the C compiler supports C11 (global declarations)
3858 ac_c_conftest_c11_globals='
3859 // Does the compiler advertise C11 conformance?
3860 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3861 # error "Compiler does not advertise C11 conformance"
3865 char _Alignas (double) aligned_as_double;
3866 char _Alignas (0) no_special_alignment;
3867 extern char aligned_as_int;
3868 char _Alignas (0) _Alignas (int) aligned_as_int;
3873 int_alignment = _Alignof (int),
3874 int_array_alignment = _Alignof (int[100]),
3875 char_alignment = _Alignof (char)
3877 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3880 int _Noreturn does_not_return (void) { for (;;) continue; }
3882 // Check _Static_assert.
3883 struct test_static_assert
3886 _Static_assert (sizeof (int) <= sizeof (long int),
3887 "_Static_assert does not work in struct");
3891 // Check UTF-8 literals.
3892 #define u8 syntax error!
3893 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3895 // Check duplicate typedefs.
3896 typedef long *long_ptr;
3897 typedef long int *long_ptr;
3898 typedef long_ptr long_ptr;
3900 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3904 struct { int i; int j; };
3905 struct { int k; long int l; } w;
3911 # Test code for whether the C compiler supports C11 (body of main).
3912 ac_c_conftest_c11_main='
3913 _Static_assert ((offsetof (struct anonymous, i)
3914 == offsetof (struct anonymous, w.k)),
3915 "Anonymous union alignment botch");
3921 # Test code for whether the C compiler supports C11 (complete).
3922 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3923 ${ac_c_conftest_c99_globals}
3924 ${ac_c_conftest_c11_globals}
3927 main (int argc, char **argv)
3930 ${ac_c_conftest_c89_main}
3931 ${ac_c_conftest_c99_main}
3932 ${ac_c_conftest_c11_main}
3937 # Test code for whether the C compiler supports C99 (complete).
3938 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3939 ${ac_c_conftest_c99_globals}
3942 main (int argc, char **argv)
3945 ${ac_c_conftest_c89_main}
3946 ${ac_c_conftest_c99_main}
3951 # Test code for whether the C compiler supports C89 (complete).
3952 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3955 main (int argc, char **argv)
3958 ${ac_c_conftest_c89_main}
3963 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3964 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3965 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3966 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3967 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3968 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3969 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3970 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3971 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3972 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3973 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3974 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3975 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3976 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3977 as_fn_append ac_func_c_list " explicit_bzero HAVE_EXPLICIT_BZERO"
3978 as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S"
3979 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3980 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3981 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3982 gl_getopt_required=GNU
3983 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
3984 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
3985 as_fn_append ac_func_c_list " timespec_get HAVE_TIMESPEC_GET"
3986 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3987 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
3988 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3989 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3990 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
3991 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3992 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3994 # Auxiliary files required by this configure script.
3995 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3997 # Locations in which to look for auxiliary files.
3998 ac_aux_dir_candidates="${srcdir}/build-aux"
4000 # Search for a directory containing all of the required auxiliary files,
4001 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4002 # If we don't find one directory that contains all the files we need,
4003 # we report the set of missing files from the *first* directory in
4004 # $ac_aux_dir_candidates and give up.
4005 ac_missing_aux_files=""
4006 ac_first_candidate=:
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $ac_aux_dir_candidates
4013 case $as_dir in #(((
4016 *) as_dir=$as_dir/ ;;
4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
4021 ac_aux_dir_found=yes
4023 for ac_aux in $ac_aux_files
4025 # As a special case, if "install-sh" is required, that requirement
4026 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4027 # and $ac_install_sh is set appropriately for whichever one is found.
4028 if test x"$ac_aux" = x"install-sh"
4030 if test -f "${as_dir}install-sh"; then
4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
4032 ac_install_sh="${as_dir}install-sh -c"
4033 elif test -f "${as_dir}install.sh"; then
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
4035 ac_install_sh="${as_dir}install.sh -c"
4036 elif test -f "${as_dir}shtool"; then
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
4038 ac_install_sh="${as_dir}shtool install -c"
4041 if $ac_first_candidate; then
4042 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4048 if test -f "${as_dir}${ac_aux}"; then
4049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
4052 if $ac_first_candidate; then
4053 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4060 if test "$ac_aux_dir_found" = yes; then
4061 ac_aux_dir="$as_dir"
4064 ac_first_candidate=false
4073 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
4077 # These three variables are undocumented and unsupported,
4078 # and are intended to be withdrawn in a future Autoconf release.
4079 # They can cause serious problems if a builder's source tree is in a directory
4080 # whose full name contains unusual characters.
4081 if test -f "${ac_aux_dir}config.guess"; then
4082 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4084 if test -f "${ac_aux_dir}config.sub"; then
4085 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4087 if test -f "$ac_aux_dir/configure"; then
4088 ac_configure="$SHELL ${ac_aux_dir}configure"
4091 # Check that the precious variables saved in the cache have kept the same
4093 ac_cache_corrupted=false
4094 for ac_var in $ac_precious_vars; do
4095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4096 eval ac_new_set=\$ac_env_${ac_var}_set
4097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4098 eval ac_new_val=\$ac_env_${ac_var}_value
4099 case $ac_old_set,$ac_new_set in
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4102 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4103 ac_cache_corrupted=: ;;
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4106 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4107 ac_cache_corrupted=: ;;
4110 if test "x$ac_old_val" != "x$ac_new_val"; then
4111 # differences in whitespace do not lead to failure.
4112 ac_old_val_w=`echo x $ac_old_val`
4113 ac_new_val_w=`echo x $ac_new_val`
4114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4116 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4117 ac_cache_corrupted=:
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4120 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4121 eval $ac_var=\$ac_old_val
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
4124 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
4126 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
4129 # Pass precious variables to config.status.
4130 if test "$ac_new_set" = set; then
4132 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4133 *) ac_arg=$ac_var=$ac_new_val ;;
4135 case " $ac_configure_args " in
4136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4141 if $ac_cache_corrupted; then
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4145 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4146 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
4147 and start over" "$LINENO" 5
4149 ## -------------------- ##
4150 ## Main body of script. ##
4151 ## -------------------- ##
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 # Library code modified: REVISION++
4162 # Interfaces changed/added/removed: CURRENT++ REVISION=0
4163 # Interfaces added: AGE++
4164 # Interfaces removed: AGE=0
4172 MAJOR_VERSION=`echo $PACKAGE_VERSION|cut -d'.' -f1`
4174 MINOR_VERSION=`echo $PACKAGE_VERSION|cut -d'.' -f2`
4176 PATCH_VERSION=`echo $PACKAGE_VERSION.0|cut -d. -f3|cut -d- -f1`
4178 NUMBER_VERSION=`printf '0x%02x%02x%02x' $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&5
4182 printf "%s\n" "$as_me: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&6;}
4186 ac_config_headers="$ac_config_headers config.h"
4189 am__api_version='1.16'
4193 # Find a good install program. We prefer a C program (faster),
4194 # so one script is as good as another. But avoid the broken or
4195 # incompatible versions:
4196 # SysV /etc/install, /usr/sbin/install
4197 # SunOS /usr/etc/install
4198 # IRIX /sbin/install
4200 # AmigaOS /C/install, which installs bootblocks on floppy discs
4201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4204 # OS/2's system install, which has a completely different semantic
4205 # ./install, which can be erroneously created by make from ./install.sh.
4206 # Reject install programs that cannot install multiple files.
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4208 printf %s "checking for a BSD-compatible install... " >&6; }
4209 if test -z "$INSTALL"; then
4210 if test ${ac_cv_path_install+y}
4212 printf %s "(cached) " >&6
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 case $as_dir in #(((
4221 *) as_dir=$as_dir/ ;;
4223 # Account for fact that we put trailing slashes in our PATH walk.
4226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4230 # OSF1 and SCO ODT 3.0 have their own names for install.
4231 # Don't use installbsd from OSF since it installs stuff as root
4233 for ac_prog in ginstall scoinst install; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4236 if test $ac_prog = install &&
4237 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238 # AIX install. It has an incompatible calling convention.
4240 elif test $ac_prog = install &&
4241 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # program-specific install script used by HP pwplus--don't use.
4245 rm -rf conftest.one conftest.two conftest.dir
4246 echo one > conftest.one
4247 echo two > conftest.two
4249 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4250 test -s conftest.one && test -s conftest.two &&
4251 test -s conftest.dir/conftest.one &&
4252 test -s conftest.dir/conftest.two
4254 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4267 rm -rf conftest.one conftest.two conftest.dir
4270 if test ${ac_cv_path_install+y}; then
4271 INSTALL=$ac_cv_path_install
4273 # As a last resort, use the slow shell script. Don't cache a
4274 # value for INSTALL within a source directory, because that will
4275 # break other packages using the cache if that directory is
4276 # removed, or if the value is a relative name.
4277 INSTALL=$ac_install_sh
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4281 printf "%s\n" "$INSTALL" >&6; }
4283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4284 # It thinks the first close brace ends the variable substitution.
4285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4292 printf %s "checking whether build environment is sane... " >&6; }
4293 # Reject unsafe characters in $srcdir or the absolute working directory
4294 # name. Accept space and tab only in the latter.
4298 *[\\\"\#\$\&\'\`$am_lf]*)
4299 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4303 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4306 # Do 'set' in a subshell so we don't clobber the current shell's
4307 # arguments. Must try -L first in case configure is actually a
4308 # symlink; some systems play weird games with the mod time of symlinks
4309 # (eg FreeBSD returns the mod time of the symlink's containing
4313 for am_try in 1 2; do
4314 echo "timestamp, slept: $am_has_slept" > conftest.file
4315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4316 if test "$*" = "X"; then
4318 set X `ls -t "$srcdir/configure" conftest.file`
4320 if test "$*" != "X $srcdir/configure conftest.file" \
4321 && test "$*" != "X conftest.file $srcdir/configure"; then
4323 # If neither matched, then we have a broken ls. This can happen
4324 # if, for instance, CONFIG_SHELL is bash and it inherits a
4325 # broken ls alias from the environment. This has actually
4326 # happened. Such a system could not be considered "sane".
4327 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4328 alias in your environment" "$LINENO" 5
4330 if test "$2" = conftest.file || test $am_try -eq 2; then
4337 test "$2" = conftest.file
4343 as_fn_error $? "newly created file is older than distributed files!
4344 Check your system clock" "$LINENO" 5
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 printf "%s\n" "yes" >&6; }
4348 # If we didn't sleep, we still need to ensure time stamps of config.status and
4349 # generated files are strictly newer.
4351 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4358 test "$program_prefix" != NONE &&
4359 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4360 # Use a double $ so make ignores it.
4361 test "$program_suffix" != NONE &&
4362 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4363 # Double any \ or $.
4364 # By default was `s,x,x', remove it if useless.
4365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4366 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4369 # Expand $ac_aux_dir to an absolute path.
4370 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4373 if test x"${MISSING+set}" != xset; then
4374 MISSING="\${SHELL} '$am_aux_dir/missing'"
4376 # Use eval to expand $SHELL
4377 if eval "$MISSING --is-lightweight"; then
4378 am_missing_run="$MISSING "
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4382 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4385 if test x"${install_sh+set}" != xset; then
4388 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4390 install_sh="\${SHELL} $am_aux_dir/install-sh"
4394 # Installed binaries are usually stripped using 'strip' when the user
4395 # run "make install-strip". However 'strip' might not be the right
4396 # tool to use in cross-compilation environments, therefore Automake
4397 # will honor the 'STRIP' environment variable to overrule this program.
4398 if test "$cross_compiling" != no; then
4399 if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4401 set dummy ${ac_tool_prefix}strip; ac_word=$2
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 printf %s "checking for $ac_word... " >&6; }
4404 if test ${ac_cv_prog_STRIP+y}
4406 printf %s "(cached) " >&6
4408 if test -n "$STRIP"; then
4409 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 case $as_dir in #(((
4418 *) as_dir=$as_dir/ ;;
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4432 STRIP=$ac_cv_prog_STRIP
4433 if test -n "$STRIP"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4435 printf "%s\n" "$STRIP" >&6; }
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4443 if test -z "$ac_cv_prog_STRIP"; then
4445 # Extract the first word of "strip", so it can be a program name with args.
4446 set dummy strip; ac_word=$2
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 printf %s "checking for $ac_word... " >&6; }
4449 if test ${ac_cv_prog_ac_ct_STRIP+y}
4451 printf %s "(cached) " >&6
4453 if test -n "$ac_ct_STRIP"; then
4454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 case $as_dir in #(((
4463 *) as_dir=$as_dir/ ;;
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_STRIP="strip"
4468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4478 if test -n "$ac_ct_STRIP"; then
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4480 printf "%s\n" "$ac_ct_STRIP" >&6; }
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 printf "%s\n" "no" >&6; }
4486 if test "x$ac_ct_STRIP" = x; then
4489 case $cross_compiling:$ac_tool_warned in
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4498 STRIP="$ac_cv_prog_STRIP"
4502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4506 printf %s "checking for a race-free mkdir -p... " >&6; }
4507 if test -z "$MKDIR_P"; then
4508 if test ${ac_cv_path_mkdir+y}
4510 printf %s "(cached) " >&6
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4516 case $as_dir in #(((
4519 *) as_dir=$as_dir/ ;;
4521 for ac_prog in mkdir gmkdir; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4524 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4525 'mkdir ('*'coreutils) '* | \
4527 'mkdir (fileutils) '4.1*)
4528 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4538 test -d ./--version && rmdir ./--version
4539 if test ${ac_cv_path_mkdir+y}; then
4540 MKDIR_P="$ac_cv_path_mkdir -p"
4542 # As a last resort, use the slow shell script. Don't cache a
4543 # value for MKDIR_P within a source directory, because that will
4544 # break other packages using the cache if that directory is
4545 # removed, or if the value is a relative name.
4546 MKDIR_P="$ac_install_sh -d"
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4550 printf "%s\n" "$MKDIR_P" >&6; }
4552 for ac_prog in gawk mawk nawk awk
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 printf %s "checking for $ac_word... " >&6; }
4558 if test ${ac_cv_prog_AWK+y}
4560 printf %s "(cached) " >&6
4562 if test -n "$AWK"; then
4563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 case $as_dir in #(((
4572 *) as_dir=$as_dir/ ;;
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4576 ac_cv_prog_AWK="$ac_prog"
4577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4587 if test -n "$AWK"; then
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4589 printf "%s\n" "$AWK" >&6; }
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 printf "%s\n" "no" >&6; }
4596 test -n "$AWK" && break
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4600 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4602 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4603 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4605 printf %s "(cached) " >&6
4607 cat >conftest.make <<\_ACEOF
4610 @echo '@@@%%%=$(MAKE)=@@@%%%'
4612 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4615 eval ac_cv_prog_make_${ac_make}_set=yes;;
4617 eval ac_cv_prog_make_${ac_make}_set=no;;
4621 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 printf "%s\n" "yes" >&6; }
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf "%s\n" "no" >&6; }
4628 SET_MAKE="MAKE=${MAKE-make}"
4631 rm -rf .tst 2>/dev/null
4632 mkdir .tst 2>/dev/null
4633 if test -d .tst; then
4638 rmdir .tst 2>/dev/null
4640 # Check whether --enable-silent-rules was given.
4641 if test ${enable_silent_rules+y}
4643 enableval=$enable_silent_rules;
4646 case $enable_silent_rules in # (((
4647 yes) AM_DEFAULT_VERBOSITY=0;;
4648 no) AM_DEFAULT_VERBOSITY=1;;
4649 *) AM_DEFAULT_VERBOSITY=1;;
4651 am_make=${MAKE-make}
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4653 printf %s "checking whether $am_make supports nested variables... " >&6; }
4654 if test ${am_cv_make_support_nested_variables+y}
4656 printf %s "(cached) " >&6
4658 if printf "%s\n" 'TRUE=$(BAR$(V))
4664 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4665 am_cv_make_support_nested_variables=yes
4667 am_cv_make_support_nested_variables=no
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4671 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4672 if test $am_cv_make_support_nested_variables = yes; then
4674 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4676 AM_V=$AM_DEFAULT_VERBOSITY
4677 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4681 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4682 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4683 # is not polluted with repeated "-I."
4684 am__isrc=' -I$(srcdir)'
4685 # test to see if srcdir already configured
4686 if test -f $srcdir/config.status; then
4687 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4691 # test whether we have cygpath
4692 if test -z "$CYGPATH_W"; then
4693 if (cygpath --version) >/dev/null 2>/dev/null; then
4694 CYGPATH_W='cygpath -w'
4701 # Define the identity of the package.
4706 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4709 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4711 # Some tools Automake needs.
4713 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4716 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4719 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4722 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4725 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4727 # For better backward compatibility. To be removed once Automake 1.9.x
4728 # dies out for good. For more background, see:
4729 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4730 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4731 mkdir_p='$(MKDIR_P)'
4733 # We need awk for the "check" target (and possibly the TAP driver). The
4734 # system "awk" is bad on some platforms.
4735 # Always define AMTAR for backward compatibility. Yes, it's still used
4736 # in the wild :-( We should find a proper way to deprecate it ...
4740 # We'll loop over all known methods to create a tar archive until one works.
4741 _am_tools='gnutar pax cpio none'
4743 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4749 # Variables for tags utilities; see am/tags.am
4750 if test -z "$CTAGS"; then
4754 if test -z "$ETAGS"; then
4758 if test -z "$CSCOPE"; then
4764 # POSIX will say in a future version that running "rm -f" with no argument
4765 # is OK; and we want to be able to make that assumption in our Makefile
4766 # recipes. So use an aggressive probe to check that the usage we want is
4767 # actually supported "in the wild" to an acceptable degree.
4768 # See automake bug#10828.
4769 # To make any issue more visible, cause the running configure to be aborted
4770 # by default if the 'rm' program in use doesn't match our expectations; the
4771 # user can still override this though.
4772 if rm -f && rm -fr && rm -rf; then : OK; else
4776 Your 'rm' program seems unable to run without file operands specified
4777 on the command line, even when the '-f' option is present. This is contrary
4778 to the behaviour of most rm programs out there, and not conforming with
4779 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4781 Please tell bug-automake@gnu.org about your system, including the value
4782 of your $PATH and any error possibly output before this message. This
4783 can help us improve future automake versions.
4786 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4787 echo 'Configuration will proceed anyway, since you have set the' >&2
4788 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4792 Aborting the configuration process, to ensure you take notice of the issue.
4794 You can download and install GNU coreutils to get an 'rm' implementation
4795 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4797 If you want to complete the configuration process using your problematic
4798 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4799 to "yes", and re-run configure.
4802 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4806 # Check whether --enable-silent-rules was given.
4807 if test ${enable_silent_rules+y}
4809 enableval=$enable_silent_rules;
4812 case $enable_silent_rules in # (((
4813 yes) AM_DEFAULT_VERBOSITY=0;;
4814 no) AM_DEFAULT_VERBOSITY=1;;
4815 *) AM_DEFAULT_VERBOSITY=0;;
4817 am_make=${MAKE-make}
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4819 printf %s "checking whether $am_make supports nested variables... " >&6; }
4820 if test ${am_cv_make_support_nested_variables+y}
4822 printf %s "(cached) " >&6
4824 if printf "%s\n" 'TRUE=$(BAR$(V))
4830 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4831 am_cv_make_support_nested_variables=yes
4833 am_cv_make_support_nested_variables=no
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4837 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4838 if test $am_cv_make_support_nested_variables = yes; then
4840 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4842 AM_V=$AM_DEFAULT_VERBOSITY
4843 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 printf %s "checking for $ac_word... " >&6; }
4867 if test ${ac_cv_prog_CC+y}
4869 printf %s "(cached) " >&6
4871 if test -n "$CC"; then
4872 ac_cv_prog_CC="$CC" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 case $as_dir in #(((
4881 *) as_dir=$as_dir/ ;;
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4896 if test -n "$CC"; then
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 printf "%s\n" "$CC" >&6; }
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 printf "%s\n" "no" >&6; }
4906 if test -z "$ac_cv_prog_CC"; then
4908 # Extract the first word of "gcc", so it can be a program name with args.
4909 set dummy gcc; ac_word=$2
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 printf %s "checking for $ac_word... " >&6; }
4912 if test ${ac_cv_prog_ac_ct_CC+y}
4914 printf %s "(cached) " >&6
4916 if test -n "$ac_ct_CC"; then
4917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 case $as_dir in #(((
4926 *) as_dir=$as_dir/ ;;
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_ac_ct_CC="gcc"
4931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4941 if test -n "$ac_ct_CC"; then
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4943 printf "%s\n" "$ac_ct_CC" >&6; }
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 printf "%s\n" "no" >&6; }
4949 if test "x$ac_ct_CC" = x; then
4952 case $cross_compiling:$ac_tool_warned in
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4964 if test -z "$CC"; then
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}cc; ac_word=$2
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 printf %s "checking for $ac_word... " >&6; }
4970 if test ${ac_cv_prog_CC+y}
4972 printf %s "(cached) " >&6
4974 if test -n "$CC"; then
4975 ac_cv_prog_CC="$CC" # Let the user override the test.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 case $as_dir in #(((
4984 *) as_dir=$as_dir/ ;;
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_CC="${ac_tool_prefix}cc"
4989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4999 if test -n "$CC"; then
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001 printf "%s\n" "$CC" >&6; }
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; }
5010 if test -z "$CC"; then
5011 # Extract the first word of "cc", so it can be a program name with args.
5012 set dummy cc; ac_word=$2
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 printf %s "checking for $ac_word... " >&6; }
5015 if test ${ac_cv_prog_CC+y}
5017 printf %s "(cached) " >&6
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 case $as_dir in #(((
5030 *) as_dir=$as_dir/ ;;
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5034 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5035 ac_prog_rejected=yes
5039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5046 if test $ac_prog_rejected = yes; then
5047 # We found a bogon in the path, so make sure we never use it.
5048 set dummy $ac_cv_prog_CC
5050 if test $# != 0; then
5051 # We chose a different compiler from the bogus one.
5052 # However, it has the same basename, so the bogon will be chosen
5053 # first if we set CC to just the basename; use the full file name.
5055 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5061 if test -n "$CC"; then
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5071 if test -z "$CC"; then
5072 if test -n "$ac_tool_prefix"; then
5073 for ac_prog in cl.exe
5075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 printf %s "checking for $ac_word... " >&6; }
5079 if test ${ac_cv_prog_CC+y}
5081 printf %s "(cached) " >&6
5083 if test -n "$CC"; then
5084 ac_cv_prog_CC="$CC" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 case $as_dir in #(((
5093 *) as_dir=$as_dir/ ;;
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5108 if test -n "$CC"; then
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 printf "%s\n" "$CC" >&6; }
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 printf "%s\n" "no" >&6; }
5117 test -n "$CC" && break
5120 if test -z "$CC"; then
5122 for ac_prog in cl.exe
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 printf %s "checking for $ac_word... " >&6; }
5128 if test ${ac_cv_prog_ac_ct_CC+y}
5130 printf %s "(cached) " >&6
5132 if test -n "$ac_ct_CC"; then
5133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 case $as_dir in #(((
5142 *) as_dir=$as_dir/ ;;
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_ac_ct_CC="$ac_prog"
5147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5157 if test -n "$ac_ct_CC"; then
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5159 printf "%s\n" "$ac_ct_CC" >&6; }
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 printf "%s\n" "no" >&6; }
5166 test -n "$ac_ct_CC" && break
5169 if test "x$ac_ct_CC" = x; then
5172 case $cross_compiling:$ac_tool_warned in
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5183 if test -z "$CC"; then
5184 if test -n "$ac_tool_prefix"; then
5185 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}clang; ac_word=$2
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 printf %s "checking for $ac_word... " >&6; }
5189 if test ${ac_cv_prog_CC+y}
5191 printf %s "(cached) " >&6
5193 if test -n "$CC"; then
5194 ac_cv_prog_CC="$CC" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 case $as_dir in #(((
5203 *) as_dir=$as_dir/ ;;
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_CC="${ac_tool_prefix}clang"
5208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5218 if test -n "$CC"; then
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5220 printf "%s\n" "$CC" >&6; }
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5228 if test -z "$ac_cv_prog_CC"; then
5230 # Extract the first word of "clang", so it can be a program name with args.
5231 set dummy clang; ac_word=$2
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 printf %s "checking for $ac_word... " >&6; }
5234 if test ${ac_cv_prog_ac_ct_CC+y}
5236 printf %s "(cached) " >&6
5238 if test -n "$ac_ct_CC"; then
5239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 case $as_dir in #(((
5248 *) as_dir=$as_dir/ ;;
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_CC="clang"
5253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5263 if test -n "$ac_ct_CC"; then
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5265 printf "%s\n" "$ac_ct_CC" >&6; }
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 printf "%s\n" "no" >&6; }
5271 if test "x$ac_ct_CC" = x; then
5274 case $cross_compiling:$ac_tool_warned in
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5289 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5291 as_fn_error $? "no acceptable C compiler found in \$PATH
5292 See \`config.log' for more details" "$LINENO" 5; }
5294 # Provide some information about the compiler.
5295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5298 for ac_option in --version -v -V -qversion -version; do
5299 { { ac_try="$ac_compiler $ac_option >&5"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5305 printf "%s\n" "$ac_try_echo"; } >&5
5306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5308 if test -s conftest.err; then
5310 ... rest of stderr output deleted ...
5311 10q' conftest.err >conftest.er1
5312 cat conftest.er1 >&5
5314 rm -f conftest.er1 conftest.err
5315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5330 ac_clean_files_save=$ac_clean_files
5331 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5332 # Try to create an executable without -o first, disregard a.out.
5333 # It will help us diagnose broken compilers, and finding out an intuition
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5336 printf %s "checking whether the C compiler works... " >&6; }
5337 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5339 # The possible output files:
5340 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5343 for ac_file in $ac_files
5346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5347 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5352 if { { ac_try="$ac_link_default"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5358 printf "%s\n" "$ac_try_echo"; } >&5
5359 (eval "$ac_link_default") 2>&5
5361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5362 test $ac_status = 0; }
5364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5366 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5367 # so that the user can short-circuit this test for compilers unknown to
5369 for ac_file in $ac_files ''
5371 test -f "$ac_file" || continue
5373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5376 # We found the default executable, but exeext='' is most
5380 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5384 # We set ac_cv_exeext here because the later test for it is not
5385 # safe: cross compilers may not add the suffix if given an `-o'
5386 # argument, so we may need to know it at that point already.
5387 # Even if this section looks crufty: it has the advantage of
5394 test "$ac_cv_exeext" = no && ac_cv_exeext=
5399 if test -z "$ac_file"
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 printf "%s\n" "no" >&6; }
5403 printf "%s\n" "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error 77 "C compiler cannot create executables
5409 See \`config.log' for more details" "$LINENO" 5; }
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 printf "%s\n" "yes" >&6; }
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5415 printf %s "checking for C compiler default output file name... " >&6; }
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5417 printf "%s\n" "$ac_file" >&6; }
5418 ac_exeext=$ac_cv_exeext
5420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5421 ac_clean_files=$ac_clean_files_save
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5423 printf %s "checking for suffix of executables... " >&6; }
5424 if { { ac_try="$ac_link"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430 printf "%s\n" "$ac_try_echo"; } >&5
5431 (eval "$ac_link") 2>&5
5433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434 test $ac_status = 0; }
5436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5438 # work properly (i.e., refer to `conftest.exe'), while it won't with
5440 for ac_file in conftest.exe conftest conftest.*; do
5441 test -f "$ac_file" || continue
5443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5453 See \`config.log' for more details" "$LINENO" 5; }
5455 rm -f conftest conftest$ac_cv_exeext
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5457 printf "%s\n" "$ac_cv_exeext" >&6; }
5459 rm -f conftest.$ac_ext
5460 EXEEXT=$ac_cv_exeext
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5468 FILE *f = fopen ("conftest.out", "w");
5469 return ferror (f) || fclose (f) != 0;
5475 ac_clean_files="$ac_clean_files conftest.out"
5476 # Check that the compiler produces executables we can run. If not, either
5477 # the compiler is broken, or we cross compile.
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5479 printf %s "checking whether we are cross compiling... " >&6; }
5480 if test "$cross_compiling" != yes; then
5481 { { ac_try="$ac_link"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487 printf "%s\n" "$ac_try_echo"; } >&5
5488 (eval "$ac_link") 2>&5
5490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }
5492 if { ac_try='./conftest$ac_cv_exeext'
5493 { { case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498 printf "%s\n" "$ac_try_echo"; } >&5
5499 (eval "$ac_try") 2>&5
5501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; }; }; then
5505 if test "$cross_compiling" = maybe; then
5508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5509 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5510 as_fn_error 77 "cannot run C compiled programs.
5511 If you meant to cross compile, use \`--host'.
5512 See \`config.log' for more details" "$LINENO" 5; }
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5517 printf "%s\n" "$cross_compiling" >&6; }
5519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5520 ac_clean_files=$ac_clean_files_save
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5522 printf %s "checking for suffix of object files... " >&6; }
5523 if test ${ac_cv_objext+y}
5525 printf %s "(cached) " >&6
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5538 rm -f conftest.o conftest.obj
5539 if { { ac_try="$ac_compile"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5545 printf "%s\n" "$ac_try_echo"; } >&5
5546 (eval "$ac_compile") 2>&5
5548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5549 test $ac_status = 0; }
5551 for ac_file in conftest.o conftest.obj conftest.*; do
5552 test -f "$ac_file" || continue;
5554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5560 printf "%s\n" "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5564 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5565 as_fn_error $? "cannot compute suffix of object files: cannot compile
5566 See \`config.log' for more details" "$LINENO" 5; }
5568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5571 printf "%s\n" "$ac_cv_objext" >&6; }
5572 OBJEXT=$ac_cv_objext
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5575 printf %s "checking whether the compiler supports GNU C... " >&6; }
5576 if test ${ac_cv_c_compiler_gnu+y}
5578 printf %s "(cached) " >&6
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5594 if ac_fn_c_try_compile "$LINENO"
5600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5605 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608 if test $ac_compiler_gnu = yes; then
5613 ac_test_CFLAGS=${CFLAGS+y}
5614 ac_save_CFLAGS=$CFLAGS
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5616 printf %s "checking whether $CC accepts -g... " >&6; }
5617 if test ${ac_cv_prog_cc_g+y}
5619 printf %s "(cached) " >&6
5621 ac_save_c_werror_flag=$ac_c_werror_flag
5622 ac_c_werror_flag=yes
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5636 if ac_fn_c_try_compile "$LINENO"
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5652 if ac_fn_c_try_compile "$LINENO"
5656 ac_c_werror_flag=$ac_save_c_werror_flag
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5669 if ac_fn_c_try_compile "$LINENO"
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5678 ac_c_werror_flag=$ac_save_c_werror_flag
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5681 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5682 if test $ac_test_CFLAGS; then
5683 CFLAGS=$ac_save_CFLAGS
5684 elif test $ac_cv_prog_cc_g = yes; then
5685 if test "$GCC" = yes; then
5691 if test "$GCC" = yes; then
5698 if test x$ac_prog_cc_stdc = xno
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5701 printf %s "checking for $CC option to enable C11 features... " >&6; }
5702 if test ${ac_cv_prog_cc_c11+y}
5704 printf %s "(cached) " >&6
5706 ac_cv_prog_cc_c11=no
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 $ac_c_conftest_c11_program
5712 for ac_arg in '' -std=gnu11
5714 CC="$ac_save_CC $ac_arg"
5715 if ac_fn_c_try_compile "$LINENO"
5717 ac_cv_prog_cc_c11=$ac_arg
5719 rm -f core conftest.err conftest.$ac_objext conftest.beam
5720 test "x$ac_cv_prog_cc_c11" != "xno" && break
5722 rm -f conftest.$ac_ext
5726 if test "x$ac_cv_prog_cc_c11" = xno
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5729 printf "%s\n" "unsupported" >&6; }
5731 if test "x$ac_cv_prog_cc_c11" = x
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5734 printf "%s\n" "none needed" >&6; }
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5737 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5738 CC="$CC $ac_cv_prog_cc_c11"
5740 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5744 if test x$ac_prog_cc_stdc = xno
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5747 printf %s "checking for $CC option to enable C99 features... " >&6; }
5748 if test ${ac_cv_prog_cc_c99+y}
5750 printf %s "(cached) " >&6
5752 ac_cv_prog_cc_c99=no
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 $ac_c_conftest_c99_program
5758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5760 CC="$ac_save_CC $ac_arg"
5761 if ac_fn_c_try_compile "$LINENO"
5763 ac_cv_prog_cc_c99=$ac_arg
5765 rm -f core conftest.err conftest.$ac_objext conftest.beam
5766 test "x$ac_cv_prog_cc_c99" != "xno" && break
5768 rm -f conftest.$ac_ext
5772 if test "x$ac_cv_prog_cc_c99" = xno
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5775 printf "%s\n" "unsupported" >&6; }
5777 if test "x$ac_cv_prog_cc_c99" = x
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5780 printf "%s\n" "none needed" >&6; }
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5783 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5784 CC="$CC $ac_cv_prog_cc_c99"
5786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5790 if test x$ac_prog_cc_stdc = xno
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5793 printf %s "checking for $CC option to enable C89 features... " >&6; }
5794 if test ${ac_cv_prog_cc_c89+y}
5796 printf %s "(cached) " >&6
5798 ac_cv_prog_cc_c89=no
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 $ac_c_conftest_c89_program
5804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5806 CC="$ac_save_CC $ac_arg"
5807 if ac_fn_c_try_compile "$LINENO"
5809 ac_cv_prog_cc_c89=$ac_arg
5811 rm -f core conftest.err conftest.$ac_objext conftest.beam
5812 test "x$ac_cv_prog_cc_c89" != "xno" && break
5814 rm -f conftest.$ac_ext
5818 if test "x$ac_cv_prog_cc_c89" = xno
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5821 printf "%s\n" "unsupported" >&6; }
5823 if test "x$ac_cv_prog_cc_c89" = x
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5826 printf "%s\n" "none needed" >&6; }
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5829 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5830 CC="$CC $ac_cv_prog_cc_c89"
5832 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5850 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5851 if test ${am_cv_prog_cc_c_o+y}
5853 printf %s "(cached) " >&6
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5866 # Make sure it works both with $CC and with simple cc.
5867 # Following AC_PROG_CC_C_O, we do the test twice because some
5868 # compilers refuse to overwrite an existing .o file with -o,
5869 # though they will create one.
5870 am_cv_prog_cc_c_o=yes
5872 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5873 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } \
5877 && test -f conftest2.$ac_objext; then
5880 am_cv_prog_cc_c_o=no
5884 rm -f core conftest*
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5888 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5889 if test "$am_cv_prog_cc_c_o" != yes; then
5890 # Losing compiler, so override with the script.
5891 # FIXME: It is wrong to rewrite CC.
5892 # But if we don't then we get into trouble of one sort or another.
5893 # A longer-term fix would be to have automake use am__CC in this case,
5894 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5895 CC="$am_aux_dir/compile $CC"
5898 ac_cpp='$CPP $CPPFLAGS'
5899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5906 printf %s "checking whether the compiler is clang... " >&6; }
5907 if test ${gl_cv_compiler_clang+y}
5909 printf %s "(cached) " >&6
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5927 if ac_fn_c_try_compile "$LINENO"
5929 gl_cv_compiler_clang=no
5931 gl_cv_compiler_clang=yes
5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5937 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5941 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5942 if test ${gl_cv_compiler_check_decl_option+y}
5944 printf %s "(cached) " >&6
5946 if test $gl_cv_compiler_clang = yes; then
5947 save_ac_compile="$ac_compile"
5948 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5960 if ac_fn_c_try_compile "$LINENO"
5962 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5964 gl_cv_compiler_check_decl_option=none
5966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5967 ac_compile="$save_ac_compile"
5969 gl_cv_compiler_check_decl_option=none
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5974 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5975 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5976 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5978 ac_compile_for_check_decl="$ac_compile"
5981 DEPDIR="${am__leading_dot}deps"
5983 ac_config_commands="$ac_config_commands depfiles"
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5986 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5987 cat > confinc.mk << 'END'
5989 @echo this is the am__doit target >confinc.out
5994 # BSD make does it like this.
5995 echo '.include "confinc.mk" # ignored' > confmf.BSD
5996 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5997 echo 'include confinc.mk # ignored' > confmf.GNU
5999 for s in GNU BSD; do
6000 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6001 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }
6005 case $?:`cat confinc.out 2>/dev/null` in #(
6006 '0:this is the am__doit target') :
6009 am__include='.include' am__quote='"' ;; #(
6011 am__include='include' am__quote='' ;;
6016 if test "$am__include" != "#"; then
6017 _am_result="yes ($s style)"
6021 rm -f confinc.* confmf.*
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6023 printf "%s\n" "${_am_result}" >&6; }
6025 # Check whether --enable-dependency-tracking was given.
6026 if test ${enable_dependency_tracking+y}
6028 enableval=$enable_dependency_tracking;
6031 if test "x$enable_dependency_tracking" != xno; then
6032 am_depcomp="$ac_aux_dir/depcomp"
6036 if test "x$enable_dependency_tracking" != xno; then
6046 depcc="$CC" am_compiler_list=
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6049 printf %s "checking dependency style of $depcc... " >&6; }
6050 if test ${am_cv_CC_dependencies_compiler_type+y}
6052 printf %s "(cached) " >&6
6054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6055 # We make a subdir and do the tests there. Otherwise we can end up
6056 # making bogus files that we don't know about and never remove. For
6057 # instance it was reported that on HP-UX the gcc test will end up
6058 # making a dummy file named 'D' -- because '-MD' means "put the output
6062 # Copy depcomp to subdir because otherwise we won't find it if we're
6063 # using a relative directory.
6064 cp "$am_depcomp" conftest.dir
6066 # We will build objects and dependencies in a subdirectory because
6067 # it helps to detect inapplicable dependency modes. For instance
6068 # both Tru64's cc and ICC support -MD to output dependencies as a
6069 # side effect of compilation, but ICC will put the dependencies in
6070 # the current directory while Tru64 will put them in the object
6074 am_cv_CC_dependencies_compiler_type=none
6075 if test "$am_compiler_list" = ""; then
6076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6079 case " $depcc " in #(
6080 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6083 for depmode in $am_compiler_list; do
6084 # Setup a source with many dependencies, because some compilers
6085 # like to wrap large dependency lists on column 80 (with \), and
6086 # we should not choose a depcomp mode which is confused by this.
6088 # We need to recreate these files for each test, as the compiler may
6089 # overwrite some of them when testing with obscure command lines.
6090 # This happens at least with the AIX C compiler.
6092 for i in 1 2 3 4 5 6; do
6093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6094 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6095 # Solaris 10 /bin/sh.
6096 echo '/* dummy */' > sub/conftst$i.h
6098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6100 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6101 # mode. It turns out that the SunPro C++ compiler does not properly
6102 # handle '-M -o', and we need to detect this. Also, some Intel
6103 # versions had trouble with output in subdirs.
6104 am__obj=sub/conftest.${OBJEXT-o}
6105 am__minus_obj="-o $am__obj"
6108 # This depmode causes a compiler race in universal mode.
6109 test "$am__universal" = false || continue
6112 # After this tag, mechanisms are not by side-effect, so they'll
6113 # only be used when explicitly requested.
6114 if test "x$enable_dependency_tracking" = xyes; then
6120 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6121 # This compiler won't grok '-c -o', but also, the minuso test has
6122 # not run yet. These depmodes are late enough in the game, and
6123 # so weak that their functioning should not be impacted.
6124 am__obj=conftest.${OBJEXT-o}
6129 if depmode=$depmode \
6130 source=sub/conftest.c object=$am__obj \
6131 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6132 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6133 >/dev/null 2>conftest.err &&
6134 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6135 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6136 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6137 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6138 # icc doesn't choke on unknown options, it will just issue warnings
6139 # or remarks (even with -Werror). So we grep stderr for any message
6140 # that says an option was ignored or not supported.
6141 # When given -MP, icc 7.0 and 7.1 complain thusly:
6142 # icc: Command line warning: ignoring option '-M'; no argument required
6143 # The diagnosis changed in icc 8.0:
6144 # icc: Command line remark: option '-MP' not supported
6145 if (grep 'ignoring option' conftest.err ||
6146 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6147 am_cv_CC_dependencies_compiler_type=$depmode
6156 am_cv_CC_dependencies_compiler_type=none
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6161 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6165 test "x$enable_dependency_tracking" != xno \
6166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6168 am__fastdepCC_FALSE='#'
6170 am__fastdepCC_TRUE='#'
6171 am__fastdepCC_FALSE=
6176 ac_header= ac_cache=
6177 for ac_item in $ac_header_c_list
6179 if test $ac_cache; then
6180 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6181 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6182 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6184 ac_header= ac_cache=
6185 elif test $ac_header; then
6199 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6202 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6212 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6213 if test ${ac_cv_safe_to_define___extensions__+y}
6215 printf %s "(cached) " >&6
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6220 # define __EXTENSIONS__ 1
6221 $ac_includes_default
6230 if ac_fn_c_try_compile "$LINENO"
6232 ac_cv_safe_to_define___extensions__=yes
6234 ac_cv_safe_to_define___extensions__=no
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6239 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6242 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6243 if test ${ac_cv_should_define__xopen_source+y}
6245 printf %s "(cached) " >&6
6247 ac_cv_should_define__xopen_source=no
6248 if test $ac_cv_header_wchar_h = yes
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6263 if ac_fn_c_try_compile "$LINENO"
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6270 #define _XOPEN_SOURCE 500
6281 if ac_fn_c_try_compile "$LINENO"
6283 ac_cv_should_define__xopen_source=yes
6285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6291 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6293 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6295 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6297 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6299 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6301 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6303 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6305 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6307 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6309 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6311 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6313 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6315 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6317 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6319 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6321 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6323 if test $ac_cv_header_minix_config_h = yes
6326 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6328 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6330 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6335 if test $ac_cv_safe_to_define___extensions__ = yes
6337 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6340 if test $ac_cv_should_define__xopen_source = yes
6342 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6348 # Make sure we can run config.sub.
6349 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6350 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6353 printf %s "checking build system type... " >&6; }
6354 if test ${ac_cv_build+y}
6356 printf %s "(cached) " >&6
6358 ac_build_alias=$build_alias
6359 test "x$ac_build_alias" = x &&
6360 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6361 test "x$ac_build_alias" = x &&
6362 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6363 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6364 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6368 printf "%s\n" "$ac_cv_build" >&6; }
6369 case $ac_cv_build in
6371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6374 ac_save_IFS=$IFS; IFS='-'
6380 # Remember, the first character of IFS is used to create $*,
6381 # except with old shells:
6384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6388 printf %s "checking host system type... " >&6; }
6389 if test ${ac_cv_host+y}
6391 printf %s "(cached) " >&6
6393 if test "x$host_alias" = x; then
6394 ac_cv_host=$ac_cv_build
6396 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6397 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6402 printf "%s\n" "$ac_cv_host" >&6; }
6405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6408 ac_save_IFS=$IFS; IFS='-'
6414 # Remember, the first character of IFS is used to create $*,
6415 # except with old shells:
6418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6428 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6439 printf %s "checking how to run the C preprocessor... " >&6; }
6440 # On Suns, sometimes $CPP names a directory.
6441 if test -n "$CPP" && test -d "$CPP"; then
6444 if test -z "$CPP"; then
6445 if test ${ac_cv_prog_CPP+y}
6447 printf %s "(cached) " >&6
6449 # Double quotes because $CC needs to be expanded
6450 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6453 for ac_c_preproc_warn_flag in '' yes
6455 # Use a header file that comes with gcc, so configuring glibc
6456 # with a fresh cross-compiler works.
6457 # On the NeXT, cc -E runs the code through the compiler's parser,
6458 # not just through cpp. "Syntax error" is here to catch this case.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6464 if ac_fn_c_try_cpp "$LINENO"
6468 # Broken: fails on valid input.
6471 rm -f conftest.err conftest.i conftest.$ac_ext
6473 # OK, works on sane cases. Now check whether nonexistent headers
6474 # can be detected and how.
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <ac_nonexistent.h>
6479 if ac_fn_c_try_cpp "$LINENO"
6481 # Broken: success on invalid input.
6484 # Passes both tests.
6488 rm -f conftest.err conftest.i conftest.$ac_ext
6491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6492 rm -f conftest.i conftest.err conftest.$ac_ext
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6507 printf "%s\n" "$CPP" >&6; }
6509 for ac_c_preproc_warn_flag in '' yes
6511 # Use a header file that comes with gcc, so configuring glibc
6512 # with a fresh cross-compiler works.
6513 # On the NeXT, cc -E runs the code through the compiler's parser,
6514 # not just through cpp. "Syntax error" is here to catch this case.
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6520 if ac_fn_c_try_cpp "$LINENO"
6524 # Broken: fails on valid input.
6527 rm -f conftest.err conftest.i conftest.$ac_ext
6529 # OK, works on sane cases. Now check whether nonexistent headers
6530 # can be detected and how.
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #include <ac_nonexistent.h>
6535 if ac_fn_c_try_cpp "$LINENO"
6537 # Broken: success on invalid input.
6540 # Passes both tests.
6544 rm -f conftest.err conftest.i conftest.$ac_ext
6547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6548 rm -f conftest.i conftest.err conftest.$ac_ext
6553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6555 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6556 See \`config.log' for more details" "$LINENO" 5; }
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6567 printf %s "checking for grep that handles long lines and -e... " >&6; }
6568 if test ${ac_cv_path_GREP+y}
6570 printf %s "(cached) " >&6
6572 if test -z "$GREP"; then
6573 ac_path_GREP_found=false
6574 # Loop through the user's path and test for each of PROGNAME-LIST
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6579 case $as_dir in #(((
6582 *) as_dir=$as_dir/ ;;
6584 for ac_prog in grep ggrep
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6588 as_fn_executable_p "$ac_path_GREP" || continue
6589 # Check for GNU ac_path_GREP and select it if it is found.
6590 # Check for GNU $ac_path_GREP
6591 case `"$ac_path_GREP" --version 2>&1` in
6593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6596 printf %s 0123456789 >"conftest.in"
6599 cat "conftest.in" "conftest.in" >"conftest.tmp"
6600 mv "conftest.tmp" "conftest.in"
6601 cp "conftest.in" "conftest.nl"
6602 printf "%s\n" 'GREP' >> "conftest.nl"
6603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6605 as_fn_arith $ac_count + 1 && ac_count=$as_val
6606 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6607 # Best one so far, save it but keep looking for a better one
6608 ac_cv_path_GREP="$ac_path_GREP"
6609 ac_path_GREP_max=$ac_count
6611 # 10*(2^10) chars as input seems more than enough
6612 test $ac_count -gt 10 && break
6614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6617 $ac_path_GREP_found && break 3
6622 if test -z "$ac_cv_path_GREP"; then
6623 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6626 ac_cv_path_GREP=$GREP
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6631 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6632 GREP="$ac_cv_path_GREP"
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6636 printf %s "checking for egrep... " >&6; }
6637 if test ${ac_cv_path_EGREP+y}
6639 printf %s "(cached) " >&6
6641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6642 then ac_cv_path_EGREP="$GREP -E"
6644 if test -z "$EGREP"; then
6645 ac_path_EGREP_found=false
6646 # Loop through the user's path and test for each of PROGNAME-LIST
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6651 case $as_dir in #(((
6654 *) as_dir=$as_dir/ ;;
6656 for ac_prog in egrep
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6660 as_fn_executable_p "$ac_path_EGREP" || continue
6661 # Check for GNU ac_path_EGREP and select it if it is found.
6662 # Check for GNU $ac_path_EGREP
6663 case `"$ac_path_EGREP" --version 2>&1` in
6665 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6668 printf %s 0123456789 >"conftest.in"
6671 cat "conftest.in" "conftest.in" >"conftest.tmp"
6672 mv "conftest.tmp" "conftest.in"
6673 cp "conftest.in" "conftest.nl"
6674 printf "%s\n" 'EGREP' >> "conftest.nl"
6675 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6677 as_fn_arith $ac_count + 1 && ac_count=$as_val
6678 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6679 # Best one so far, save it but keep looking for a better one
6680 ac_cv_path_EGREP="$ac_path_EGREP"
6681 ac_path_EGREP_max=$ac_count
6683 # 10*(2^10) chars as input seems more than enough
6684 test $ac_count -gt 10 && break
6686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6689 $ac_path_EGREP_found && break 3
6694 if test -z "$ac_cv_path_EGREP"; then
6695 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6698 ac_cv_path_EGREP=$EGREP
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6704 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6705 EGREP="$ac_cv_path_EGREP"
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6712 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6713 if test ${gl_cv_c_amsterdam_compiler+y}
6715 printf %s "(cached) " >&6
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6727 $EGREP "Amsterdam" >/dev/null 2>&1
6729 gl_cv_c_amsterdam_compiler=yes
6731 gl_cv_c_amsterdam_compiler=no
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6738 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6740 if test $gl_cv_c_amsterdam_compiler = yes; then
6741 if test -z "$AR"; then
6744 if test -z "$ARFLAGS"; then
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ar; ac_word=$2
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 printf %s "checking for $ac_word... " >&6; }
6756 if test ${ac_cv_prog_AR+y}
6758 printf %s "(cached) " >&6
6760 if test -n "$AR"; then
6761 ac_cv_prog_AR="$AR" # Let the user override the test.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 case $as_dir in #(((
6770 *) as_dir=$as_dir/ ;;
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_AR="${ac_tool_prefix}ar"
6775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6785 if test -n "$AR"; then
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6787 printf "%s\n" "$AR" >&6; }
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 printf "%s\n" "no" >&6; }
6795 if test -z "$ac_cv_prog_AR"; then
6797 # Extract the first word of "ar", so it can be a program name with args.
6798 set dummy ar; ac_word=$2
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 printf %s "checking for $ac_word... " >&6; }
6801 if test ${ac_cv_prog_ac_ct_AR+y}
6803 printf %s "(cached) " >&6
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 case $as_dir in #(((
6815 *) as_dir=$as_dir/ ;;
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_AR="ar"
6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830 if test -n "$ac_ct_AR"; then
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6832 printf "%s\n" "$ac_ct_AR" >&6; }
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 printf "%s\n" "no" >&6; }
6838 if test "x$ac_ct_AR" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6853 if test -z "$ARFLAGS"; then
6859 if test -z "$RANLIB"; then
6860 if test $gl_cv_c_amsterdam_compiler = yes; then
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 printf %s "checking for $ac_word... " >&6; }
6868 if test ${ac_cv_prog_RANLIB+y}
6870 printf %s "(cached) " >&6
6872 if test -n "$RANLIB"; then
6873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 case $as_dir in #(((
6882 *) as_dir=$as_dir/ ;;
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 RANLIB=$ac_cv_prog_RANLIB
6897 if test -n "$RANLIB"; then
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6899 printf "%s\n" "$RANLIB" >&6; }
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 printf "%s\n" "no" >&6; }
6907 if test -z "$ac_cv_prog_RANLIB"; then
6908 ac_ct_RANLIB=$RANLIB
6909 # Extract the first word of "ranlib", so it can be a program name with args.
6910 set dummy ranlib; ac_word=$2
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 printf %s "checking for $ac_word... " >&6; }
6913 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6915 printf %s "(cached) " >&6
6917 if test -n "$ac_ct_RANLIB"; then
6918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 case $as_dir in #(((
6927 *) as_dir=$as_dir/ ;;
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_ac_ct_RANLIB="ranlib"
6932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6942 if test -n "$ac_ct_RANLIB"; then
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6944 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 printf "%s\n" "no" >&6; }
6950 if test "x$ac_ct_RANLIB" = x; then
6953 case $cross_compiling:$ac_tool_warned in
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6959 RANLIB=$ac_ct_RANLIB
6962 RANLIB="$ac_cv_prog_RANLIB"
6971 # Pre-early section.
6975 # Code from module absolute-header:
6976 # Code from module announce-gen:
6977 # Code from module c-ctype:
6978 # Code from module c99:
6979 # Code from module do-release-commit-and-tag:
6980 # Code from module extensions:
6981 # Code from module extern-inline:
6982 # Code from module gen-header:
6983 # Code from module gendocs:
6984 # Code from module git-version-gen:
6985 # Code from module gitlog-to-changelog:
6986 # Code from module gnu-web-doc-update:
6987 # Code from module gnumakefile:
6988 # Code from module gnupload:
6989 # Code from module include_next:
6990 # Code from module intprops:
6991 # Code from module lib-msvc-compat:
6992 # Code from module lib-symbol-versions:
6993 # Code from module lib-symbol-visibility:
6994 # Code from module libc-config:
6995 # Code from module limits-h:
6996 # Code from module maintainer-makefile:
6997 # Code from module manywarnings:
6998 # Code from module minmax:
6999 # Code from module multiarch:
7000 # Code from module readme-release:
7001 # Code from module snippet/_Noreturn:
7002 # Code from module snippet/arg-nonnull:
7003 # Code from module snippet/c++defs:
7004 # Code from module snippet/warn-on-use:
7005 # Code from module ssize_t:
7006 # Code from module std-gnu11:
7007 # Code from module stdbool:
7008 # Code from module stddef:
7009 # Code from module stdint:
7010 # Code from module stdlib:
7011 # Code from module string:
7012 # Code from module strverscmp:
7013 # Code from module sys_types:
7014 # Code from module unistd:
7015 # Code from module update-copyright:
7016 # Code from module useless-if-before-free:
7017 # Code from module valgrind-tests:
7018 # Code from module vc-list-files:
7019 # Code from module warnings:
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7025 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7026 if test ${ac_cv_sys_largefile_source+y}
7028 printf %s "(cached) " >&6
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #include <sys/types.h> /* for off_t */
7038 int (*fp) (FILE *, off_t, int) = fseeko;
7039 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7044 if ac_fn_c_try_link "$LINENO"
7046 ac_cv_sys_largefile_source=no; break
7048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7049 conftest$ac_exeext conftest.$ac_ext
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #undef _LARGEFILE_SOURCE
7053 #define _LARGEFILE_SOURCE 1
7054 #include <sys/types.h> /* for off_t */
7059 int (*fp) (FILE *, off_t, int) = fseeko;
7060 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7065 if ac_fn_c_try_link "$LINENO"
7067 ac_cv_sys_largefile_source=1; break
7069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7070 conftest$ac_exeext conftest.$ac_ext
7071 ac_cv_sys_largefile_source=unknown
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7076 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
7077 case $ac_cv_sys_largefile_source in #(
7080 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
7085 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7086 # in glibc 2.1.3, but that breaks too many other things.
7087 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7088 if test $ac_cv_sys_largefile_source != unknown; then
7090 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
7097 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7103 # Check whether --enable-largefile was given.
7104 if test ${enable_largefile+y}
7106 enableval=$enable_largefile;
7109 if test "$enable_largefile" != no
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7112 printf %s "checking for special C compiler options needed for large files... " >&6; }
7113 if test ${ac_cv_sys_largefile_CC+y}
7115 printf %s "(cached) " >&6
7117 ac_cv_sys_largefile_CC=no
7118 if test "$GCC" != yes; then
7121 # IRIX 6.2 and later do not support large files by default,
7122 # so use the C compiler's -n32 option if that helps.
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 #include <sys/types.h>
7126 /* Check that off_t can represent 2**63 - 1 correctly.
7127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7128 since some C++ compilers masquerading as C compilers
7129 incorrectly reject 9223372036854775807. */
7130 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7132 && LARGE_OFF_T % 2147483647 == 1)
7142 if ac_fn_c_try_compile "$LINENO"
7146 rm -f core conftest.err conftest.$ac_objext conftest.beam
7148 if ac_fn_c_try_compile "$LINENO"
7150 ac_cv_sys_largefile_CC=' -n32'; break
7152 rm -f core conftest.err conftest.$ac_objext conftest.beam
7156 rm -f conftest.$ac_ext
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7160 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7161 if test "$ac_cv_sys_largefile_CC" != no; then
7162 CC=$CC$ac_cv_sys_largefile_CC
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7166 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7167 if test ${ac_cv_sys_file_offset_bits+y}
7169 printf %s "(cached) " >&6
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 #include <sys/types.h>
7175 /* Check that off_t can represent 2**63 - 1 correctly.
7176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7177 since some C++ compilers masquerading as C compilers
7178 incorrectly reject 9223372036854775807. */
7179 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7181 && LARGE_OFF_T % 2147483647 == 1)
7191 if ac_fn_c_try_compile "$LINENO"
7193 ac_cv_sys_file_offset_bits=no; break
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #undef _FILE_OFFSET_BITS
7199 #define _FILE_OFFSET_BITS 64
7200 #include <sys/types.h>
7201 /* Check that off_t can represent 2**63 - 1 correctly.
7202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7203 since some C++ compilers masquerading as C compilers
7204 incorrectly reject 9223372036854775807. */
7205 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7207 && LARGE_OFF_T % 2147483647 == 1)
7217 if ac_fn_c_try_compile "$LINENO"
7219 ac_cv_sys_file_offset_bits=64; break
7221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7222 ac_cv_sys_file_offset_bits=unknown
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7227 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7228 case $ac_cv_sys_file_offset_bits in #(
7231 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7235 case $ac_cv_sys_file_offset_bits in #(
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7238 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7239 if test ${ac_cv_sys_large_files+y}
7241 printf %s "(cached) " >&6
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <sys/types.h>
7247 /* Check that off_t can represent 2**63 - 1 correctly.
7248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7249 since some C++ compilers masquerading as C compilers
7250 incorrectly reject 9223372036854775807. */
7251 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7253 && LARGE_OFF_T % 2147483647 == 1)
7263 if ac_fn_c_try_compile "$LINENO"
7265 ac_cv_sys_large_files=no; break
7267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7271 #define _LARGE_FILES 1
7272 #include <sys/types.h>
7273 /* Check that off_t can represent 2**63 - 1 correctly.
7274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7275 since some C++ compilers masquerading as C compilers
7276 incorrectly reject 9223372036854775807. */
7277 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7279 && LARGE_OFF_T % 2147483647 == 1)
7289 if ac_fn_c_try_compile "$LINENO"
7291 ac_cv_sys_large_files=1; break
7293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7294 ac_cv_sys_large_files=unknown
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7299 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7300 case $ac_cv_sys_large_files in #(
7303 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7306 rm -rf conftest* ;; #(
7309 # Check whether --enable-year2038 was given.
7310 if test ${enable_year2038+y}
7312 enableval=$enable_year2038;
7315 if test "$enable_year2038" != no
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
7319 printf %s "checking for time_t past the year 2038... " >&6; }
7320 if test ${gl_cv_type_time_t_y2038+y}
7322 printf %s "(cached) " >&6
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7328 /* Check that time_t can represent 2**32 - 1 correctly. */
7329 #define LARGE_TIME_T \\
7330 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7331 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7332 && LARGE_TIME_T % 65537 == 0)
7336 if ac_fn_c_try_compile "$LINENO"
7338 gl_cv_type_time_t_y2038=yes
7340 gl_cv_type_time_t_y2038=no
7342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
7346 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
7347 if test "$gl_cv_type_time_t_y2038" = no; then
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
7349 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
7350 if test ${gl_cv_type_time_t_bits_macro+y}
7352 printf %s "(cached) " >&6
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #define _TIME_BITS 64
7357 #define _FILE_OFFSET_BITS 64
7360 /* Check that time_t can represent 2**32 - 1 correctly. */
7361 #define LARGE_TIME_T \\
7362 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7363 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7364 && LARGE_TIME_T % 65537 == 0)
7368 if ac_fn_c_try_compile "$LINENO"
7370 gl_cv_type_time_t_bits_macro=yes
7372 gl_cv_type_time_t_bits_macro=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
7378 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
7379 if test "$gl_cv_type_time_t_bits_macro" = yes; then
7381 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7384 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7386 gl_cv_type_time_t_y2038=yes
7389 if test $gl_cv_type_time_t_y2038 = no; then
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #ifdef _USE_32BIT_TIME_T
7399 if ac_fn_c_try_compile "$LINENO"
7401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7403 as_fn_error $? "The 'time_t' type stops working after January 2038.
7404 Remove _USE_32BIT_TIME_T from the compiler flags.
7405 See \`config.log' for more details" "$LINENO" 5; }
7407 # If not cross-compiling and says we should check,
7408 # and 'touch' works with a large timestamp, then evidently wider time_t
7409 # is desired and supported, so fail and ask the builder to fix the
7410 # problem. Otherwise, just warn the builder.
7412 if test "$gl_warned_about_y2038" != yes; then
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
7414 and this package needs a wider 'time_t' type
7415 if there is any way to access timestamps after that.
7416 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
7417 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
7418 and this package needs a wider 'time_t' type
7419 if there is any way to access timestamps after that.
7420 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
7421 gl_warned_about_y2038=yes
7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7446 # Pre-early section.
7450 # Code from module absolute-header:
7451 # Code from module alloca-opt:
7452 # Code from module c99:
7453 # Code from module clock-time:
7454 # Code from module cloexec:
7455 # Code from module close:
7456 # Code from module dup2:
7457 # Code from module errno:
7458 # Code from module explicit_bzero:
7459 # Code from module extensions:
7460 # Code from module extern-inline:
7461 # Code from module fcntl:
7462 # Code from module fcntl-h:
7463 # Code from module fd-hook:
7464 # Code from module filename:
7465 # Code from module fopen:
7466 # Code from module fopen-gnu:
7467 # Code from module free-posix:
7468 # Code from module fstat:
7469 # Code from module ftell:
7470 # Code from module ftello:
7472 # Code from module gen-header:
7473 # Code from module getdtablesize:
7474 # Code from module getopt-gnu:
7475 # Code from module getopt-posix:
7476 # Code from module gettext-h:
7477 # Code from module gettime:
7478 # Code from module gettimeofday:
7479 # Code from module idx:
7480 # Code from module include_next:
7481 # Code from module intprops:
7482 # Code from module inttypes-incomplete:
7483 # Code from module largefile:
7486 # Code from module limits-h:
7487 # Code from module lseek:
7488 # Code from module malloc-posix:
7489 # Code from module malloca:
7490 # Code from module msvc-inval:
7491 # Code from module msvc-nothrow:
7492 # Code from module multiarch:
7493 # Code from module nocrash:
7494 # Code from module open:
7495 # Code from module pathmax:
7496 # Code from module progname:
7497 # Code from module read-file:
7498 # Code from module realloc-posix:
7499 # Code from module snippet/_Noreturn:
7500 # Code from module snippet/arg-nonnull:
7501 # Code from module snippet/c++defs:
7502 # Code from module snippet/warn-on-use:
7503 # Code from module ssize_t:
7504 # Code from module stat:
7505 # Code from module stat-time:
7506 # Code from module std-gnu11:
7507 # Code from module stdarg:
7511 # Code from module stdbool:
7512 # Code from module stdckdint:
7513 # Code from module stddef:
7514 # Code from module stdint:
7515 # Code from module stdio:
7516 # Code from module stdlib:
7517 # Code from module string:
7518 # Code from module sys_stat:
7519 # Code from module sys_time:
7520 # Code from module sys_types:
7521 # Code from module time:
7522 # Code from module timespec:
7523 # Code from module unistd:
7524 # Code from module vararrays:
7525 # Code from module verify:
7526 # Code from module version-etc:
7527 # Code from module version-etc-fsf:
7528 # Code from module wchar:
7529 # Code from module xalloc-oversized:
7531 for ac_prog in 'bison -y' byacc
7533 # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 printf %s "checking for $ac_word... " >&6; }
7537 if test ${ac_cv_prog_YACC+y}
7539 printf %s "(cached) " >&6
7541 if test -n "$YACC"; then
7542 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 case $as_dir in #(((
7551 *) as_dir=$as_dir/ ;;
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_YACC="$ac_prog"
7556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7565 YACC=$ac_cv_prog_YACC
7566 if test -n "$YACC"; then
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7568 printf "%s\n" "$YACC" >&6; }
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 printf "%s\n" "no" >&6; }
7575 test -n "$YACC" && break
7577 test -n "$YACC" || YACC="yacc"
7580 # Check whether --enable-doc was given.
7581 if test ${enable_doc+y}
7583 enableval=$enable_doc; enable_doc=$enableval
7588 if test "$enable_doc" != "no"; then
7590 ENABLE_DOC_FALSE='#'
7597 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7598 if test "x$ac_cv_func_clock_gettime" = xyes
7600 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7603 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
7604 if test "x$ac_cv_func_fmemopen" = xyes
7606 printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h
7612 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7617 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7622 macro_version='2.4.6'
7623 macro_revision='2.4.6'
7638 ltmain=$ac_aux_dir/ltmain.sh
7640 # Backslashify metacharacters that are still active within
7641 # double-quoted strings.
7642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7651 # Sed substitution to delay expansion of an escaped single quote.
7652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7654 # Sed substitution to avoid accidental globbing in evaled expressions
7655 no_glob_subst='s/\*/\\\*/g'
7657 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7658 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7659 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7662 printf %s "checking how to print strings... " >&6; }
7663 # Test print first, because it will be a builtin if present.
7664 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7665 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7667 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7670 # Use this function as a fallback that always works.
7671 func_fallback_echo ()
7673 eval 'cat <<_LTECHO_EOF
7677 ECHO='func_fallback_echo'
7680 # func_echo_all arg...
7681 # Invoke $ECHO with all args, space-separated.
7688 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7689 printf "%s\n" "printf" >&6; } ;;
7690 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7691 printf "%s\n" "print -r" >&6; } ;;
7692 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7693 printf "%s\n" "cat" >&6; } ;;
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7710 printf %s "checking for a sed that does not truncate output... " >&6; }
7711 if test ${ac_cv_path_SED+y}
7713 printf %s "(cached) " >&6
7715 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7716 for ac_i in 1 2 3 4 5 6 7; do
7717 ac_script="$ac_script$as_nl$ac_script"
7719 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7720 { ac_script=; unset ac_script;}
7721 if test -z "$SED"; then
7722 ac_path_SED_found=false
7723 # Loop through the user's path and test for each of PROGNAME-LIST
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 case $as_dir in #(((
7731 *) as_dir=$as_dir/ ;;
7733 for ac_prog in sed gsed
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7737 as_fn_executable_p "$ac_path_SED" || continue
7738 # Check for GNU ac_path_SED and select it if it is found.
7739 # Check for GNU $ac_path_SED
7740 case `"$ac_path_SED" --version 2>&1` in
7742 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7745 printf %s 0123456789 >"conftest.in"
7748 cat "conftest.in" "conftest.in" >"conftest.tmp"
7749 mv "conftest.tmp" "conftest.in"
7750 cp "conftest.in" "conftest.nl"
7751 printf "%s\n" '' >> "conftest.nl"
7752 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7754 as_fn_arith $ac_count + 1 && ac_count=$as_val
7755 if test $ac_count -gt ${ac_path_SED_max-0}; then
7756 # Best one so far, save it but keep looking for a better one
7757 ac_cv_path_SED="$ac_path_SED"
7758 ac_path_SED_max=$ac_count
7760 # 10*(2^10) chars as input seems more than enough
7761 test $ac_count -gt 10 && break
7763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7766 $ac_path_SED_found && break 3
7771 if test -z "$ac_cv_path_SED"; then
7772 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7780 printf "%s\n" "$ac_cv_path_SED" >&6; }
7781 SED="$ac_cv_path_SED"
7784 test -z "$SED" && SED=sed
7785 Xsed="$SED -e 1s/^X//"
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7798 printf %s "checking for fgrep... " >&6; }
7799 if test ${ac_cv_path_FGREP+y}
7801 printf %s "(cached) " >&6
7803 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7804 then ac_cv_path_FGREP="$GREP -F"
7806 if test -z "$FGREP"; then
7807 ac_path_FGREP_found=false
7808 # Loop through the user's path and test for each of PROGNAME-LIST
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7813 case $as_dir in #(((
7816 *) as_dir=$as_dir/ ;;
7818 for ac_prog in fgrep
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7822 as_fn_executable_p "$ac_path_FGREP" || continue
7823 # Check for GNU ac_path_FGREP and select it if it is found.
7824 # Check for GNU $ac_path_FGREP
7825 case `"$ac_path_FGREP" --version 2>&1` in
7827 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7830 printf %s 0123456789 >"conftest.in"
7833 cat "conftest.in" "conftest.in" >"conftest.tmp"
7834 mv "conftest.tmp" "conftest.in"
7835 cp "conftest.in" "conftest.nl"
7836 printf "%s\n" 'FGREP' >> "conftest.nl"
7837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7839 as_fn_arith $ac_count + 1 && ac_count=$as_val
7840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7841 # Best one so far, save it but keep looking for a better one
7842 ac_cv_path_FGREP="$ac_path_FGREP"
7843 ac_path_FGREP_max=$ac_count
7845 # 10*(2^10) chars as input seems more than enough
7846 test $ac_count -gt 10 && break
7848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7851 $ac_path_FGREP_found && break 3
7856 if test -z "$ac_cv_path_FGREP"; then
7857 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7860 ac_cv_path_FGREP=$FGREP
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7866 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7867 FGREP="$ac_cv_path_FGREP"
7870 test -z "$GREP" && GREP=grep
7890 # Check whether --with-gnu-ld was given.
7891 if test ${with_gnu_ld+y}
7893 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7899 if test yes = "$GCC"; then
7900 # Check if gcc -print-prog-name=ld gives a path.
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7902 printf %s "checking for ld used by $CC... " >&6; }
7905 # gcc leaves a trailing carriage return, which upsets mingw
7906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7911 # Accept absolute paths.
7913 re_direlt='/[^/][^/]*/\.\./'
7914 # Canonicalize the pathname of ld
7915 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7916 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7917 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7919 test -z "$LD" && LD=$ac_prog
7922 # If it fails, then pretend we aren't using GCC.
7926 # If it is relative, then search for the first ld in PATH.
7930 elif test yes = "$with_gnu_ld"; then
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7932 printf %s "checking for GNU ld... " >&6; }
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7935 printf %s "checking for non-GNU ld... " >&6; }
7937 if test ${lt_cv_path_LD+y}
7939 printf %s "(cached) " >&6
7941 if test -z "$LD"; then
7942 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7943 for ac_dir in $PATH; do
7945 test -z "$ac_dir" && ac_dir=.
7946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7947 lt_cv_path_LD=$ac_dir/$ac_prog
7948 # Check to see if the program is GNU ld. I'd rather use --version,
7949 # but apparently some variants of GNU ld only accept -v.
7950 # Break only if it was the GNU/non-GNU ld that we prefer.
7951 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7952 *GNU* | *'with BFD'*)
7953 test no != "$with_gnu_ld" && break
7956 test yes != "$with_gnu_ld" && break
7963 lt_cv_path_LD=$LD # Let the user override the test with a path.
7968 if test -n "$LD"; then
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7970 printf "%s\n" "$LD" >&6; }
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 printf "%s\n" "no" >&6; }
7975 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7977 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7978 if test ${lt_cv_prog_gnu_ld+y}
7980 printf %s "(cached) " >&6
7982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7983 case `$LD -v 2>&1 </dev/null` in
7984 *GNU* | *'with BFD'*)
7985 lt_cv_prog_gnu_ld=yes
7988 lt_cv_prog_gnu_ld=no
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7993 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7994 with_gnu_ld=$lt_cv_prog_gnu_ld
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8005 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8006 if test ${lt_cv_path_NM+y}
8008 printf %s "(cached) " >&6
8010 if test -n "$NM"; then
8011 # Let the user override the test.
8014 lt_nm_to_check=${ac_tool_prefix}nm
8015 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8016 lt_nm_to_check="$lt_nm_to_check nm"
8018 for lt_tmp_nm in $lt_nm_to_check; do
8019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8020 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8022 test -z "$ac_dir" && ac_dir=.
8023 tmp_nm=$ac_dir/$lt_tmp_nm
8024 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8025 # Check to see if the nm accepts a BSD-compat flag.
8026 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8027 # nm: unknown option "B" ignored
8028 # Tru64's nm complains that /dev/null is an invalid object file
8029 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8031 mingw*) lt_bad_file=conftest.nm/nofile ;;
8032 *) lt_bad_file=/dev/null ;;
8034 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8035 *$lt_bad_file* | *'Invalid file or object type'*)
8036 lt_cv_path_NM="$tmp_nm -B"
8040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8042 lt_cv_path_NM="$tmp_nm -p"
8046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8047 continue # so that we can try to find one that supports BSD flags
8056 : ${lt_cv_path_NM=no}
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8060 printf "%s\n" "$lt_cv_path_NM" >&6; }
8061 if test no != "$lt_cv_path_NM"; then
8064 # Didn't find any BSD compatible name lister, look for dumpbin.
8065 if test -n "$DUMPBIN"; then :
8066 # Let the user override the test.
8068 if test -n "$ac_tool_prefix"; then
8069 for ac_prog in dumpbin "link -dump"
8071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 printf %s "checking for $ac_word... " >&6; }
8075 if test ${ac_cv_prog_DUMPBIN+y}
8077 printf %s "(cached) " >&6
8079 if test -n "$DUMPBIN"; then
8080 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 case $as_dir in #(((
8089 *) as_dir=$as_dir/ ;;
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8103 DUMPBIN=$ac_cv_prog_DUMPBIN
8104 if test -n "$DUMPBIN"; then
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8106 printf "%s\n" "$DUMPBIN" >&6; }
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 printf "%s\n" "no" >&6; }
8113 test -n "$DUMPBIN" && break
8116 if test -z "$DUMPBIN"; then
8117 ac_ct_DUMPBIN=$DUMPBIN
8118 for ac_prog in dumpbin "link -dump"
8120 # Extract the first word of "$ac_prog", so it can be a program name with args.
8121 set dummy $ac_prog; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8126 printf %s "(cached) " >&6
8128 if test -n "$ac_ct_DUMPBIN"; then
8129 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 case $as_dir in #(((
8138 *) as_dir=$as_dir/ ;;
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8152 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8153 if test -n "$ac_ct_DUMPBIN"; then
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8155 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 printf "%s\n" "no" >&6; }
8162 test -n "$ac_ct_DUMPBIN" && break
8165 if test "x$ac_ct_DUMPBIN" = x; then
8168 case $cross_compiling:$ac_tool_warned in
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8174 DUMPBIN=$ac_ct_DUMPBIN
8178 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8180 DUMPBIN="$DUMPBIN -symbols -headers"
8188 if test : != "$DUMPBIN"; then
8192 test -z "$NM" && NM=nm
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8200 printf %s "checking the name lister ($NM) interface... " >&6; }
8201 if test ${lt_cv_nm_interface+y}
8203 printf %s "(cached) " >&6
8205 lt_cv_nm_interface="BSD nm"
8206 echo "int some_variable = 0;" > conftest.$ac_ext
8207 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8208 (eval "$ac_compile" 2>conftest.err)
8209 cat conftest.err >&5
8210 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8211 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8212 cat conftest.err >&5
8213 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8214 cat conftest.out >&5
8215 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8216 lt_cv_nm_interface="MS dumpbin"
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8221 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8224 printf %s "checking whether ln -s works... " >&6; }
8226 if test "$LN_S" = "ln -s"; then
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228 printf "%s\n" "yes" >&6; }
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8231 printf "%s\n" "no, using $LN_S" >&6; }
8234 # find the maximum length of command line arguments
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8236 printf %s "checking the maximum length of command line arguments... " >&6; }
8237 if test ${lt_cv_sys_max_cmd_len+y}
8239 printf %s "(cached) " >&6
8246 # On DJGPP, this test can blow up pretty badly due to problems in libc
8247 # (any single argument exceeding 2000 bytes causes a buffer overrun
8248 # during glob expansion). Even if it were fixed, the result of this
8249 # check would be larger than it should be.
8250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8254 # Under GNU Hurd, this test is not required because there is
8255 # no limit to the length of command line arguments.
8256 # Libtool will interpret -1 as no limit whatsoever
8257 lt_cv_sys_max_cmd_len=-1;
8260 cygwin* | mingw* | cegcc*)
8261 # On Win9x/ME, this test blows up -- it succeeds, but takes
8262 # about 5 minutes as the teststring grows exponentially.
8263 # Worse, since 9x/ME are not pre-emptively multitasking,
8264 # you end up with a "frozen" computer, even though with patience
8265 # the test eventually succeeds (with a max line length of 256k).
8266 # Instead, let's just punt: use the minimum linelength reported by
8267 # all of the supported platforms: 8192 (on NT/2K/XP).
8268 lt_cv_sys_max_cmd_len=8192;
8272 # On MiNT this can take a long time and run out of memory.
8273 lt_cv_sys_max_cmd_len=8192;
8277 # On AmigaOS with pdksh, this test takes hours, literally.
8278 # So we just punt and use a minimum line length of 8192.
8279 lt_cv_sys_max_cmd_len=8192;
8282 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8283 # This has been around since 386BSD, at least. Likely further.
8284 if test -x /sbin/sysctl; then
8285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8286 elif test -x /usr/sbin/sysctl; then
8287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8291 # And add a safety zone
8292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8297 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8298 lt_cv_sys_max_cmd_len=196608
8302 # The test takes a long time on OS/2.
8303 lt_cv_sys_max_cmd_len=8192
8307 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8308 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8309 # nice to cause kernel panics so lets avoid the loop below.
8310 # First set a reasonable default.
8311 lt_cv_sys_max_cmd_len=16384
8313 if test -x /sbin/sysconfig; then
8314 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8315 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8320 lt_cv_sys_max_cmd_len=102400
8322 sysv5* | sco5v6* | sysv4.2uw2*)
8323 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8324 if test -n "$kargmax"; then
8325 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8327 lt_cv_sys_max_cmd_len=32768
8331 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8332 if test -n "$lt_cv_sys_max_cmd_len" && \
8333 test undefined != "$lt_cv_sys_max_cmd_len"; then
8334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8337 # Make teststring a little bigger before we do anything with it.
8338 # a 1K string should be a reasonable start.
8339 for i in 1 2 3 4 5 6 7 8; do
8340 teststring=$teststring$teststring
8342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8343 # If test is not a shell built-in, we'll probably end up computing a
8344 # maximum length that is only half of the actual maximum length, but
8346 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8347 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8348 test 17 != "$i" # 1/2 MB should be enough
8351 teststring=$teststring$teststring
8353 # Only check the string length outside the loop.
8354 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8356 # Add a significant safety factor because C++ compilers can tack on
8357 # massive amounts of additional arguments before passing them to the
8358 # linker. It appears as though 1/2 is a usable value.
8359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8366 if test -n "$lt_cv_sys_max_cmd_len"; then
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8368 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8371 printf "%s\n" "none" >&6; }
8373 max_cmd_len=$lt_cv_sys_max_cmd_len
8384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8394 # test EBCDIC or ASCII
8395 case `echo X|tr X '\101'` in
8396 A) # ASCII based system
8397 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8398 lt_SP2NL='tr \040 \012'
8399 lt_NL2SP='tr \015\012 \040\040'
8401 *) # EBCDIC based system
8402 lt_SP2NL='tr \100 \n'
8403 lt_NL2SP='tr \r\n \100\100'
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8416 printf %s "checking how to convert $build file names to $host format... " >&6; }
8417 if test ${lt_cv_to_host_file_cmd+y}
8419 printf %s "(cached) " >&6
8424 *-*-mingw* ) # actually msys
8425 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8428 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8430 * ) # otherwise, assume *nix
8431 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8437 *-*-mingw* ) # actually msys
8438 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8441 lt_cv_to_host_file_cmd=func_convert_file_noop
8443 * ) # otherwise, assume *nix
8444 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8448 * ) # unhandled hosts (and "normal" native builds)
8449 lt_cv_to_host_file_cmd=func_convert_file_noop
8455 to_host_file_cmd=$lt_cv_to_host_file_cmd
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8457 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8464 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8465 if test ${lt_cv_to_tool_file_cmd+y}
8467 printf %s "(cached) " >&6
8469 #assume ordinary cross tools, or native build.
8470 lt_cv_to_tool_file_cmd=func_convert_file_noop
8474 *-*-mingw* ) # actually msys
8475 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8485 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8492 printf %s "checking for $LD option to reload object files... " >&6; }
8493 if test ${lt_cv_ld_reload_flag+y}
8495 printf %s "(cached) " >&6
8497 lt_cv_ld_reload_flag='-r'
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8500 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8501 reload_flag=$lt_cv_ld_reload_flag
8502 case $reload_flag in
8504 *) reload_flag=" $reload_flag" ;;
8506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8508 cygwin* | mingw* | pw32* | cegcc*)
8509 if test yes != "$GCC"; then
8514 if test yes = "$GCC"; then
8515 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8517 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 printf %s "checking for $ac_word... " >&6; }
8535 if test ${ac_cv_prog_OBJDUMP+y}
8537 printf %s "(cached) " >&6
8539 if test -n "$OBJDUMP"; then
8540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 case $as_dir in #(((
8549 *) as_dir=$as_dir/ ;;
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8563 OBJDUMP=$ac_cv_prog_OBJDUMP
8564 if test -n "$OBJDUMP"; then
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8566 printf "%s\n" "$OBJDUMP" >&6; }
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 printf "%s\n" "no" >&6; }
8574 if test -z "$ac_cv_prog_OBJDUMP"; then
8575 ac_ct_OBJDUMP=$OBJDUMP
8576 # Extract the first word of "objdump", so it can be a program name with args.
8577 set dummy objdump; ac_word=$2
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 printf %s "checking for $ac_word... " >&6; }
8580 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8582 printf %s "(cached) " >&6
8584 if test -n "$ac_ct_OBJDUMP"; then
8585 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 case $as_dir in #(((
8594 *) as_dir=$as_dir/ ;;
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8609 if test -n "$ac_ct_OBJDUMP"; then
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8611 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 printf "%s\n" "no" >&6; }
8617 if test "x$ac_ct_OBJDUMP" = x; then
8620 case $cross_compiling:$ac_tool_warned in
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8626 OBJDUMP=$ac_ct_OBJDUMP
8629 OBJDUMP="$ac_cv_prog_OBJDUMP"
8632 test -z "$OBJDUMP" && OBJDUMP=objdump
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8640 printf %s "checking how to recognize dependent libraries... " >&6; }
8641 if test ${lt_cv_deplibs_check_method+y}
8643 printf %s "(cached) " >&6
8645 lt_cv_file_magic_cmd='$MAGIC_CMD'
8646 lt_cv_file_magic_test_file=
8647 lt_cv_deplibs_check_method='unknown'
8648 # Need to set the preceding variable on all platforms that support
8649 # interlibrary dependencies.
8650 # 'none' -- dependencies not supported.
8651 # 'unknown' -- same as none, but documents that we really don't know.
8652 # 'pass_all' -- all dependencies passed with no checks.
8653 # 'test_compile' -- check by making test program.
8654 # 'file_magic [[regex]]' -- check by looking for files in library path
8655 # that responds to the $file_magic_cmd with a given extended regex.
8656 # If you have 'file' or equivalent on your system and you're not sure
8657 # whether 'pass_all' will *always* work, you probably want this one.
8661 lt_cv_deplibs_check_method=pass_all
8665 lt_cv_deplibs_check_method=pass_all
8669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8670 lt_cv_file_magic_cmd='/usr/bin/file -L'
8671 lt_cv_file_magic_test_file=/shlib/libc.so
8675 # func_win32_libid is a shell function defined in ltmain.sh
8676 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8677 lt_cv_file_magic_cmd='func_win32_libid'
8681 # Base MSYS/MinGW do not provide the 'file' command needed by
8682 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8683 # unless we find 'file', for example because we are cross-compiling.
8684 if ( file / ) >/dev/null 2>&1; then
8685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8686 lt_cv_file_magic_cmd='func_win32_libid'
8688 # Keep this pattern in sync with the one in func_win32_libid.
8689 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8690 lt_cv_file_magic_cmd='$OBJDUMP -f'
8695 # use the weaker test based on 'objdump'. See mingw*.
8696 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8697 lt_cv_file_magic_cmd='$OBJDUMP -f'
8700 darwin* | rhapsody*)
8701 lt_cv_deplibs_check_method=pass_all
8704 freebsd* | dragonfly*)
8705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8708 # Not sure whether the presence of OpenBSD here was a mistake.
8709 # Let's accept both of them until this is cleared up.
8710 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8711 lt_cv_file_magic_cmd=/usr/bin/file
8712 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8716 lt_cv_deplibs_check_method=pass_all
8721 lt_cv_deplibs_check_method=pass_all
8724 hpux10.20* | hpux11*)
8725 lt_cv_file_magic_cmd=/usr/bin/file
8728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8729 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8732 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]'
8733 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8736 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8737 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8743 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8747 irix5* | irix6* | nonstopux*)
8749 *-32|*"-32 ") libmagic=32-bit;;
8750 *-n32|*"-n32 ") libmagic=N32;;
8751 *-64|*"-64 ") libmagic=64-bit;;
8752 *) libmagic=never-match;;
8754 lt_cv_deplibs_check_method=pass_all
8757 # This must be glibc/ELF.
8758 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8759 lt_cv_deplibs_check_method=pass_all
8762 netbsd* | netbsdelf*-gnu)
8763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8772 lt_cv_file_magic_cmd=/usr/bin/file
8773 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8777 lt_cv_deplibs_check_method=pass_all
8781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8788 osf3* | osf4* | osf5*)
8789 lt_cv_deplibs_check_method=pass_all
8793 lt_cv_deplibs_check_method=pass_all
8797 lt_cv_deplibs_check_method=pass_all
8800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8801 lt_cv_deplibs_check_method=pass_all
8805 case $host_vendor in
8807 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]'
8808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8811 lt_cv_deplibs_check_method=pass_all
8814 lt_cv_file_magic_cmd='/bin/file'
8815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8818 lt_cv_file_magic_cmd='/bin/file'
8819 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8820 lt_cv_file_magic_test_file=/lib/libc.so
8823 lt_cv_deplibs_check_method=pass_all
8826 lt_cv_deplibs_check_method=pass_all
8832 lt_cv_deplibs_check_method=pass_all
8835 lt_cv_deplibs_check_method=pass_all
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8841 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8845 if test "$build" = "$host"; then
8848 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8851 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8857 file_magic_cmd=$lt_cv_file_magic_cmd
8858 deplibs_check_method=$lt_cv_deplibs_check_method
8859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8882 if test -n "$ac_tool_prefix"; then
8883 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 printf %s "checking for $ac_word... " >&6; }
8887 if test ${ac_cv_prog_DLLTOOL+y}
8889 printf %s "(cached) " >&6
8891 if test -n "$DLLTOOL"; then
8892 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 case $as_dir in #(((
8901 *) as_dir=$as_dir/ ;;
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8915 DLLTOOL=$ac_cv_prog_DLLTOOL
8916 if test -n "$DLLTOOL"; then
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8918 printf "%s\n" "$DLLTOOL" >&6; }
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 printf "%s\n" "no" >&6; }
8926 if test -z "$ac_cv_prog_DLLTOOL"; then
8927 ac_ct_DLLTOOL=$DLLTOOL
8928 # Extract the first word of "dlltool", so it can be a program name with args.
8929 set dummy dlltool; ac_word=$2
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 printf %s "checking for $ac_word... " >&6; }
8932 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8934 printf %s "(cached) " >&6
8936 if test -n "$ac_ct_DLLTOOL"; then
8937 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 case $as_dir in #(((
8946 *) as_dir=$as_dir/ ;;
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8960 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8961 if test -n "$ac_ct_DLLTOOL"; then
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8963 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 printf "%s\n" "no" >&6; }
8969 if test "x$ac_ct_DLLTOOL" = x; then
8972 case $cross_compiling:$ac_tool_warned in
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8976 ac_tool_warned=yes ;;
8978 DLLTOOL=$ac_ct_DLLTOOL
8981 DLLTOOL="$ac_cv_prog_DLLTOOL"
8984 test -z "$DLLTOOL" && DLLTOOL=dlltool
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8993 printf %s "checking how to associate runtime and link libraries... " >&6; }
8994 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8996 printf %s "(cached) " >&6
8998 lt_cv_sharedlib_from_linklib_cmd='unknown'
9001 cygwin* | mingw* | pw32* | cegcc*)
9002 # two different shell functions defined in ltmain.sh;
9003 # decide which one to use based on capabilities of $DLLTOOL
9004 case `$DLLTOOL --help 2>&1` in
9005 *--identify-strict*)
9006 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9009 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9014 # fallback: assume linklib IS sharedlib
9015 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9021 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9022 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9023 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9031 if test -n "$ac_tool_prefix"; then
9034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 printf %s "checking for $ac_word... " >&6; }
9038 if test ${ac_cv_prog_AR+y}
9040 printf %s "(cached) " >&6
9042 if test -n "$AR"; then
9043 ac_cv_prog_AR="$AR" # Let the user override the test.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 case $as_dir in #(((
9052 *) as_dir=$as_dir/ ;;
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9067 if test -n "$AR"; then
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9069 printf "%s\n" "$AR" >&6; }
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 printf "%s\n" "no" >&6; }
9076 test -n "$AR" && break
9079 if test -z "$AR"; then
9083 # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 printf %s "checking for $ac_word... " >&6; }
9087 if test ${ac_cv_prog_ac_ct_AR+y}
9089 printf %s "(cached) " >&6
9091 if test -n "$ac_ct_AR"; then
9092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 case $as_dir in #(((
9101 *) as_dir=$as_dir/ ;;
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9105 ac_cv_prog_ac_ct_AR="$ac_prog"
9106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9116 if test -n "$ac_ct_AR"; then
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9118 printf "%s\n" "$ac_ct_AR" >&6; }
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 printf "%s\n" "no" >&6; }
9125 test -n "$ac_ct_AR" && break
9128 if test "x$ac_ct_AR" = x; then
9131 case $cross_compiling:$ac_tool_warned in
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9135 ac_tool_warned=yes ;;
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9155 printf %s "checking for archiver @FILE support... " >&6; }
9156 if test ${lt_cv_ar_at_file+y}
9158 printf %s "(cached) " >&6
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9172 if ac_fn_c_try_compile "$LINENO"
9174 echo conftest.$ac_objext > conftest.lst
9175 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9177 (eval $lt_ar_try) 2>&5
9179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9180 test $ac_status = 0; }
9181 if test 0 -eq "$ac_status"; then
9182 # Ensure the archiver fails upon bogus file names.
9183 rm -f conftest.$ac_objext libconftest.a
9184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9185 (eval $lt_ar_try) 2>&5
9187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9188 test $ac_status = 0; }
9189 if test 0 -ne "$ac_status"; then
9193 rm -f conftest.* libconftest.a
9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9200 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9202 if test no = "$lt_cv_ar_at_file"; then
9205 archiver_list_spec=$lt_cv_ar_at_file
9214 if test -n "$ac_tool_prefix"; then
9215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9216 set dummy ${ac_tool_prefix}strip; ac_word=$2
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 printf %s "checking for $ac_word... " >&6; }
9219 if test ${ac_cv_prog_STRIP+y}
9221 printf %s "(cached) " >&6
9223 if test -n "$STRIP"; then
9224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 case $as_dir in #(((
9233 *) as_dir=$as_dir/ ;;
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9247 STRIP=$ac_cv_prog_STRIP
9248 if test -n "$STRIP"; then
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9250 printf "%s\n" "$STRIP" >&6; }
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 printf "%s\n" "no" >&6; }
9258 if test -z "$ac_cv_prog_STRIP"; then
9260 # Extract the first word of "strip", so it can be a program name with args.
9261 set dummy strip; ac_word=$2
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 printf %s "checking for $ac_word... " >&6; }
9264 if test ${ac_cv_prog_ac_ct_STRIP+y}
9266 printf %s "(cached) " >&6
9268 if test -n "$ac_ct_STRIP"; then
9269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 case $as_dir in #(((
9278 *) as_dir=$as_dir/ ;;
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9282 ac_cv_prog_ac_ct_STRIP="strip"
9283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9293 if test -n "$ac_ct_STRIP"; then
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9295 printf "%s\n" "$ac_ct_STRIP" >&6; }
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 printf "%s\n" "no" >&6; }
9301 if test "x$ac_ct_STRIP" = x; then
9304 case $cross_compiling:$ac_tool_warned in
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9313 STRIP="$ac_cv_prog_STRIP"
9316 test -z "$STRIP" && STRIP=:
9323 if test -n "$ac_tool_prefix"; then
9324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 printf %s "checking for $ac_word... " >&6; }
9328 if test ${ac_cv_prog_RANLIB+y}
9330 printf %s "(cached) " >&6
9332 if test -n "$RANLIB"; then
9333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 case $as_dir in #(((
9342 *) as_dir=$as_dir/ ;;
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9346 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9356 RANLIB=$ac_cv_prog_RANLIB
9357 if test -n "$RANLIB"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9359 printf "%s\n" "$RANLIB" >&6; }
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9367 if test -z "$ac_cv_prog_RANLIB"; then
9368 ac_ct_RANLIB=$RANLIB
9369 # Extract the first word of "ranlib", so it can be a program name with args.
9370 set dummy ranlib; ac_word=$2
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 printf %s "checking for $ac_word... " >&6; }
9373 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9375 printf %s "(cached) " >&6
9377 if test -n "$ac_ct_RANLIB"; then
9378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 case $as_dir in #(((
9387 *) as_dir=$as_dir/ ;;
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9391 ac_cv_prog_ac_ct_RANLIB="ranlib"
9392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9402 if test -n "$ac_ct_RANLIB"; then
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9404 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 printf "%s\n" "no" >&6; }
9410 if test "x$ac_ct_RANLIB" = x; then
9413 case $cross_compiling:$ac_tool_warned in
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417 ac_tool_warned=yes ;;
9419 RANLIB=$ac_ct_RANLIB
9422 RANLIB="$ac_cv_prog_RANLIB"
9425 test -z "$RANLIB" && RANLIB=:
9432 # Determine commands to create old-style static archives.
9433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9434 old_postinstall_cmds='chmod 644 $oldlib'
9435 old_postuninstall_cmds=
9437 if test -n "$RANLIB"; then
9440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9451 lock_old_archive_extraction=yes ;;
9453 lock_old_archive_extraction=no ;;
9494 # If no C compiler was specified, use CC.
9497 # If no C compiler flags were specified, use CFLAGS.
9498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9500 # Allow CC to be a program name with arguments.
9504 # Check for command to grab the raw symbol name followed by C symbol from nm.
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9506 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9507 if test ${lt_cv_sys_global_symbol_pipe+y}
9509 printf %s "(cached) " >&6
9512 # These are sane defaults that work on at least a few old systems.
9513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9515 # Character class describing NM global symbol codes.
9516 symcode='[BCDEGRST]'
9518 # Regexp to match symbols that can be accessed directly from C.
9519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9521 # Define system-specific variables.
9526 cygwin* | mingw* | pw32* | cegcc*)
9527 symcode='[ABCDGISTW]'
9530 if test ia64 = "$host_cpu"; then
9531 symcode='[ABCDEGRST]'
9535 symcode='[BCDEGRST]'
9538 symcode='[BCDEGQRST]'
9549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9557 # If we're using GNU nm, then use its standard symbol codes.
9558 case `$NM -V 2>&1` in
9559 *GNU* | *'with BFD'*)
9560 symcode='[ABCDGIRSTW]' ;;
9563 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9564 # Gets list of data symbols to import.
9565 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9566 # Adjust the below global symbol transforms to fixup imported variables.
9567 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9568 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9569 lt_c_name_lib_hook="\
9570 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9571 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9573 # Disable hooks by default.
9574 lt_cv_sys_global_symbol_to_import=
9580 # Transform an extracted symbol line into a proper C declaration.
9581 # Some systems (esp. on ia64) link data and code symbols differently,
9582 # so use this general approach.
9583 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9585 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9586 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9588 # Transform an extracted symbol line into symbol name and symbol address
9589 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9591 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9592 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9594 # Transform an extracted symbol line into symbol name with lib prefix and
9596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9597 $lt_c_name_lib_hook\
9598 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9599 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9600 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9602 # Handle CRLF in mingw tool chain
9606 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9610 # Try without a prefix underscore, then with it.
9611 for ac_symprfx in "" "_"; do
9613 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9614 symxfrm="\\1 $ac_symprfx\\2 \\2"
9616 # Write the raw and C identifiers.
9617 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9618 # Fake it for dumpbin and say T for any non-static function,
9619 # D for any global variable and I for any imported variable.
9620 # Also find C++ and __fastcall symbols from MSVC++,
9621 # which start with @ or ?.
9622 lt_cv_sys_global_symbol_pipe="$AWK '"\
9623 " {last_section=section; section=\$ 3};"\
9624 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9625 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9626 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9627 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9628 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9629 " \$ 0!~/External *\|/{next};"\
9630 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9631 " {if(hide[section]) next};"\
9632 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9633 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9634 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9635 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9636 " ' prfx=^$ac_symprfx"
9638 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9640 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9642 # Check to see that the pipe works correctly.
9646 cat > conftest.$ac_ext <<_LT_EOF
9651 void nm_test_func(void);
9652 void nm_test_func(void){}
9656 int main(){nm_test_var='a';nm_test_func();return(0);}
9659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9660 (eval $ac_compile) 2>&5
9662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9663 test $ac_status = 0; }; then
9664 # Now try to grab the symbols.
9666 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9667 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9668 # Try sorting and uniquifying the output.
9669 if sort "$nlist" | uniq > "$nlist"T; then
9670 mv -f "$nlist"T "$nlist"
9675 # Make sure that we snagged all the symbols we need.
9676 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9677 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9678 cat <<_LT_EOF > conftest.$ac_ext
9679 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9680 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9681 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9682 relocations are performed -- see ld's documentation on pseudo-relocs. */
9683 # define LT_DLSYM_CONST
9684 #elif defined __osf__
9685 /* This system does not cope well with relocations in const data. */
9686 # define LT_DLSYM_CONST
9688 # define LT_DLSYM_CONST const
9696 # Now generate the symbol file.
9697 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9699 cat <<_LT_EOF >> conftest.$ac_ext
9701 /* The mapping between symbol names and symbols. */
9702 LT_DLSYM_CONST struct {
9706 lt__PROGRAM__LTX_preloaded_symbols[] =
9708 { "@PROGRAM@", (void *) 0 },
9710 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9711 cat <<\_LT_EOF >> conftest.$ac_ext
9715 /* This works around a problem in FreeBSD linker */
9716 #ifdef FREEBSD_WORKAROUND
9717 static const void *lt_preloaded_setup() {
9718 return lt__PROGRAM__LTX_preloaded_symbols;
9726 # Now try linking the two files.
9727 mv conftest.$ac_objext conftstm.$ac_objext
9728 lt_globsym_save_LIBS=$LIBS
9729 lt_globsym_save_CFLAGS=$CFLAGS
9730 LIBS=conftstm.$ac_objext
9731 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9733 (eval $ac_link) 2>&5
9735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9736 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9739 LIBS=$lt_globsym_save_LIBS
9740 CFLAGS=$lt_globsym_save_CFLAGS
9742 echo "cannot find nm_test_func in $nlist" >&5
9745 echo "cannot find nm_test_var in $nlist" >&5
9748 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9751 echo "$progname: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9754 rm -rf conftest* conftst*
9756 # Do not use the global_symbol_pipe unless it works.
9757 if test yes = "$pipe_works"; then
9760 lt_cv_sys_global_symbol_pipe=
9766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9767 lt_cv_sys_global_symbol_to_cdecl=
9769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9771 printf "%s\n" "failed" >&6; }
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9774 printf "%s\n" "ok" >&6; }
9777 # Response file support.
9778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9779 nm_file_list_spec='@'
9780 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9781 nm_file_list_spec='@'
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9821 printf %s "checking for sysroot... " >&6; }
9823 # Check whether --with-sysroot was given.
9824 if test ${with_sysroot+y}
9826 withval=$with_sysroot;
9833 case $with_sysroot in #(
9835 if test yes = "$GCC"; then
9836 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9840 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9846 printf "%s\n" "$with_sysroot" >&6; }
9847 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9852 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9859 printf %s "checking for a working dd... " >&6; }
9860 if test ${ac_cv_path_lt_DD+y}
9862 printf %s "(cached) " >&6
9864 printf 0123456789abcdef0123456789abcdef >conftest.i
9865 cat conftest.i conftest.i >conftest2.i
9867 if test -z "$lt_DD"; then
9868 ac_path_lt_DD_found=false
9869 # Loop through the user's path and test for each of PROGNAME-LIST
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 case $as_dir in #(((
9877 *) as_dir=$as_dir/ ;;
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9883 as_fn_executable_p "$ac_path_lt_DD" || continue
9884 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9885 cmp -s conftest.i conftest.out \
9886 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9888 $ac_path_lt_DD_found && break 3
9893 if test -z "$ac_cv_path_lt_DD"; then
9897 ac_cv_path_lt_DD=$lt_DD
9900 rm -f conftest.i conftest2.i conftest.out
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9903 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9907 printf %s "checking how to truncate binary pipes... " >&6; }
9908 if test ${lt_cv_truncate_bin+y}
9910 printf %s "(cached) " >&6
9912 printf 0123456789abcdef0123456789abcdef >conftest.i
9913 cat conftest.i conftest.i >conftest2.i
9915 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9916 cmp -s conftest.i conftest.out \
9917 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9919 rm -f conftest.i conftest2.i conftest.out
9920 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9923 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9931 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9934 for cc_temp in $*""; do
9936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9942 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9945 # Check whether --enable-libtool-lock was given.
9946 if test ${enable_libtool_lock+y}
9948 enableval=$enable_libtool_lock;
9951 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9953 # Some flags need to be propagated to the compiler or linker for good
9957 # Find out what ABI is being produced by ac_compile, and set mode
9958 # options accordingly.
9959 echo 'int i;' > conftest.$ac_ext
9960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9961 (eval $ac_compile) 2>&5
9963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9964 test $ac_status = 0; }; then
9965 case `/usr/bin/file conftest.$ac_objext` in
9977 # Find out what ABI is being produced by ac_compile, and set linker
9978 # options accordingly.
9979 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9981 (eval $ac_compile) 2>&5
9983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9984 test $ac_status = 0; }; then
9985 if test yes = "$lt_cv_prog_gnu_ld"; then
9986 case `/usr/bin/file conftest.$ac_objext` in
9988 LD="${LD-ld} -melf32bsmip"
9991 LD="${LD-ld} -melf32bmipn32"
9994 LD="${LD-ld} -melf64bmip"
9998 case `/usr/bin/file conftest.$ac_objext` in
10015 # Find out what ABI is being produced by ac_compile, and set linker
10016 # options accordingly.
10017 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10019 (eval $ac_compile) 2>&5
10021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022 test $ac_status = 0; }; then
10024 case `/usr/bin/file conftest.$ac_objext` in
10032 case `/usr/bin/file conftest.$ac_objext` in
10034 emul="${emul}btsmip"
10037 emul="${emul}ltsmip"
10040 case `/usr/bin/file conftest.$ac_objext` in
10045 LD="${LD-ld} -m $emul"
10050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10052 # Find out what ABI is being produced by ac_compile, and set linker
10053 # options accordingly. Note that the listed cases only cover the
10054 # situations where additional linker options are needed (such as when
10055 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10056 # vice versa); the common cases where no linker options are needed do
10057 # not appear in the list.
10058 echo 'int i;' > conftest.$ac_ext
10059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10060 (eval $ac_compile) 2>&5
10062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10063 test $ac_status = 0; }; then
10064 case `/usr/bin/file conftest.o` in
10067 x86_64-*kfreebsd*-gnu)
10068 LD="${LD-ld} -m elf_i386_fbsd"
10071 case `/usr/bin/file conftest.o` in
10073 LD="${LD-ld} -m elf32_x86_64"
10076 LD="${LD-ld} -m elf_i386"
10080 powerpc64le-*linux*)
10081 LD="${LD-ld} -m elf32lppclinux"
10084 LD="${LD-ld} -m elf32ppclinux"
10087 LD="${LD-ld} -m elf_s390"
10090 LD="${LD-ld} -m elf32_sparc"
10096 x86_64-*kfreebsd*-gnu)
10097 LD="${LD-ld} -m elf_x86_64_fbsd"
10100 LD="${LD-ld} -m elf_x86_64"
10103 LD="${LD-ld} -m elf64lppc"
10106 LD="${LD-ld} -m elf64ppc"
10108 s390*-*linux*|s390*-*tpf*)
10109 LD="${LD-ld} -m elf64_s390"
10112 LD="${LD-ld} -m elf64_sparc"
10122 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10123 SAVE_CFLAGS=$CFLAGS
10124 CFLAGS="$CFLAGS -belf"
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10126 printf %s "checking whether the C compiler needs -belf... " >&6; }
10127 if test ${lt_cv_cc_needs_belf+y}
10129 printf %s "(cached) " >&6
10132 ac_cpp='$CPP $CPPFLAGS'
10133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10148 if ac_fn_c_try_link "$LINENO"
10150 lt_cv_cc_needs_belf=yes
10152 lt_cv_cc_needs_belf=no
10154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10155 conftest$ac_exeext conftest.$ac_ext
10157 ac_cpp='$CPP $CPPFLAGS'
10158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10164 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10165 if test yes != "$lt_cv_cc_needs_belf"; then
10166 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10167 CFLAGS=$SAVE_CFLAGS
10171 # Find out what ABI is being produced by ac_compile, and set linker
10172 # options accordingly.
10173 echo 'int i;' > conftest.$ac_ext
10174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10175 (eval $ac_compile) 2>&5
10177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10178 test $ac_status = 0; }; then
10179 case `/usr/bin/file conftest.o` in
10181 case $lt_cv_prog_gnu_ld in
10184 i?86-*-solaris*|x86_64-*-solaris*)
10185 LD="${LD-ld} -m elf_x86_64"
10188 LD="${LD-ld} -m elf64_sparc"
10191 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10192 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10197 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10209 need_locks=$enable_libtool_lock
10211 if test -n "$ac_tool_prefix"; then
10212 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10213 set dummy ${ac_tool_prefix}mt; ac_word=$2
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 printf %s "checking for $ac_word... " >&6; }
10216 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10218 printf %s "(cached) " >&6
10220 if test -n "$MANIFEST_TOOL"; then
10221 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10227 case $as_dir in #(((
10230 *) as_dir=$as_dir/ ;;
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10244 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10245 if test -n "$MANIFEST_TOOL"; then
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10247 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 printf "%s\n" "no" >&6; }
10255 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10256 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10257 # Extract the first word of "mt", so it can be a program name with args.
10258 set dummy mt; ac_word=$2
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 printf %s "checking for $ac_word... " >&6; }
10261 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10263 printf %s "(cached) " >&6
10265 if test -n "$ac_ct_MANIFEST_TOOL"; then
10266 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10272 case $as_dir in #(((
10275 *) as_dir=$as_dir/ ;;
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10279 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10289 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10290 if test -n "$ac_ct_MANIFEST_TOOL"; then
10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10292 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 printf "%s\n" "no" >&6; }
10298 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10301 case $cross_compiling:$ac_tool_warned in
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10305 ac_tool_warned=yes ;;
10307 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10310 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10313 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10315 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10316 if test ${lt_cv_path_mainfest_tool+y}
10318 printf %s "(cached) " >&6
10320 lt_cv_path_mainfest_tool=no
10321 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10322 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10323 cat conftest.err >&5
10324 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10325 lt_cv_path_mainfest_tool=yes
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10330 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10331 if test yes != "$lt_cv_path_mainfest_tool"; then
10341 rhapsody* | darwin*)
10342 if test -n "$ac_tool_prefix"; then
10343 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 printf %s "checking for $ac_word... " >&6; }
10347 if test ${ac_cv_prog_DSYMUTIL+y}
10349 printf %s "(cached) " >&6
10351 if test -n "$DSYMUTIL"; then
10352 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10358 case $as_dir in #(((
10361 *) as_dir=$as_dir/ ;;
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10376 if test -n "$DSYMUTIL"; then
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10378 printf "%s\n" "$DSYMUTIL" >&6; }
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 printf "%s\n" "no" >&6; }
10386 if test -z "$ac_cv_prog_DSYMUTIL"; then
10387 ac_ct_DSYMUTIL=$DSYMUTIL
10388 # Extract the first word of "dsymutil", so it can be a program name with args.
10389 set dummy dsymutil; ac_word=$2
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 printf %s "checking for $ac_word... " >&6; }
10392 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10394 printf %s "(cached) " >&6
10396 if test -n "$ac_ct_DSYMUTIL"; then
10397 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10403 case $as_dir in #(((
10406 *) as_dir=$as_dir/ ;;
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10420 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10421 if test -n "$ac_ct_DSYMUTIL"; then
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10423 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 printf "%s\n" "no" >&6; }
10429 if test "x$ac_ct_DSYMUTIL" = x; then
10432 case $cross_compiling:$ac_tool_warned in
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10436 ac_tool_warned=yes ;;
10438 DSYMUTIL=$ac_ct_DSYMUTIL
10441 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10444 if test -n "$ac_tool_prefix"; then
10445 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10446 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 printf %s "checking for $ac_word... " >&6; }
10449 if test ${ac_cv_prog_NMEDIT+y}
10451 printf %s "(cached) " >&6
10453 if test -n "$NMEDIT"; then
10454 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10460 case $as_dir in #(((
10463 *) as_dir=$as_dir/ ;;
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10477 NMEDIT=$ac_cv_prog_NMEDIT
10478 if test -n "$NMEDIT"; then
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10480 printf "%s\n" "$NMEDIT" >&6; }
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 printf "%s\n" "no" >&6; }
10488 if test -z "$ac_cv_prog_NMEDIT"; then
10489 ac_ct_NMEDIT=$NMEDIT
10490 # Extract the first word of "nmedit", so it can be a program name with args.
10491 set dummy nmedit; ac_word=$2
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 printf %s "checking for $ac_word... " >&6; }
10494 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10496 printf %s "(cached) " >&6
10498 if test -n "$ac_ct_NMEDIT"; then
10499 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10505 case $as_dir in #(((
10508 *) as_dir=$as_dir/ ;;
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10512 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10522 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10523 if test -n "$ac_ct_NMEDIT"; then
10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10525 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 printf "%s\n" "no" >&6; }
10531 if test "x$ac_ct_NMEDIT" = x; then
10534 case $cross_compiling:$ac_tool_warned in
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10538 ac_tool_warned=yes ;;
10540 NMEDIT=$ac_ct_NMEDIT
10543 NMEDIT="$ac_cv_prog_NMEDIT"
10546 if test -n "$ac_tool_prefix"; then
10547 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10548 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 printf %s "checking for $ac_word... " >&6; }
10551 if test ${ac_cv_prog_LIPO+y}
10553 printf %s "(cached) " >&6
10555 if test -n "$LIPO"; then
10556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10562 case $as_dir in #(((
10565 *) as_dir=$as_dir/ ;;
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10569 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10579 LIPO=$ac_cv_prog_LIPO
10580 if test -n "$LIPO"; then
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10582 printf "%s\n" "$LIPO" >&6; }
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 printf "%s\n" "no" >&6; }
10590 if test -z "$ac_cv_prog_LIPO"; then
10592 # Extract the first word of "lipo", so it can be a program name with args.
10593 set dummy lipo; ac_word=$2
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 printf %s "checking for $ac_word... " >&6; }
10596 if test ${ac_cv_prog_ac_ct_LIPO+y}
10598 printf %s "(cached) " >&6
10600 if test -n "$ac_ct_LIPO"; then
10601 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10607 case $as_dir in #(((
10610 *) as_dir=$as_dir/ ;;
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10614 ac_cv_prog_ac_ct_LIPO="lipo"
10615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10624 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10625 if test -n "$ac_ct_LIPO"; then
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10627 printf "%s\n" "$ac_ct_LIPO" >&6; }
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 printf "%s\n" "no" >&6; }
10633 if test "x$ac_ct_LIPO" = x; then
10636 case $cross_compiling:$ac_tool_warned in
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10645 LIPO="$ac_cv_prog_LIPO"
10648 if test -n "$ac_tool_prefix"; then
10649 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}otool; ac_word=$2
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 printf %s "checking for $ac_word... " >&6; }
10653 if test ${ac_cv_prog_OTOOL+y}
10655 printf %s "(cached) " >&6
10657 if test -n "$OTOOL"; then
10658 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10664 case $as_dir in #(((
10667 *) as_dir=$as_dir/ ;;
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10671 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10681 OTOOL=$ac_cv_prog_OTOOL
10682 if test -n "$OTOOL"; then
10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10684 printf "%s\n" "$OTOOL" >&6; }
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 printf "%s\n" "no" >&6; }
10692 if test -z "$ac_cv_prog_OTOOL"; then
10694 # Extract the first word of "otool", so it can be a program name with args.
10695 set dummy otool; ac_word=$2
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 printf %s "checking for $ac_word... " >&6; }
10698 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10700 printf %s "(cached) " >&6
10702 if test -n "$ac_ct_OTOOL"; then
10703 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10709 case $as_dir in #(((
10712 *) as_dir=$as_dir/ ;;
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_ac_ct_OTOOL="otool"
10717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10727 if test -n "$ac_ct_OTOOL"; then
10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10729 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 printf "%s\n" "no" >&6; }
10735 if test "x$ac_ct_OTOOL" = x; then
10738 case $cross_compiling:$ac_tool_warned in
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10741 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10742 ac_tool_warned=yes ;;
10747 OTOOL="$ac_cv_prog_OTOOL"
10750 if test -n "$ac_tool_prefix"; then
10751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 printf %s "checking for $ac_word... " >&6; }
10755 if test ${ac_cv_prog_OTOOL64+y}
10757 printf %s "(cached) " >&6
10759 if test -n "$OTOOL64"; then
10760 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10766 case $as_dir in #(((
10769 *) as_dir=$as_dir/ ;;
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10773 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10783 OTOOL64=$ac_cv_prog_OTOOL64
10784 if test -n "$OTOOL64"; then
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10786 printf "%s\n" "$OTOOL64" >&6; }
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 printf "%s\n" "no" >&6; }
10794 if test -z "$ac_cv_prog_OTOOL64"; then
10795 ac_ct_OTOOL64=$OTOOL64
10796 # Extract the first word of "otool64", so it can be a program name with args.
10797 set dummy otool64; ac_word=$2
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 printf %s "checking for $ac_word... " >&6; }
10800 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10802 printf %s "(cached) " >&6
10804 if test -n "$ac_ct_OTOOL64"; then
10805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10811 case $as_dir in #(((
10814 *) as_dir=$as_dir/ ;;
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_ac_ct_OTOOL64="otool64"
10819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10829 if test -n "$ac_ct_OTOOL64"; then
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10831 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 printf "%s\n" "no" >&6; }
10837 if test "x$ac_ct_OTOOL64" = x; then
10840 case $cross_compiling:$ac_tool_warned in
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10844 ac_tool_warned=yes ;;
10846 OTOOL64=$ac_ct_OTOOL64
10849 OTOOL64="$ac_cv_prog_OTOOL64"
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10879 printf %s "checking for -single_module linker flag... " >&6; }
10880 if test ${lt_cv_apple_cc_single_mod+y}
10882 printf %s "(cached) " >&6
10884 lt_cv_apple_cc_single_mod=no
10885 if test -z "$LT_MULTI_MODULE"; then
10886 # By default we will add the -single_module flag. You can override
10887 # by either setting the environment variable LT_MULTI_MODULE
10888 # non-empty at configure time, or by adding -multi_module to the
10890 rm -rf libconftest.dylib*
10891 echo "int foo(void){return 1;}" > conftest.c
10892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10893 -dynamiclib -Wl,-single_module conftest.c" >&5
10894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10897 # If there is a non-empty error log, and "single_module"
10898 # appears in it, assume the flag caused a linker warning
10899 if test -s conftest.err && $GREP single_module conftest.err; then
10900 cat conftest.err >&5
10901 # Otherwise, if the output was created with a 0 exit code from
10902 # the compiler, it worked.
10903 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10904 lt_cv_apple_cc_single_mod=yes
10906 cat conftest.err >&5
10908 rm -rf libconftest.dylib*
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10913 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10916 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10917 if test ${lt_cv_ld_exported_symbols_list+y}
10919 printf %s "(cached) " >&6
10921 lt_cv_ld_exported_symbols_list=no
10922 save_LDFLAGS=$LDFLAGS
10923 echo "_main" > conftest.sym
10924 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10936 if ac_fn_c_try_link "$LINENO"
10938 lt_cv_ld_exported_symbols_list=yes
10940 lt_cv_ld_exported_symbols_list=no
10942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LDFLAGS=$save_LDFLAGS
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10948 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10951 printf %s "checking for -force_load linker flag... " >&6; }
10952 if test ${lt_cv_ld_force_load+y}
10954 printf %s "(cached) " >&6
10956 lt_cv_ld_force_load=no
10957 cat > conftest.c << _LT_EOF
10958 int forced_loaded() { return 2;}
10960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10962 echo "$AR cr libconftest.a conftest.o" >&5
10963 $AR cr libconftest.a conftest.o 2>&5
10964 echo "$RANLIB libconftest.a" >&5
10965 $RANLIB libconftest.a 2>&5
10966 cat > conftest.c << _LT_EOF
10967 int main() { return 0;}
10969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10972 if test -s conftest.err && $GREP force_load conftest.err; then
10973 cat conftest.err >&5
10974 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10975 lt_cv_ld_force_load=yes
10977 cat conftest.err >&5
10979 rm -f conftest.err libconftest.a conftest conftest.c
10980 rm -rf conftest.dSYM
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10984 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10986 rhapsody* | darwin1.[012])
10987 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10989 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10990 darwin*) # darwin 5.x on
10991 # if running on 10.5 or later, the deployment target defaults
10992 # to the OS version, if on x86, and 10.4, the deployment
10993 # target defaults to 10.4. Don't you love it?
10994 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10995 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
10996 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10998 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11000 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11004 if test yes = "$lt_cv_apple_cc_single_mod"; then
11005 _lt_dar_single_mod='$single_module'
11007 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11008 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11010 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11012 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11013 _lt_dsymutil='~$DSYMUTIL $lib || :'
11020 # func_munge_path_list VARIABLE PATH
11021 # -----------------------------------
11022 # VARIABLE is name of variable containing _space_ separated list of
11023 # directories to be munged by the contents of PATH, which is string
11026 # string "DIR[ DIR]" will be prepended to VARIABLE
11028 # string "DIR[ DIR]" will be appended to VARIABLE
11029 # "DIRP[:DIRP]::[DIRA:]DIRA"
11030 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11031 # "DIRA[ DIRA]" will be appended to VARIABLE
11033 # VARIABLE will be replaced by "DIR[ DIR]"
11034 func_munge_path_list ()
11040 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11043 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11046 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11047 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11050 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11057 if test "x$ac_cv_header_dlfcn_h" = xyes
11059 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11068 enable_win32_dll=yes
11071 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11072 if test -n "$ac_tool_prefix"; then
11073 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11074 set dummy ${ac_tool_prefix}as; ac_word=$2
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 printf %s "checking for $ac_word... " >&6; }
11077 if test ${ac_cv_prog_AS+y}
11079 printf %s "(cached) " >&6
11081 if test -n "$AS"; then
11082 ac_cv_prog_AS="$AS" # Let the user override the test.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 case $as_dir in #(((
11091 *) as_dir=$as_dir/ ;;
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_AS="${ac_tool_prefix}as"
11096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11106 if test -n "$AS"; then
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11108 printf "%s\n" "$AS" >&6; }
11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 printf "%s\n" "no" >&6; }
11116 if test -z "$ac_cv_prog_AS"; then
11118 # Extract the first word of "as", so it can be a program name with args.
11119 set dummy as; ac_word=$2
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 printf %s "checking for $ac_word... " >&6; }
11122 if test ${ac_cv_prog_ac_ct_AS+y}
11124 printf %s "(cached) " >&6
11126 if test -n "$ac_ct_AS"; then
11127 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11133 case $as_dir in #(((
11136 *) as_dir=$as_dir/ ;;
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_ac_ct_AS="as"
11141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11150 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11151 if test -n "$ac_ct_AS"; then
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11153 printf "%s\n" "$ac_ct_AS" >&6; }
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 printf "%s\n" "no" >&6; }
11159 if test "x$ac_ct_AS" = x; then
11162 case $cross_compiling:$ac_tool_warned in
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11166 ac_tool_warned=yes ;;
11171 AS="$ac_cv_prog_AS"
11174 if test -n "$ac_tool_prefix"; then
11175 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 printf %s "checking for $ac_word... " >&6; }
11179 if test ${ac_cv_prog_DLLTOOL+y}
11181 printf %s "(cached) " >&6
11183 if test -n "$DLLTOOL"; then
11184 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11190 case $as_dir in #(((
11193 *) as_dir=$as_dir/ ;;
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11197 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11207 DLLTOOL=$ac_cv_prog_DLLTOOL
11208 if test -n "$DLLTOOL"; then
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11210 printf "%s\n" "$DLLTOOL" >&6; }
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 printf "%s\n" "no" >&6; }
11218 if test -z "$ac_cv_prog_DLLTOOL"; then
11219 ac_ct_DLLTOOL=$DLLTOOL
11220 # Extract the first word of "dlltool", so it can be a program name with args.
11221 set dummy dlltool; ac_word=$2
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 printf %s "checking for $ac_word... " >&6; }
11224 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11226 printf %s "(cached) " >&6
11228 if test -n "$ac_ct_DLLTOOL"; then
11229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 case $as_dir in #(((
11238 *) as_dir=$as_dir/ ;;
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11242 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11253 if test -n "$ac_ct_DLLTOOL"; then
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11255 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 printf "%s\n" "no" >&6; }
11261 if test "x$ac_ct_DLLTOOL" = x; then
11264 case $cross_compiling:$ac_tool_warned in
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268 ac_tool_warned=yes ;;
11270 DLLTOOL=$ac_ct_DLLTOOL
11273 DLLTOOL="$ac_cv_prog_DLLTOOL"
11276 if test -n "$ac_tool_prefix"; then
11277 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11278 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 printf %s "checking for $ac_word... " >&6; }
11281 if test ${ac_cv_prog_OBJDUMP+y}
11283 printf %s "(cached) " >&6
11285 if test -n "$OBJDUMP"; then
11286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11292 case $as_dir in #(((
11295 *) as_dir=$as_dir/ ;;
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11299 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11309 OBJDUMP=$ac_cv_prog_OBJDUMP
11310 if test -n "$OBJDUMP"; then
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11312 printf "%s\n" "$OBJDUMP" >&6; }
11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 printf "%s\n" "no" >&6; }
11320 if test -z "$ac_cv_prog_OBJDUMP"; then
11321 ac_ct_OBJDUMP=$OBJDUMP
11322 # Extract the first word of "objdump", so it can be a program name with args.
11323 set dummy objdump; ac_word=$2
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 printf %s "checking for $ac_word... " >&6; }
11326 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11328 printf %s "(cached) " >&6
11330 if test -n "$ac_ct_OBJDUMP"; then
11331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11337 case $as_dir in #(((
11340 *) as_dir=$as_dir/ ;;
11342 for ac_exec_ext in '' $ac_executable_extensions; do
11343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11355 if test -n "$ac_ct_OBJDUMP"; then
11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11357 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 printf "%s\n" "no" >&6; }
11363 if test "x$ac_ct_OBJDUMP" = x; then
11366 case $cross_compiling:$ac_tool_warned in
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11370 ac_tool_warned=yes ;;
11372 OBJDUMP=$ac_ct_OBJDUMP
11375 OBJDUMP="$ac_cv_prog_OBJDUMP"
11381 test -z "$AS" && AS=as
11387 test -z "$DLLTOOL" && DLLTOOL=dlltool
11393 test -z "$OBJDUMP" && OBJDUMP=objdump
11405 # Check whether --enable-shared was given.
11406 if test ${enable_shared+y}
11408 enableval=$enable_shared; p=${PACKAGE-default}
11410 yes) enable_shared=yes ;;
11411 no) enable_shared=no ;;
11414 # Look at the argument we got. We use all the common list separators.
11415 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11416 for pkg in $enableval; do
11418 if test "X$pkg" = "X$p"; then
11437 # Check whether --enable-static was given.
11438 if test ${enable_static+y}
11440 enableval=$enable_static; p=${PACKAGE-default}
11442 yes) enable_static=yes ;;
11443 no) enable_static=no ;;
11446 # Look at the argument we got. We use all the common list separators.
11447 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11448 for pkg in $enableval; do
11450 if test "X$pkg" = "X$p"; then
11470 # Check whether --with-pic was given.
11471 if test ${with_pic+y}
11473 withval=$with_pic; lt_p=${PACKAGE-default}
11475 yes|no) pic_mode=$withval ;;
11478 # Look at the argument we got. We use all the common list separators.
11479 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11480 for lt_pkg in $withval; do
11482 if test "X$lt_pkg" = "X$lt_p"; then
11500 # Check whether --enable-fast-install was given.
11501 if test ${enable_fast_install+y}
11503 enableval=$enable_fast_install; p=${PACKAGE-default}
11505 yes) enable_fast_install=yes ;;
11506 no) enable_fast_install=no ;;
11508 enable_fast_install=no
11509 # Look at the argument we got. We use all the common list separators.
11510 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11511 for pkg in $enableval; do
11513 if test "X$pkg" = "X$p"; then
11514 enable_fast_install=yes
11521 enable_fast_install=yes
11531 shared_archive_member_spec=
11532 case $host,$enable_shared in
11533 power*-*-aix[5-9]*,yes)
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11535 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11537 # Check whether --with-aix-soname was given.
11538 if test ${with_aix_soname+y}
11540 withval=$with_aix_soname; case $withval in
11544 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11547 lt_cv_with_aix_soname=$with_aix_soname
11549 if test ${lt_cv_with_aix_soname+y}
11551 printf %s "(cached) " >&6
11553 lt_cv_with_aix_soname=aix
11556 with_aix_soname=$lt_cv_with_aix_soname
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11560 printf "%s\n" "$with_aix_soname" >&6; }
11561 if test aix != "$with_aix_soname"; then
11562 # For the AIX way of multilib, we name the shared archive member
11563 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11564 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11565 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11566 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11567 if test 64 = "${OBJECT_MODE-32}"; then
11568 shared_archive_member_spec=shr_64
11570 shared_archive_member_spec=shr
11575 with_aix_soname=aix
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS=$ltmain
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11623 test -z "$LN_S" && LN_S="ln -s"
11638 if test -n "${ZSH_VERSION+set}"; then
11639 setopt NO_GLOB_SUBST
11642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11643 printf %s "checking for objdir... " >&6; }
11644 if test ${lt_cv_objdir+y}
11646 printf %s "(cached) " >&6
11648 rm -f .libs 2>/dev/null
11649 mkdir .libs 2>/dev/null
11650 if test -d .libs; then
11653 # MS-DOS does not allow filenames that begin with a dot.
11656 rmdir .libs 2>/dev/null
11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11659 printf "%s\n" "$lt_cv_objdir" >&6; }
11660 objdir=$lt_cv_objdir
11666 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11673 # AIX sometimes has problems with the GCC collect2 program. For some
11674 # reason, if we set the COLLECT_NAMES environment variable, the problems
11675 # vanish in a puff of smoke.
11676 if test set != "${COLLECT_NAMES+set}"; then
11678 export COLLECT_NAMES
11683 # Global variables:
11685 can_build_shared=yes
11687 # All known linkers require a '.a' archive for static linking (except MSVC,
11688 # which needs '.lib').
11691 with_gnu_ld=$lt_cv_prog_gnu_ld
11696 # Set sane defaults for various variables
11697 test -z "$CC" && CC=cc
11698 test -z "$LTCC" && LTCC=$CC
11699 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11700 test -z "$LD" && LD=ld
11701 test -z "$ac_objext" && ac_objext=o
11703 func_cc_basename $compiler
11704 cc_basename=$func_cc_basename_result
11707 # Only perform the check for file, if the check method requires it
11708 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11709 case $deplibs_check_method in
11711 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11713 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11714 if test ${lt_cv_path_MAGIC_CMD+y}
11716 printf %s "(cached) " >&6
11720 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11723 lt_save_MAGIC_CMD=$MAGIC_CMD
11724 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11726 for ac_dir in $ac_dummy; do
11728 test -z "$ac_dir" && ac_dir=.
11729 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11730 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11731 if test -n "$file_magic_test_file"; then
11732 case $deplibs_check_method in
11734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11735 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11737 $EGREP "$file_magic_regex" > /dev/null; then
11742 *** Warning: the command libtool uses to detect shared libraries,
11743 *** $file_magic_cmd, produces output that libtool cannot recognize.
11744 *** The result is that libtool may fail to recognize shared libraries
11745 *** as such. This will affect the creation of libtool libraries that
11746 *** depend on shared libraries, but programs linked with such libtool
11747 *** libraries will work regardless of this problem. Nevertheless, you
11748 *** may want to report the problem to your system manager and/or to
11749 *** bug-libtool@gnu.org
11759 MAGIC_CMD=$lt_save_MAGIC_CMD
11764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11765 if test -n "$MAGIC_CMD"; then
11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11767 printf "%s\n" "$MAGIC_CMD" >&6; }
11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 printf "%s\n" "no" >&6; }
11777 if test -z "$lt_cv_path_MAGIC_CMD"; then
11778 if test -n "$ac_tool_prefix"; then
11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11780 printf %s "checking for file... " >&6; }
11781 if test ${lt_cv_path_MAGIC_CMD+y}
11783 printf %s "(cached) " >&6
11787 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11790 lt_save_MAGIC_CMD=$MAGIC_CMD
11791 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11792 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11793 for ac_dir in $ac_dummy; do
11795 test -z "$ac_dir" && ac_dir=.
11796 if test -f "$ac_dir/file"; then
11797 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11798 if test -n "$file_magic_test_file"; then
11799 case $deplibs_check_method in
11801 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11802 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11803 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11804 $EGREP "$file_magic_regex" > /dev/null; then
11809 *** Warning: the command libtool uses to detect shared libraries,
11810 *** $file_magic_cmd, produces output that libtool cannot recognize.
11811 *** The result is that libtool may fail to recognize shared libraries
11812 *** as such. This will affect the creation of libtool libraries that
11813 *** depend on shared libraries, but programs linked with such libtool
11814 *** libraries will work regardless of this problem. Nevertheless, you
11815 *** may want to report the problem to your system manager and/or to
11816 *** bug-libtool@gnu.org
11826 MAGIC_CMD=$lt_save_MAGIC_CMD
11831 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11832 if test -n "$MAGIC_CMD"; then
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11834 printf "%s\n" "$MAGIC_CMD" >&6; }
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 printf "%s\n" "no" >&6; }
11850 # Use C for the default configuration in the libtool script
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860 # Source file extension for C test sources.
11863 # Object file extension for compiled C test sources.
11867 # Code to be used in simple compile tests
11868 lt_simple_compile_test_code="int some_variable = 0;"
11870 # Code to be used in simple link tests
11871 lt_simple_link_test_code='int main(){return(0);}'
11879 # If no C compiler was specified, use CC.
11882 # If no C compiler flags were specified, use CFLAGS.
11883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11885 # Allow CC to be a program name with arguments.
11888 # Save the default compiler, since it gets overwritten when the other
11889 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11890 compiler_DEFAULT=$CC
11892 # save warnings/boilerplate of simple test code
11893 ac_outfile=conftest.$ac_objext
11894 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11896 _lt_compiler_boilerplate=`cat conftest.err`
11899 ac_outfile=conftest.$ac_objext
11900 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11902 _lt_linker_boilerplate=`cat conftest.err`
11907 ## There is no encapsulation within the following macros, do not change
11908 ## the running order or otherwise move them around unless you know exactly
11909 ## what you are doing...
11910 if test -n "$compiler"; then
11912 lt_prog_compiler_no_builtin_flag=
11914 if test yes = "$GCC"; then
11915 case $cc_basename in
11917 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11919 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11923 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11924 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11926 printf %s "(cached) " >&6
11928 lt_cv_prog_compiler_rtti_exceptions=no
11929 ac_outfile=conftest.$ac_objext
11930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11931 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11932 # Insert the option either (1) after the last *FLAGS variable, or
11933 # (2) before a word containing "conftest.", or (3) at the end.
11934 # Note that $ac_compile itself does not contain backslashes and begins
11935 # with a dollar sign (not a hyphen), so the echo should work correctly.
11936 # The option is referenced via a variable to avoid confusing sed.
11937 lt_compile=`echo "$ac_compile" | $SED \
11938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11940 -e 's:$: $lt_compiler_flag:'`
11941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11942 (eval "$lt_compile" 2>conftest.err)
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 if (exit $ac_status) && test -s "$ac_outfile"; then
11947 # The compiler can only warn and ignore the option if not recognized
11948 # So say no if there are warnings other than the usual output.
11949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11952 lt_cv_prog_compiler_rtti_exceptions=yes
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11959 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11961 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11974 lt_prog_compiler_wl=
11975 lt_prog_compiler_pic=
11976 lt_prog_compiler_static=
11979 if test yes = "$GCC"; then
11980 lt_prog_compiler_wl='-Wl,'
11981 lt_prog_compiler_static='-static'
11985 # All AIX code is PIC.
11986 if test ia64 = "$host_cpu"; then
11987 # AIX 5 now supports IA64 processor
11988 lt_prog_compiler_static='-Bstatic'
11990 lt_prog_compiler_pic='-fPIC'
11996 # see comment about AmigaOS4 .so support
11997 lt_prog_compiler_pic='-fPIC'
12000 # FIXME: we need at least 68020 code to build shared libraries, but
12001 # adding the '-m68020' flag to GCC prevents building anything better,
12003 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12009 # PIC is the default for these OSes.
12012 mingw* | cygwin* | pw32* | os2* | cegcc*)
12013 # This hack is so that the source file can tell whether it is being
12014 # built for inclusion in a dll (and should export symbols for example).
12015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12016 # (--disable-auto-import) libraries
12017 lt_prog_compiler_pic='-DDLL_EXPORT'
12020 lt_prog_compiler_static='$wl-static'
12025 darwin* | rhapsody*)
12026 # PIC is the default on this platform
12027 # Common symbols not allowed in MH_DYLIB files
12028 lt_prog_compiler_pic='-fno-common'
12032 # PIC is the default for Haiku.
12033 # The "-static" flag exists, but is broken.
12034 lt_prog_compiler_static=
12038 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12039 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12040 # sets the default TLS model and affects inlining.
12046 lt_prog_compiler_pic='-fPIC'
12052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12053 # Instead, we relocate shared libraries at runtime.
12057 # Just because we use GCC doesn't mean we suddenly get shared libraries
12058 # on systems that don't support them.
12059 lt_prog_compiler_can_build_shared=no
12064 # QNX uses GNU C++, but need to define -shared option too, otherwise
12065 # it will coredump.
12066 lt_prog_compiler_pic='-fPIC -shared'
12070 if test -d /usr/nec; then
12071 lt_prog_compiler_pic=-Kconform_pic
12076 lt_prog_compiler_pic='-fPIC'
12080 case $cc_basename in
12081 nvcc*) # Cuda Compiler Driver 2.2
12082 lt_prog_compiler_wl='-Xlinker '
12083 if test -n "$lt_prog_compiler_pic"; then
12084 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12089 # PORTME Check for flag to pass linker flags through the system compiler.
12092 lt_prog_compiler_wl='-Wl,'
12093 if test ia64 = "$host_cpu"; then
12094 # AIX 5 now supports IA64 processor
12095 lt_prog_compiler_static='-Bstatic'
12097 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12101 darwin* | rhapsody*)
12102 # PIC is the default on this platform
12103 # Common symbols not allowed in MH_DYLIB files
12104 lt_prog_compiler_pic='-fno-common'
12105 case $cc_basename in
12107 # NAG Fortran compiler
12108 lt_prog_compiler_wl='-Wl,-Wl,,'
12109 lt_prog_compiler_pic='-PIC'
12110 lt_prog_compiler_static='-Bstatic'
12115 mingw* | cygwin* | pw32* | os2* | cegcc*)
12116 # This hack is so that the source file can tell whether it is being
12117 # built for inclusion in a dll (and should export symbols for example).
12118 lt_prog_compiler_pic='-DDLL_EXPORT'
12121 lt_prog_compiler_static='$wl-static'
12126 hpux9* | hpux10* | hpux11*)
12127 lt_prog_compiler_wl='-Wl,'
12128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12129 # not for PA HP-UX.
12135 lt_prog_compiler_pic='+Z'
12138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12139 lt_prog_compiler_static='$wl-a ${wl}archive'
12142 irix5* | irix6* | nonstopux*)
12143 lt_prog_compiler_wl='-Wl,'
12144 # PIC (with -KPIC) is the default.
12145 lt_prog_compiler_static='-non_shared'
12148 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12149 case $cc_basename in
12150 # old Intel for x86_64, which still supported -KPIC.
12152 lt_prog_compiler_wl='-Wl,'
12153 lt_prog_compiler_pic='-KPIC'
12154 lt_prog_compiler_static='-static'
12156 # flang / f18. f95 an alias for gfortran or flang on Debian
12157 flang* | f18* | f95*)
12158 lt_prog_compiler_wl='-Wl,'
12159 lt_prog_compiler_pic='-fPIC'
12160 lt_prog_compiler_static='-static'
12162 # icc used to be incompatible with GCC.
12163 # ICC 10 doesn't accept -KPIC any more.
12165 lt_prog_compiler_wl='-Wl,'
12166 lt_prog_compiler_pic='-fPIC'
12167 lt_prog_compiler_static='-static'
12169 # Lahey Fortran 8.1.
12171 lt_prog_compiler_wl='-Wl,'
12172 lt_prog_compiler_pic='--shared'
12173 lt_prog_compiler_static='--static'
12176 # NAG Fortran compiler
12177 lt_prog_compiler_wl='-Wl,-Wl,,'
12178 lt_prog_compiler_pic='-PIC'
12179 lt_prog_compiler_static='-Bstatic'
12182 # Fabrice Bellard et al's Tiny C Compiler
12183 lt_prog_compiler_wl='-Wl,'
12184 lt_prog_compiler_pic='-fPIC'
12185 lt_prog_compiler_static='-static'
12187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12188 # Portland Group compilers (*not* the Pentium gcc compiler,
12189 # which looks to be a dead project)
12190 lt_prog_compiler_wl='-Wl,'
12191 lt_prog_compiler_pic='-fpic'
12192 lt_prog_compiler_static='-Bstatic'
12195 lt_prog_compiler_wl='-Wl,'
12196 # All Alpha code is PIC.
12197 lt_prog_compiler_static='-non_shared'
12199 xl* | bgxl* | bgf* | mpixl*)
12200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12201 lt_prog_compiler_wl='-Wl,'
12202 lt_prog_compiler_pic='-qpic'
12203 lt_prog_compiler_static='-qstaticlink'
12206 case `$CC -V 2>&1 | sed 5q` in
12207 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12209 lt_prog_compiler_pic='-KPIC'
12210 lt_prog_compiler_static='-Bstatic'
12211 lt_prog_compiler_wl=''
12213 *Sun\ F* | *Sun*Fortran*)
12214 lt_prog_compiler_pic='-KPIC'
12215 lt_prog_compiler_static='-Bstatic'
12216 lt_prog_compiler_wl='-Qoption ld '
12220 lt_prog_compiler_pic='-KPIC'
12221 lt_prog_compiler_static='-Bstatic'
12222 lt_prog_compiler_wl='-Wl,'
12224 *Intel*\ [CF]*Compiler*)
12225 lt_prog_compiler_wl='-Wl,'
12226 lt_prog_compiler_pic='-fPIC'
12227 lt_prog_compiler_static='-static'
12230 lt_prog_compiler_wl='-Wl,'
12231 lt_prog_compiler_pic='-fpic'
12232 lt_prog_compiler_static='-Bstatic'
12240 lt_prog_compiler_pic='-KPIC'
12241 lt_prog_compiler_static='-Bstatic'
12245 # QNX uses GNU C++, but need to define -shared option too, otherwise
12246 # it will coredump.
12247 lt_prog_compiler_pic='-fPIC -shared'
12250 osf3* | osf4* | osf5*)
12251 lt_prog_compiler_wl='-Wl,'
12252 # All OSF/1 code is PIC.
12253 lt_prog_compiler_static='-non_shared'
12257 lt_prog_compiler_static='-non_shared'
12261 lt_prog_compiler_pic='-KPIC'
12262 lt_prog_compiler_static='-Bstatic'
12263 case $cc_basename in
12264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12265 lt_prog_compiler_wl='-Qoption ld ';;
12267 lt_prog_compiler_wl='-Wl,';;
12272 lt_prog_compiler_wl='-Qoption ld '
12273 lt_prog_compiler_pic='-PIC'
12274 lt_prog_compiler_static='-Bstatic'
12277 sysv4 | sysv4.2uw2* | sysv4.3*)
12278 lt_prog_compiler_wl='-Wl,'
12279 lt_prog_compiler_pic='-KPIC'
12280 lt_prog_compiler_static='-Bstatic'
12284 if test -d /usr/nec; then
12285 lt_prog_compiler_pic='-Kconform_pic'
12286 lt_prog_compiler_static='-Bstatic'
12290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12291 lt_prog_compiler_wl='-Wl,'
12292 lt_prog_compiler_pic='-KPIC'
12293 lt_prog_compiler_static='-Bstatic'
12297 lt_prog_compiler_wl='-Wl,'
12298 lt_prog_compiler_can_build_shared=no
12302 lt_prog_compiler_pic='-pic'
12303 lt_prog_compiler_static='-Bstatic'
12307 lt_prog_compiler_can_build_shared=no
12313 # For platforms that do not support PIC, -DPIC is meaningless:
12315 lt_prog_compiler_pic=
12318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12323 printf %s "checking for $compiler option to produce PIC... " >&6; }
12324 if test ${lt_cv_prog_compiler_pic+y}
12326 printf %s "(cached) " >&6
12328 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12331 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12332 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12335 # Check to make sure the PIC flag actually works.
12337 if test -n "$lt_prog_compiler_pic"; then
12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12339 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12340 if test ${lt_cv_prog_compiler_pic_works+y}
12342 printf %s "(cached) " >&6
12344 lt_cv_prog_compiler_pic_works=no
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12348 # Insert the option either (1) after the last *FLAGS variable, or
12349 # (2) before a word containing "conftest.", or (3) at the end.
12350 # Note that $ac_compile itself does not contain backslashes and begins
12351 # with a dollar sign (not a hyphen), so the echo should work correctly.
12352 # The option is referenced via a variable to avoid confusing sed.
12353 lt_compile=`echo "$ac_compile" | $SED \
12354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12356 -e 's:$: $lt_compiler_flag:'`
12357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12358 (eval "$lt_compile" 2>conftest.err)
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 if (exit $ac_status) && test -s "$ac_outfile"; then
12363 # The compiler can only warn and ignore the option if not recognized
12364 # So say no if there are warnings other than the usual output.
12365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12368 lt_cv_prog_compiler_pic_works=yes
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12375 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12377 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12378 case $lt_prog_compiler_pic in
12380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12383 lt_prog_compiler_pic=
12384 lt_prog_compiler_can_build_shared=no
12400 # Check to make sure the static flag actually works.
12402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12404 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12405 if test ${lt_cv_prog_compiler_static_works+y}
12407 printf %s "(cached) " >&6
12409 lt_cv_prog_compiler_static_works=no
12410 save_LDFLAGS=$LDFLAGS
12411 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12412 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12414 # The linker can only warn and ignore the option if not recognized
12415 # So say no if there are warnings
12416 if test -s conftest.err; then
12417 # Append any errors to the config.log.
12418 cat conftest.err 1>&5
12419 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12421 if diff conftest.exp conftest.er2 >/dev/null; then
12422 lt_cv_prog_compiler_static_works=yes
12425 lt_cv_prog_compiler_static_works=yes
12429 LDFLAGS=$save_LDFLAGS
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12433 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12435 if test yes = "$lt_cv_prog_compiler_static_works"; then
12438 lt_prog_compiler_static=
12447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12448 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12449 if test ${lt_cv_prog_compiler_c_o+y}
12451 printf %s "(cached) " >&6
12453 lt_cv_prog_compiler_c_o=no
12454 $RM -r conftest 2>/dev/null
12458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12460 lt_compiler_flag="-o out/conftest2.$ac_objext"
12461 # Insert the option either (1) after the last *FLAGS variable, or
12462 # (2) before a word containing "conftest.", or (3) at the end.
12463 # Note that $ac_compile itself does not contain backslashes and begins
12464 # with a dollar sign (not a hyphen), so the echo should work correctly.
12465 lt_compile=`echo "$ac_compile" | $SED \
12466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468 -e 's:$: $lt_compiler_flag:'`
12469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12470 (eval "$lt_compile" 2>out/conftest.err)
12472 cat out/conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12476 # The compiler can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481 lt_cv_prog_compiler_c_o=yes
12486 # SGI C++ compiler will create directory out/ii_files/ for
12487 # template instantiation
12488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489 $RM out/* && rmdir out
12495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12496 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12504 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12505 if test ${lt_cv_prog_compiler_c_o+y}
12507 printf %s "(cached) " >&6
12509 lt_cv_prog_compiler_c_o=no
12510 $RM -r conftest 2>/dev/null
12514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12516 lt_compiler_flag="-o out/conftest2.$ac_objext"
12517 # Insert the option either (1) after the last *FLAGS variable, or
12518 # (2) before a word containing "conftest.", or (3) at the end.
12519 # Note that $ac_compile itself does not contain backslashes and begins
12520 # with a dollar sign (not a hyphen), so the echo should work correctly.
12521 lt_compile=`echo "$ac_compile" | $SED \
12522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12524 -e 's:$: $lt_compiler_flag:'`
12525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12526 (eval "$lt_compile" 2>out/conftest.err)
12528 cat out/conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12532 # The compiler can only warn and ignore the option if not recognized
12533 # So say no if there are warnings
12534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12537 lt_cv_prog_compiler_c_o=yes
12542 # SGI C++ compiler will create directory out/ii_files/ for
12543 # template instantiation
12544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12545 $RM out/* && rmdir out
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12552 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12557 hard_links=nottested
12558 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12559 # do not overwrite the value of need_locks provided by the user
12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12561 printf %s "checking if we can lock with hard links... " >&6; }
12564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566 ln conftest.a conftest.b 2>&5 || hard_links=no
12567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12569 printf "%s\n" "$hard_links" >&6; }
12570 if test no = "$hard_links"; then
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12572 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12585 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12588 allow_undefined_flag=
12589 always_export_symbols=no
12591 archive_expsym_cmds=
12592 compiler_needs_object=no
12593 enable_shared_with_static_runtimes=no
12594 export_dynamic_flag_spec=
12595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12596 hardcode_automatic=no
12598 hardcode_direct_absolute=no
12599 hardcode_libdir_flag_spec=
12600 hardcode_libdir_separator=
12601 hardcode_minus_L=no
12602 hardcode_shlibpath_var=unsupported
12604 link_all_deplibs=unknown
12606 module_expsym_cmds=
12607 old_archive_from_new_cmds=
12608 old_archive_from_expsyms_cmds=
12609 thread_safe_flag_spec=
12610 whole_archive_flag_spec=
12611 # include_expsyms should be a list of space-separated symbols to be *always*
12612 # included in the symbol list
12614 # exclude_expsyms can be an extended regexp of symbols to exclude
12615 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12616 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12617 # as well as any symbol that contains 'd'.
12618 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12620 # platforms (ab)use it in PIC code, but their linkers get confused if
12621 # the symbol is explicitly referenced. Since portable code cannot
12622 # rely on this symbol name, it's probably fine to never include it in
12623 # preloaded symbol tables.
12624 # Exclude shared library initialization/finalization symbols.
12625 extract_expsyms_cmds=
12628 cygwin* | mingw* | pw32* | cegcc*)
12629 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12630 # When not using gcc, we currently assume that we are using
12631 # Microsoft Visual C++.
12632 if test yes != "$GCC"; then
12637 # we just hope/assume this is gcc and not c89 (= MSVC++)
12640 openbsd* | bitrig*)
12643 linux* | k*bsd*-gnu | gnu*)
12644 link_all_deplibs=no
12650 # On some targets, GNU ld is compatible enough with the native linker
12651 # that we're better off using the native interface for both.
12652 lt_use_gnu_ld_interface=no
12653 if test yes = "$with_gnu_ld"; then
12656 # The AIX port of GNU ld has always aspired to compatibility
12657 # with the native linker. However, as the warning in the GNU ld
12658 # block says, versions before 2.19.5* couldn't really create working
12659 # shared libraries, regardless of the interface used.
12660 case `$LD -v 2>&1` in
12661 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12662 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12663 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12665 lt_use_gnu_ld_interface=yes
12670 lt_use_gnu_ld_interface=yes
12675 if test yes = "$lt_use_gnu_ld_interface"; then
12676 # If archive_cmds runs LD, not CC, wlarc should be empty
12679 # Set some defaults for GNU ld with shared library support. These
12680 # are reset later if shared libraries are not supported. Putting them
12681 # here allows them to be overridden if necessary.
12682 runpath_var=LD_RUN_PATH
12683 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12684 export_dynamic_flag_spec='$wl--export-dynamic'
12685 # ancient GNU ld didn't support --whole-archive et. al.
12686 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12687 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12689 whole_archive_flag_spec=
12691 supports_anon_versioning=no
12692 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12693 *GNU\ gold*) supports_anon_versioning=yes ;;
12694 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12695 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12696 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12697 *\ 2.11.*) ;; # other 2.11 versions
12698 *) supports_anon_versioning=yes ;;
12701 # See if GNU ld supports shared libraries.
12704 # On AIX/PPC, the GNU linker is very broken
12705 if test ia64 != "$host_cpu"; then
12709 *** Warning: the GNU linker, at least up to release 2.19, is reported
12710 *** to be unable to reliably create shared libraries on AIX.
12711 *** Therefore, libtool is disabling shared libraries support. If you
12712 *** really care for shared libraries, you may want to install binutils
12713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12714 *** You will then need to restart the configuration process.
12723 # see comment about AmigaOS4 .so support
12724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12725 archive_expsym_cmds=''
12728 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)'
12729 hardcode_libdir_flag_spec='-L$libdir'
12730 hardcode_minus_L=yes
12736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12737 allow_undefined_flag=unsupported
12738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739 # support --undefined. This deserves some investigation. FIXME
12740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12746 cygwin* | mingw* | pw32* | cegcc*)
12747 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12748 # as there is no search path for DLLs.
12749 hardcode_libdir_flag_spec='-L$libdir'
12750 export_dynamic_flag_spec='$wl--export-all-symbols'
12751 allow_undefined_flag=unsupported
12752 always_export_symbols=no
12753 enable_shared_with_static_runtimes=yes
12754 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'
12755 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12759 # If the export-symbols file already is a .def file, use it as
12760 # is; otherwise, prepend EXPORTS...
12761 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12762 cp $export_symbols $output_objdir/$soname.def;
12764 echo EXPORTS > $output_objdir/$soname.def;
12765 cat $export_symbols >> $output_objdir/$soname.def;
12767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12775 link_all_deplibs=yes
12779 hardcode_libdir_flag_spec='-L$libdir'
12780 hardcode_minus_L=yes
12781 allow_undefined_flag=unsupported
12783 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12784 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12785 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12786 $ECHO EXPORTS >> $output_objdir/$libname.def~
12787 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12789 emximp -o $lib $output_objdir/$libname.def'
12790 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12791 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12792 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12793 $ECHO EXPORTS >> $output_objdir/$libname.def~
12794 prefix_cmds="$SED"~
12795 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12796 prefix_cmds="$prefix_cmds -e 1d";
12798 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12799 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12800 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12801 emximp -o $lib $output_objdir/$libname.def'
12802 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12803 enable_shared_with_static_runtimes=yes
12808 hardcode_shlibpath_var=no
12809 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12810 export_dynamic_flag_spec='$wl-E'
12811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12812 # Instead, shared libraries are loaded at an image base (0x10000000 by
12813 # default) and relocated if they conflict, which is a slow very memory
12814 # consuming and fragmenting process. To avoid this, we pick a random,
12815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12816 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12818 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'
12821 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12823 if test linux-dietlibc = "$host_os"; then
12824 case $cc_basename in
12825 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12828 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12829 && test no = "$tmp_diet"
12831 tmp_addflag=' $pic_flag'
12832 tmp_sharedflag='-shared'
12833 case $cc_basename,$host_cpu in
12834 pgcc*) # Portland Group C compiler
12835 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'
12836 tmp_addflag=' $pic_flag'
12838 pgf77* | pgf90* | pgf95* | pgfortran*)
12839 # Portland Group f77 and f90 compilers
12840 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'
12841 tmp_addflag=' $pic_flag -Mnomain' ;;
12842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12843 tmp_addflag=' -i_dynamic' ;;
12844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12845 tmp_addflag=' -i_dynamic -nofor_main' ;;
12846 ifc* | ifort*) # Intel Fortran compiler
12847 tmp_addflag=' -nofor_main' ;;
12848 lf95*) # Lahey Fortran 8.1
12849 whole_archive_flag_spec=
12850 tmp_sharedflag='--shared' ;;
12851 nagfor*) # NAGFOR 5.3
12852 tmp_sharedflag='-Wl,-shared' ;;
12853 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12854 tmp_sharedflag='-qmkshrobj'
12856 nvcc*) # Cuda Compiler Driver 2.2
12857 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'
12858 compiler_needs_object=yes
12861 case `$CC -V 2>&1 | sed 5q` in
12862 *Sun\ C*) # Sun C 5.9
12863 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'
12864 compiler_needs_object=yes
12865 tmp_sharedflag='-G' ;;
12866 *Sun\ F*) # Sun Fortran 8.3
12867 tmp_sharedflag='-G' ;;
12869 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12871 if test yes = "$supports_anon_versioning"; then
12872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12874 echo "local: *; };" >> $output_objdir/$libname.ver~
12875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12878 case $cc_basename in
12880 export_dynamic_flag_spec='-rdynamic'
12882 xlf* | bgf* | bgxlf* | mpixlf*)
12883 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12884 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12885 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12886 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12887 if test yes = "$supports_anon_versioning"; then
12888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12890 echo "local: *; };" >> $output_objdir/$libname.ver~
12891 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12900 netbsd* | netbsdelf*-gnu)
12901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12902 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12911 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12915 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12916 *** create shared libraries on Solaris systems. Therefore, libtool
12917 *** is disabling shared libraries support. We urge you to upgrade GNU
12918 *** binutils to release 2.9.1 or newer. Another option is to modify
12919 *** your PATH or compiler configuration so that the native linker is
12920 *** used, and then restart.
12923 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12932 case `$LD -v 2>&1` in
12933 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12937 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12938 *** reliably create shared libraries on SCO systems. Therefore, libtool
12939 *** is disabling shared libraries support. We urge you to upgrade GNU
12940 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12941 *** your PATH or compiler configuration so that the native linker is
12942 *** used, and then restart.
12947 # For security reasons, it is highly recommended that you always
12948 # use absolute paths for naming shared libraries, and exclude the
12949 # DT_RUNPATH tag from executables and libraries. But doing so
12950 # requires that you compile everything twice, which is a pain.
12951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12963 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12965 hardcode_direct=yes
12966 hardcode_shlibpath_var=no
12970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12972 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12979 if test no = "$ld_shlibs"; then
12981 hardcode_libdir_flag_spec=
12982 export_dynamic_flag_spec=
12983 whole_archive_flag_spec=
12986 # PORTME fill in a description of your system's linker (not GNU ld)
12989 allow_undefined_flag=unsupported
12990 always_export_symbols=yes
12991 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'
12992 # Note: this linker hardcodes the directories in LIBPATH if there
12993 # are no directories specified by -L.
12994 hardcode_minus_L=yes
12995 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12996 # Neither direct hardcoding nor static linking is supported with a
12998 hardcode_direct=unsupported
13003 if test ia64 = "$host_cpu"; then
13004 # On IA64, the linker does run time linking by default, so we don't
13005 # have to do anything special.
13006 aix_use_runtimelinking=no
13007 exp_sym_flag='-Bexport'
13010 # If we're using GNU nm, then we don't want the "-C" option.
13011 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13012 # Without the "-l" option, or with the "-B" option, AIX nm treats
13013 # weak defined symbols like other global defined symbols, whereas
13014 # GNU nm marks them as "W".
13015 # While the 'weak' keyword is ignored in the Export File, we need
13016 # it in the Import File for the 'aix-soname' feature, so we have
13017 # to replace the "-B" option with "-P" for AIX nm.
13018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13019 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13021 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13023 aix_use_runtimelinking=no
13025 # Test if we are trying to use run time linking or normal
13026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13027 # have runtime linking enabled, and use it for executables.
13028 # For shared libraries, we enable/disable runtime linking
13029 # depending on the kind of the shared library created -
13030 # when "with_aix_soname,aix_use_runtimelinking" is:
13031 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13032 # "aix,yes" lib.so shared, rtl:yes, for executables
13033 # lib.a static archive
13034 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13035 # lib.a(lib.so.V) shared, rtl:no, for executables
13036 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13037 # lib.a(lib.so.V) shared, rtl:no
13038 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13039 # lib.a static archive
13040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13041 for ld_flag in $LDFLAGS; do
13042 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13043 aix_use_runtimelinking=yes
13047 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13048 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13049 # so we don't have lib.a shared libs to link our executables.
13050 # We have to force runtime linking in this case.
13051 aix_use_runtimelinking=yes
13052 LDFLAGS="$LDFLAGS -Wl,-brtl"
13057 exp_sym_flag='-bexport'
13058 no_entry_flag='-bnoentry'
13061 # When large executables or shared objects are built, AIX ld can
13062 # have problems creating the table of contents. If linking a library
13063 # or program results in "error TOC overflow" add -mminimal-toc to
13064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13068 hardcode_direct=yes
13069 hardcode_direct_absolute=yes
13070 hardcode_libdir_separator=':'
13071 link_all_deplibs=yes
13072 file_list_spec='$wl-f,'
13073 case $with_aix_soname,$aix_use_runtimelinking in
13074 aix,*) ;; # traditional, no import file
13075 svr4,* | *,yes) # use import file
13076 # The Import File defines what to hardcode.
13078 hardcode_direct_absolute=no
13082 if test yes = "$GCC"; then
13083 case $host_os in aix4.[012]|aix4.[012].*)
13084 # We only want to do this on AIX 4.2 and lower, the check
13085 # below for broken collect2 doesn't work under 4.3+
13086 collect2name=`$CC -print-prog-name=collect2`
13087 if test -f "$collect2name" &&
13088 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13090 # We have reworked collect2
13093 # We have old collect2
13094 hardcode_direct=unsupported
13095 # It fails to find uninstalled libraries when the uninstalled
13096 # path is not listed in the libpath. Setting hardcode_minus_L
13097 # to unsupported forces relinking
13098 hardcode_minus_L=yes
13099 hardcode_libdir_flag_spec='-L$libdir'
13100 hardcode_libdir_separator=
13104 shared_flag='-shared'
13105 if test yes = "$aix_use_runtimelinking"; then
13106 shared_flag="$shared_flag "'$wl-G'
13108 # Need to ensure runtime linking is disabled for the traditional
13109 # shared library, or the linker may eventually find shared libraries
13110 # /with/ Import File - we do not want to mix them.
13111 shared_flag_aix='-shared'
13112 shared_flag_svr4='-shared $wl-G'
13115 if test ia64 = "$host_cpu"; then
13116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13117 # chokes on -Wl,-G. The following line is correct:
13120 if test yes = "$aix_use_runtimelinking"; then
13121 shared_flag='$wl-G'
13123 shared_flag='$wl-bM:SRE'
13125 shared_flag_aix='$wl-bM:SRE'
13126 shared_flag_svr4='$wl-G'
13130 export_dynamic_flag_spec='$wl-bexpall'
13131 # It seems that -bexpall does not export symbols beginning with
13132 # underscore (_), so it is better to generate a list of symbols to export.
13133 always_export_symbols=yes
13134 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13135 # Warning - without using the other runtime loading flags (-brtl),
13136 # -berok will link without error, but may produce a broken library.
13137 allow_undefined_flag='-berok'
13138 # Determine the default libpath from the value encoded in an
13139 # empty executable.
13140 if test set = "${lt_cv_aix_libpath+set}"; then
13141 aix_libpath=$lt_cv_aix_libpath
13143 if test ${lt_cv_aix_libpath_+y}
13145 printf %s "(cached) " >&6
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13158 if ac_fn_c_try_link "$LINENO"
13161 lt_aix_libpath_sed='
13162 /Import File Strings/,/^$/ {
13164 s/^0 *\([^ ]*\) *$/\1/
13168 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169 # Check for a 64-bit object if we didn't find anything.
13170 if test -z "$lt_cv_aix_libpath_"; then
13171 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13175 conftest$ac_exeext conftest.$ac_ext
13176 if test -z "$lt_cv_aix_libpath_"; then
13177 lt_cv_aix_libpath_=/usr/lib:/lib
13182 aix_libpath=$lt_cv_aix_libpath_
13185 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13186 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13188 if test ia64 = "$host_cpu"; then
13189 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13190 allow_undefined_flag="-z nodefs"
13191 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"
13193 # Determine the default libpath from the value encoded in an
13194 # empty executable.
13195 if test set = "${lt_cv_aix_libpath+set}"; then
13196 aix_libpath=$lt_cv_aix_libpath
13198 if test ${lt_cv_aix_libpath_+y}
13200 printf %s "(cached) " >&6
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13213 if ac_fn_c_try_link "$LINENO"
13216 lt_aix_libpath_sed='
13217 /Import File Strings/,/^$/ {
13219 s/^0 *\([^ ]*\) *$/\1/
13223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13224 # Check for a 64-bit object if we didn't find anything.
13225 if test -z "$lt_cv_aix_libpath_"; then
13226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13230 conftest$ac_exeext conftest.$ac_ext
13231 if test -z "$lt_cv_aix_libpath_"; then
13232 lt_cv_aix_libpath_=/usr/lib:/lib
13237 aix_libpath=$lt_cv_aix_libpath_
13240 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13241 # Warning - without using the other run time loading flags,
13242 # -berok will link without error, but may produce a broken library.
13243 no_undefined_flag=' $wl-bernotok'
13244 allow_undefined_flag=' $wl-berok'
13245 if test yes = "$with_gnu_ld"; then
13246 # We only use this code for GNU lds that support --whole-archive.
13247 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13249 # Exported symbols can be pulled into shared objects from archives
13250 whole_archive_flag_spec='$convenience'
13252 archive_cmds_need_lc=yes
13253 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13254 # -brtl affects multiple linker settings, -berok does not and is overridden later
13255 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13256 if test svr4 != "$with_aix_soname"; then
13257 # This is similar to how AIX traditionally builds its shared libraries.
13258 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13260 if test aix != "$with_aix_soname"; then
13261 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13263 # used by -dlpreopen to get the symbols
13264 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13266 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13274 # see comment about AmigaOS4 .so support
13275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13276 archive_expsym_cmds=''
13279 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)'
13280 hardcode_libdir_flag_spec='-L$libdir'
13281 hardcode_minus_L=yes
13287 export_dynamic_flag_spec=-rdynamic
13290 cygwin* | mingw* | pw32* | cegcc*)
13291 # When not using gcc, we currently assume that we are using
13292 # Microsoft Visual C++.
13293 # hardcode_libdir_flag_spec is actually meaningless, as there is
13294 # no search path for DLLs.
13295 case $cc_basename in
13298 hardcode_libdir_flag_spec=' '
13299 allow_undefined_flag=unsupported
13300 always_export_symbols=yes
13302 # Tell ltmain to make .lib files, not .a files.
13304 # Tell ltmain to make .dll files, not .so files.
13306 # FIXME: Setting linknames here is a bad hack.
13307 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13308 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13309 cp "$export_symbols" "$output_objdir/$soname.def";
13310 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13312 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13314 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13316 # The linker will not automatically build a static lib if we build a DLL.
13317 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13318 enable_shared_with_static_runtimes=yes
13319 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13322 old_postinstall_cmds='chmod 644 $oldlib'
13323 postlink_cmds='lt_outputfile="@OUTPUT@"~
13324 lt_tool_outputfile="@TOOL_OUTPUT@"~
13325 case $lt_outputfile in
13328 lt_outputfile=$lt_outputfile.exe
13329 lt_tool_outputfile=$lt_tool_outputfile.exe
13332 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13333 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13334 $RM "$lt_outputfile.manifest";
13338 # Assume MSVC wrapper
13339 hardcode_libdir_flag_spec=' '
13340 allow_undefined_flag=unsupported
13341 # Tell ltmain to make .lib files, not .a files.
13343 # Tell ltmain to make .dll files, not .so files.
13345 # FIXME: Setting linknames here is a bad hack.
13346 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13347 # The linker will automatically build a .lib file if we build a DLL.
13348 old_archive_from_new_cmds='true'
13349 # FIXME: Should let the user specify the lib program.
13350 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13351 enable_shared_with_static_runtimes=yes
13356 darwin* | rhapsody*)
13359 archive_cmds_need_lc=no
13361 hardcode_automatic=yes
13362 hardcode_shlibpath_var=unsupported
13363 if test yes = "$lt_cv_ld_force_load"; then
13364 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\"`'
13367 whole_archive_flag_spec=''
13369 link_all_deplibs=yes
13370 allow_undefined_flag=$_lt_dar_allow_undefined
13371 case $cc_basename in
13372 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13373 *) _lt_dar_can_shared=$GCC ;;
13375 if test yes = "$_lt_dar_can_shared"; then
13376 output_verbose_link_cmd=func_echo_all
13377 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13378 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13379 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"
13380 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"
13389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13390 hardcode_libdir_flag_spec='-L$libdir'
13391 hardcode_shlibpath_var=no
13394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13395 # support. Future versions do this automatically, but an explicit c++rt0.o
13396 # does not break anything, and helps significantly (at the cost of a little
13399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13400 hardcode_libdir_flag_spec='-R$libdir'
13401 hardcode_direct=yes
13402 hardcode_shlibpath_var=no
13405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13408 hardcode_direct=yes
13409 hardcode_minus_L=yes
13410 hardcode_shlibpath_var=no
13413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13414 freebsd* | dragonfly*)
13415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13416 hardcode_libdir_flag_spec='-R$libdir'
13417 hardcode_direct=yes
13418 hardcode_shlibpath_var=no
13422 if test yes = "$GCC"; then
13423 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13425 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13427 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13428 hardcode_libdir_separator=:
13429 hardcode_direct=yes
13431 # hardcode_minus_L: Not really in the search PATH,
13432 # but as the default location of the library.
13433 hardcode_minus_L=yes
13434 export_dynamic_flag_spec='$wl-E'
13438 if test yes,no = "$GCC,$with_gnu_ld"; then
13439 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13443 if test no = "$with_gnu_ld"; then
13444 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13445 hardcode_libdir_separator=:
13446 hardcode_direct=yes
13447 hardcode_direct_absolute=yes
13448 export_dynamic_flag_spec='$wl-E'
13449 # hardcode_minus_L: Not really in the search PATH,
13450 # but as the default location of the library.
13451 hardcode_minus_L=yes
13456 if test yes,no = "$GCC,$with_gnu_ld"; then
13459 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13478 # Older versions of the 11.00 compiler do not understand -b yet
13479 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13481 printf %s "checking if $CC understands -b... " >&6; }
13482 if test ${lt_cv_prog_compiler__b+y}
13484 printf %s "(cached) " >&6
13486 lt_cv_prog_compiler__b=no
13487 save_LDFLAGS=$LDFLAGS
13488 LDFLAGS="$LDFLAGS -b"
13489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13491 # The linker can only warn and ignore the option if not recognized
13492 # So say no if there are warnings
13493 if test -s conftest.err; then
13494 # Append any errors to the config.log.
13495 cat conftest.err 1>&5
13496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498 if diff conftest.exp conftest.er2 >/dev/null; then
13499 lt_cv_prog_compiler__b=yes
13502 lt_cv_prog_compiler__b=yes
13506 LDFLAGS=$save_LDFLAGS
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13510 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13512 if test yes = "$lt_cv_prog_compiler__b"; then
13513 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13521 if test no = "$with_gnu_ld"; then
13522 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13523 hardcode_libdir_separator=:
13528 hardcode_shlibpath_var=no
13531 hardcode_direct=yes
13532 hardcode_direct_absolute=yes
13533 export_dynamic_flag_spec='$wl-E'
13535 # hardcode_minus_L: Not really in the search PATH,
13536 # but as the default location of the library.
13537 hardcode_minus_L=yes
13543 irix5* | irix6* | nonstopux*)
13544 if test yes = "$GCC"; then
13545 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'
13546 # Try to use the -exported_symbol ld option, if it does not
13547 # work, assume that -exports_file does not work either and
13548 # implicitly export all symbols.
13549 # This should be the same for all languages, so no per-tag cache variable.
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13551 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13552 if test ${lt_cv_irix_exported_symbol+y}
13554 printf %s "(cached) " >&6
13556 save_LDFLAGS=$LDFLAGS
13557 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 int foo (void) { return 0; }
13562 if ac_fn_c_try_link "$LINENO"
13564 lt_cv_irix_exported_symbol=yes
13566 lt_cv_irix_exported_symbol=no
13568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LDFLAGS=$save_LDFLAGS
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13573 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13574 if test yes = "$lt_cv_irix_exported_symbol"; then
13575 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'
13577 link_all_deplibs=no
13579 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'
13580 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'
13582 archive_cmds_need_lc='no'
13583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13584 hardcode_libdir_separator=:
13586 link_all_deplibs=yes
13590 case $cc_basename in
13592 # Fabrice Bellard et al's Tiny C Compiler
13594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13599 netbsd* | netbsdelf*-gnu)
13600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13603 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13605 hardcode_libdir_flag_spec='-R$libdir'
13606 hardcode_direct=yes
13607 hardcode_shlibpath_var=no
13611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13612 hardcode_direct=yes
13613 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13614 hardcode_libdir_separator=:
13615 hardcode_shlibpath_var=no
13621 openbsd* | bitrig*)
13622 if test -f /usr/libexec/ld.so; then
13623 hardcode_direct=yes
13624 hardcode_shlibpath_var=no
13625 hardcode_direct_absolute=yes
13626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13629 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13630 export_dynamic_flag_spec='$wl-E'
13632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13633 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13641 hardcode_libdir_flag_spec='-L$libdir'
13642 hardcode_minus_L=yes
13643 allow_undefined_flag=unsupported
13645 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13646 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13647 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13648 $ECHO EXPORTS >> $output_objdir/$libname.def~
13649 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13650 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13651 emximp -o $lib $output_objdir/$libname.def'
13652 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13653 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13654 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13655 $ECHO EXPORTS >> $output_objdir/$libname.def~
13656 prefix_cmds="$SED"~
13657 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13658 prefix_cmds="$prefix_cmds -e 1d";
13660 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13661 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13662 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13663 emximp -o $lib $output_objdir/$libname.def'
13664 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13665 enable_shared_with_static_runtimes=yes
13669 if test yes = "$GCC"; then
13670 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13671 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'
13673 allow_undefined_flag=' -expect_unresolved \*'
13674 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'
13676 archive_cmds_need_lc='no'
13677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13678 hardcode_libdir_separator=:
13681 osf4* | osf5*) # as osf3* with the addition of -msym flag
13682 if test yes = "$GCC"; then
13683 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13684 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'
13685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13687 allow_undefined_flag=' -expect_unresolved \*'
13688 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'
13689 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~
13690 $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'
13692 # Both c and cxx compiler support -rpath directly
13693 hardcode_libdir_flag_spec='-rpath $libdir'
13695 archive_cmds_need_lc='no'
13696 hardcode_libdir_separator=:
13700 no_undefined_flag=' -z defs'
13701 if test yes = "$GCC"; then
13703 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13705 $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'
13707 case `$CC -V 2>&1` in
13710 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13712 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13716 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13722 hardcode_libdir_flag_spec='-R$libdir'
13723 hardcode_shlibpath_var=no
13725 solaris2.[0-5] | solaris2.[0-5].*) ;;
13727 # The compiler driver will combine and reorder linker options,
13728 # but understands '-z linker_flag'. GCC discards it without '$wl',
13729 # but is careful enough not to reorder.
13730 # Supported since Solaris 2.6 (maybe 2.5.1?)
13731 if test yes = "$GCC"; then
13732 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13734 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13738 link_all_deplibs=yes
13742 if test sequent = "$host_vendor"; then
13743 # Use $CC to link under sequent, because it throws in some extra .o
13744 # files that make .init and .fini sections work.
13745 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13749 hardcode_libdir_flag_spec='-L$libdir'
13750 hardcode_direct=yes
13751 hardcode_minus_L=yes
13752 hardcode_shlibpath_var=no
13756 case $host_vendor in
13758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13759 hardcode_direct=yes # is this really true???
13762 ## LD is ld it makes a PLAMLIB
13763 ## CC just makes a GrossModule.
13764 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13765 reload_cmds='$CC -r -o $output$reload_objs'
13769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13773 runpath_var='LD_RUN_PATH'
13774 hardcode_shlibpath_var=no
13778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_shlibpath_var=no
13780 export_dynamic_flag_spec='-Bexport'
13784 if test -d /usr/nec; then
13785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13786 hardcode_shlibpath_var=no
13787 runpath_var=LD_RUN_PATH
13788 hardcode_runpath_var=yes
13793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13794 no_undefined_flag='$wl-z,text'
13795 archive_cmds_need_lc=no
13796 hardcode_shlibpath_var=no
13797 runpath_var='LD_RUN_PATH'
13799 if test yes = "$GCC"; then
13800 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 sysv5* | sco3.2v5* | sco5v6*)
13809 # Note: We CANNOT use -z defs as we might desire, because we do not
13810 # link with -lc, and that would cause any symbols used from libc to
13811 # always be unresolved, which means just about no library would
13812 # ever link correctly. If we're not using GNU ld we use -z text
13813 # though, which does catch some bad symbols but isn't as heavy-handed
13815 no_undefined_flag='$wl-z,text'
13816 allow_undefined_flag='$wl-z,nodefs'
13817 archive_cmds_need_lc=no
13818 hardcode_shlibpath_var=no
13819 hardcode_libdir_flag_spec='$wl-R,$libdir'
13820 hardcode_libdir_separator=':'
13821 link_all_deplibs=yes
13822 export_dynamic_flag_spec='$wl-Bexport'
13823 runpath_var='LD_RUN_PATH'
13825 if test yes = "$GCC"; then
13826 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_libdir_flag_spec='-L$libdir'
13837 hardcode_shlibpath_var=no
13845 if test sni = "$host_vendor"; then
13847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13848 export_dynamic_flag_spec='$wl-Blargedynsym'
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13855 printf "%s\n" "$ld_shlibs" >&6; }
13856 test no = "$ld_shlibs" && can_build_shared=no
13858 with_gnu_ld=$with_gnu_ld
13875 # Do we need to explicitly link libc?
13877 case "x$archive_cmds_need_lc" in
13879 # Assume -lc should be added
13880 archive_cmds_need_lc=yes
13882 if test yes,yes = "$GCC,$enable_shared"; then
13883 case $archive_cmds in
13885 # FIXME: we may have to deal with multi-command sequences.
13888 # Test whether the compiler implicitly links with -lc since on some
13889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13890 # to ld, don't add -lc before -lgcc.
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13892 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13893 if test ${lt_cv_archive_cmds_need_lc+y}
13895 printf %s "(cached) " >&6
13898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13901 (eval $ac_compile) 2>&5
13903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; } 2>conftest.err; then
13907 libobjs=conftest.$ac_objext
13909 wl=$lt_prog_compiler_wl
13910 pic_flag=$lt_prog_compiler_pic
13916 lt_save_allow_undefined_flag=$allow_undefined_flag
13917 allow_undefined_flag=
13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13919 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922 test $ac_status = 0; }
13924 lt_cv_archive_cmds_need_lc=no
13926 lt_cv_archive_cmds_need_lc=yes
13928 allow_undefined_flag=$lt_save_allow_undefined_flag
13930 cat conftest.err 1>&5
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13936 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13937 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14096 printf %s "checking dynamic linker characteristics... " >&6; }
14098 if test yes = "$GCC"; then
14100 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14101 *) lt_awk_arg='/^libraries:/' ;;
14104 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14105 *) lt_sed_strip_eq='s|=/|/|g' ;;
14107 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14108 case $lt_search_path_spec in
14110 # if the path contains ";" then we assume it to be the separator
14111 # otherwise default to the standard path separator (i.e. ":") - it is
14112 # assumed that no part of a normal pathname contains ";" but that should
14113 # okay in the real world where ";" in dirpaths is itself problematic.
14114 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14117 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14120 # Ok, now we have the path, separated by spaces, we can step through it
14121 # and add multilib dir if necessary...
14122 lt_tmp_lt_search_path_spec=
14123 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14124 # ...but if some path component already ends with the multilib dir we assume
14125 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14126 case "$lt_multi_os_dir; $lt_search_path_spec " in
14127 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14131 for lt_sys_path in $lt_search_path_spec; do
14132 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14134 elif test -n "$lt_multi_os_dir"; then
14135 test -d "$lt_sys_path" && \
14136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14139 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14140 BEGIN {RS = " "; FS = "/|\n";} {
14143 for (lt_i = NF; lt_i > 0; lt_i--) {
14144 if ($lt_i != "" && $lt_i != ".") {
14145 if ($lt_i == "..") {
14148 if (lt_count == 0) {
14149 lt_foo = "/" $lt_i lt_foo;
14156 if (lt_foo != "") { lt_freq[lt_foo]++; }
14157 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14159 # AWK program above erroneously prepends '/' to C:/dos/paths
14162 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14163 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14165 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14169 library_names_spec=
14170 libname_spec='lib$name'
14174 postuninstall_cmds=
14178 shlibpath_overrides_runpath=unknown
14180 dynamic_linker="$host_os ld.so"
14181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14182 need_lib_prefix=unknown
14183 hardcode_into_libs=no
14185 # when you set need_version to no, make sure it does not cause -set_version
14186 # flags to be left without arguments
14187 need_version=unknown
14193 version_type=linux # correct to gnu/linux during the next big refactor
14194 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14195 shlibpath_var=LIBPATH
14197 # AIX 3 has no versioning support, so we append a major version to the name.
14198 soname_spec='$libname$release$shared_ext$major'
14202 version_type=linux # correct to gnu/linux during the next big refactor
14205 hardcode_into_libs=yes
14206 if test ia64 = "$host_cpu"; then
14207 # AIX 5 supports IA64
14208 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14209 shlibpath_var=LD_LIBRARY_PATH
14211 # With GCC up to 2.95.x, collect2 would create an import file
14212 # for dependence libraries. The import file would start with
14213 # the line '#! .'. This would cause the generated library to
14214 # depend on '.', always an invalid library. This was fixed in
14215 # development snapshots of GCC prior to 3.0.
14217 aix4 | aix4.[01] | aix4.[01].*)
14218 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14220 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14223 can_build_shared=no
14227 # Using Import Files as archive members, it is possible to support
14228 # filename-based versioning of shared library archives on AIX. While
14229 # this would work for both with and without runtime linking, it will
14230 # prevent static linking of such archives. So we do filename-based
14231 # shared library versioning with .so extension only, which is used
14232 # when both runtime linking and shared linking is enabled.
14233 # Unfortunately, runtime linking may impact performance, so we do
14234 # not want this to be the default eventually. Also, we use the
14235 # versioned .so libs for executables only if there is the -brtl
14236 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14237 # To allow for filename-based versioning support, we need to create
14238 # libNAME.so.V as an archive file, containing:
14239 # *) an Import File, referring to the versioned filename of the
14240 # archive as well as the shared archive member, telling the
14241 # bitwidth (32 or 64) of that shared object, and providing the
14242 # list of exported symbols of that shared object, eventually
14243 # decorated with the 'weak' keyword
14244 # *) the shared object with the F_LOADONLY flag set, to really avoid
14245 # it being seen by the linker.
14246 # At run time we better use the real file rather than another symlink,
14247 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14249 case $with_aix_soname,$aix_use_runtimelinking in
14250 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14251 # soname into executable. Probably we can add versioning support to
14252 # collect2, so additional links can be useful in future.
14253 aix,yes) # traditional libtool
14254 dynamic_linker='AIX unversionable lib.so'
14255 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14256 # instead of lib<name>.a to let people know that these are not
14257 # typical AIX shared libraries.
14258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14260 aix,no) # traditional AIX only
14261 dynamic_linker='AIX lib.a(lib.so.V)'
14262 # We preserve .a as extension for shared libraries through AIX4.2
14263 # and later when we are not doing run time linking.
14264 library_names_spec='$libname$release.a $libname.a'
14265 soname_spec='$libname$release$shared_ext$major'
14267 svr4,*) # full svr4 only
14268 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14269 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14270 # We do not specify a path in Import Files, so LIBPATH fires.
14271 shlibpath_overrides_runpath=yes
14273 *,yes) # both, prefer svr4
14274 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14275 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14276 # unpreferred sharedlib libNAME.a needs extra handling
14277 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14278 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14279 # We do not specify a path in Import Files, so LIBPATH fires.
14280 shlibpath_overrides_runpath=yes
14282 *,no) # both, prefer aix
14283 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14284 library_names_spec='$libname$release.a $libname.a'
14285 soname_spec='$libname$release$shared_ext$major'
14286 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14287 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14288 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14291 shlibpath_var=LIBPATH
14298 # Since July 2007 AmigaOS4 officially supports .so libraries.
14299 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14303 library_names_spec='$libname.ixlibrary $libname.a'
14304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14305 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14311 library_names_spec='$libname$shared_ext'
14312 dynamic_linker="$host_os ld.so"
14313 shlibpath_var=LIBRARY_PATH
14317 version_type=linux # correct to gnu/linux during the next big refactor
14319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14320 soname_spec='$libname$release$shared_ext$major'
14321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14325 # the default ld.so.conf also contains /usr/contrib/lib and
14326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14327 # libtool to hard-code these into programs
14330 cygwin* | mingw* | pw32* | cegcc*)
14331 version_type=windows
14336 case $GCC,$cc_basename in
14339 library_names_spec='$libname.dll.a'
14340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14341 postinstall_cmds='base_file=`basename \$file`~
14342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14343 dldir=$destdir/`dirname \$dlpath`~
14344 test -d \$dldir || mkdir -p \$dldir~
14345 $install_prog $dir/$dlname \$dldir/$dlname~
14346 chmod a+x \$dldir/$dlname~
14347 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14348 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14351 dlpath=$dir/\$dldll~
14353 shlibpath_overrides_runpath=yes
14357 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14358 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14360 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14363 # MinGW DLLs use traditional 'lib' prefix
14364 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14367 # pw32 DLLs use 'pw' prefix rather than 'lib'
14368 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14371 dynamic_linker='Win32 ld.exe'
14376 libname_spec='$name'
14377 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14378 library_names_spec='$libname.dll.lib'
14382 sys_lib_search_path_spec=
14385 for lt_path in $LIB
14388 # Let DOS variable expansion print the short 8.3 style file name.
14389 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14390 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14393 # Convert to MSYS style.
14394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14397 # Convert to unix form, then to dos form, then back to unix form
14398 # but this time dos style (no spaces!) so that the unix form looks
14399 # like /cygdrive/c/PROGRA~1:/cygdr...
14400 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14401 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14402 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14405 sys_lib_search_path_spec=$LIB
14406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14407 # It is most probably a Windows format PATH.
14408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14412 # FIXME: find the short name or the path components, as spaces are
14413 # common. (e.g. "Program Files" -> "PROGRA~1")
14417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14418 postinstall_cmds='base_file=`basename \$file`~
14419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14420 dldir=$destdir/`dirname \$dlpath`~
14421 test -d \$dldir || mkdir -p \$dldir~
14422 $install_prog $dir/$dlname \$dldir/$dlname'
14423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14424 dlpath=$dir/\$dldll~
14426 shlibpath_overrides_runpath=yes
14427 dynamic_linker='Win32 link.exe'
14431 # Assume MSVC wrapper
14432 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14433 dynamic_linker='Win32 ld.exe'
14436 # FIXME: first we should search . and the directory the executable is in
14440 darwin* | rhapsody*)
14441 dynamic_linker="$host_os dyld"
14442 version_type=darwin
14445 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14446 soname_spec='$libname$release$major$shared_ext'
14447 shlibpath_overrides_runpath=yes
14448 shlibpath_var=DYLD_LIBRARY_PATH
14449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14451 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14456 version_type=linux # correct to gnu/linux during the next big refactor
14459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14460 soname_spec='$libname$release$shared_ext$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14464 freebsd* | dragonfly*)
14465 # DragonFly does not have aout. When/if they implement a new
14466 # versioning mechanism, adjust this.
14467 if test -x /usr/bin/objformat; then
14468 objformat=`/usr/bin/objformat`
14471 freebsd[23].*) objformat=aout ;;
14472 *) objformat=elf ;;
14475 version_type=freebsd-$objformat
14476 case $version_type in
14478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14479 soname_spec='$libname$release$shared_ext$major'
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes
14493 freebsd3.[01]* | freebsdelf3.[01]*)
14494 shlibpath_overrides_runpath=yes
14495 hardcode_into_libs=yes
14497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14499 shlibpath_overrides_runpath=no
14500 hardcode_into_libs=yes
14502 *) # from 4.6 on, and DragonFly
14503 shlibpath_overrides_runpath=yes
14504 hardcode_into_libs=yes
14510 version_type=linux # correct to gnu/linux during the next big refactor
14513 dynamic_linker="$host_os runtime_loader"
14514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14515 soname_spec='$libname$release$shared_ext$major'
14516 shlibpath_var=LIBRARY_PATH
14517 shlibpath_overrides_runpath=no
14518 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14519 hardcode_into_libs=yes
14522 hpux9* | hpux10* | hpux11*)
14523 # Give a soname corresponding to the major version so that dld.sl refuses to
14524 # link against other versions.
14531 hardcode_into_libs=yes
14532 dynamic_linker="$host_os dld.so"
14533 shlibpath_var=LD_LIBRARY_PATH
14534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14536 soname_spec='$libname$release$shared_ext$major'
14537 if test 32 = "$HPUX_IA64_MODE"; then
14538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14539 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14542 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14547 hardcode_into_libs=yes
14548 dynamic_linker="$host_os dld.sl"
14549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14552 soname_spec='$libname$release$shared_ext$major'
14553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14558 dynamic_linker="$host_os dld.sl"
14559 shlibpath_var=SHLIB_PATH
14560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14562 soname_spec='$libname$release$shared_ext$major'
14565 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14566 postinstall_cmds='chmod 555 $lib'
14567 # or fails outright, so override atomically:
14568 install_override_mode=555
14572 version_type=linux # correct to gnu/linux during the next big refactor
14575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14576 soname_spec='$libname$release$shared_ext$major'
14577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=no
14580 hardcode_into_libs=yes
14583 irix5* | irix6* | nonstopux*)
14585 nonstopux*) version_type=nonstopux ;;
14587 if test yes = "$lt_cv_prog_gnu_ld"; then
14588 version_type=linux # correct to gnu/linux during the next big refactor
14595 soname_spec='$libname$release$shared_ext$major'
14596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14598 irix5* | nonstopux*)
14599 libsuff= shlibsuff=
14602 case $LD in # libtool.m4 will add one of these switches to LD
14603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14604 libsuff= shlibsuff= libmagic=32-bit;;
14605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14606 libsuff=32 shlibsuff=N32 libmagic=N32;;
14607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14609 *) libsuff= shlibsuff= libmagic=never-match;;
14613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14614 shlibpath_overrides_runpath=no
14615 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14616 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14617 hardcode_into_libs=yes
14620 # No shared lib support for Linux oldld, aout, or coff.
14621 linux*oldld* | linux*aout* | linux*coff*)
14626 version_type=none # Android doesn't support versioned libraries.
14629 library_names_spec='$libname$release$shared_ext'
14630 soname_spec='$libname$release$shared_ext'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 shlibpath_overrides_runpath=yes
14635 # This implies no fast_install, which is unacceptable.
14636 # Some rework will be needed to allow for fast_install
14637 # before this can be enabled.
14638 hardcode_into_libs=yes
14640 dynamic_linker='Android linker'
14641 # Don't embed -rpath directories since the linker doesn't support them.
14642 hardcode_libdir_flag_spec='-L$libdir'
14645 # This must be glibc/ELF.
14646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14647 version_type=linux # correct to gnu/linux during the next big refactor
14650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14651 soname_spec='$libname$release$shared_ext$major'
14652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=no
14656 # Some binutils ld are patched to set DT_RUNPATH
14657 if test ${lt_cv_shlibpath_overrides_runpath+y}
14659 printf %s "(cached) " >&6
14661 lt_cv_shlibpath_overrides_runpath=no
14662 save_LDFLAGS=$LDFLAGS
14663 save_libdir=$libdir
14664 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14665 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14677 if ac_fn_c_try_link "$LINENO"
14679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14681 lt_cv_shlibpath_overrides_runpath=yes
14684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LDFLAGS=$save_LDFLAGS
14687 libdir=$save_libdir
14691 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14693 # This implies no fast_install, which is unacceptable.
14694 # Some rework will be needed to allow for fast_install
14695 # before this can be enabled.
14696 hardcode_into_libs=yes
14698 # Ideally, we could use ldconfig to report *all* directores which are
14699 # searched for libraries, however this is still not possible. Aside from not
14700 # being certain /sbin/ldconfig is available, command
14701 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14702 # even though it is searched at run-time. Try to do the best guess by
14703 # appending ld.so.conf contents (and includes) to the search path.
14704 if test -f /etc/ld.so.conf; then
14705 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' ' '`
14706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14709 # We used to test for /lib/ld.so.1 and disable shared libraries on
14710 # powerpc, because MkLinux only supported shared libraries with the
14711 # GNU dynamic linker. Since this was broken with cross compilers,
14712 # most powerpc-linux boxes support dynamic linking these days and
14713 # people can always --disable-shared, the test was removed, and we
14714 # assume the GNU/Linux dynamic linker is in use.
14715 dynamic_linker='GNU/Linux ld.so'
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=no
14726 hardcode_into_libs=yes
14727 dynamic_linker='NetBSD ld.elf_so'
14734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14737 dynamic_linker='NetBSD (a.out) ld.so'
14739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14740 soname_spec='$libname$release$shared_ext$major'
14741 dynamic_linker='NetBSD ld.elf_so'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes
14745 hardcode_into_libs=yes
14749 version_type=linux # correct to gnu/linux during the next big refactor
14750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=yes
14759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14760 soname_spec='$libname$release$shared_ext$major'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=no
14763 hardcode_into_libs=yes
14764 dynamic_linker='ldqnx.so'
14767 openbsd* | bitrig*)
14769 sys_lib_dlsearch_path_spec=/usr/lib
14771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14783 libname_spec='$name'
14784 version_type=windows
14788 # OS/2 can only load a DLL with a base name of 8 characters or less.
14789 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14790 v=$($ECHO $release$versuffix | tr -d .-);
14791 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14792 $ECHO $n$v`$shared_ext'
14793 library_names_spec='${libname}_dll.$libext'
14794 dynamic_linker='OS/2 ld.exe'
14795 shlibpath_var=BEGINLIBPATH
14796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14798 postinstall_cmds='base_file=`basename \$file`~
14799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14800 dldir=$destdir/`dirname \$dlpath`~
14801 test -d \$dldir || mkdir -p \$dldir~
14802 $install_prog $dir/$dlname \$dldir/$dlname~
14803 chmod a+x \$dldir/$dlname~
14804 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14805 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14808 dlpath=$dir/\$dldll~
14812 osf3* | osf4* | osf5*)
14816 soname_spec='$libname$release$shared_ext$major'
14817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14828 version_type=linux # correct to gnu/linux during the next big refactor
14831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14832 soname_spec='$libname$release$shared_ext$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=yes
14835 hardcode_into_libs=yes
14836 # ldd complains unless libraries are executable
14837 postinstall_cmds='chmod +x $lib'
14842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14846 if test yes = "$with_gnu_ld"; then
14853 version_type=linux # correct to gnu/linux during the next big refactor
14854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14855 soname_spec='$libname$release$shared_ext$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 case $host_vendor in
14859 shlibpath_overrides_runpath=no
14861 runpath_var=LD_RUN_PATH
14869 shlibpath_overrides_runpath=no
14870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14876 if test -d /usr/nec; then
14877 version_type=linux # correct to gnu/linux during the next big refactor
14878 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14879 soname_spec='$libname$shared_ext.$major'
14880 shlibpath_var=LD_LIBRARY_PATH
14884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14889 soname_spec='$libname$release$shared_ext$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=yes
14892 hardcode_into_libs=yes
14893 if test yes = "$with_gnu_ld"; then
14894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14903 sys_lib_dlsearch_path_spec='/usr/lib'
14907 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14908 version_type=linux # correct to gnu/linux during the next big refactor
14911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath=no
14914 hardcode_into_libs=yes
14918 version_type=linux # correct to gnu/linux during the next big refactor
14919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14920 soname_spec='$libname$release$shared_ext$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14929 printf "%s\n" "$dynamic_linker" >&6; }
14930 test no = "$dynamic_linker" && can_build_shared=no
14932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14933 if test yes = "$GCC"; then
14934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14937 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14938 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14941 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14942 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14945 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14946 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14948 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14949 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14951 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14952 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15051 printf %s "checking how to hardcode library paths into programs... " >&6; }
15053 if test -n "$hardcode_libdir_flag_spec" ||
15054 test -n "$runpath_var" ||
15055 test yes = "$hardcode_automatic"; then
15057 # We can hardcode non-existent directories.
15058 if test no != "$hardcode_direct" &&
15059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15060 # have to relink, otherwise we might link with an installed library
15061 # when we should be linking with a yet-to-be-installed one
15062 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15063 test no != "$hardcode_minus_L"; then
15064 # Linking always hardcodes the temporary library directory.
15065 hardcode_action=relink
15067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15068 hardcode_action=immediate
15071 # We cannot hardcode anything, or else we can only hardcode existing
15073 hardcode_action=unsupported
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15076 printf "%s\n" "$hardcode_action" >&6; }
15078 if test relink = "$hardcode_action" ||
15079 test yes = "$inherit_rpath"; then
15080 # Fast installation is not supported
15081 enable_fast_install=no
15082 elif test yes = "$shlibpath_overrides_runpath" ||
15083 test no = "$enable_shared"; then
15084 # Fast installation is not necessary
15085 enable_fast_install=needless
15093 if test yes != "$enable_dlopen"; then
15094 enable_dlopen=unknown
15095 enable_dlopen_self=unknown
15096 enable_dlopen_self_static=unknown
15103 lt_cv_dlopen=load_add_on
15105 lt_cv_dlopen_self=yes
15108 mingw* | pw32* | cegcc*)
15109 lt_cv_dlopen=LoadLibrary
15114 lt_cv_dlopen=dlopen
15119 # if libdl is installed we need to link against it
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15121 printf %s "checking for dlopen in -ldl... " >&6; }
15122 if test ${ac_cv_lib_dl_dlopen+y}
15124 printf %s "(cached) " >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15143 if ac_fn_c_try_link "$LINENO"
15145 ac_cv_lib_dl_dlopen=yes
15147 ac_cv_lib_dl_dlopen=no
15149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15150 conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15154 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15155 if test "x$ac_cv_lib_dl_dlopen" = xyes
15157 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15162 lt_cv_dlopen_self=yes
15169 # Don't try to run any link tests for TPF. We know it's impossible
15170 # because TPF is a cross-compiler, and we know how we open DSOs.
15171 lt_cv_dlopen=dlopen
15173 lt_cv_dlopen_self=no
15177 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15178 if test "x$ac_cv_func_shl_load" = xyes
15180 lt_cv_dlopen=shl_load
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15183 printf %s "checking for shl_load in -ldld... " >&6; }
15184 if test ${ac_cv_lib_dld_shl_load+y}
15186 printf %s "(cached) " >&6
15188 ac_check_lib_save_LIBS=$LIBS
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15200 return shl_load ();
15205 if ac_fn_c_try_link "$LINENO"
15207 ac_cv_lib_dld_shl_load=yes
15209 ac_cv_lib_dld_shl_load=no
15211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15212 conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15216 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15217 if test "x$ac_cv_lib_dld_shl_load" = xyes
15219 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15221 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15222 if test "x$ac_cv_func_dlopen" = xyes
15224 lt_cv_dlopen=dlopen
15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15227 printf %s "checking for dlopen in -ldl... " >&6; }
15228 if test ${ac_cv_lib_dl_dlopen+y}
15230 printf %s "(cached) " >&6
15232 ac_check_lib_save_LIBS=$LIBS
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15237 /* Override any GCC internal prototype to avoid an error.
15238 Use char because int might match the return type of a GCC
15239 builtin and then its argument prototype would still apply. */
15249 if ac_fn_c_try_link "$LINENO"
15251 ac_cv_lib_dl_dlopen=yes
15253 ac_cv_lib_dl_dlopen=no
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15260 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15261 if test "x$ac_cv_lib_dl_dlopen" = xyes
15263 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15266 printf %s "checking for dlopen in -lsvld... " >&6; }
15267 if test ${ac_cv_lib_svld_dlopen+y}
15269 printf %s "(cached) " >&6
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lsvld $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15288 if ac_fn_c_try_link "$LINENO"
15290 ac_cv_lib_svld_dlopen=yes
15292 ac_cv_lib_svld_dlopen=no
15294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15295 conftest$ac_exeext conftest.$ac_ext
15296 LIBS=$ac_check_lib_save_LIBS
15298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15299 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15300 if test "x$ac_cv_lib_svld_dlopen" = xyes
15302 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15305 printf %s "checking for dld_link in -ldld... " >&6; }
15306 if test ${ac_cv_lib_dld_dld_link+y}
15308 printf %s "(cached) " >&6
15310 ac_check_lib_save_LIBS=$LIBS
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15322 return dld_link ();
15327 if ac_fn_c_try_link "$LINENO"
15329 ac_cv_lib_dld_dld_link=yes
15331 ac_cv_lib_dld_dld_link=no
15333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15334 conftest$ac_exeext conftest.$ac_ext
15335 LIBS=$ac_check_lib_save_LIBS
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15338 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15339 if test "x$ac_cv_lib_dld_dld_link" = xyes
15341 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15362 if test no = "$lt_cv_dlopen"; then
15368 case $lt_cv_dlopen in
15370 save_CPPFLAGS=$CPPFLAGS
15371 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15373 save_LDFLAGS=$LDFLAGS
15374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15377 LIBS="$lt_cv_dlopen_libs $LIBS"
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15380 printf %s "checking whether a program can dlopen itself... " >&6; }
15381 if test ${lt_cv_dlopen_self+y}
15383 printf %s "(cached) " >&6
15385 if test yes = "$cross_compiling"; then :
15386 lt_cv_dlopen_self=cross
15388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15389 lt_status=$lt_dlunknown
15390 cat > conftest.$ac_ext <<_LT_EOF
15391 #line $LINENO "configure"
15392 #include "confdefs.h"
15401 # define LT_DLGLOBAL RTLD_GLOBAL
15404 # define LT_DLGLOBAL DL_GLOBAL
15406 # define LT_DLGLOBAL 0
15410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15411 find out it does not work in some platform. */
15412 #ifndef LT_DLLAZY_OR_NOW
15414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15417 # define LT_DLLAZY_OR_NOW DL_LAZY
15420 # define LT_DLLAZY_OR_NOW RTLD_NOW
15423 # define LT_DLLAZY_OR_NOW DL_NOW
15425 # define LT_DLLAZY_OR_NOW 0
15432 /* When -fvisibility=hidden is used, assume the code has been annotated
15433 correspondingly for the symbols needed. */
15434 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15435 int fnord () __attribute__((visibility("default")));
15438 int fnord () { return 42; }
15441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15442 int status = $lt_dlunknown;
15446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15450 else puts (dlerror ());
15452 /* dlclose (self); */
15460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15461 (eval $ac_link) 2>&5
15463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15465 (./conftest; exit; ) >&5 2>/dev/null
15467 case x$lt_status in
15468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15473 # compilation failed
15474 lt_cv_dlopen_self=no
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15482 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15484 if test yes = "$lt_cv_dlopen_self"; then
15485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15487 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15488 if test ${lt_cv_dlopen_self_static+y}
15490 printf %s "(cached) " >&6
15492 if test yes = "$cross_compiling"; then :
15493 lt_cv_dlopen_self_static=cross
15495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15496 lt_status=$lt_dlunknown
15497 cat > conftest.$ac_ext <<_LT_EOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15508 # define LT_DLGLOBAL RTLD_GLOBAL
15511 # define LT_DLGLOBAL DL_GLOBAL
15513 # define LT_DLGLOBAL 0
15517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15518 find out it does not work in some platform. */
15519 #ifndef LT_DLLAZY_OR_NOW
15521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15524 # define LT_DLLAZY_OR_NOW DL_LAZY
15527 # define LT_DLLAZY_OR_NOW RTLD_NOW
15530 # define LT_DLLAZY_OR_NOW DL_NOW
15532 # define LT_DLLAZY_OR_NOW 0
15539 /* When -fvisibility=hidden is used, assume the code has been annotated
15540 correspondingly for the symbols needed. */
15541 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15542 int fnord () __attribute__((visibility("default")));
15545 int fnord () { return 42; }
15548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15549 int status = $lt_dlunknown;
15553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15557 else puts (dlerror ());
15559 /* dlclose (self); */
15567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15568 (eval $ac_link) 2>&5
15570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15572 (./conftest; exit; ) >&5 2>/dev/null
15574 case x$lt_status in
15575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15580 # compilation failed
15581 lt_cv_dlopen_self_static=no
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15589 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15592 CPPFLAGS=$save_CPPFLAGS
15593 LDFLAGS=$save_LDFLAGS
15598 case $lt_cv_dlopen_self in
15599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15600 *) enable_dlopen_self=unknown ;;
15603 case $lt_cv_dlopen_self_static in
15604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15605 *) enable_dlopen_self_static=unknown ;;
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15628 printf %s "checking whether stripping libraries is possible... " >&6; }
15629 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 printf "%s\n" "yes" >&6; }
15635 # FIXME - insert some real tests, host_os isn't really good enough
15638 if test -n "$STRIP"; then
15639 striplib="$STRIP -x"
15640 old_striplib="$STRIP -S"
15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15642 printf "%s\n" "yes" >&6; }
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 printf "%s\n" "no" >&6; }
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 printf "%s\n" "no" >&6; }
15666 # Report what library types will actually be built
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15668 printf %s "checking if libtool supports shared libraries... " >&6; }
15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15670 printf "%s\n" "$can_build_shared" >&6; }
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15673 printf %s "checking whether to build shared libraries... " >&6; }
15674 test no = "$can_build_shared" && enable_shared=no
15676 # On AIX, shared libraries and static libraries use the same namespace, and
15677 # are all built from PIC.
15680 test yes = "$enable_shared" && enable_static=no
15681 if test -n "$RANLIB"; then
15682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15683 postinstall_cmds='$RANLIB $lib'
15688 if test ia64 != "$host_cpu"; then
15689 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15690 yes,aix,yes) ;; # shared object as lib.so file only
15691 yes,svr4,*) ;; # shared object as lib.so archive member only
15692 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15698 printf "%s\n" "$enable_shared" >&6; }
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15701 printf %s "checking whether to build static libraries... " >&6; }
15702 # Make sure either enable_shared or enable_static is yes.
15703 test yes = "$enable_shared" || enable_static=yes
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15705 printf "%s\n" "$enable_static" >&6; }
15712 ac_cpp='$CPP $CPPFLAGS'
15713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15733 ac_config_commands="$ac_config_commands libtool"
15738 # Only expand once:
15743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15744 if test -n "$ac_tool_prefix"; then
15745 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15748 printf %s "checking for $ac_word... " >&6; }
15749 if test ${ac_cv_path_PKG_CONFIG+y}
15751 printf %s "(cached) " >&6
15753 case $PKG_CONFIG in
15755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15759 for as_dir in $PATH
15762 case $as_dir in #(((
15765 *) as_dir=$as_dir/ ;;
15767 for ac_exec_ext in '' $ac_executable_extensions; do
15768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15769 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15781 if test -n "$PKG_CONFIG"; then
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15783 printf "%s\n" "$PKG_CONFIG" >&6; }
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 printf "%s\n" "no" >&6; }
15791 if test -z "$ac_cv_path_PKG_CONFIG"; then
15792 ac_pt_PKG_CONFIG=$PKG_CONFIG
15793 # Extract the first word of "pkg-config", so it can be a program name with args.
15794 set dummy pkg-config; ac_word=$2
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 printf %s "checking for $ac_word... " >&6; }
15797 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15799 printf %s "(cached) " >&6
15801 case $ac_pt_PKG_CONFIG in
15803 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15810 case $as_dir in #(((
15813 *) as_dir=$as_dir/ ;;
15815 for ac_exec_ext in '' $ac_executable_extensions; do
15816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15817 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15828 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15829 if test -n "$ac_pt_PKG_CONFIG"; then
15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15831 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 printf "%s\n" "no" >&6; }
15837 if test "x$ac_pt_PKG_CONFIG" = x; then
15840 case $cross_compiling:$ac_tool_warned in
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15844 ac_tool_warned=yes ;;
15846 PKG_CONFIG=$ac_pt_PKG_CONFIG
15849 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15853 if test -n "$PKG_CONFIG"; then
15854 _pkg_min_version=0.9.0
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15856 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15857 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 printf "%s\n" "yes" >&6; }
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 printf "%s\n" "no" >&6; }
15870 gtk_doc_requires="gtk-doc >= 1.2"
15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
15872 printf %s "checking for gtk-doc... " >&6; }
15873 if test -n "$PKG_CONFIG" && \
15874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
15875 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
15877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878 test $ac_status = 0; }; then
15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
15884 printf "%s\n" "$have_gtk_doc" >&6; }
15886 if test "$have_gtk_doc" = "no"; then
15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15888 You will not be able to create source packages with 'make dist'
15889 because $gtk_doc_requires is not found." >&5
15890 printf "%s\n" "$as_me: WARNING:
15891 You will not be able to create source packages with 'make dist'
15892 because $gtk_doc_requires is not found." >&2;}
15895 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15896 set dummy gtkdoc-check; ac_word=$2
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 printf %s "checking for $ac_word... " >&6; }
15899 if test ${ac_cv_prog_GTKDOC_CHECK+y}
15901 printf %s "(cached) " >&6
15903 if test -n "$GTKDOC_CHECK"; then
15904 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in $PATH
15910 case $as_dir in #(((
15913 *) as_dir=$as_dir/ ;;
15915 for ac_exec_ext in '' $ac_executable_extensions; do
15916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15917 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
15918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15927 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
15928 if test -n "$GTKDOC_CHECK"; then
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
15930 printf "%s\n" "$GTKDOC_CHECK" >&6; }
15932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 printf "%s\n" "no" >&6; }
15937 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15938 set dummy gtkdoc-check; ac_word=$2
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15940 printf %s "checking for $ac_word... " >&6; }
15941 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
15943 printf %s "(cached) " >&6
15945 case $GTKDOC_CHECK_PATH in
15947 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15954 case $as_dir in #(((
15957 *) as_dir=$as_dir/ ;;
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15961 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
15962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15972 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
15973 if test -n "$GTKDOC_CHECK_PATH"; then
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
15975 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 printf "%s\n" "no" >&6; }
15982 for ac_prog in gtkdoc-rebase
15984 # Extract the first word of "$ac_prog", so it can be a program name with args.
15985 set dummy $ac_prog; ac_word=$2
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 printf %s "checking for $ac_word... " >&6; }
15988 if test ${ac_cv_path_GTKDOC_REBASE+y}
15990 printf %s "(cached) " >&6
15992 case $GTKDOC_REBASE in
15994 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16001 case $as_dir in #(((
16004 *) as_dir=$as_dir/ ;;
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16008 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
16009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16019 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16020 if test -n "$GTKDOC_REBASE"; then
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16022 printf "%s\n" "$GTKDOC_REBASE" >&6; }
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 printf "%s\n" "no" >&6; }
16029 test -n "$GTKDOC_REBASE" && break
16031 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16033 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16034 set dummy gtkdoc-mkpdf; ac_word=$2
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 printf %s "checking for $ac_word... " >&6; }
16037 if test ${ac_cv_path_GTKDOC_MKPDF+y}
16039 printf %s "(cached) " >&6
16041 case $GTKDOC_MKPDF in
16043 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16050 case $as_dir in #(((
16053 *) as_dir=$as_dir/ ;;
16055 for ac_exec_ext in '' $ac_executable_extensions; do
16056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16057 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
16058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16068 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16069 if test -n "$GTKDOC_MKPDF"; then
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16071 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 printf "%s\n" "no" >&6; }
16080 # Check whether --with-html-dir was given.
16081 if test ${with_html_dir+y}
16083 withval=$with_html_dir;
16085 with_html_dir='${datadir}/gtk-doc/html'
16088 HTML_DIR="$with_html_dir"
16091 # Check whether --enable-gtk-doc was given.
16092 if test ${enable_gtk_doc+y}
16094 enableval=$enable_gtk_doc;
16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16101 printf %s "checking whether to build gtk-doc documentation... " >&6; }
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16103 printf "%s\n" "$enable_gtk_doc" >&6; }
16105 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
16107 You must have $gtk_doc_requires installed to build documentation for
16108 $PACKAGE_NAME. Please install gtk-doc or disable building the
16109 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
16112 if test "x$PACKAGE_NAME" != "xglib"; then
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16116 printf %s "checking for GTKDOC_DEPS... " >&6; }
16118 if test -n "$PKG_CONFIG"; then
16119 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16120 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16122 if test -n "$PKG_CONFIG" && \
16123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16124 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16127 test $ac_status = 0; }; then
16128 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16136 if test -n "$PKG_CONFIG"; then
16137 if test -n "$GTKDOC_DEPS_LIBS"; then
16138 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16140 if test -n "$PKG_CONFIG" && \
16141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16142 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145 test $ac_status = 0; }; then
16146 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16157 if test $pkg_failed = yes; then
16159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16160 _pkg_short_errors_supported=yes
16162 _pkg_short_errors_supported=no
16164 if test $_pkg_short_errors_supported = yes; then
16165 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
16167 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
16169 # Put the nasty error message in config.log where it belongs
16170 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 printf "%s\n" "no" >&6; }
16175 elif test $pkg_failed = untried; then
16178 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16179 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181 printf "%s\n" "yes" >&6; }
16186 # Check whether --enable-gtk-doc-html was given.
16187 if test ${enable_gtk_doc_html+y}
16189 enableval=$enable_gtk_doc_html;
16191 enable_gtk_doc_html=yes
16194 # Check whether --enable-gtk-doc-pdf was given.
16195 if test ${enable_gtk_doc_pdf+y}
16197 enableval=$enable_gtk_doc_pdf;
16199 enable_gtk_doc_pdf=no
16203 if test -z "$GTKDOC_MKPDF"; then
16204 enable_gtk_doc_pdf=no
16207 if test -z "$AM_DEFAULT_VERBOSITY"; then
16208 AM_DEFAULT_VERBOSITY=1
16212 if test x$have_gtk_doc = xyes; then
16214 HAVE_GTK_DOC_FALSE='#'
16216 HAVE_GTK_DOC_TRUE='#'
16217 HAVE_GTK_DOC_FALSE=
16220 if test x$enable_gtk_doc = xyes; then
16221 ENABLE_GTK_DOC_TRUE=
16222 ENABLE_GTK_DOC_FALSE='#'
16224 ENABLE_GTK_DOC_TRUE='#'
16225 ENABLE_GTK_DOC_FALSE=
16228 if test x$enable_gtk_doc_html = xyes; then
16229 GTK_DOC_BUILD_HTML_TRUE=
16230 GTK_DOC_BUILD_HTML_FALSE='#'
16232 GTK_DOC_BUILD_HTML_TRUE='#'
16233 GTK_DOC_BUILD_HTML_FALSE=
16236 if test x$enable_gtk_doc_pdf = xyes; then
16237 GTK_DOC_BUILD_PDF_TRUE=
16238 GTK_DOC_BUILD_PDF_FALSE='#'
16240 GTK_DOC_BUILD_PDF_TRUE='#'
16241 GTK_DOC_BUILD_PDF_FALSE=
16244 if test -n "$LIBTOOL"; then
16245 GTK_DOC_USE_LIBTOOL_TRUE=
16246 GTK_DOC_USE_LIBTOOL_FALSE='#'
16248 GTK_DOC_USE_LIBTOOL_TRUE='#'
16249 GTK_DOC_USE_LIBTOOL_FALSE=
16252 if test -n "$GTKDOC_REBASE"; then
16253 GTK_DOC_USE_REBASE_TRUE=
16254 GTK_DOC_USE_REBASE_FALSE='#'
16256 GTK_DOC_USE_REBASE_TRUE='#'
16257 GTK_DOC_USE_REBASE_FALSE=
16262 # The cast to long int works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
16267 printf %s "checking size of unsigned long int... " >&6; }
16268 if test ${ac_cv_sizeof_unsigned_long_int+y}
16270 printf %s "(cached) " >&6
16272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"
16276 if test "$ac_cv_type_unsigned_long_int" = yes; then
16277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16279 as_fn_error 77 "cannot compute sizeof (unsigned long int)
16280 See \`config.log' for more details" "$LINENO" 5; }
16282 ac_cv_sizeof_unsigned_long_int=0
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
16288 printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; }
16292 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h
16295 # The cast to long int works around a bug in the HP C Compiler
16296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16298 # This bug is HP SR number 8606223364.
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16300 printf %s "checking size of unsigned int... " >&6; }
16301 if test ${ac_cv_sizeof_unsigned_int+y}
16303 printf %s "(cached) " >&6
16305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
16309 if test "$ac_cv_type_unsigned_int" = yes; then
16310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16312 as_fn_error 77 "cannot compute sizeof (unsigned int)
16313 See \`config.log' for more details" "$LINENO" 5; }
16315 ac_cv_sizeof_unsigned_int=0
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16321 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
16325 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
16337 # Check whether --enable-cross-guesses was given.
16338 if test ${enable_cross_guesses+y}
16340 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
16341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
16342 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
16343 enableval=conservative
16345 gl_cross_guesses="$enableval"
16347 gl_cross_guesses=conservative
16350 if test $gl_cross_guesses = risky; then
16351 gl_cross_guess_normal="guessing yes"
16352 gl_cross_guess_inverted="guessing no"
16354 gl_cross_guess_normal="guessing no"
16355 gl_cross_guess_inverted="guessing yes"
16357 LIBC_FATAL_STDERR_=1
16358 export LIBC_FATAL_STDERR_
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
16363 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
16364 if test ${gl_cv_have___header_inline+y}
16366 printf %s "(cached) " >&6
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16371 #ifndef __header_inline
16372 #error "<ctype.h> does not define __header_inline"
16376 if ac_fn_c_try_cpp "$LINENO"
16378 gl_cv_have___header_inline=yes
16380 gl_cv_have___header_inline=no
16382 rm -f conftest.err conftest.i conftest.$ac_ext
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
16385 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
16386 if test "$gl_cv_have___header_inline" = yes; then
16388 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16397 printf %s "checking whether the preprocessor supports include_next... " >&6; }
16398 if test ${gl_cv_have_include_next+y}
16400 printf %s "(cached) " >&6
16402 rm -rf conftestd1a conftestd1b conftestd2
16403 mkdir conftestd1a conftestd1b conftestd2
16404 cat <<EOF > conftestd1a/conftest.h
16405 #define DEFINED_IN_CONFTESTD1
16406 #include_next <conftest.h>
16407 #ifdef DEFINED_IN_CONFTESTD2
16410 #error "include_next doesn't work"
16413 cat <<EOF > conftestd1b/conftest.h
16414 #define DEFINED_IN_CONFTESTD1
16416 #include_next <conftest.h>
16417 #ifdef DEFINED_IN_CONFTESTD2
16420 #error "include_next doesn't work"
16423 cat <<EOF > conftestd2/conftest.h
16424 #ifndef DEFINED_IN_CONFTESTD1
16425 #error "include_next test doesn't work"
16427 #define DEFINED_IN_CONFTESTD2
16429 gl_save_CPPFLAGS="$CPPFLAGS"
16430 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <conftest.h>
16435 if ac_fn_c_try_compile "$LINENO"
16437 gl_cv_have_include_next=yes
16439 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16442 #include <conftest.h>
16444 if ac_fn_c_try_compile "$LINENO"
16446 gl_cv_have_include_next=buggy
16448 gl_cv_have_include_next=no
16450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16454 CPPFLAGS="$gl_save_CPPFLAGS"
16455 rm -rf conftestd1a conftestd1b conftestd2
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16459 printf "%s\n" "$gl_cv_have_include_next" >&6; }
16460 PRAGMA_SYSTEM_HEADER=
16461 if test $gl_cv_have_include_next = yes; then
16462 INCLUDE_NEXT=include_next
16463 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16464 if test -n "$GCC"; then
16465 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16468 if test $gl_cv_have_include_next = buggy; then
16469 INCLUDE_NEXT=include
16470 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16472 INCLUDE_NEXT=include
16473 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
16481 printf %s "checking whether source code line length is unlimited... " >&6; }
16482 if test ${gl_cv_source_line_length_unlimited+y}
16484 printf %s "(cached) " >&6
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16495 $EGREP "choke me" >/dev/null 2>&1
16497 gl_cv_source_line_length_unlimited=no
16499 gl_cv_source_line_length_unlimited=yes
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
16506 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
16507 if test $gl_cv_source_line_length_unlimited = no; then
16508 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16525 if test $gl_cv_have_include_next = yes; then
16526 gl_cv_next_limits_h='<'limits.h'>'
16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
16529 printf %s "checking absolute name of <limits.h>... " >&6; }
16530 if test ${gl_cv_next_limits_h+y}
16532 printf %s "(cached) " >&6
16535 if test $ac_cv_header_limits_h = yes; then
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 #include <limits.h>
16545 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16546 *) gl_absname_cpp="$ac_cpp" ;;
16551 gl_dirsep_regex='[/\\]'
16554 gl_dirsep_regex='\/'
16557 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16558 gl_header_literal_regex=`echo 'limits.h' \
16559 | sed -e "$gl_make_literal_regex_sed"`
16560 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16561 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16567 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16568 sed -n "$gl_absolute_header_sed"`
16570 gl_header=$gl_cv_absolute_limits_h
16571 gl_cv_next_limits_h='"'$gl_header'"'
16573 gl_cv_next_limits_h='<'limits.h'>'
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
16579 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
16581 NEXT_LIMITS_H=$gl_cv_next_limits_h
16583 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16585 gl_next_as_first_directive='<'limits.h'>'
16587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16588 gl_next_as_first_directive=$gl_cv_next_limits_h
16590 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
16596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
16597 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
16598 if test ${gl_cv_header_limits_width+y}
16600 printf %s "(cached) " >&6
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
16605 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
16607 #include <limits.h>
16608 long long llm = LLONG_MAX;
16610 int ullw = ULLONG_WIDTH;
16611 int bw = BOOL_WIDTH;
16621 if ac_fn_c_try_compile "$LINENO"
16623 gl_cv_header_limits_width=yes
16625 gl_cv_header_limits_width=no
16627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
16630 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
16631 if test "$gl_cv_header_limits_width" = yes; then
16632 GL_GENERATE_LIMITS_H=false
16634 GL_GENERATE_LIMITS_H=true
16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
16642 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
16643 if test ${gl_cv_minmax_in_limits_h+y}
16645 printf %s "(cached) " >&6
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 #include <limits.h>
16650 int x = MIN (42, 17);
16659 if ac_fn_c_try_compile "$LINENO"
16661 gl_cv_minmax_in_limits_h=yes
16663 gl_cv_minmax_in_limits_h=no
16665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
16668 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
16669 if test $gl_cv_minmax_in_limits_h = yes; then
16671 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
16681 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
16682 if test ${gl_cv_minmax_in_sys_param_h+y}
16684 printf %s "(cached) " >&6
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 #include <sys/param.h>
16689 int x = MIN (42, 17);
16698 if ac_fn_c_try_compile "$LINENO"
16700 gl_cv_minmax_in_sys_param_h=yes
16702 gl_cv_minmax_in_sys_param_h=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
16707 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
16708 if test $gl_cv_minmax_in_sys_param_h = yes; then
16710 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
16719 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
16720 if test ${gl_cv_c_multiarch+y}
16722 printf %s "(cached) " >&6
16724 gl_cv_c_multiarch=no
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727 #ifndef __APPLE_CC__
16728 not a universal capable compiler
16733 if ac_fn_c_try_compile "$LINENO"
16738 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16739 if test -n "$prev"; then
16741 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
16742 if test -z "$arch" || test "$arch" = "$word"; then
16745 gl_cv_c_multiarch=yes
16751 if test "x$word" = "x-arch"; then
16758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
16762 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
16763 if test $gl_cv_c_multiarch = yes; then
16764 APPLE_UNIVERSAL_BUILD=1
16766 APPLE_UNIVERSAL_BUILD=0
16770 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16771 if test "x$ac_cv_type__Bool" = xyes
16774 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
16780 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
16781 if test ${ac_cv_header_stdbool_h+y}
16783 printf %s "(cached) " >&6
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787 #include <stdbool.h>
16789 /* "true" and "false" should be usable in #if expressions and
16790 integer constant expressions, and "bool" should be a valid
16793 Although C 1999 requires bool, true, and false to be macros,
16794 C 2023 and C++ 2011 overrule that, so do not test for that.
16795 Although C 1999 requires __bool_true_false_are_defined and
16796 _Bool, C 2023 says they are obsolescent, so do not require
16800 #error "'true' is not true"
16803 #error "'true' is not equal to 1"
16805 char b[true == 1 ? 1 : -1];
16809 #error "'false' is not false"
16812 #error "'false' is not equal to 0"
16814 char d[false == 0 ? 1 : -1];
16816 enum { e = false, f = true, g = false * true, h = true * 256 };
16818 char i[(bool) 0.5 == true ? 1 : -1];
16819 char j[(bool) 0.0 == false ? 1 : -1];
16820 char k[sizeof (bool) > 0 ? 1 : -1];
16822 struct sb { bool s: 1; bool t; } s;
16823 char l[sizeof s.t > 0 ? 1 : -1];
16825 /* The following fails for
16826 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16828 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
16829 char o[-1 - (bool) 0 < 0 ? 1 : -1];
16830 /* Catch a bug in an HP-UX C compiler. See
16831 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16832 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16845 /* Refer to every declared value, so they cannot be
16846 discarded as unused. */
16847 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
16848 + !l + !m + !n + !o + !p + !pp + !ps);
16854 if ac_fn_c_try_compile "$LINENO"
16856 ac_cv_header_stdbool_h=yes
16858 ac_cv_header_stdbool_h=no
16860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16863 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
16867 HAVE_MAX_ALIGN_T=1;
16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16872 printf %s "checking for wchar_t... " >&6; }
16873 if test ${gt_cv_c_wchar_t+y}
16875 printf %s "(cached) " >&6
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879 #include <stddef.h>
16880 wchar_t foo = (wchar_t)'\0';
16889 if ac_fn_c_try_compile "$LINENO"
16891 gt_cv_c_wchar_t=yes
16895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16898 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
16899 if test $gt_cv_c_wchar_t = yes; then
16901 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
16911 GL_GENERATE_STDDEF_H=false
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
16914 printf %s "checking for good max_align_t... " >&6; }
16915 if test ${gl_cv_type_max_align_t+y}
16917 printf %s "(cached) " >&6
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 #include <stddef.h>
16922 unsigned int s = sizeof (max_align_t);
16923 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
16924 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
16925 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
16927 typedef struct { char a; max_align_t b; } max_helper;
16928 typedef struct { char a; long b; } long_helper;
16929 typedef struct { char a; double b; } double_helper;
16930 typedef struct { char a; long double b; } long_double_helper;
16931 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
16932 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
16933 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
16943 if ac_fn_c_try_compile "$LINENO"
16945 gl_cv_type_max_align_t=yes
16947 gl_cv_type_max_align_t=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
16953 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
16954 if test $gl_cv_type_max_align_t = no; then
16956 GL_GENERATE_STDDEF_H=true
16959 if test $gt_cv_c_wchar_t = no; then
16961 GL_GENERATE_STDDEF_H=true
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16965 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
16966 if test ${gl_cv_decl_null_works+y}
16968 printf %s "(cached) " >&6
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 #include <stddef.h>
16973 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16983 if ac_fn_c_try_compile "$LINENO"
16985 gl_cv_decl_null_works=yes
16987 gl_cv_decl_null_works=no
16989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16992 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
16993 if test $gl_cv_decl_null_works = no; then
16995 GL_GENERATE_STDDEF_H=true
16998 if $GL_GENERATE_STDDEF_H; then
17007 if test $gl_cv_have_include_next = yes; then
17008 gl_cv_next_stddef_h='<'stddef.h'>'
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17011 printf %s "checking absolute name of <stddef.h>... " >&6; }
17012 if test ${gl_cv_next_stddef_h+y}
17014 printf %s "(cached) " >&6
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 #include <stddef.h>
17024 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17025 *) gl_absname_cpp="$ac_cpp" ;;
17030 gl_dirsep_regex='[/\\]'
17033 gl_dirsep_regex='\/'
17036 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17037 gl_header_literal_regex=`echo 'stddef.h' \
17038 | sed -e "$gl_make_literal_regex_sed"`
17039 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17046 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17047 sed -n "$gl_absolute_header_sed"`
17049 gl_header=$gl_cv_absolute_stddef_h
17050 gl_cv_next_stddef_h='"'$gl_header'"'
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17055 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
17057 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17061 gl_next_as_first_directive='<'stddef.h'>'
17063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17064 gl_next_as_first_directive=$gl_cv_next_stddef_h
17066 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17077 printf %s "checking for wint_t... " >&6; }
17078 if test ${gt_cv_c_wint_t+y}
17080 printf %s "(cached) " >&6
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17085 wint_t foo = (wchar_t)'\0';
17094 if ac_fn_c_try_compile "$LINENO"
17100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17103 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
17104 if test $gt_cv_c_wint_t = yes; then
17106 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
17110 printf %s "checking whether wint_t is large enough... " >&6; }
17111 if test ${gl_cv_type_wint_t_large_enough+y}
17113 printf %s "(cached) " >&6
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17118 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
17128 if ac_fn_c_try_compile "$LINENO"
17130 gl_cv_type_wint_t_large_enough=yes
17132 gl_cv_type_wint_t_large_enough=no
17134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
17137 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
17138 if test $gl_cv_type_wint_t_large_enough = no; then
17139 GNULIBHEADERS_OVERRIDE_WINT_T=1
17141 GNULIBHEADERS_OVERRIDE_WINT_T=0
17144 GNULIBHEADERS_OVERRIDE_WINT_T=0
17154 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17157 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17161 if test $ac_cv_header_wchar_h = yes; then
17169 if test $ac_cv_header_inttypes_h = yes; then
17177 if test $ac_cv_header_sys_types_h = yes; then
17193 if test $gl_cv_have_include_next = yes; then
17194 gl_cv_next_stdint_h='<'stdint.h'>'
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17197 printf %s "checking absolute name of <stdint.h>... " >&6; }
17198 if test ${gl_cv_next_stdint_h+y}
17200 printf %s "(cached) " >&6
17203 if test $ac_cv_header_stdint_h = yes; then
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17210 #include <stdint.h>
17213 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17214 *) gl_absname_cpp="$ac_cpp" ;;
17219 gl_dirsep_regex='[/\\]'
17222 gl_dirsep_regex='\/'
17225 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17226 gl_header_literal_regex=`echo 'stdint.h' \
17227 | sed -e "$gl_make_literal_regex_sed"`
17228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17235 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17236 sed -n "$gl_absolute_header_sed"`
17238 gl_header=$gl_cv_absolute_stdint_h
17239 gl_cv_next_stdint_h='"'$gl_header'"'
17241 gl_cv_next_stdint_h='<'stdint.h'>'
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17247 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
17249 NEXT_STDINT_H=$gl_cv_next_stdint_h
17251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17253 gl_next_as_first_directive='<'stdint.h'>'
17255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17256 gl_next_as_first_directive=$gl_cv_next_stdint_h
17258 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17263 if test $ac_cv_header_stdint_h = yes; then
17270 if test $ac_cv_header_stdint_h = yes; then
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17272 printf %s "checking whether stdint.h conforms to C99... " >&6; }
17273 if test ${gl_cv_header_working_stdint_h+y}
17275 printf %s "(cached) " >&6
17277 gl_cv_header_working_stdint_h=no
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17282 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17283 #define __STDC_CONSTANT_MACROS 1
17284 #define __STDC_LIMIT_MACROS 1
17285 #include <stdint.h>
17286 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17287 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17288 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17292 #include <stddef.h>
17293 #include <signal.h>
17295 # include <wchar.h>
17300 int8_t a1 = INT8_MAX;
17301 int8_t a1min = INT8_MIN;
17304 int16_t a2 = INT16_MAX;
17305 int16_t a2min = INT16_MIN;
17308 int32_t a3 = INT32_MAX;
17309 int32_t a3min = INT32_MIN;
17312 int64_t a4 = INT64_MAX;
17313 int64_t a4min = INT64_MIN;
17316 uint8_t b1 = UINT8_MAX;
17318 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17321 uint16_t b2 = UINT16_MAX;
17324 uint32_t b3 = UINT32_MAX;
17327 uint64_t b4 = UINT64_MAX;
17329 int_least8_t c1 = INT8_C (0x7f);
17330 int_least8_t c1max = INT_LEAST8_MAX;
17331 int_least8_t c1min = INT_LEAST8_MIN;
17332 int_least16_t c2 = INT16_C (0x7fff);
17333 int_least16_t c2max = INT_LEAST16_MAX;
17334 int_least16_t c2min = INT_LEAST16_MIN;
17335 int_least32_t c3 = INT32_C (0x7fffffff);
17336 int_least32_t c3max = INT_LEAST32_MAX;
17337 int_least32_t c3min = INT_LEAST32_MIN;
17338 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17339 int_least64_t c4max = INT_LEAST64_MAX;
17340 int_least64_t c4min = INT_LEAST64_MIN;
17341 uint_least8_t d1 = UINT8_C (0xff);
17342 uint_least8_t d1max = UINT_LEAST8_MAX;
17343 uint_least16_t d2 = UINT16_C (0xffff);
17344 uint_least16_t d2max = UINT_LEAST16_MAX;
17345 uint_least32_t d3 = UINT32_C (0xffffffff);
17346 uint_least32_t d3max = UINT_LEAST32_MAX;
17347 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17348 uint_least64_t d4max = UINT_LEAST64_MAX;
17349 int_fast8_t e1 = INT_FAST8_MAX;
17350 int_fast8_t e1min = INT_FAST8_MIN;
17351 int_fast16_t e2 = INT_FAST16_MAX;
17352 int_fast16_t e2min = INT_FAST16_MIN;
17353 int_fast32_t e3 = INT_FAST32_MAX;
17354 int_fast32_t e3min = INT_FAST32_MIN;
17355 int_fast64_t e4 = INT_FAST64_MAX;
17356 int_fast64_t e4min = INT_FAST64_MIN;
17357 uint_fast8_t f1 = UINT_FAST8_MAX;
17358 uint_fast16_t f2 = UINT_FAST16_MAX;
17359 uint_fast32_t f3 = UINT_FAST32_MAX;
17360 uint_fast64_t f4 = UINT_FAST64_MAX;
17362 intptr_t g = INTPTR_MAX;
17363 intptr_t gmin = INTPTR_MIN;
17366 uintptr_t h = UINTPTR_MAX;
17368 intmax_t i = INTMAX_MAX;
17369 uintmax_t j = UINTMAX_MAX;
17371 /* Check that SIZE_MAX has the correct type, if possible. */
17372 #if 201112 <= __STDC_VERSION__
17373 int k = _Generic (SIZE_MAX, size_t: 0);
17374 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
17375 || (0x5110 <= __SUNPRO_C && !__STDC__))
17377 extern __typeof__ (SIZE_MAX) k;
17380 #include <limits.h> /* for CHAR_BIT */
17381 #define TYPE_MINIMUM(t) \
17382 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17383 #define TYPE_MAXIMUM(t) \
17384 ((t) ((t) 0 < (t) -1 \
17386 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17389 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17390 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17392 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
17393 int check_SIG_ATOMIC:
17394 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17395 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17397 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17399 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17400 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17402 /* Detect bug in mingw. */
17404 WINT_MIN == TYPE_MINIMUM (wint_t)
17405 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17408 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17410 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17411 int check_UINT16_C:
17412 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17414 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17416 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17419 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17422 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17425 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17427 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17428 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17429 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17430 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17431 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17432 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17433 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17434 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17435 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17436 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17437 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17448 if ac_fn_c_try_compile "$LINENO"
17450 if test "$cross_compiling" = yes
17453 # Guess yes on native Windows.
17454 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
17455 # In general, assume it works.
17456 *) gl_cv_header_working_stdint_h="guessing yes" ;;
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17464 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17465 #define __STDC_CONSTANT_MACROS 1
17466 #define __STDC_LIMIT_MACROS 1
17467 #include <stdint.h>
17470 #include <stddef.h>
17471 #include <signal.h>
17473 # include <wchar.h>
17478 #include <string.h>
17479 #define MVAL(macro) MVAL1(macro)
17480 #define MVAL1(expression) #expression
17481 static const char *macro_values[] =
17515 for (mv = macro_values; *mv != NULL; mv++)
17517 const char *value = *mv;
17518 /* Test whether it looks like a cast expression. */
17519 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17520 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17521 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17522 || strncmp (value, "((int)"/*)*/, 6) == 0
17523 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17524 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17525 return mv - macro_values + 1;
17533 if ac_fn_c_try_run "$LINENO"
17535 gl_cv_header_working_stdint_h=yes
17537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17538 conftest.$ac_objext conftest.beam conftest.$ac_ext
17543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17547 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
17550 HAVE_C99_STDINT_H=0
17551 HAVE_SYS_BITYPES_H=0
17552 HAVE_SYS_INTTYPES_H=0
17553 GL_GENERATE_STDINT_H=true
17554 case "$gl_cv_header_working_stdint_h" in
17556 HAVE_C99_STDINT_H=1
17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
17558 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
17559 if test ${gl_cv_header_stdint_without_STDC_macros+y}
17561 printf %s "(cached) " >&6
17563 gl_cv_header_stdint_without_STDC_macros=no
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17568 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17569 #include <stdint.h>
17572 #include <stddef.h>
17573 #include <signal.h>
17575 # include <wchar.h>
17579 intmax_t im = INTMAX_MAX;
17580 int32_t i32 = INT32_C (0x7fffffff);
17590 if ac_fn_c_try_compile "$LINENO"
17592 gl_cv_header_stdint_without_STDC_macros=yes
17594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
17598 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
17600 if test $gl_cv_header_stdint_without_STDC_macros = no; then
17602 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
17605 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
17609 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
17610 if test ${gl_cv_header_stdint_width+y}
17612 printf %s "(cached) " >&6
17614 gl_cv_header_stdint_width=no
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 /* Work if build is not clean. */
17619 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
17620 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17621 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17623 #include <stdint.h>
17625 #include <stddef.h>
17626 #include <signal.h>
17628 # include <wchar.h>
17631 int iw = UINTMAX_WIDTH;
17641 if ac_fn_c_try_compile "$LINENO"
17643 gl_cv_header_stdint_width=yes
17645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
17648 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
17649 if test "$gl_cv_header_stdint_width" = yes; then
17650 GL_GENERATE_STDINT_H=false
17654 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
17655 if test "x$ac_cv_header_sys_inttypes_h" = xyes
17657 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
17660 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
17661 if test "x$ac_cv_header_sys_bitypes_h" = xyes
17663 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
17667 if test $ac_cv_header_sys_inttypes_h = yes; then
17668 HAVE_SYS_INTTYPES_H=1
17670 if test $ac_cv_header_sys_bitypes_h = yes; then
17671 HAVE_SYS_BITYPES_H=1
17675 if test $APPLE_UNIVERSAL_BUILD = 0; then
17678 for gltype in ptrdiff_t size_t ; do
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17680 printf %s "checking for bit size of $gltype... " >&6; }
17681 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17683 printf %s "(cached) " >&6
17685 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17686 #include <stddef.h>
17687 #include <signal.h>
17689 # include <wchar.h>
17692 #include <limits.h>"
17699 eval gl_cv_bitsizeof_${gltype}=\$result
17702 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17704 printf "%s\n" "$ac_res" >&6; }
17705 eval result=\$gl_cv_bitsizeof_${gltype}
17706 if test $result = unknown; then
17709 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17710 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17712 eval BITSIZEOF_${GLTYPE}=\$result
17719 for gltype in sig_atomic_t wchar_t wint_t ; do
17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17721 printf %s "checking for bit size of $gltype... " >&6; }
17722 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17724 printf %s "(cached) " >&6
17726 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17727 #include <stddef.h>
17728 #include <signal.h>
17730 # include <wchar.h>
17733 #include <limits.h>"
17740 eval gl_cv_bitsizeof_${gltype}=\$result
17743 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17745 printf "%s\n" "$ac_res" >&6; }
17746 eval result=\$gl_cv_bitsizeof_${gltype}
17747 if test $result = unknown; then
17750 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17751 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17753 eval BITSIZEOF_${GLTYPE}=\$result
17759 for gltype in sig_atomic_t wchar_t wint_t ; do
17760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17761 printf %s "checking whether $gltype is signed... " >&6; }
17762 if eval test \${gl_cv_type_${gltype}_signed+y}
17764 printf %s "(cached) " >&6
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17769 #include <stddef.h>
17770 #include <signal.h>
17772 # include <wchar.h>
17775 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17784 if ac_fn_c_try_compile "$LINENO"
17790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17791 eval gl_cv_type_${gltype}_signed=\$result
17794 eval ac_res=\$gl_cv_type_${gltype}_signed
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17796 printf "%s\n" "$ac_res" >&6; }
17797 eval result=\$gl_cv_type_${gltype}_signed
17798 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17799 if test "$result" = yes; then
17800 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
17802 eval HAVE_SIGNED_${GLTYPE}=1
17804 eval HAVE_SIGNED_${GLTYPE}=0
17809 gl_cv_type_ptrdiff_t_signed=yes
17810 gl_cv_type_size_t_signed=no
17811 if test $APPLE_UNIVERSAL_BUILD = 0; then
17814 for gltype in ptrdiff_t size_t ; do
17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17816 printf %s "checking for $gltype integer literal suffix... " >&6; }
17817 if eval test \${gl_cv_type_${gltype}_suffix+y}
17819 printf %s "(cached) " >&6
17821 eval gl_cv_type_${gltype}_suffix=no
17822 eval result=\$gl_cv_type_${gltype}_signed
17823 if test "$result" = yes; then
17828 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17830 '') gltype1='int';;
17831 l) gltype1='long int';;
17832 ll) gltype1='long long int';;
17833 i64) gltype1='__int64';;
17834 u) gltype1='unsigned int';;
17835 ul) gltype1='unsigned long int';;
17836 ull) gltype1='unsigned long long int';;
17837 ui64)gltype1='unsigned __int64';;
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17842 #include <stddef.h>
17843 #include <signal.h>
17845 # include <wchar.h>
17848 extern $gltype foo;
17849 extern $gltype1 foo;
17858 if ac_fn_c_try_compile "$LINENO"
17860 eval gl_cv_type_${gltype}_suffix=\$glsuf
17862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17863 eval result=\$gl_cv_type_${gltype}_suffix
17864 test "$result" != no && break
17867 eval ac_res=\$gl_cv_type_${gltype}_suffix
17868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17869 printf "%s\n" "$ac_res" >&6; }
17870 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17871 eval result=\$gl_cv_type_${gltype}_suffix
17872 test "$result" = no && result=
17873 eval ${GLTYPE}_SUFFIX=\$result
17874 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
17882 for gltype in sig_atomic_t wchar_t wint_t ; do
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17884 printf %s "checking for $gltype integer literal suffix... " >&6; }
17885 if eval test \${gl_cv_type_${gltype}_suffix+y}
17887 printf %s "(cached) " >&6
17889 eval gl_cv_type_${gltype}_suffix=no
17890 eval result=\$gl_cv_type_${gltype}_signed
17891 if test "$result" = yes; then
17896 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17898 '') gltype1='int';;
17899 l) gltype1='long int';;
17900 ll) gltype1='long long int';;
17901 i64) gltype1='__int64';;
17902 u) gltype1='unsigned int';;
17903 ul) gltype1='unsigned long int';;
17904 ull) gltype1='unsigned long long int';;
17905 ui64)gltype1='unsigned __int64';;
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17910 #include <stddef.h>
17911 #include <signal.h>
17913 # include <wchar.h>
17916 extern $gltype foo;
17917 extern $gltype1 foo;
17926 if ac_fn_c_try_compile "$LINENO"
17928 eval gl_cv_type_${gltype}_suffix=\$glsuf
17930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17931 eval result=\$gl_cv_type_${gltype}_suffix
17932 test "$result" != no && break
17935 eval ac_res=\$gl_cv_type_${gltype}_suffix
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17937 printf "%s\n" "$ac_res" >&6; }
17938 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17939 eval result=\$gl_cv_type_${gltype}_suffix
17940 test "$result" = no && result=
17941 eval ${GLTYPE}_SUFFIX=\$result
17942 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
17948 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
17949 BITSIZEOF_WINT_T=32
17957 GL_GENERATE_LIMITS_H=true
17966 HAVE_ALIGNED_ALLOC=1;
17968 HAVE_CANONICALIZE_FILE_NAME=1;
17972 HAVE_DECL_GETLOADAVG=1;
17976 HAVE_DECL_INITSTATE=1;
17983 HAVE_POSIX_MEMALIGN=1;
17984 HAVE_POSIX_OPENPT=1;
17991 HAVE_REALLOCARRAY=1;
17994 HAVE_SECURE_GETENV=1;
17996 HAVE_DECL_SETENV=1;
17998 HAVE_DECL_SETSTATE=1;
18005 HAVE_STRUCT_RANDOM_DATA=1;
18006 HAVE_SYS_LOADAVG_H=0;
18008 HAVE_DECL_UNSETENV=1;
18009 REPLACE_ALIGNED_ALLOC=0;
18010 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
18011 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
18012 REPLACE_CANONICALIZE_FILE_NAME=0;
18014 REPLACE_INITSTATE=0;
18015 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
18016 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
18019 REPLACE_POSIX_MEMALIGN=0;
18021 REPLACE_PTSNAME_R=0;
18025 REPLACE_RANDOM_R=0;
18026 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
18027 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
18028 REPLACE_REALLOCARRAY=0;
18029 REPLACE_REALPATH=0;
18031 REPLACE_SETSTATE=0;
18037 REPLACE_STRTOULL=0;
18038 REPLACE_UNSETENV=0;
18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18042 printf %s "checking for C/C++ restrict keyword... " >&6; }
18043 if test ${ac_cv_c_restrict+y}
18045 printf %s "(cached) " >&6
18047 ac_cv_c_restrict=no
18048 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
18049 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
18050 # Put 'restrict' last, because C++ lacks it.
18051 for ac_kw in __restrict__ __restrict _Restrict restrict; do
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18054 typedef int *int_ptr;
18055 int foo (int_ptr $ac_kw ip) { return ip[0]; }
18056 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
18057 int bar (int ip[$ac_kw]) { return ip[0]; }
18065 return foo (t) + bar (t);
18071 if ac_fn_c_try_compile "$LINENO"
18073 ac_cv_c_restrict=$ac_kw
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076 test "$ac_cv_c_restrict" != no && break
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18081 printf "%s\n" "$ac_cv_c_restrict" >&6; }
18083 case $ac_cv_c_restrict in
18085 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
18087 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18092 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18093 if test ${ac_cv_c_undeclared_builtin_options+y}
18095 printf %s "(cached) " >&6
18097 ac_save_CFLAGS=$CFLAGS
18098 ac_cv_c_undeclared_builtin_options='cannot detect'
18099 for ac_arg in '' -fno-builtin; do
18100 CFLAGS="$ac_save_CFLAGS $ac_arg"
18101 # This test program should *not* compile successfully.
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18113 if ac_fn_c_try_compile "$LINENO"
18117 # This test program should compile successfully.
18118 # No library function is consistently available on
18119 # freestanding implementations, so test against a dummy
18120 # declaration. Include always-available headers on the
18121 # off chance that they somehow elicit warnings.
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18125 #include <limits.h>
18126 #include <stdarg.h>
18127 #include <stddef.h>
18128 extern void ac_decl (int, char *);
18133 (void) ac_decl (0, (char *) 0);
18140 if ac_fn_c_try_compile "$LINENO"
18142 if test x"$ac_arg" = x
18144 ac_cv_c_undeclared_builtin_options='none needed'
18146 ac_cv_c_undeclared_builtin_options=$ac_arg
18150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18154 CFLAGS=$ac_save_CFLAGS
18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18158 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18159 case $ac_cv_c_undeclared_builtin_options in #(
18161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18163 as_fn_error $? "cannot make $CC report undeclared builtins
18164 See \`config.log' for more details" "$LINENO" 5; } ;; #(
18166 ac_c_undeclared_builtin_options='' ;; #(
18168 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18171 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18172 if test "x$ac_cv_have_decl_ecvt" = xyes
18178 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
18180 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18181 if test "x$ac_cv_have_decl_fcvt" = xyes
18187 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
18189 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18190 if test "x$ac_cv_have_decl_gcvt" = xyes
18196 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
18208 if test $gl_cv_have_include_next = yes; then
18209 gl_cv_next_stdlib_h='<'stdlib.h'>'
18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18212 printf %s "checking absolute name of <stdlib.h>... " >&6; }
18213 if test ${gl_cv_next_stdlib_h+y}
18215 printf %s "(cached) " >&6
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18222 #include <stdlib.h>
18225 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18226 *) gl_absname_cpp="$ac_cpp" ;;
18231 gl_dirsep_regex='[/\\]'
18234 gl_dirsep_regex='\/'
18237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18238 gl_header_literal_regex=`echo 'stdlib.h' \
18239 | sed -e "$gl_make_literal_regex_sed"`
18240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18247 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18248 sed -n "$gl_absolute_header_sed"`
18250 gl_header=$gl_cv_absolute_stdlib_h
18251 gl_cv_next_stdlib_h='"'$gl_header'"'
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18256 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
18258 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18260 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18262 gl_next_as_first_directive='<'stdlib.h'>'
18264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18265 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18267 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18280 if test $ac_cv_have_decl_ecvt = no; then
18284 if test $ac_cv_have_decl_fcvt = no; then
18288 if test $ac_cv_have_decl_gcvt = no; then
18298 GL_GNULIB_ALIGNED_ALLOC=0
18306 GL_GNULIB_CALLOC_GNU=0
18310 GL_GNULIB_CALLOC_POSIX=0
18314 GL_GNULIB_CANONICALIZE_FILE_NAME=0
18318 GL_GNULIB_FREE_POSIX=0
18322 GL_GNULIB_GETLOADAVG=0
18326 GL_GNULIB_GETSUBOPT=0
18330 GL_GNULIB_GRANTPT=0
18334 GL_GNULIB_MALLOC_GNU=0
18338 GL_GNULIB_MALLOC_POSIX=0
18346 GL_GNULIB_MKDTEMP=0
18350 GL_GNULIB_MKOSTEMP=0
18354 GL_GNULIB_MKOSTEMPS=0
18358 GL_GNULIB_MKSTEMP=0
18362 GL_GNULIB_MKSTEMPS=0
18366 GL_GNULIB_POSIX_MEMALIGN=0
18370 GL_GNULIB_POSIX_OPENPT=0
18374 GL_GNULIB_PTSNAME=0
18378 GL_GNULIB_PTSNAME_R=0
18386 GL_GNULIB_QSORT_R=0
18394 GL_GNULIB_RANDOM_R=0
18398 GL_GNULIB_REALLOCARRAY=0
18402 GL_GNULIB_REALLOC_GNU=0
18406 GL_GNULIB_REALLOC_POSIX=0
18410 GL_GNULIB_REALPATH=0
18414 GL_GNULIB_RPMATCH=0
18418 GL_GNULIB_SECURE_GETENV=0
18434 GL_GNULIB_STRTOLD=0
18438 GL_GNULIB_STRTOLL=0
18442 GL_GNULIB_STRTOUL=0
18446 GL_GNULIB_STRTOULL=0
18450 GL_GNULIB_SYSTEM_POSIX=0
18454 GL_GNULIB_UNLOCKPT=0
18458 GL_GNULIB_UNSETENV=0
18466 GL_GNULIB_MDA_ECVT=1
18470 GL_GNULIB_MDA_FCVT=1
18474 GL_GNULIB_MDA_GCVT=1
18478 GL_GNULIB_MDA_MKTEMP=1
18482 GL_GNULIB_MDA_PUTENV=1
18488 HAVE_EXPLICIT_BZERO=1;
18491 HAVE_DECL_MEMMEM=1;
18493 HAVE_DECL_MEMRCHR=1;
18498 HAVE_DECL_STRDUP=1;
18499 HAVE_DECL_STRNDUP=1;
18500 HAVE_DECL_STRNLEN=1;
18504 HAVE_DECL_STRTOK_R=1;
18505 HAVE_DECL_STRERROR_R=1;
18506 HAVE_STRERRORNAME_NP=1;
18507 HAVE_SIGABBREV_NP=1;
18508 HAVE_SIGDESCR_NP=1;
18509 HAVE_DECL_STRSIGNAL=1;
18515 REPLACE_STRCHRNUL=0;
18521 REPLACE_STRCASESTR=0;
18522 REPLACE_STRTOK_R=0;
18523 REPLACE_STRERROR=0;
18524 REPLACE_STRERROR_R=0;
18525 REPLACE_STRERRORNAME_NP=0;
18526 REPLACE_STRSIGNAL=0;
18527 UNDEFINE_STRTOK_R=0;
18539 if test $gl_cv_have_include_next = yes; then
18540 gl_cv_next_string_h='<'string.h'>'
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18543 printf %s "checking absolute name of <string.h>... " >&6; }
18544 if test ${gl_cv_next_string_h+y}
18546 printf %s "(cached) " >&6
18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h. */
18553 #include <string.h>
18556 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18557 *) gl_absname_cpp="$ac_cpp" ;;
18562 gl_dirsep_regex='[/\\]'
18565 gl_dirsep_regex='\/'
18568 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18569 gl_header_literal_regex=`echo 'string.h' \
18570 | sed -e "$gl_make_literal_regex_sed"`
18571 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18572 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18578 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18579 sed -n "$gl_absolute_header_sed"`
18581 gl_header=$gl_cv_absolute_string_h
18582 gl_cv_next_string_h='"'$gl_header'"'
18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18587 printf "%s\n" "$gl_cv_next_string_h" >&6; }
18589 NEXT_STRING_H=$gl_cv_next_string_h
18591 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18593 gl_next_as_first_directive='<'string.h'>'
18595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18596 gl_next_as_first_directive=$gl_cv_next_string_h
18598 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18612 GL_GNULIB_EXPLICIT_BZERO=0
18632 GL_GNULIB_MEMPCPY=0
18636 GL_GNULIB_MEMRCHR=0
18640 GL_GNULIB_RAWMEMCHR=0
18648 GL_GNULIB_STPNCPY=0
18652 GL_GNULIB_STRCHRNUL=0
18660 GL_GNULIB_STRNCAT=0
18664 GL_GNULIB_STRNDUP=0
18668 GL_GNULIB_STRNLEN=0
18672 GL_GNULIB_STRPBRK=0
18684 GL_GNULIB_STRCASESTR=0
18688 GL_GNULIB_STRTOK_R=0
18696 GL_GNULIB_MBSNLEN=0
18704 GL_GNULIB_MBSRCHR=0
18712 GL_GNULIB_MBSCASECMP=0
18716 GL_GNULIB_MBSNCASECMP=0
18720 GL_GNULIB_MBSPCASECMP=0
18724 GL_GNULIB_MBSCASESTR=0
18728 GL_GNULIB_MBSCSPN=0
18732 GL_GNULIB_MBSPBRK=0
18744 GL_GNULIB_MBSTOK_R=0
18748 GL_GNULIB_STRERROR=0
18752 GL_GNULIB_STRERROR_R=0
18756 GL_GNULIB_STRERRORNAME_NP=0
18760 GL_GNULIB_SIGABBREV_NP=0
18764 GL_GNULIB_SIGDESCR_NP=0
18768 GL_GNULIB_STRSIGNAL=0
18772 GL_GNULIB_STRVERSCMP=0
18776 GL_GNULIB_MDA_MEMCCPY=1
18780 GL_GNULIB_MDA_STRDUP=1
18787 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18789 if test "x$ac_cv_type_pid_t" = xyes
18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18796 #if defined _WIN64 && !defined __CYGWIN__
18809 if ac_fn_c_try_compile "$LINENO"
18813 ac_pid_type='__int64'
18815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18817 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18823 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18824 if test "x$ac_cv_type_mode_t" = xyes
18829 printf "%s\n" "#define mode_t int" >>confdefs.h
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18838 printf %s "checking for 64-bit off_t... " >&6; }
18839 if test ${gl_cv_type_off_t_64+y}
18841 printf %s "(cached) " >&6
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 #include <sys/types.h>
18846 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18856 if ac_fn_c_try_compile "$LINENO"
18858 gl_cv_type_off_t_64=yes
18860 gl_cv_type_off_t_64=no
18862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18866 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
18867 if test $gl_cv_type_off_t_64 = no; then
18868 WINDOWS_64_BIT_OFF_T=1
18870 WINDOWS_64_BIT_OFF_T=0
18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
18873 printf %s "checking for 64-bit st_size... " >&6; }
18874 if test ${gl_cv_member_st_size_64+y}
18876 printf %s "(cached) " >&6
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18880 #include <sys/types.h>
18882 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
18892 if ac_fn_c_try_compile "$LINENO"
18894 gl_cv_member_st_size_64=yes
18896 gl_cv_member_st_size_64=no
18898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
18902 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
18903 if test $gl_cv_member_st_size_64 = no; then
18904 WINDOWS_64_BIT_ST_SIZE=1
18906 WINDOWS_64_BIT_ST_SIZE=0
18910 WINDOWS_64_BIT_OFF_T=0
18911 WINDOWS_64_BIT_ST_SIZE=0
18925 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
18936 if test $gl_cv_have_include_next = yes; then
18937 gl_cv_next_sys_types_h='<'sys/types.h'>'
18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
18940 printf %s "checking absolute name of <sys/types.h>... " >&6; }
18941 if test ${gl_cv_next_sys_types_h+y}
18943 printf %s "(cached) " >&6
18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h. */
18950 #include <sys/types.h>
18953 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18954 *) gl_absname_cpp="$ac_cpp" ;;
18959 gl_dirsep_regex='[/\\]'
18962 gl_dirsep_regex='\/'
18965 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18966 gl_header_literal_regex=`echo 'sys/types.h' \
18967 | sed -e "$gl_make_literal_regex_sed"`
18968 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18975 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18976 sed -n "$gl_absolute_header_sed"`
18978 gl_header=$gl_cv_absolute_sys_types_h
18979 gl_cv_next_sys_types_h='"'$gl_header'"'
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
18984 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
18986 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
18988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18990 gl_next_as_first_directive='<'sys/types.h'>'
18992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18993 gl_next_as_first_directive=$gl_cv_next_sys_types_h
18995 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
19008 WINDOWS_STAT_INODES=0
19016 HAVE_COPY_FILE_RANGE=1;
19026 HAVE_GETDTABLESIZE=1;
19029 HAVE_GETHOSTNAME=1;
19031 HAVE_GETPAGESIZE=1;
19033 HAVE_GROUP_MEMBER=1;
19043 HAVE_SETHOSTNAME=1;
19049 HAVE_DECL_ENVIRON=1;
19050 HAVE_DECL_EXECVPE=1;
19051 HAVE_DECL_FCHDIR=1;
19052 HAVE_DECL_FDATASYNC=1;
19053 HAVE_DECL_GETDOMAINNAME=1;
19054 HAVE_DECL_GETLOGIN=1;
19055 HAVE_DECL_GETLOGIN_R=1;
19056 HAVE_DECL_GETPAGESIZE=1;
19057 HAVE_DECL_GETUSERSHELL=1;
19058 HAVE_DECL_SETHOSTNAME=1;
19059 HAVE_DECL_TRUNCATE=1;
19060 HAVE_DECL_TTYNAME_R=1;
19062 HAVE_SYS_PARAM_H=0;
19066 REPLACE_COPY_FILE_RANGE=0;
19076 REPLACE_FACCESSAT=0;
19077 REPLACE_FCHOWNAT=0;
19078 REPLACE_FTRUNCATE=0;
19080 REPLACE_GETDOMAINNAME=0;
19081 REPLACE_GETDTABLESIZE=0;
19082 REPLACE_GETLOGIN_R=0;
19083 REPLACE_GETGROUPS=0;
19084 REPLACE_GETPAGESIZE=0;
19086 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
19095 REPLACE_READLINK=0;
19096 REPLACE_READLINKAT=0;
19100 REPLACE_SYMLINKAT=0;
19101 REPLACE_TRUNCATE=0;
19102 REPLACE_TTYNAME_R=0;
19104 REPLACE_UNLINKAT=0;
19107 UNISTD_H_HAVE_SYS_RANDOM_H=0;
19108 UNISTD_H_HAVE_WINSOCK2_H=0;
19109 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19112 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19113 if test "x$ac_cv_have_decl_execvpe" = xyes
19119 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
19133 if test $gl_cv_have_include_next = yes; then
19134 gl_cv_next_unistd_h='<'unistd.h'>'
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
19137 printf %s "checking absolute name of <unistd.h>... " >&6; }
19138 if test ${gl_cv_next_unistd_h+y}
19140 printf %s "(cached) " >&6
19143 if test $ac_cv_header_unistd_h = yes; then
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150 #include <unistd.h>
19153 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19154 *) gl_absname_cpp="$ac_cpp" ;;
19159 gl_dirsep_regex='[/\\]'
19162 gl_dirsep_regex='\/'
19165 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19166 gl_header_literal_regex=`echo 'unistd.h' \
19167 | sed -e "$gl_make_literal_regex_sed"`
19168 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19169 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19175 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19176 sed -n "$gl_absolute_header_sed"`
19178 gl_header=$gl_cv_absolute_unistd_h
19179 gl_cv_next_unistd_h='"'$gl_header'"'
19181 gl_cv_next_unistd_h='<'unistd.h'>'
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
19187 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
19189 NEXT_UNISTD_H=$gl_cv_next_unistd_h
19191 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19193 gl_next_as_first_directive='<'unistd.h'>'
19195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19196 gl_next_as_first_directive=$gl_cv_next_unistd_h
19198 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
19203 if test $ac_cv_header_unistd_h = yes; then
19221 if test $ac_cv_have_decl_execvpe = no; then
19222 HAVE_DECL_EXECVPE=0
19243 GL_GNULIB_COPY_FILE_RANGE=0
19259 GL_GNULIB_ENVIRON=0
19263 GL_GNULIB_EUIDACCESS=0
19291 GL_GNULIB_EXECVPE=0
19295 GL_GNULIB_FACCESSAT=0
19303 GL_GNULIB_FCHOWNAT=0
19307 GL_GNULIB_FDATASYNC=0
19315 GL_GNULIB_FTRUNCATE=0
19323 GL_GNULIB_GETDOMAINNAME=0
19327 GL_GNULIB_GETDTABLESIZE=0
19331 GL_GNULIB_GETENTROPY=0
19335 GL_GNULIB_GETGROUPS=0
19339 GL_GNULIB_GETHOSTNAME=0
19343 GL_GNULIB_GETLOGIN=0
19347 GL_GNULIB_GETLOGIN_R=0
19351 GL_GNULIB_GETOPT_POSIX=0
19355 GL_GNULIB_GETPAGESIZE=0
19359 GL_GNULIB_GETPASS=0
19363 GL_GNULIB_GETPASS_GNU=0
19367 GL_GNULIB_GETUSERSHELL=0
19371 GL_GNULIB_GROUP_MEMBER=0
19415 GL_GNULIB_READLINK=0
19419 GL_GNULIB_READLINKAT=0
19427 GL_GNULIB_SETHOSTNAME=0
19435 GL_GNULIB_SYMLINK=0
19439 GL_GNULIB_SYMLINKAT=0
19443 GL_GNULIB_TRUNCATE=0
19447 GL_GNULIB_TTYNAME_R=0
19451 GL_GNULIB_UNISTD_H_GETOPT=0
19455 GL_GNULIB_UNISTD_H_NONBLOCKING=0
19459 GL_GNULIB_UNISTD_H_SIGPIPE=0
19467 GL_GNULIB_UNLINKAT=0
19479 GL_GNULIB_MDA_ACCESS=1
19483 GL_GNULIB_MDA_CHDIR=1
19487 GL_GNULIB_MDA_CLOSE=1
19491 GL_GNULIB_MDA_DUP=1
19495 GL_GNULIB_MDA_DUP2=1
19499 GL_GNULIB_MDA_EXECL=1
19503 GL_GNULIB_MDA_EXECLE=1
19507 GL_GNULIB_MDA_EXECLP=1
19511 GL_GNULIB_MDA_EXECV=1
19515 GL_GNULIB_MDA_EXECVE=1
19519 GL_GNULIB_MDA_EXECVP=1
19523 GL_GNULIB_MDA_EXECVPE=1
19527 GL_GNULIB_MDA_GETCWD=1
19531 GL_GNULIB_MDA_GETPID=1
19535 GL_GNULIB_MDA_ISATTY=1
19539 GL_GNULIB_MDA_LSEEK=1
19543 GL_GNULIB_MDA_READ=1
19547 GL_GNULIB_MDA_RMDIR=1
19551 GL_GNULIB_MDA_SWAB=1
19555 GL_GNULIB_MDA_UNLINK=1
19559 GL_GNULIB_MDA_WRITE=1
19564 # Check whether --enable-valgrind-tests was given.
19565 if test ${enable_valgrind_tests+y}
19567 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
19569 opt_valgrind_tests=${gl_valgrind_tests_default:-yes}
19573 # Run self-tests under valgrind?
19574 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
19575 for ac_prog in valgrind
19577 # Extract the first word of "$ac_prog", so it can be a program name with args.
19578 set dummy $ac_prog; ac_word=$2
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19580 printf %s "checking for $ac_word... " >&6; }
19581 if test ${ac_cv_prog_VALGRIND+y}
19583 printf %s "(cached) " >&6
19585 if test -n "$VALGRIND"; then
19586 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19592 case $as_dir in #(((
19595 *) as_dir=$as_dir/ ;;
19597 for ac_exec_ext in '' $ac_executable_extensions; do
19598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19599 ac_cv_prog_VALGRIND="$ac_prog"
19600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19609 VALGRIND=$ac_cv_prog_VALGRIND
19610 if test -n "$VALGRIND"; then
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
19612 printf "%s\n" "$VALGRIND" >&6; }
19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615 printf "%s\n" "no" >&6; }
19619 test -n "$VALGRIND" && break
19623 # VALGRIND_PROGRAM contains the tool found by AC_CHECK_PROGS. For
19624 # backwards compatibility, the VALGRIND variable is later modified
19625 # to also include all enabled options. However the new variable
19626 # LOG_VALGRIND needs to be able to refer to the valgrind tool
19627 # without options, hence it uses this variable.
19628 VALGRIND_PROGRAM=$VALGRIND
19632 if test -z "$DEFAULT_VALGRINDFLAGS"; then
19633 DEFAULT_VALGRINDFLAGS="-q --error-exitcode=1 --leak-check=full"
19637 if test -n "$VALGRIND"; then
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
19639 printf %s "checking for valgrind options for tests... " >&6; }
19640 if test ${gl_cv_opt_valgrind_tests+y}
19642 printf %s "(cached) " >&6
19644 if $VALGRIND $DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS true
19646 gl_cv_opt_valgrind_tests="$DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS"
19648 gl_cv_opt_valgrind_tests=no
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
19653 printf "%s\n" "$gl_cv_opt_valgrind_tests" >&6; }
19654 if test "$gl_cv_opt_valgrind_tests" != no; then
19655 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
19659 if test -n "$VALGRIND"; then
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether valgrind works on executables produced by the compiler" >&5
19661 printf %s "checking whether valgrind works on executables produced by the compiler... " >&6; }
19662 if test ${gl_cv_prog_valgrind_works+y}
19664 printf %s "(cached) " >&6
19666 if test "$cross_compiling" = yes
19668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19670 as_fn_error $? "cannot run test program while cross compiling
19671 See \`config.log' for more details" "$LINENO" 5; }
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 int main () { return 0; }
19677 if ac_fn_c_try_run "$LINENO"
19679 $VALGRIND $gl_cv_opt_valgrind_tests ./conftest$ac_exeext 2>/dev/null
19680 if test $? = 0; then
19681 gl_cv_prog_valgrind_works=yes
19683 gl_cv_prog_valgrind_works=no
19687 gl_cv_prog_valgrind_works=no
19689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19690 conftest.$ac_objext conftest.beam conftest.$ac_ext
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_valgrind_works" >&5
19696 printf "%s\n" "$gl_cv_prog_valgrind_works" >&6; }
19700 LOG_VALGRIND="\$(VALGRIND_PROGRAM) \$(DEFAULT_VALGRINDFLAGS) \$(VALGRINDFLAGS) \$(AM_VALGRINDFLAGS)"
19703 if test "$gl_cv_prog_valgrind_works" != yes; then
19704 DEFAULT_VALGRINDFLAGS=
19714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
19715 printf %s "checking for C compiler option to allow warnings... " >&6; }
19716 if test ${gl_cv_cc_wallow+y}
19718 printf %s "(cached) " >&6
19721 echo 'int dummy;' > conftest.c
19722 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
19723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19724 (eval $ac_try) 2>&5
19726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19727 test $ac_status = 0; }; } >/dev/null
19728 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
19729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19730 (eval $ac_try) 2>&5
19732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19733 test $ac_status = 0; }; } >/dev/null
19734 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
19735 gl_cv_cc_wallow='-Wno-error'
19737 gl_cv_cc_wallow=none
19742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
19743 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
19744 case "$gl_cv_cc_wallow" in
19745 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
19746 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
19751 if test -n "$CXX" && test "$CXX" != no; then
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5
19753 printf %s "checking for C++ compiler option to allow warnings... " >&6; }
19754 if test ${gl_cv_cxx_wallow+y}
19756 printf %s "(cached) " >&6
19759 echo 'int dummy;' > conftest.cc
19760 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err'
19761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19762 (eval $ac_try) 2>&5
19764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; }; } >/dev/null
19766 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err'
19767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19768 (eval $ac_try) 2>&5
19770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19771 test $ac_status = 0; }; } >/dev/null
19772 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
19773 gl_cv_cxx_wallow='-Wno-error'
19775 gl_cv_cxx_wallow=none
19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5
19781 printf "%s\n" "$gl_cv_cxx_wallow" >&6; }
19782 case "$gl_cv_cxx_wallow" in
19783 none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
19784 *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
19787 GL_CXXFLAG_ALLOW_WARNINGS=''
19793 GL_CFLAG_GNULIB_WARNINGS=''
19794 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
19795 cat > conftest.c <<\EOF
19796 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19802 -Wno-unused-function
19803 -Wno-unused-parameter
19805 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19806 -Wno-float-conversion
19808 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19809 -Wimplicit-fallthrough
19811 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19814 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19815 -Wno-sign-conversion
19818 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
19819 -Wno-unsuffixed-float-constants
19822 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
19823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
19824 (eval $gl_command) 2>&5
19826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19827 test $ac_status = 0; }; then
19828 gl_options=`grep -v '#' conftest.out`
19829 for word in $gl_options; do
19830 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
19833 rm -f conftest.c conftest.out
19839 GL_COND_LIBTOOL_TRUE=
19840 GL_COND_LIBTOOL_FALSE='#'
19842 GL_COND_LIBTOOL_TRUE='#'
19843 GL_COND_LIBTOOL_FALSE=
19846 gl_cond_libtool=true
19860 gl_source_base='lib/gl'
19861 gl_source_base_prefix=
19863 # Autoconf 2.61a.99 and earlier don't support linking a file only
19864 # in VPATH builds. But since GNUmakefile is for maintainer use
19865 # only, it does not matter if we skip the link with older autoconf.
19866 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
19867 # builds, so use a shell variable to bypass this.
19868 GNUmakefile=GNUmakefile
19869 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
19872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19873 printf %s "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19874 if test ${gl_cv_ld_output_def+y}
19876 printf %s "(cached) " >&6
19878 if test "$enable_shared" = no; then
19879 gl_cv_ld_output_def="not needed, shared libraries are disabled"
19881 gl_ldflags_save=$LDFLAGS
19882 LDFLAGS="-Wl,--output-def,conftest.def"
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19894 if ac_fn_c_try_link "$LINENO"
19896 gl_cv_ld_output_def=yes
19898 gl_cv_ld_output_def=no
19900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19901 conftest$ac_exeext conftest.$ac_ext
19903 LDFLAGS="$gl_ldflags_save"
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
19907 printf "%s\n" "$gl_cv_ld_output_def" >&6; }
19908 if test "x$gl_cv_ld_output_def" = "xyes"; then
19909 HAVE_LD_OUTPUT_DEF_TRUE=
19910 HAVE_LD_OUTPUT_DEF_FALSE='#'
19912 HAVE_LD_OUTPUT_DEF_TRUE='#'
19913 HAVE_LD_OUTPUT_DEF_FALSE=
19918 # Check whether --enable-ld-version-script was given.
19919 if test ${enable_ld_version_script+y}
19921 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
19923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
19924 printf %s "checking if LD -Wl,--version-script works... " >&6; }
19925 if test ${gl_cv_sys_ld_version_script+y}
19927 printf %s "(cached) " >&6
19929 gl_cv_sys_ld_version_script=no
19930 save_LDFLAGS=$LDFLAGS
19931 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
19932 echo foo >conftest.map
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19944 if ac_fn_c_try_link "$LINENO"
19948 cat > conftest.map <<EOF
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19968 if ac_fn_c_try_link "$LINENO"
19970 gl_cv_sys_ld_version_script=yes
19972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19973 conftest$ac_exeext conftest.$ac_ext
19975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19976 conftest$ac_exeext conftest.$ac_ext
19978 LDFLAGS=$save_LDFLAGS
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
19981 printf "%s\n" "$gl_cv_sys_ld_version_script" >&6; }
19982 have_ld_version_script=$gl_cv_sys_ld_version_script
19985 if test "$have_ld_version_script" = yes; then
19986 HAVE_LD_VERSION_SCRIPT_TRUE=
19987 HAVE_LD_VERSION_SCRIPT_FALSE='#'
19989 HAVE_LD_VERSION_SCRIPT_TRUE='#'
19990 HAVE_LD_VERSION_SCRIPT_FALSE=
19998 if test -n "$GCC"; then
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
20000 printf %s "checking whether the -Werror option is usable... " >&6; }
20001 if test ${gl_cv_cc_vis_werror+y}
20003 printf %s "(cached) " >&6
20005 gl_save_CFLAGS="$CFLAGS"
20006 CFLAGS="$CFLAGS -Werror"
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h. */
20018 if ac_fn_c_try_compile "$LINENO"
20020 gl_cv_cc_vis_werror=yes
20022 gl_cv_cc_vis_werror=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20025 CFLAGS="$gl_save_CFLAGS"
20028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
20029 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
20031 printf %s "checking for simple visibility declarations... " >&6; }
20032 if test ${gl_cv_cc_visibility+y}
20034 printf %s "(cached) " >&6
20036 gl_save_CFLAGS="$CFLAGS"
20037 CFLAGS="$CFLAGS -fvisibility=hidden"
20038 if test $gl_cv_cc_vis_werror = yes; then
20039 CFLAGS="$CFLAGS -Werror"
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
20044 extern __attribute__((__visibility__("default"))) int exportedvar;
20045 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
20046 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
20047 void dummyfunc (void);
20050 int hiddenfunc (void) { return 51; }
20051 int exportedfunc (void) { return 1225736919; }
20052 void dummyfunc (void) {}
20062 if ac_fn_c_try_compile "$LINENO"
20064 gl_cv_cc_visibility=yes
20066 gl_cv_cc_visibility=no
20068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20069 CFLAGS="$gl_save_CFLAGS"
20072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
20073 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
20074 if test $gl_cv_cc_visibility = yes; then
20075 CFLAG_VISIBILITY="-fvisibility=hidden"
20082 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
20087 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
20088 if test ${gl_cv_c___inline+y}
20090 printf %s "(cached) " >&6
20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h. */
20095 static __inline foo_t foo (void) { return 0; }
20104 if ac_fn_c_try_compile "$LINENO"
20106 gl_cv_c___inline=yes
20108 gl_cv_c___inline=no
20110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
20113 printf "%s\n" "$gl_cv_c___inline" >&6; }
20114 if test $gl_cv_c___inline = yes; then
20116 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
20125 case "$GL_GENERATE_LIMITS_H" in
20126 false) LIMITS_H='' ;;
20128 if test -z "$LIMITS_H"; then
20129 LIMITS_H="${gl_source_base_prefix}limits.h"
20132 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
20136 if $GL_GENERATE_LIMITS_H; then
20137 GL_GENERATE_LIMITS_H_TRUE=
20138 GL_GENERATE_LIMITS_H_FALSE='#'
20140 GL_GENERATE_LIMITS_H_TRUE='#'
20141 GL_GENERATE_LIMITS_H_FALSE=
20144 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20145 GL_GENERATE_LIMITS_H_TRUE='#'
20146 GL_GENERATE_LIMITS_H_FALSE='#'
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20163 printf %s "checking for ssize_t... " >&6; }
20164 if test ${gt_cv_ssize_t+y}
20166 printf %s "(cached) " >&6
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170 #include <sys/types.h>
20174 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20180 if ac_fn_c_try_compile "$LINENO"
20186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20189 printf "%s\n" "$gt_cv_ssize_t" >&6; }
20190 if test $gt_cv_ssize_t = no; then
20192 printf "%s\n" "#define ssize_t int" >>confdefs.h
20200 if test "$ac_cv_header_stdbool_h" = yes; then
20203 if test -z "$GCC"; then
20204 GL_GENERATE_STDBOOL_H=true
20206 GL_GENERATE_STDBOOL_H=false
20210 GL_GENERATE_STDBOOL_H=false
20214 GL_GENERATE_STDBOOL_H=true
20217 if test "$ac_cv_type__Bool" = yes; then
20228 case "$GL_GENERATE_STDBOOL_H" in
20229 false) STDBOOL_H='' ;;
20231 if test -z "$STDBOOL_H"; then
20232 STDBOOL_H="${gl_source_base_prefix}stdbool.h"
20235 *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
20239 if $GL_GENERATE_STDBOOL_H; then
20240 GL_GENERATE_STDBOOL_H_TRUE=
20241 GL_GENERATE_STDBOOL_H_FALSE='#'
20243 GL_GENERATE_STDBOOL_H_TRUE='#'
20244 GL_GENERATE_STDBOOL_H_FALSE=
20247 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20248 GL_GENERATE_STDBOOL_H_TRUE='#'
20249 GL_GENERATE_STDBOOL_H_FALSE='#'
20267 case "$GL_GENERATE_STDDEF_H" in
20268 false) STDDEF_H='' ;;
20270 if test -z "$STDDEF_H"; then
20271 STDDEF_H="${gl_source_base_prefix}stddef.h"
20274 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
20278 if $GL_GENERATE_STDDEF_H; then
20279 GL_GENERATE_STDDEF_H_TRUE=
20280 GL_GENERATE_STDDEF_H_FALSE='#'
20282 GL_GENERATE_STDDEF_H_TRUE='#'
20283 GL_GENERATE_STDDEF_H_FALSE=
20286 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20287 GL_GENERATE_STDDEF_H_TRUE='#'
20288 GL_GENERATE_STDDEF_H_FALSE='#'
20301 case "$GL_GENERATE_STDINT_H" in
20302 false) STDINT_H='' ;;
20304 if test -z "$STDINT_H"; then
20305 STDINT_H="${gl_source_base_prefix}stdint.h"
20308 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
20312 if $GL_GENERATE_STDINT_H; then
20313 GL_GENERATE_STDINT_H_TRUE=
20314 GL_GENERATE_STDINT_H_FALSE='#'
20316 GL_GENERATE_STDINT_H_TRUE='#'
20317 GL_GENERATE_STDINT_H_FALSE=
20320 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20321 GL_GENERATE_STDINT_H_TRUE='#'
20322 GL_GENERATE_STDINT_H_FALSE='#'
20333 case "$GL_GENERATE_LIMITS_H" in
20334 false) LIMITS_H='' ;;
20336 if test -z "$LIMITS_H"; then
20337 LIMITS_H="${gl_source_base_prefix}limits.h"
20340 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
20344 if $GL_GENERATE_LIMITS_H; then
20345 GL_GENERATE_LIMITS_H_TRUE=
20346 GL_GENERATE_LIMITS_H_FALSE='#'
20348 GL_GENERATE_LIMITS_H_TRUE='#'
20349 GL_GENERATE_LIMITS_H_FALSE=
20352 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20353 GL_GENERATE_LIMITS_H_TRUE='#'
20354 GL_GENERATE_LIMITS_H_FALSE='#'
20385 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
20386 if test "x$ac_cv_func_strverscmp" = xyes
20388 printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h
20392 if test $ac_cv_func_strverscmp = no; then
20397 if test $HAVE_STRVERSCMP = 0; then
20398 GL_COND_OBJ_STRVERSCMP_TRUE=
20399 GL_COND_OBJ_STRVERSCMP_FALSE='#'
20401 GL_COND_OBJ_STRVERSCMP_TRUE='#'
20402 GL_COND_OBJ_STRVERSCMP_FALSE=
20405 if test -z "${GL_COND_OBJ_STRVERSCMP_TRUE}" && test -z "${GL_COND_OBJ_STRVERSCMP_FALSE}"; then
20406 GL_COND_OBJ_STRVERSCMP_TRUE='#'
20407 GL_COND_OBJ_STRVERSCMP_FALSE='#'
20410 if test -z "$GL_COND_OBJ_STRVERSCMP_TRUE"; then :
20431 GL_GNULIB_STRVERSCMP=1
20437 printf "%s\n" "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
20456 # End of code from modules
20482 gl_source_base='lib/gl/tests'
20483 gl_source_base_prefix=
20484 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
20486 gl_module_indicator_condition=$gltests_WITNESS
20500 LIBTESTS_LIBDEPS="$gltests_libdeps"
20503 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20504 if test "x$ac_cv_type_size_t" = xyes
20509 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
20513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20514 # for constant arguments. Useless!
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20516 printf %s "checking for working alloca.h... " >&6; }
20517 if test ${ac_cv_working_alloca_h+y}
20519 printf %s "(cached) " >&6
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #include <alloca.h>
20527 char *p = (char *) alloca (2 * sizeof (int));
20533 if ac_fn_c_try_link "$LINENO"
20535 ac_cv_working_alloca_h=yes
20537 ac_cv_working_alloca_h=no
20539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20540 conftest$ac_exeext conftest.$ac_ext
20542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20543 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
20544 if test $ac_cv_working_alloca_h = yes; then
20546 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20551 printf %s "checking for alloca... " >&6; }
20552 if test ${ac_cv_func_alloca_works+y}
20554 printf %s "(cached) " >&6
20556 if test $ac_cv_working_alloca_h = yes; then
20557 ac_cv_func_alloca_works=yes
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20561 #include <stdlib.h>
20562 #include <stddef.h>
20565 # define alloca __builtin_alloca
20566 # elif defined _MSC_VER
20567 # include <malloc.h>
20568 # define alloca _alloca
20570 # ifdef __cplusplus
20573 void *alloca (size_t);
20580 char *p = (char *) alloca (1);
20586 if ac_fn_c_try_link "$LINENO"
20588 ac_cv_func_alloca_works=yes
20590 ac_cv_func_alloca_works=no
20592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20593 conftest$ac_exeext conftest.$ac_ext
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20596 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
20599 if test $ac_cv_func_alloca_works = yes; then
20601 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
20604 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20605 # that cause trouble. Some versions do not even contain alloca or
20606 # contain a buggy version. If you still want to use their alloca,
20607 # use ar to extract alloca.o from them instead of compiling alloca.c.
20613 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20615 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
20618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20619 printf %s "checking stack direction for C alloca... " >&6; }
20620 if test ${ac_cv_c_stack_direction+y}
20622 printf %s "(cached) " >&6
20624 if test "$cross_compiling" = yes
20626 ac_cv_c_stack_direction=0
20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20630 $ac_includes_default
20632 find_stack_direction (int *addr, int depth)
20634 int dir, dummy = 0;
20637 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20638 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20639 return dir + dummy;
20643 main (int argc, char **argv)
20645 return find_stack_direction (0, argc + !argv + 20) < 0;
20648 if ac_fn_c_try_run "$LINENO"
20650 ac_cv_c_stack_direction=1
20652 ac_cv_c_stack_direction=-1
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655 conftest.$ac_objext conftest.beam conftest.$ac_ext
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20660 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
20661 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
20667 for ac_item in $ac_func_c_list
20669 if test $ac_func; then
20670 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
20671 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
20672 echo "#define $ac_item 1" >> confdefs.h
20681 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20682 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20684 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20687 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20694 GL_SGL_GNULIB_ACCESS=0
20698 GL_SGL_GNULIB_CHDIR=0
20702 GL_SGL_GNULIB_CHOWN=0
20706 GL_SGL_GNULIB_CLOSE=0
20710 GL_SGL_GNULIB_COPY_FILE_RANGE=0
20714 GL_SGL_GNULIB_DUP=0
20718 GL_SGL_GNULIB_DUP2=0
20722 GL_SGL_GNULIB_DUP3=0
20726 GL_SGL_GNULIB_ENVIRON=0
20730 GL_SGL_GNULIB_EUIDACCESS=0
20734 GL_SGL_GNULIB_EXECL=0
20738 GL_SGL_GNULIB_EXECLE=0
20742 GL_SGL_GNULIB_EXECLP=0
20746 GL_SGL_GNULIB_EXECV=0
20750 GL_SGL_GNULIB_EXECVE=0
20754 GL_SGL_GNULIB_EXECVP=0
20758 GL_SGL_GNULIB_EXECVPE=0
20762 GL_SGL_GNULIB_FACCESSAT=0
20766 GL_SGL_GNULIB_FCHDIR=0
20770 GL_SGL_GNULIB_FCHOWNAT=0
20774 GL_SGL_GNULIB_FDATASYNC=0
20778 GL_SGL_GNULIB_FSYNC=0
20782 GL_SGL_GNULIB_FTRUNCATE=0
20786 GL_SGL_GNULIB_GETCWD=0
20790 GL_SGL_GNULIB_GETDOMAINNAME=0
20794 GL_SGL_GNULIB_GETDTABLESIZE=0
20798 GL_SGL_GNULIB_GETENTROPY=0
20802 GL_SGL_GNULIB_GETGROUPS=0
20806 GL_SGL_GNULIB_GETHOSTNAME=0
20810 GL_SGL_GNULIB_GETLOGIN=0
20814 GL_SGL_GNULIB_GETLOGIN_R=0
20818 GL_SGL_GNULIB_GETOPT_POSIX=0
20822 GL_SGL_GNULIB_GETPAGESIZE=0
20826 GL_SGL_GNULIB_GETPASS=0
20830 GL_SGL_GNULIB_GETPASS_GNU=0
20834 GL_SGL_GNULIB_GETUSERSHELL=0
20838 GL_SGL_GNULIB_GROUP_MEMBER=0
20842 GL_SGL_GNULIB_ISATTY=0
20846 GL_SGL_GNULIB_LCHOWN=0
20850 GL_SGL_GNULIB_LINK=0
20854 GL_SGL_GNULIB_LINKAT=0
20858 GL_SGL_GNULIB_LSEEK=0
20862 GL_SGL_GNULIB_PIPE=0
20866 GL_SGL_GNULIB_PIPE2=0
20870 GL_SGL_GNULIB_PREAD=0
20874 GL_SGL_GNULIB_PWRITE=0
20878 GL_SGL_GNULIB_READ=0
20882 GL_SGL_GNULIB_READLINK=0
20886 GL_SGL_GNULIB_READLINKAT=0
20890 GL_SGL_GNULIB_RMDIR=0
20894 GL_SGL_GNULIB_SETHOSTNAME=0
20898 GL_SGL_GNULIB_SLEEP=0
20902 GL_SGL_GNULIB_SYMLINK=0
20906 GL_SGL_GNULIB_SYMLINKAT=0
20910 GL_SGL_GNULIB_TRUNCATE=0
20914 GL_SGL_GNULIB_TTYNAME_R=0
20918 GL_SGL_GNULIB_UNISTD_H_GETOPT=0
20922 GL_SGL_GNULIB_UNISTD_H_NONBLOCKING=0
20926 GL_SGL_GNULIB_UNISTD_H_SIGPIPE=0
20930 GL_SGL_GNULIB_UNLINK=0
20934 GL_SGL_GNULIB_UNLINKAT=0
20938 GL_SGL_GNULIB_USLEEP=0
20942 GL_SGL_GNULIB_WRITE=0
20946 GL_SGL_GNULIB_MDA_ACCESS=1
20950 GL_SGL_GNULIB_MDA_CHDIR=1
20954 GL_SGL_GNULIB_MDA_CLOSE=1
20958 GL_SGL_GNULIB_MDA_DUP=1
20962 GL_SGL_GNULIB_MDA_DUP2=1
20966 GL_SGL_GNULIB_MDA_EXECL=1
20970 GL_SGL_GNULIB_MDA_EXECLE=1
20974 GL_SGL_GNULIB_MDA_EXECLP=1
20978 GL_SGL_GNULIB_MDA_EXECV=1
20982 GL_SGL_GNULIB_MDA_EXECVE=1
20986 GL_SGL_GNULIB_MDA_EXECVP=1
20990 GL_SGL_GNULIB_MDA_EXECVPE=1
20994 GL_SGL_GNULIB_MDA_GETCWD=1
20998 GL_SGL_GNULIB_MDA_GETPID=1
21002 GL_SGL_GNULIB_MDA_ISATTY=1
21006 GL_SGL_GNULIB_MDA_LSEEK=1
21010 GL_SGL_GNULIB_MDA_READ=1
21014 GL_SGL_GNULIB_MDA_RMDIR=1
21018 GL_SGL_GNULIB_MDA_SWAB=1
21022 GL_SGL_GNULIB_MDA_UNLINK=1
21026 GL_SGL_GNULIB_MDA_WRITE=1
21031 #if defined _WIN32 && !defined __CYGWIN__
21032 #define access _access
21033 #define chdir _chdir
21034 #define chmod _chmod
21035 #define close _close
21036 #define creat _creat
21040 #define execl _execl
21041 #define execle _execle
21042 #define execlp _execlp
21043 #define execv _execv
21044 #define execve _execve
21045 #define execvp _execvp
21046 #define execvpe _execvpe
21047 #define fcloseall _fcloseall
21049 #define fdopen _fdopen
21050 #define fileno _fileno
21052 #define getcwd _getcwd
21053 #define getpid _getpid
21055 #define isatty _isatty
21059 #define lfind _lfind
21060 #define lsearch _lsearch
21061 #define lseek _lseek
21062 #define memccpy _memccpy
21063 #define mkdir _mkdir
21064 #define mktemp _mktemp
21066 #define putenv _putenv
21069 #define rmdir _rmdir
21070 #define strdup _strdup
21072 #define tempnam _tempnam
21073 #define tzset _tzset
21074 #define umask _umask
21075 #define unlink _unlink
21076 #define utime _utime
21077 #define wcsdup _wcsdup
21078 #define write _write
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
21088 printf %s "checking for complete errno.h... " >&6; }
21089 if test ${gl_cv_header_errno_h_complete+y}
21091 printf %s "(cached) " >&6
21094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h. */
21098 #if !defined ETXTBSY
21101 #if !defined ENOMSG
21107 #if !defined ENOLINK
21110 #if !defined EPROTO
21113 #if !defined EMULTIHOP
21116 #if !defined EBADMSG
21119 #if !defined EOVERFLOW
21122 #if !defined ENOTSUP
21125 #if !defined ENETRESET
21128 #if !defined ECONNABORTED
21131 #if !defined ESTALE
21134 #if !defined EDQUOT
21137 #if !defined ECANCELED
21140 #if !defined EOWNERDEAD
21143 #if !defined ENOTRECOVERABLE
21146 #if !defined EILSEQ
21151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21152 $EGREP "booboo" >/dev/null 2>&1
21154 gl_cv_header_errno_h_complete=no
21156 gl_cv_header_errno_h_complete=yes
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
21163 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
21164 if test $gl_cv_header_errno_h_complete = yes; then
21165 GL_GENERATE_ERRNO_H=false
21175 if test $gl_cv_have_include_next = yes; then
21176 gl_cv_next_errno_h='<'errno.h'>'
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
21179 printf %s "checking absolute name of <errno.h>... " >&6; }
21180 if test ${gl_cv_next_errno_h+y}
21182 printf %s "(cached) " >&6
21187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21192 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21193 *) gl_absname_cpp="$ac_cpp" ;;
21198 gl_dirsep_regex='[/\\]'
21201 gl_dirsep_regex='\/'
21204 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21205 gl_header_literal_regex=`echo 'errno.h' \
21206 | sed -e "$gl_make_literal_regex_sed"`
21207 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21208 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21214 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21215 sed -n "$gl_absolute_header_sed"`
21217 gl_header=$gl_cv_absolute_errno_h
21218 gl_cv_next_errno_h='"'$gl_header'"'
21222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
21223 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
21225 NEXT_ERRNO_H=$gl_cv_next_errno_h
21227 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21229 gl_next_as_first_directive='<'errno.h'>'
21231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21232 gl_next_as_first_directive=$gl_cv_next_errno_h
21234 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
21239 GL_GENERATE_ERRNO_H=true
21242 if $GL_GENERATE_ERRNO_H; then
21243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
21244 printf %s "checking for EMULTIHOP value... " >&6; }
21245 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
21247 printf %s "(cached) " >&6
21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h. */
21259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21260 $EGREP "yes" >/dev/null 2>&1
21262 gl_cv_header_errno_h_EMULTIHOP=yes
21264 gl_cv_header_errno_h_EMULTIHOP=no
21268 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h. */
21272 #define _XOPEN_SOURCE_EXTENDED 1
21279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21280 $EGREP "yes" >/dev/null 2>&1
21282 gl_cv_header_errno_h_EMULTIHOP=hidden
21286 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
21287 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
21288 #define _XOPEN_SOURCE_EXTENDED 1
21290 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21292 #include <stdlib.h>
21302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21303 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21304 case $gl_cv_header_errno_h_EMULTIHOP in
21306 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21309 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21317 if $GL_GENERATE_ERRNO_H; then
21318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
21319 printf %s "checking for ENOLINK value... " >&6; }
21320 if test ${gl_cv_header_errno_h_ENOLINK+y}
21322 printf %s "(cached) " >&6
21325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h. */
21334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21335 $EGREP "yes" >/dev/null 2>&1
21337 gl_cv_header_errno_h_ENOLINK=yes
21339 gl_cv_header_errno_h_ENOLINK=no
21343 if test $gl_cv_header_errno_h_ENOLINK = no; then
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21347 #define _XOPEN_SOURCE_EXTENDED 1
21354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21355 $EGREP "yes" >/dev/null 2>&1
21357 gl_cv_header_errno_h_ENOLINK=hidden
21361 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21362 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
21363 #define _XOPEN_SOURCE_EXTENDED 1
21365 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21367 #include <stdlib.h>
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
21378 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
21379 case $gl_cv_header_errno_h_ENOLINK in
21381 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21384 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21392 if $GL_GENERATE_ERRNO_H; then
21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
21394 printf %s "checking for EOVERFLOW value... " >&6; }
21395 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
21397 printf %s "(cached) " >&6
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21410 $EGREP "yes" >/dev/null 2>&1
21412 gl_cv_header_errno_h_EOVERFLOW=yes
21414 gl_cv_header_errno_h_EOVERFLOW=no
21418 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21422 #define _XOPEN_SOURCE_EXTENDED 1
21429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21430 $EGREP "yes" >/dev/null 2>&1
21432 gl_cv_header_errno_h_EOVERFLOW=hidden
21436 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21437 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
21438 #define _XOPEN_SOURCE_EXTENDED 1
21440 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21442 #include <stdlib.h>
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21453 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21454 case $gl_cv_header_errno_h_EOVERFLOW in
21456 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21459 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21471 GL_SGL_GNULIB_EXPLICIT_BZERO=0
21475 GL_SGL_GNULIB_FFSL=0
21479 GL_SGL_GNULIB_FFSLL=0
21483 GL_SGL_GNULIB_MEMCHR=0
21487 GL_SGL_GNULIB_MEMMEM=0
21491 GL_SGL_GNULIB_MEMPCPY=0
21495 GL_SGL_GNULIB_MEMRCHR=0
21499 GL_SGL_GNULIB_RAWMEMCHR=0
21503 GL_SGL_GNULIB_STPCPY=0
21507 GL_SGL_GNULIB_STPNCPY=0
21511 GL_SGL_GNULIB_STRCHRNUL=0
21515 GL_SGL_GNULIB_STRDUP=0
21519 GL_SGL_GNULIB_STRNCAT=0
21523 GL_SGL_GNULIB_STRNDUP=0
21527 GL_SGL_GNULIB_STRNLEN=0
21531 GL_SGL_GNULIB_STRPBRK=0
21535 GL_SGL_GNULIB_STRSEP=0
21539 GL_SGL_GNULIB_STRSTR=0
21543 GL_SGL_GNULIB_STRCASESTR=0
21547 GL_SGL_GNULIB_STRTOK_R=0
21551 GL_SGL_GNULIB_MBSLEN=0
21555 GL_SGL_GNULIB_MBSNLEN=0
21559 GL_SGL_GNULIB_MBSCHR=0
21563 GL_SGL_GNULIB_MBSRCHR=0
21567 GL_SGL_GNULIB_MBSSTR=0
21571 GL_SGL_GNULIB_MBSCASECMP=0
21575 GL_SGL_GNULIB_MBSNCASECMP=0
21579 GL_SGL_GNULIB_MBSPCASECMP=0
21583 GL_SGL_GNULIB_MBSCASESTR=0
21587 GL_SGL_GNULIB_MBSCSPN=0
21591 GL_SGL_GNULIB_MBSPBRK=0
21595 GL_SGL_GNULIB_MBSSPN=0
21599 GL_SGL_GNULIB_MBSSEP=0
21603 GL_SGL_GNULIB_MBSTOK_R=0
21607 GL_SGL_GNULIB_STRERROR=0
21611 GL_SGL_GNULIB_STRERROR_R=0
21615 GL_SGL_GNULIB_STRERRORNAME_NP=0
21619 GL_SGL_GNULIB_SIGABBREV_NP=0
21623 GL_SGL_GNULIB_SIGDESCR_NP=0
21627 GL_SGL_GNULIB_STRSIGNAL=0
21631 GL_SGL_GNULIB_STRVERSCMP=0
21635 GL_SGL_GNULIB_MDA_MEMCCPY=1
21639 GL_SGL_GNULIB_MDA_STRDUP=1
21645 GL_SGL_GNULIB__EXIT=0
21649 GL_SGL_GNULIB_ALIGNED_ALLOC=0
21653 GL_SGL_GNULIB_ATOLL=0
21657 GL_SGL_GNULIB_CALLOC_GNU=0
21661 GL_SGL_GNULIB_CALLOC_POSIX=0
21665 GL_SGL_GNULIB_CANONICALIZE_FILE_NAME=0
21669 GL_SGL_GNULIB_FREE_POSIX=0
21673 GL_SGL_GNULIB_GETLOADAVG=0
21677 GL_SGL_GNULIB_GETSUBOPT=0
21681 GL_SGL_GNULIB_GRANTPT=0
21685 GL_SGL_GNULIB_MALLOC_GNU=0
21689 GL_SGL_GNULIB_MALLOC_POSIX=0
21693 GL_SGL_GNULIB_MBTOWC=0
21697 GL_SGL_GNULIB_MKDTEMP=0
21701 GL_SGL_GNULIB_MKOSTEMP=0
21705 GL_SGL_GNULIB_MKOSTEMPS=0
21709 GL_SGL_GNULIB_MKSTEMP=0
21713 GL_SGL_GNULIB_MKSTEMPS=0
21717 GL_SGL_GNULIB_POSIX_MEMALIGN=0
21721 GL_SGL_GNULIB_POSIX_OPENPT=0
21725 GL_SGL_GNULIB_PTSNAME=0
21729 GL_SGL_GNULIB_PTSNAME_R=0
21733 GL_SGL_GNULIB_PUTENV=0
21737 GL_SGL_GNULIB_QSORT_R=0
21741 GL_SGL_GNULIB_RANDOM=0
21745 GL_SGL_GNULIB_RANDOM_R=0
21749 GL_SGL_GNULIB_REALLOCARRAY=0
21753 GL_SGL_GNULIB_REALLOC_GNU=0
21757 GL_SGL_GNULIB_REALLOC_POSIX=0
21761 GL_SGL_GNULIB_REALPATH=0
21765 GL_SGL_GNULIB_RPMATCH=0
21769 GL_SGL_GNULIB_SECURE_GETENV=0
21773 GL_SGL_GNULIB_SETENV=0
21777 GL_SGL_GNULIB_STRTOD=0
21781 GL_SGL_GNULIB_STRTOL=0
21785 GL_SGL_GNULIB_STRTOLD=0
21789 GL_SGL_GNULIB_STRTOLL=0
21793 GL_SGL_GNULIB_STRTOUL=0
21797 GL_SGL_GNULIB_STRTOULL=0
21801 GL_SGL_GNULIB_SYSTEM_POSIX=0
21805 GL_SGL_GNULIB_UNLOCKPT=0
21809 GL_SGL_GNULIB_UNSETENV=0
21813 GL_SGL_GNULIB_WCTOMB=0
21817 GL_SGL_GNULIB_MDA_ECVT=1
21821 GL_SGL_GNULIB_MDA_FCVT=1
21825 GL_SGL_GNULIB_MDA_GCVT=1
21829 GL_SGL_GNULIB_MDA_MKTEMP=1
21833 GL_SGL_GNULIB_MDA_PUTENV=1
21848 GL_SGL_GNULIB_CREAT=0
21852 GL_SGL_GNULIB_FCNTL=0
21856 GL_SGL_GNULIB_NONBLOCKING=0
21860 GL_SGL_GNULIB_OPEN=0
21864 GL_SGL_GNULIB_OPENAT=0
21868 GL_SGL_GNULIB_MDA_CREAT=1
21872 GL_SGL_GNULIB_MDA_OPEN=1
21882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
21883 printf %s "checking for working fcntl.h... " >&6; }
21884 if test ${gl_cv_header_working_fcntl_h+y}
21886 printf %s "(cached) " >&6
21888 if test "$cross_compiling" = yes
21891 # Guess 'no' on native Windows.
21892 mingw*) gl_cv_header_working_fcntl_h='no' ;;
21893 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
21897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h. */
21899 #include <sys/types.h>
21900 #include <sys/stat.h>
21902 # include <unistd.h>
21903 #else /* on Windows with MSVC */
21905 # include <stdlib.h>
21906 # defined sleep(n) _sleep ((n) * 1000)
21914 #define O_NOATIME 0
21917 #define O_NOFOLLOW 0
21919 static int const constants[] =
21921 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
21922 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
21929 int result = !constants;
21932 static char const sym[] = "conftest.sym";
21933 if (symlink ("/dev/null", sym) != 0)
21937 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
21944 if (unlink (sym) != 0 || symlink (".", sym) != 0)
21948 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
21959 static char const file[] = "confdefs.h";
21960 int fd = open (file, O_RDONLY | O_NOATIME);
21966 if (fstat (fd, &st0) != 0)
21972 if (read (fd, &c, 1) != 1)
21976 if (close (fd) != 0)
21981 if (stat (file, &st1) != 0)
21984 if (st0.st_atime != st1.st_atime)
21996 if ac_fn_c_try_run "$LINENO"
21998 gl_cv_header_working_fcntl_h=yes
22001 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
22002 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
22003 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
22004 *) gl_cv_header_working_fcntl_h='no';;
22007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22008 conftest.$ac_objext conftest.beam conftest.$ac_ext
22013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
22014 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
22016 case $gl_cv_header_working_fcntl_h in #(
22017 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
22021 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
22024 case $gl_cv_header_working_fcntl_h in #(
22025 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
22029 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
22043 if test $gl_cv_have_include_next = yes; then
22044 gl_cv_next_fcntl_h='<'fcntl.h'>'
22046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22047 printf %s "checking absolute name of <fcntl.h>... " >&6; }
22048 if test ${gl_cv_next_fcntl_h+y}
22050 printf %s "(cached) " >&6
22055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22061 *) gl_absname_cpp="$ac_cpp" ;;
22066 gl_dirsep_regex='[/\\]'
22069 gl_dirsep_regex='\/'
22072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22073 gl_header_literal_regex=`echo 'fcntl.h' \
22074 | sed -e "$gl_make_literal_regex_sed"`
22075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22082 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22083 sed -n "$gl_absolute_header_sed"`
22085 gl_header=$gl_cv_absolute_fcntl_h
22086 gl_cv_next_fcntl_h='"'$gl_header'"'
22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22091 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
22093 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22095 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22097 gl_next_as_first_directive='<'fcntl.h'>'
22099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22100 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22102 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22117 HAVE_DECL_FCLOSEALL=1;
22118 HAVE_DECL_FPURGE=1;
22119 HAVE_DECL_FSEEKO=1;
22120 HAVE_DECL_FTELLO=1;
22121 HAVE_DECL_GETDELIM=1;
22122 HAVE_DECL_GETLINE=1;
22123 HAVE_DECL_OBSTACK_PRINTF=1;
22124 HAVE_DECL_SNPRINTF=1;
22125 HAVE_DECL_VSNPRINTF=1;
22139 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
22147 REPLACE_GETDELIM=0;
22149 REPLACE_OBSTACK_PRINTF=0;
22155 REPLACE_RENAMEAT=0;
22156 REPLACE_SNPRINTF=0;
22158 REPLACE_STDIO_READ_FUNCS=0;
22159 REPLACE_STDIO_WRITE_FUNCS=0;
22161 REPLACE_VASPRINTF=0;
22162 REPLACE_VDPRINTF=0;
22163 REPLACE_VFPRINTF=0;
22165 REPLACE_VSNPRINTF=0;
22166 REPLACE_VSPRINTF=0;
22170 GL_SGL_GNULIB_DPRINTF=0
22174 GL_SGL_GNULIB_FCLOSE=0
22178 GL_SGL_GNULIB_FDOPEN=0
22182 GL_SGL_GNULIB_FFLUSH=0
22186 GL_SGL_GNULIB_FGETC=0
22190 GL_SGL_GNULIB_FGETS=0
22194 GL_SGL_GNULIB_FOPEN=0
22198 GL_SGL_GNULIB_FOPEN_GNU=0
22202 GL_SGL_GNULIB_FPRINTF=0
22206 GL_SGL_GNULIB_FPRINTF_POSIX=0
22210 GL_SGL_GNULIB_FPURGE=0
22214 GL_SGL_GNULIB_FPUTC=0
22218 GL_SGL_GNULIB_FPUTS=0
22222 GL_SGL_GNULIB_FREAD=0
22226 GL_SGL_GNULIB_FREOPEN=0
22230 GL_SGL_GNULIB_FSCANF=0
22234 GL_SGL_GNULIB_FSEEK=0
22238 GL_SGL_GNULIB_FSEEKO=0
22242 GL_SGL_GNULIB_FTELL=0
22246 GL_SGL_GNULIB_FTELLO=0
22250 GL_SGL_GNULIB_FWRITE=0
22254 GL_SGL_GNULIB_GETC=0
22258 GL_SGL_GNULIB_GETCHAR=0
22262 GL_SGL_GNULIB_GETDELIM=0
22266 GL_SGL_GNULIB_GETLINE=0
22270 GL_SGL_GNULIB_OBSTACK_PRINTF=0
22274 GL_SGL_GNULIB_OBSTACK_PRINTF_POSIX=0
22278 GL_SGL_GNULIB_PCLOSE=0
22282 GL_SGL_GNULIB_PERROR=0
22286 GL_SGL_GNULIB_POPEN=0
22290 GL_SGL_GNULIB_PRINTF=0
22294 GL_SGL_GNULIB_PRINTF_POSIX=0
22298 GL_SGL_GNULIB_PUTC=0
22302 GL_SGL_GNULIB_PUTCHAR=0
22306 GL_SGL_GNULIB_PUTS=0
22310 GL_SGL_GNULIB_REMOVE=0
22314 GL_SGL_GNULIB_RENAME=0
22318 GL_SGL_GNULIB_RENAMEAT=0
22322 GL_SGL_GNULIB_SCANF=0
22326 GL_SGL_GNULIB_SNPRINTF=0
22330 GL_SGL_GNULIB_SPRINTF_POSIX=0
22334 GL_SGL_GNULIB_STDIO_H_NONBLOCKING=0
22338 GL_SGL_GNULIB_STDIO_H_SIGPIPE=0
22342 GL_SGL_GNULIB_TMPFILE=0
22346 GL_SGL_GNULIB_VASPRINTF=0
22350 GL_SGL_GNULIB_VFSCANF=0
22354 GL_SGL_GNULIB_VSCANF=0
22358 GL_SGL_GNULIB_VDPRINTF=0
22362 GL_SGL_GNULIB_VFPRINTF=0
22366 GL_SGL_GNULIB_VFPRINTF_POSIX=0
22370 GL_SGL_GNULIB_VPRINTF=0
22374 GL_SGL_GNULIB_VPRINTF_POSIX=0
22378 GL_SGL_GNULIB_VSNPRINTF=0
22382 GL_SGL_GNULIB_VSPRINTF_POSIX=0
22386 GL_SGL_GNULIB_MDA_FCLOSEALL=1
22390 GL_SGL_GNULIB_MDA_FDOPEN=1
22394 GL_SGL_GNULIB_MDA_FILENO=1
22398 GL_SGL_GNULIB_MDA_GETW=1
22402 GL_SGL_GNULIB_MDA_PUTW=1
22406 GL_SGL_GNULIB_MDA_TEMPNAM=1
22424 REPLACE_FCHMODAT=0;
22427 REPLACE_FUTIMENS=0;
22431 REPLACE_MKFIFOAT=0;
22435 REPLACE_UTIMENSAT=0;
22437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22438 printf %s "checking whether stat file-mode macros are broken... " >&6; }
22439 if test ${ac_cv_header_stat_broken+y}
22441 printf %s "(cached) " >&6
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22465 if ac_fn_c_try_compile "$LINENO"
22467 ac_cv_header_stat_broken=no
22469 ac_cv_header_stat_broken=yes
22471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22474 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
22475 if test $ac_cv_header_stat_broken = yes; then
22477 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22495 if test $gl_cv_have_include_next = yes; then
22496 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22499 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
22500 if test ${gl_cv_next_sys_stat_h+y}
22502 printf %s "(cached) " >&6
22505 if test $ac_cv_header_sys_stat_h = yes; then
22510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22511 /* end confdefs.h. */
22512 #include <sys/stat.h>
22515 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22516 *) gl_absname_cpp="$ac_cpp" ;;
22521 gl_dirsep_regex='[/\\]'
22524 gl_dirsep_regex='\/'
22527 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22528 gl_header_literal_regex=`echo 'sys/stat.h' \
22529 | sed -e "$gl_make_literal_regex_sed"`
22530 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22531 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22537 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22538 sed -n "$gl_absolute_header_sed"`
22540 gl_header=$gl_cv_absolute_sys_stat_h
22541 gl_cv_next_sys_stat_h='"'$gl_header'"'
22543 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22549 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
22551 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22553 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22555 gl_next_as_first_directive='<'sys/stat.h'>'
22557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22558 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22560 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22569 WINDOWS_STAT_TIMESPEC=0
22578 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22579 #include <sys/stat.h>
22581 if test "x$ac_cv_type_nlink_t" = xyes
22586 printf "%s\n" "#define nlink_t int" >>confdefs.h
22601 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
22602 if test "x$ac_cv_header_sdkddkver_h" = xyes
22604 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
22617 GL_SGL_GNULIB_CHMOD=0
22621 GL_SGL_GNULIB_FCHMODAT=0
22625 GL_SGL_GNULIB_FSTAT=0
22629 GL_SGL_GNULIB_FSTATAT=0
22633 GL_SGL_GNULIB_FUTIMENS=0
22637 GL_SGL_GNULIB_GETUMASK=0
22641 GL_SGL_GNULIB_LCHMOD=0
22645 GL_SGL_GNULIB_LSTAT=0
22649 GL_SGL_GNULIB_MKDIR=0
22653 GL_SGL_GNULIB_MKDIRAT=0
22657 GL_SGL_GNULIB_MKFIFO=0
22661 GL_SGL_GNULIB_MKFIFOAT=0
22665 GL_SGL_GNULIB_MKNOD=0
22669 GL_SGL_GNULIB_MKNODAT=0
22673 GL_SGL_GNULIB_STAT=0
22677 GL_SGL_GNULIB_UTIMENSAT=0
22681 GL_SGL_GNULIB_OVERRIDES_STRUCT_STAT=0
22685 GL_SGL_GNULIB_MDA_CHMOD=1
22689 GL_SGL_GNULIB_MDA_MKDIR=1
22693 GL_SGL_GNULIB_MDA_UMASK=1
22698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
22699 printf %s "checking whether stdin defaults to large file offsets... " >&6; }
22700 if test ${gl_cv_var_stdin_large_offset+y}
22702 printf %s "(cached) " >&6
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22710 #if defined __SL64 && defined __SCLE /* cygwin */
22711 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
22712 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
22713 it is easier to do a version check than building a runtime test. */
22714 # include <cygwin/version.h>
22715 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
22723 if ac_fn_c_try_link "$LINENO"
22725 gl_cv_var_stdin_large_offset=yes
22727 gl_cv_var_stdin_large_offset=no
22729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22730 conftest$ac_exeext conftest.$ac_ext
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
22733 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; }
22735 ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22736 if test "x$ac_cv_have_decl_ftello" = xyes
22742 printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h
22747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
22748 printf %s "checking whether ungetc works on arbitrary bytes... " >&6; }
22749 if test ${gl_cv_func_ungetc_works+y}
22751 printf %s "(cached) " >&6
22753 if test "$cross_compiling" = yes
22756 # Guess yes on glibc systems.
22757 *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
22758 # Guess yes on musl systems.
22759 *-musl*) gl_cv_func_ungetc_works="guessing yes" ;;
22760 # Guess yes on bionic systems.
22761 *-android*) gl_cv_func_ungetc_works="guessing yes" ;;
22762 # Guess yes on native Windows.
22763 mingw*) gl_cv_func_ungetc_works="guessing yes" ;;
22764 # If we don't know, obey --enable-cross-guesses.
22765 *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
22769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770 /* end confdefs.h. */
22778 if (!(f = fopen ("conftest.tmp", "w+")))
22780 if (fputs ("abc", f) < 0)
22781 { fclose (f); return 2; }
22783 if (fgetc (f) != 'a')
22784 { fclose (f); return 3; }
22785 if (fgetc (f) != 'b')
22786 { fclose (f); return 4; }
22787 if (ungetc ('d', f) != 'd')
22788 { fclose (f); return 5; }
22789 if (ftell (f) != 1)
22790 { fclose (f); return 6; }
22791 if (fgetc (f) != 'd')
22792 { fclose (f); return 7; }
22793 if (ftell (f) != 2)
22794 { fclose (f); return 8; }
22795 if (fseek (f, 0, SEEK_CUR) != 0)
22796 { fclose (f); return 9; }
22797 if (ftell (f) != 2)
22798 { fclose (f); return 10; }
22799 if (fgetc (f) != 'c')
22800 { fclose (f); return 11; }
22802 remove ("conftest.tmp");
22808 if ac_fn_c_try_run "$LINENO"
22810 gl_cv_func_ungetc_works=yes
22812 gl_cv_func_ungetc_works=no
22814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815 conftest.$ac_objext conftest.beam conftest.$ac_ext
22820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
22821 printf "%s\n" "$gl_cv_func_ungetc_works" >&6; }
22822 gl_ftello_broken_after_ungetc=no
22823 case "$gl_cv_func_ungetc_works" in
22827 darwin*) gl_ftello_broken_after_ungetc=yes ;;
22830 printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
22846 if test $ac_cv_have_decl_ftello = no; then
22850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
22851 printf %s "checking for ftello... " >&6; }
22852 if test ${gl_cv_func_ftello+y}
22854 printf %s "(cached) " >&6
22857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h. */
22868 if ac_fn_c_try_link "$LINENO"
22870 gl_cv_func_ftello=yes
22872 gl_cv_func_ftello=no
22874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22875 conftest$ac_exeext conftest.$ac_ext
22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
22879 printf "%s\n" "$gl_cv_func_ftello" >&6; }
22880 if test $gl_cv_func_ftello = no; then
22883 if test $WINDOWS_64_BIT_OFF_T = 1; then
22886 if test $gl_cv_var_stdin_large_offset = no; then
22889 if test $REPLACE_FTELLO = 0; then
22891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
22892 printf %s "checking whether ftello works... " >&6; }
22893 if test ${gl_cv_func_ftello_works+y}
22895 printf %s "(cached) " >&6
22899 # Guess no on Solaris.
22900 solaris*) gl_cv_func_ftello_works="guessing no" ;;
22901 # Guess yes on native Windows.
22902 mingw*) gl_cv_func_ftello_works="guessing yes" ;;
22903 # Guess yes otherwise.
22904 *) gl_cv_func_ftello_works="guessing yes" ;;
22906 if test "$cross_compiling" = yes
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22914 #include <stdlib.h>
22915 #include <string.h>
22916 #define TESTFILE "conftest.tmp"
22922 /* Create a file with some contents. */
22923 fp = fopen (TESTFILE, "w");
22926 if (fwrite ("foogarsh", 1, 8, fp) < 8)
22927 { fclose (fp); return 71; }
22931 /* The file's contents is now "foogarsh". */
22933 /* Try writing after reading to EOF. */
22934 fp = fopen (TESTFILE, "r+");
22937 if (fseek (fp, -1, SEEK_END))
22938 { fclose (fp); return 74; }
22939 if (!(getc (fp) == 'h'))
22940 { fclose (fp); return 1; }
22941 if (!(getc (fp) == EOF))
22942 { fclose (fp); return 2; }
22943 if (!(ftell (fp) == 8))
22944 { fclose (fp); return 3; }
22945 if (!(ftell (fp) == 8))
22946 { fclose (fp); return 4; }
22947 if (!(putc ('!', fp) == '!'))
22948 { fclose (fp); return 5; }
22949 if (!(ftell (fp) == 9))
22950 { fclose (fp); return 6; }
22951 if (!(fclose (fp) == 0))
22953 fp = fopen (TESTFILE, "r");
22958 if (!(fread (buf, 1, 10, fp) == 9))
22959 { fclose (fp); return 10; }
22960 if (!(memcmp (buf, "foogarsh!", 9) == 0))
22961 { fclose (fp); return 11; }
22963 if (!(fclose (fp) == 0))
22966 /* The file's contents is now "foogarsh!". */
22971 if ac_fn_c_try_run "$LINENO"
22973 gl_cv_func_ftello_works=yes
22975 gl_cv_func_ftello_works=no
22977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22978 conftest.$ac_objext conftest.beam conftest.$ac_ext
22983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
22984 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
22985 case "$gl_cv_func_ftello_works" in
22990 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
22995 if test $REPLACE_FTELLO = 0; then
22997 if test $gl_ftello_broken_after_ungetc = yes; then
23000 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
23007 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23008 if test "x$ac_cv_have_decl_getdtablesize" = xyes
23014 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
23030 if test $gl_cv_have_include_next = yes; then
23031 gl_cv_next_getopt_h='<'getopt.h'>'
23033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
23034 printf %s "checking absolute name of <getopt.h>... " >&6; }
23035 if test ${gl_cv_next_getopt_h+y}
23037 printf %s "(cached) " >&6
23040 if test $ac_cv_header_getopt_h = yes; then
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23047 #include <getopt.h>
23050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23051 *) gl_absname_cpp="$ac_cpp" ;;
23056 gl_dirsep_regex='[/\\]'
23059 gl_dirsep_regex='\/'
23062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23063 gl_header_literal_regex=`echo 'getopt.h' \
23064 | sed -e "$gl_make_literal_regex_sed"`
23065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23072 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23073 sed -n "$gl_absolute_header_sed"`
23075 gl_header=$gl_cv_absolute_getopt_h
23076 gl_cv_next_getopt_h='"'$gl_header'"'
23078 gl_cv_next_getopt_h='<'getopt.h'>'
23083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
23084 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
23086 NEXT_GETOPT_H=$gl_cv_next_getopt_h
23088 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23090 gl_next_as_first_directive='<'getopt.h'>'
23092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23093 gl_next_as_first_directive=$gl_cv_next_getopt_h
23095 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
23100 if test $ac_cv_header_getopt_h = yes; then
23109 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23110 for ac_header in getopt.h
23112 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
23113 if test "x$ac_cv_header_getopt_h" = xyes
23115 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
23118 gl_replace_getopt=yes
23124 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23126 for ac_func in getopt_long_only
23128 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
23129 if test "x$ac_cv_func_getopt_long_only" = xyes
23131 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
23134 gl_replace_getopt=yes
23140 if test -z "$gl_replace_getopt"; then
23141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
23142 printf %s "checking whether getopt is POSIX compatible... " >&6; }
23143 if test ${gl_cv_func_getopt_posix+y}
23145 printf %s "(cached) " >&6
23148 if test $cross_compiling = no; then
23149 if test "$cross_compiling" = yes
23151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23152 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23153 as_fn_error $? "cannot run test program while cross compiling
23154 See \`config.log' for more details" "$LINENO" 5; }
23156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23157 /* end confdefs.h. */
23159 #include <unistd.h>
23160 #include <stdlib.h>
23161 #include <string.h>
23166 static char program[] = "program";
23167 static char a[] = "-a";
23168 static char foo[] = "foo";
23169 static char bar[] = "bar";
23170 char *argv[] = { program, a, foo, bar, NULL };
23173 c = getopt (4, argv, "ab");
23176 c = getopt (4, argv, "ab");
23179 if (!(optind == 2))
23185 if ac_fn_c_try_run "$LINENO"
23187 gl_cv_func_getopt_posix=maybe
23189 gl_cv_func_getopt_posix=no
23191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23192 conftest.$ac_objext conftest.beam conftest.$ac_ext
23195 if test $gl_cv_func_getopt_posix = maybe; then
23196 if test "$cross_compiling" = yes
23198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23200 as_fn_error $? "cannot run test program while cross compiling
23201 See \`config.log' for more details" "$LINENO" 5; }
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23206 #include <unistd.h>
23207 #include <stdlib.h>
23208 #include <string.h>
23213 static char program[] = "program";
23214 static char donald[] = "donald";
23215 static char p[] = "-p";
23216 static char billy[] = "billy";
23217 static char duck[] = "duck";
23218 static char a[] = "-a";
23219 static char bar[] = "bar";
23220 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
23223 c = getopt (7, argv, "+abp:q:");
23226 if (!(strcmp (argv[0], "program") == 0))
23228 if (!(strcmp (argv[1], "donald") == 0))
23230 if (!(strcmp (argv[2], "-p") == 0))
23232 if (!(strcmp (argv[3], "billy") == 0))
23234 if (!(strcmp (argv[4], "duck") == 0))
23236 if (!(strcmp (argv[5], "-a") == 0))
23238 if (!(strcmp (argv[6], "bar") == 0))
23240 if (!(optind == 1))
23246 if ac_fn_c_try_run "$LINENO"
23248 gl_cv_func_getopt_posix=maybe
23250 gl_cv_func_getopt_posix=no
23252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23253 conftest.$ac_objext conftest.beam conftest.$ac_ext
23257 if test $gl_cv_func_getopt_posix = maybe; then
23258 if test "$cross_compiling" = yes
23260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23261 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23262 as_fn_error $? "cannot run test program while cross compiling
23263 See \`config.log' for more details" "$LINENO" 5; }
23265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266 /* end confdefs.h. */
23268 #include <unistd.h>
23269 #include <stdlib.h>
23270 #include <string.h>
23275 static char program[] = "program";
23276 static char ab[] = "-ab";
23277 char *argv[3] = { program, ab, NULL };
23278 if (getopt (2, argv, "ab:") != 'a')
23280 if (getopt (2, argv, "ab:") != '?')
23290 if ac_fn_c_try_run "$LINENO"
23292 gl_cv_func_getopt_posix=yes
23294 gl_cv_func_getopt_posix=no
23296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23297 conftest.$ac_objext conftest.beam conftest.$ac_ext
23303 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
23304 *) gl_cv_func_getopt_posix="guessing yes";;
23309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
23310 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
23311 case "$gl_cv_func_getopt_posix" in
23312 *no) gl_replace_getopt=yes ;;
23316 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
23318 printf %s "checking for working GNU getopt function... " >&6; }
23319 if test ${gl_cv_func_getopt_gnu+y}
23321 printf %s "(cached) " >&6
23323 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
23324 # optstring is necessary for programs like m4 that have POSIX-mandated
23325 # semantics for supporting options interspersed with files.
23326 # Also, since getopt_long is a GNU extension, we require optind=0.
23327 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
23328 # so take care to revert to the correct (non-)export state.
23329 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
23330 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
23331 xx) gl_had_POSIXLY_CORRECT=exported ;;
23332 x) gl_had_POSIXLY_CORRECT=yes ;;
23333 *) gl_had_POSIXLY_CORRECT= ;;
23336 export POSIXLY_CORRECT
23337 if test "$cross_compiling" = yes
23339 gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23344 #include <getopt.h>
23345 #include <stddef.h>
23346 #include <string.h>
23348 #include <stdlib.h>
23349 #if defined __MACH__ && defined __APPLE__
23350 /* Avoid a crash on Mac OS X. */
23351 #include <mach/mach.h>
23352 #include <mach/mach_error.h>
23353 #include <mach/thread_status.h>
23354 #include <mach/exception.h>
23355 #include <mach/task.h>
23356 #include <pthread.h>
23357 /* The exception port on which our thread listens. */
23358 static mach_port_t our_exception_port;
23359 /* The main function of the thread listening for exceptions of type
23362 mach_exception_thread (void *arg)
23364 /* Buffer for a message to be received. */
23366 mach_msg_header_t head;
23367 mach_msg_body_t msgh_body;
23370 mach_msg_return_t retval;
23371 /* Wait for a message on the exception port. */
23372 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23373 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23374 if (retval != MACH_MSG_SUCCESS)
23379 nocrash_init (void)
23381 mach_port_t self = mach_task_self ();
23382 /* Allocate a port on which the thread shall listen for exceptions. */
23383 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23385 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
23386 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23387 MACH_MSG_TYPE_MAKE_SEND)
23389 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
23391 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23392 /* Create the thread listening on the exception port. */
23393 pthread_attr_t attr;
23395 if (pthread_attr_init (&attr) == 0
23396 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23397 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23398 pthread_attr_destroy (&attr);
23399 /* Replace the exception port info for these exceptions with our own.
23400 Note that we replace the exception port for the entire task, not only
23401 for a particular thread. This has the effect that when our exception
23402 port gets the message, the thread specific exception port has already
23403 been asked, and we don't need to bother about it.
23404 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
23405 task_set_exception_ports (self, mask, our_exception_port,
23406 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23411 #elif defined _WIN32 && ! defined __CYGWIN__
23412 /* Avoid a crash on native Windows. */
23413 #define WIN32_LEAN_AND_MEAN
23414 #include <windows.h>
23415 #include <winerror.h>
23417 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23419 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23421 case EXCEPTION_ACCESS_VIOLATION:
23422 case EXCEPTION_IN_PAGE_ERROR:
23423 case EXCEPTION_STACK_OVERFLOW:
23424 case EXCEPTION_GUARD_PAGE:
23425 case EXCEPTION_PRIV_INSTRUCTION:
23426 case EXCEPTION_ILLEGAL_INSTRUCTION:
23427 case EXCEPTION_DATATYPE_MISALIGNMENT:
23428 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23429 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23432 return EXCEPTION_CONTINUE_SEARCH;
23435 nocrash_init (void)
23437 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23440 /* Avoid a crash on POSIX systems. */
23441 #include <signal.h>
23442 #include <unistd.h>
23443 /* A POSIX signal handler. */
23445 exception_handler (int sig)
23450 nocrash_init (void)
23453 signal (SIGSEGV, exception_handler);
23456 signal (SIGBUS, exception_handler);
23470 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
23471 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
23472 OSF/1 5.1, Solaris 10. */
23474 static char conftest[] = "conftest";
23475 static char plus[] = "-+";
23476 char *argv[3] = { conftest, plus, NULL };
23478 if (getopt (2, argv, "+a") != '?')
23481 /* This code succeeds on glibc 2.8, mingw,
23482 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
23483 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
23485 static char program[] = "program";
23486 static char p[] = "-p";
23487 static char foo[] = "foo";
23488 static char bar[] = "bar";
23489 char *argv[] = { program, p, foo, bar, NULL };
23492 if (getopt (4, argv, "p::") != 'p')
23494 else if (optarg != NULL)
23496 else if (getopt (4, argv, "p::") != -1)
23498 else if (optind != 2)
23501 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
23503 static char program[] = "program";
23504 static char foo[] = "foo";
23505 static char p[] = "-p";
23506 char *argv[] = { program, foo, p, NULL };
23508 if (getopt (3, argv, "-p") != 1)
23510 else if (getopt (3, argv, "-p") != 'p')
23513 /* This code fails on glibc 2.11. */
23515 static char program[] = "program";
23516 static char b[] = "-b";
23517 static char a[] = "-a";
23518 char *argv[] = { program, b, a, NULL };
23519 optind = opterr = 0;
23520 if (getopt (3, argv, "+:a:b") != 'b')
23522 else if (getopt (3, argv, "+:a:b") != ':')
23525 /* This code dumps core on glibc 2.14. */
23527 static char program[] = "program";
23528 static char w[] = "-W";
23529 static char dummy[] = "dummy";
23530 char *argv[] = { program, w, dummy, NULL };
23531 optind = opterr = 1;
23532 if (getopt (3, argv, "W;") != 'W')
23541 if ac_fn_c_try_run "$LINENO"
23543 gl_cv_func_getopt_gnu=yes
23545 gl_cv_func_getopt_gnu=no
23547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23548 conftest.$ac_objext conftest.beam conftest.$ac_ext
23551 case $gl_had_POSIXLY_CORRECT in
23553 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
23554 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
23558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
23559 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
23560 if test "$gl_cv_func_getopt_gnu" != yes; then
23561 gl_replace_getopt=yes
23563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
23564 printf %s "checking for working GNU getopt_long function... " >&6; }
23565 if test ${gl_cv_func_getopt_long_gnu+y}
23567 printf %s "(cached) " >&6
23569 if test "$cross_compiling" = yes
23572 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
23573 *) gl_cv_func_getopt_long_gnu="guessing yes";;
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h. */
23579 #include <getopt.h>
23580 #include <stddef.h>
23581 #include <string.h>
23586 static const struct option long_options[] =
23588 { "xtremely-",no_argument, NULL, 1003 },
23589 { "xtra", no_argument, NULL, 1001 },
23590 { "xtreme", no_argument, NULL, 1002 },
23591 { "xtremely", no_argument, NULL, 1003 },
23592 { NULL, 0, NULL, 0 }
23594 /* This code fails on OpenBSD 5.0. */
23596 static char program[] = "program";
23597 static char xtremel[] = "--xtremel";
23598 char *argv[] = { program, xtremel, NULL };
23600 optind = 1; opterr = 0;
23601 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
23610 if ac_fn_c_try_run "$LINENO"
23612 gl_cv_func_getopt_long_gnu=yes
23614 gl_cv_func_getopt_long_gnu=no
23616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23617 conftest.$ac_objext conftest.beam conftest.$ac_ext
23622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
23623 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
23624 case "$gl_cv_func_getopt_long_gnu" in
23626 *) gl_replace_getopt=yes ;;
23635 HAVE_GETTIMEOFDAY=1;
23636 HAVE_STRUCT_TIMEVAL=1;
23638 REPLACE_GETTIMEOFDAY=0;
23639 REPLACE_STRUCT_TIMEVAL=0;
23655 if test $gl_cv_have_include_next = yes; then
23656 gl_cv_next_sys_time_h='<'sys/time.h'>'
23658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
23659 printf %s "checking absolute name of <sys/time.h>... " >&6; }
23660 if test ${gl_cv_next_sys_time_h+y}
23662 printf %s "(cached) " >&6
23665 if test $ac_cv_header_sys_time_h = yes; then
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 #include <sys/time.h>
23675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23676 *) gl_absname_cpp="$ac_cpp" ;;
23681 gl_dirsep_regex='[/\\]'
23684 gl_dirsep_regex='\/'
23687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23688 gl_header_literal_regex=`echo 'sys/time.h' \
23689 | sed -e "$gl_make_literal_regex_sed"`
23690 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23691 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23697 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23698 sed -n "$gl_absolute_header_sed"`
23700 gl_header=$gl_cv_absolute_sys_time_h
23701 gl_cv_next_sys_time_h='"'$gl_header'"'
23703 gl_cv_next_sys_time_h='<'sys/time.h'>'
23708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
23709 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
23711 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
23713 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23715 gl_next_as_first_directive='<'sys/time.h'>'
23717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23718 gl_next_as_first_directive=$gl_cv_next_sys_time_h
23720 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
23726 if test $ac_cv_header_sys_time_h != yes; then
23734 if test $ac_cv_header_sys_socket_h != yes; then
23735 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23736 if test "x$ac_cv_header_winsock2_h" = xyes
23738 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23743 if test "$ac_cv_header_winsock2_h" = yes; then
23745 UNISTD_H_HAVE_WINSOCK2_H=1
23746 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23753 printf %s "checking for struct timeval... " >&6; }
23754 if test ${gl_cv_sys_struct_timeval+y}
23756 printf %s "(cached) " >&6
23758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23760 #if HAVE_SYS_TIME_H
23761 #include <sys/time.h>
23764 #if HAVE_WINSOCK2_H
23765 # include <winsock2.h>
23771 static struct timeval x; x.tv_sec = x.tv_usec;
23776 if ac_fn_c_try_compile "$LINENO"
23778 gl_cv_sys_struct_timeval=yes
23780 gl_cv_sys_struct_timeval=no
23782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
23786 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
23787 if test $gl_cv_sys_struct_timeval != yes; then
23788 HAVE_STRUCT_TIMEVAL=0
23790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
23791 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
23792 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
23794 printf %s "(cached) " >&6
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23798 #if HAVE_SYS_TIME_H
23799 #include <sys/time.h>
23802 #if HAVE_WINSOCK2_H
23803 # include <winsock2.h>
23809 static struct timeval x;
23810 typedef int verify_tv_sec_type[
23811 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
23818 if ac_fn_c_try_compile "$LINENO"
23820 gl_cv_sys_struct_timeval_tv_sec=yes
23822 gl_cv_sys_struct_timeval_tv_sec=no
23824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
23828 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
23829 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
23830 REPLACE_STRUCT_TIMEVAL=1
23841 GL_SGL_GNULIB_GETTIMEOFDAY=0
23846 HAVE_DECL_IMAXABS=1;
23847 HAVE_DECL_IMAXDIV=1;
23848 HAVE_DECL_STRTOIMAX=1;
23849 HAVE_DECL_STRTOUMAX=1;
23851 REPLACE_STRTOIMAX=0;
23852 REPLACE_STRTOUMAX=0;
23853 INT32_MAX_LT_INTMAX_MAX=1;
23854 INT64_MAX_EQ_LONG_MAX='defined _LP64';
23855 PRIPTR_PREFIX=__PRIPTR_PREFIX;
23856 UINT32_MAX_LT_UINTMAX_MAX=1;
23857 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
23873 if test $gl_cv_have_include_next = yes; then
23874 gl_cv_next_inttypes_h='<'inttypes.h'>'
23876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
23877 printf %s "checking absolute name of <inttypes.h>... " >&6; }
23878 if test ${gl_cv_next_inttypes_h+y}
23880 printf %s "(cached) " >&6
23883 if test $ac_cv_header_inttypes_h = yes; then
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h. */
23890 #include <inttypes.h>
23893 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23894 *) gl_absname_cpp="$ac_cpp" ;;
23899 gl_dirsep_regex='[/\\]'
23902 gl_dirsep_regex='\/'
23905 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23906 gl_header_literal_regex=`echo 'inttypes.h' \
23907 | sed -e "$gl_make_literal_regex_sed"`
23908 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23909 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23915 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23916 sed -n "$gl_absolute_header_sed"`
23918 gl_header=$gl_cv_absolute_inttypes_h
23919 gl_cv_next_inttypes_h='"'$gl_header'"'
23921 gl_cv_next_inttypes_h='<'inttypes.h'>'
23926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23927 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
23929 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23931 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23933 gl_next_as_first_directive='<'inttypes.h'>'
23935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23936 gl_next_as_first_directive=$gl_cv_next_inttypes_h
23938 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23954 GL_SGL_GNULIB_IMAXABS=0
23958 GL_SGL_GNULIB_IMAXDIV=0
23962 GL_SGL_GNULIB_STRTOIMAX=0
23966 GL_SGL_GNULIB_STRTOUMAX=0
23971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
23972 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
23973 if test ${gl_cv_malloc_ptrdiff+y}
23975 printf %s "(cached) " >&6
23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23979 #include <stdint.h>
23984 /* 64-bit ptrdiff_t is so wide that no practical platform
23986 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
23988 /* On rare machines where size_t fits in ptrdiff_t there
23990 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
23992 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
23993 bounds even on 32-bit platforms. We don't know which
23994 non-glibc systems are safe. */
23995 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
23997 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
24000 #error "malloc might not be ptrdiff_t safe"
24008 if ac_fn_c_try_compile "$LINENO"
24010 gl_cv_malloc_ptrdiff=yes
24012 gl_cv_malloc_ptrdiff=no
24014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
24018 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
24023 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
24027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
24028 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
24029 if test ${gl_cv_func_malloc_posix+y}
24031 printf %s "(cached) " >&6
24036 gl_cv_func_malloc_posix=no ;;
24039 gl_cv_func_malloc_posix=no ;;
24041 gl_cv_func_malloc_posix=yes ;;
24045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24046 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
24052 if test "$gl_cv_func_malloc_posix" = yes; then
24054 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24057 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
24062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
24063 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
24064 if test ${ac_cv_func_malloc_0_nonnull+y}
24066 printf %s "(cached) " >&6
24068 if test "$cross_compiling" = yes
24071 # Guess yes on platforms where we know the result.
24072 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
24073 | gnu* | *-musl* | midnightbsd* \
24074 | hpux* | solaris* | cygwin* | mingw* | msys* )
24075 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
24076 # If we don't know, obey --enable-cross-guesses.
24077 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
24081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h. */
24083 #include <stdlib.h>
24088 void *p = malloc (0);
24097 if ac_fn_c_try_run "$LINENO"
24099 ac_cv_func_malloc_0_nonnull=yes
24101 ac_cv_func_malloc_0_nonnull=no
24103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24104 conftest.$ac_objext conftest.beam conftest.$ac_ext
24109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24110 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
24111 case $ac_cv_func_malloc_0_nonnull in #(
24113 gl_cv_func_malloc_0_nonnull=1 ;; #(
24115 gl_cv_func_malloc_0_nonnull=0 ;;
24119 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
24126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
24127 printf %s "checking for O_CLOEXEC... " >&6; }
24128 if test ${gl_cv_macro_O_CLOEXEC+y}
24130 printf %s "(cached) " >&6
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24147 if ac_fn_c_try_compile "$LINENO"
24149 gl_cv_macro_O_CLOEXEC=yes
24151 gl_cv_macro_O_CLOEXEC=no
24153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
24156 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
24161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
24162 printf %s "checking for promoted mode_t type... " >&6; }
24163 if test ${gl_cv_promoted_mode_t+y}
24165 printf %s "(cached) " >&6
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h. */
24170 #include <sys/types.h>
24174 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
24179 if ac_fn_c_try_compile "$LINENO"
24181 gl_cv_promoted_mode_t='int'
24183 gl_cv_promoted_mode_t='mode_t'
24185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
24189 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
24191 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
24198 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24199 if test "x$ac_cv_have_decl_fcloseall" = xyes
24205 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
24210 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
24220 if test $gl_cv_have_include_next = yes; then
24221 gl_cv_next_stdio_h='<'stdio.h'>'
24223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24224 printf %s "checking absolute name of <stdio.h>... " >&6; }
24225 if test ${gl_cv_next_stdio_h+y}
24227 printf %s "(cached) " >&6
24232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24233 /* end confdefs.h. */
24237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24238 *) gl_absname_cpp="$ac_cpp" ;;
24243 gl_dirsep_regex='[/\\]'
24246 gl_dirsep_regex='\/'
24249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24250 gl_header_literal_regex=`echo 'stdio.h' \
24251 | sed -e "$gl_make_literal_regex_sed"`
24252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24259 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24260 sed -n "$gl_absolute_header_sed"`
24262 gl_header=$gl_cv_absolute_stdio_h
24263 gl_cv_next_stdio_h='"'$gl_header'"'
24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24268 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
24270 NEXT_STDIO_H=$gl_cv_next_stdio_h
24272 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24273 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24274 gl_next_as_first_directive='<'stdio.h'>'
24276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24277 gl_next_as_first_directive=$gl_cv_next_stdio_h
24279 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24286 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24287 if test ${gl_cv_func_printf_attribute_flavor+y}
24289 printf %s "(cached) " >&6
24291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292 /* end confdefs.h. */
24294 #define __STDC_FORMAT_MACROS 1
24296 #include <inttypes.h>
24297 /* For non-mingw systems, compilation will trivially succeed.
24298 For mingw, compilation will succeed for older mingw (system
24299 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24300 #if (defined _WIN32 && ! defined __CYGWIN__) && \
24301 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24302 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24313 if ac_fn_c_try_compile "$LINENO"
24315 gl_cv_func_printf_attribute_flavor=system
24317 gl_cv_func_printf_attribute_flavor=gnu
24319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24322 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
24323 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
24325 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24341 if test $ac_cv_have_decl_fcloseall = no; then
24342 HAVE_DECL_FCLOSEALL=0
24348 HAVE_DECL_LOCALTIME_R=1;
24352 HAVE_TIMESPEC_GET=1;
24353 HAVE_TIMESPEC_GETRES=1;
24355 REPLACE_CTIME=GNULIB_PORTCHECK;
24356 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
24357 REPLACE_MKTIME=GNULIB_PORTCHECK;
24358 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
24359 REPLACE_STRFTIME=GNULIB_PORTCHECK;
24360 REPLACE_TIMEGM=GNULIB_PORTCHECK;
24361 REPLACE_TZSET=GNULIB_PORTCHECK;
24363 : ${GNULIB_GETTIMEOFDAY=0};
24365 REPLACE_LOCALTIME=0;
24369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
24370 printf %s "checking for struct timespec in <time.h>... " >&6; }
24371 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
24373 printf %s "(cached) " >&6
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24382 static struct timespec x; x.tv_sec = x.tv_nsec;
24387 if ac_fn_c_try_compile "$LINENO"
24389 gl_cv_sys_struct_timespec_in_time_h=yes
24391 gl_cv_sys_struct_timespec_in_time_h=no
24393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
24396 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
24398 TIME_H_DEFINES_STRUCT_TIMESPEC=0
24399 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
24400 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
24401 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
24402 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
24403 TIME_H_DEFINES_STRUCT_TIMESPEC=1
24405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
24406 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
24407 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
24409 printf %s "(cached) " >&6
24411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24412 /* end confdefs.h. */
24413 #include <sys/time.h>
24418 static struct timespec x; x.tv_sec = x.tv_nsec;
24423 if ac_fn_c_try_compile "$LINENO"
24425 gl_cv_sys_struct_timespec_in_sys_time_h=yes
24427 gl_cv_sys_struct_timespec_in_sys_time_h=no
24429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
24432 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
24433 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
24434 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
24436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
24437 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
24438 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
24440 printf %s "(cached) " >&6
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24444 #include <pthread.h>
24449 static struct timespec x; x.tv_sec = x.tv_nsec;
24454 if ac_fn_c_try_compile "$LINENO"
24456 gl_cv_sys_struct_timespec_in_pthread_h=yes
24458 gl_cv_sys_struct_timespec_in_pthread_h=no
24460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
24463 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
24464 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
24465 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
24467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
24468 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
24469 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
24471 printf %s "(cached) " >&6
24473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h. */
24475 #include <unistd.h>
24480 static struct timespec x; x.tv_sec = x.tv_nsec;
24485 if ac_fn_c_try_compile "$LINENO"
24487 gl_cv_sys_struct_timespec_in_unistd_h=yes
24489 gl_cv_sys_struct_timespec_in_unistd_h=no
24491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
24494 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
24495 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
24496 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
24517 if test $gl_cv_have_include_next = yes; then
24518 gl_cv_next_time_h='<'time.h'>'
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
24521 printf %s "checking absolute name of <time.h>... " >&6; }
24522 if test ${gl_cv_next_time_h+y}
24524 printf %s "(cached) " >&6
24529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24530 /* end confdefs.h. */
24534 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24535 *) gl_absname_cpp="$ac_cpp" ;;
24540 gl_dirsep_regex='[/\\]'
24543 gl_dirsep_regex='\/'
24546 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24547 gl_header_literal_regex=`echo 'time.h' \
24548 | sed -e "$gl_make_literal_regex_sed"`
24549 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24550 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24556 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24557 sed -n "$gl_absolute_header_sed"`
24559 gl_header=$gl_cv_absolute_time_h
24560 gl_cv_next_time_h='"'$gl_header'"'
24564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
24565 printf "%s\n" "$gl_cv_next_time_h" >&6; }
24567 NEXT_TIME_H=$gl_cv_next_time_h
24569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24571 gl_next_as_first_directive='<'time.h'>'
24573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24574 gl_next_as_first_directive=$gl_cv_next_time_h
24576 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
24585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
24586 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
24587 if test ${gl_cv_time_h_has_TIME_UTC+y}
24589 printf %s "(cached) " >&6
24591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24592 /* end confdefs.h. */
24598 static int x = TIME_UTC; x++;
24603 if ac_fn_c_try_compile "$LINENO"
24605 gl_cv_time_h_has_TIME_UTC=yes
24607 gl_cv_time_h_has_TIME_UTC=no
24609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
24612 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
24613 if test $gl_cv_time_h_has_TIME_UTC = yes; then
24614 TIME_H_DEFINES_TIME_UTC=1
24616 TIME_H_DEFINES_TIME_UTC=0
24622 GL_SGL_GNULIB_CTIME=0
24626 GL_SGL_GNULIB_MKTIME=0
24630 GL_SGL_GNULIB_LOCALTIME=0
24634 GL_SGL_GNULIB_NANOSLEEP=0
24638 GL_SGL_GNULIB_STRFTIME=0
24642 GL_SGL_GNULIB_STRPTIME=0
24646 GL_SGL_GNULIB_TIMEGM=0
24650 GL_SGL_GNULIB_TIMESPEC_GET=0
24654 GL_SGL_GNULIB_TIMESPEC_GETRES=0
24658 GL_SGL_GNULIB_TIME_R=0
24662 GL_SGL_GNULIB_TIME_RZ=0
24666 GL_SGL_GNULIB_TZSET=0
24670 GL_SGL_GNULIB_MDA_TZSET=1
24701 HAVE_WCSNCASECMP=1;
24715 HAVE_DECL_WCSDUP=1;
24716 HAVE_DECL_WCWIDTH=1;
24717 REPLACE_MBSTATE_T=0;
24723 REPLACE_MBSRTOWCS=0;
24724 REPLACE_MBSNRTOWCS=0;
24726 REPLACE_WCSRTOMBS=0;
24727 REPLACE_WCSNRTOMBS=0;
24729 REPLACE_WCSWIDTH=0;
24730 REPLACE_WCSFTIME=0;
24735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
24736 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
24737 if test ${gl_cv_header_wchar_h_correct_inline+y}
24739 printf %s "(cached) " >&6
24741 gl_cv_header_wchar_h_correct_inline=yes
24744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745 /* end confdefs.h. */
24748 #define wcstod renamed_wcstod
24750 extern int zero (void);
24751 int main () { return zero(); }
24754 save_ac_compile="$ac_compile"
24755 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
24756 if echo '#include "conftest.c"' >conftest1.c \
24757 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24758 (eval $ac_compile) 2>&5
24760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; then
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h. */
24766 #define wcstod renamed_wcstod
24768 int zero (void) { return 0; }
24771 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
24772 if echo '#include "conftest.c"' >conftest2.c \
24773 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24774 (eval $ac_compile) 2>&5
24776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; then
24778 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
24781 gl_cv_header_wchar_h_correct_inline=no
24785 ac_compile="$save_ac_compile"
24786 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
24792 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
24793 if test $gl_cv_header_wchar_h_correct_inline = no; then
24794 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
24795 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
24796 C99 mode. You have four options:
24797 - Add the flag -fgnu89-inline to CC and reconfigure, or
24798 - Fix your include files, using parts of
24799 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
24800 - Use a gcc version older than 4.3, or
24801 - Don't use the flags -std=c99 or -std=gnu99.
24802 Configuration aborted." "$LINENO" 5
24808 if test $ac_cv_header_features_h = yes; then
24818 if test $ac_cv_header_crtdefs_h = yes; then
24837 if test $gl_cv_have_include_next = yes; then
24838 gl_cv_next_wchar_h='<'wchar.h'>'
24840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24841 printf %s "checking absolute name of <wchar.h>... " >&6; }
24842 if test ${gl_cv_next_wchar_h+y}
24844 printf %s "(cached) " >&6
24847 if test $ac_cv_header_wchar_h = yes; then
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24857 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24858 *) gl_absname_cpp="$ac_cpp" ;;
24863 gl_dirsep_regex='[/\\]'
24866 gl_dirsep_regex='\/'
24869 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24870 gl_header_literal_regex=`echo 'wchar.h' \
24871 | sed -e "$gl_make_literal_regex_sed"`
24872 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24873 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24879 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24880 sed -n "$gl_absolute_header_sed"`
24882 gl_header=$gl_cv_absolute_wchar_h
24883 gl_cv_next_wchar_h='"'$gl_header'"'
24885 gl_cv_next_wchar_h='<'wchar.h'>'
24890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24891 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
24893 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24895 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24897 gl_next_as_first_directive='<'wchar.h'>'
24899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24900 gl_next_as_first_directive=$gl_cv_next_wchar_h
24902 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24907 if test $ac_cv_header_wchar_h = yes; then
24917 if test $gt_cv_c_wint_t = yes; then
24932 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
24935 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24936 if test "x$ac_cv_have_decl_wcsdup" = xyes
24942 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
24944 if test $ac_cv_have_decl_wcsdup = no; then
24950 GL_SGL_GNULIB_BTOWC=0
24954 GL_SGL_GNULIB_WCTOB=0
24958 GL_SGL_GNULIB_MBSINIT=0
24962 GL_SGL_GNULIB_MBRTOWC=0
24966 GL_SGL_GNULIB_MBRLEN=0
24970 GL_SGL_GNULIB_MBSRTOWCS=0
24974 GL_SGL_GNULIB_MBSNRTOWCS=0
24978 GL_SGL_GNULIB_WCRTOMB=0
24982 GL_SGL_GNULIB_WCSRTOMBS=0
24986 GL_SGL_GNULIB_WCSNRTOMBS=0
24990 GL_SGL_GNULIB_WCWIDTH=0
24994 GL_SGL_GNULIB_WMEMCHR=0
24998 GL_SGL_GNULIB_WMEMCMP=0
25002 GL_SGL_GNULIB_WMEMCPY=0
25006 GL_SGL_GNULIB_WMEMMOVE=0
25010 GL_SGL_GNULIB_WMEMPCPY=0
25014 GL_SGL_GNULIB_WMEMSET=0
25018 GL_SGL_GNULIB_WCSLEN=0
25022 GL_SGL_GNULIB_WCSNLEN=0
25026 GL_SGL_GNULIB_WCSCPY=0
25030 GL_SGL_GNULIB_WCPCPY=0
25034 GL_SGL_GNULIB_WCSNCPY=0
25038 GL_SGL_GNULIB_WCPNCPY=0
25042 GL_SGL_GNULIB_WCSCAT=0
25046 GL_SGL_GNULIB_WCSNCAT=0
25050 GL_SGL_GNULIB_WCSCMP=0
25054 GL_SGL_GNULIB_WCSNCMP=0
25058 GL_SGL_GNULIB_WCSCASECMP=0
25062 GL_SGL_GNULIB_WCSNCASECMP=0
25066 GL_SGL_GNULIB_WCSCOLL=0
25070 GL_SGL_GNULIB_WCSXFRM=0
25074 GL_SGL_GNULIB_WCSDUP=0
25078 GL_SGL_GNULIB_WCSCHR=0
25082 GL_SGL_GNULIB_WCSRCHR=0
25086 GL_SGL_GNULIB_WCSCSPN=0
25090 GL_SGL_GNULIB_WCSSPN=0
25094 GL_SGL_GNULIB_WCSPBRK=0
25098 GL_SGL_GNULIB_WCSSTR=0
25102 GL_SGL_GNULIB_WCSTOK=0
25106 GL_SGL_GNULIB_WCSWIDTH=0
25110 GL_SGL_GNULIB_WCSFTIME=0
25114 GL_SGL_GNULIB_MDA_WCSDUP=1
25120 GL_COND_LIBTOOL_TRUE=
25121 GL_COND_LIBTOOL_FALSE='#'
25123 GL_COND_LIBTOOL_TRUE='#'
25124 GL_COND_LIBTOOL_FALSE=
25127 gl_cond_libtool=true
25128 gl_m4_base='src/gl/m4'
25141 gl_source_base='src/gl'
25142 gl_source_base_prefix=
25145 if test $ac_cv_func_alloca_works = no; then
25149 # Define an additional variable used in the Makefile substitution.
25150 if test $ac_cv_working_alloca_h = yes; then
25151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
25152 printf %s "checking for alloca as a compiler built-in... " >&6; }
25153 if test ${gl_cv_rpl_alloca+y}
25155 printf %s "(cached) " >&6
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h. */
25161 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
25166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25167 $EGREP "Need own alloca" >/dev/null 2>&1
25169 gl_cv_rpl_alloca=yes
25171 gl_cv_rpl_alloca=no
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
25178 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
25179 if test $gl_cv_rpl_alloca = yes; then
25181 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
25183 GL_GENERATE_ALLOCA_H=true
25185 GL_GENERATE_ALLOCA_H=false
25188 GL_GENERATE_ALLOCA_H=true
25191 if test $ac_cv_working_alloca_h = yes; then
25202 case "$GL_GENERATE_ALLOCA_H" in
25203 false) ALLOCA_H='' ;;
25205 if test -z "$ALLOCA_H"; then
25206 ALLOCA_H="${gl_source_base_prefix}alloca.h"
25209 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
25213 if $GL_GENERATE_ALLOCA_H; then
25214 GL_GENERATE_ALLOCA_H_TRUE=
25215 GL_GENERATE_ALLOCA_H_FALSE='#'
25217 GL_GENERATE_ALLOCA_H_TRUE='#'
25218 GL_GENERATE_ALLOCA_H_FALSE=
25221 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25222 GL_GENERATE_ALLOCA_H_TRUE='#'
25223 GL_GENERATE_ALLOCA_H_FALSE='#'
25234 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
25235 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
25237 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
25238 # programs in the package would end up linked with that potentially-shared
25239 # library, inducing unnecessary run-time overhead.
25242 gl_saved_libs=$LIBS
25243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25244 printf %s "checking for library containing clock_gettime... " >&6; }
25245 if test ${ac_cv_search_clock_gettime+y}
25247 printf %s "(cached) " >&6
25249 ac_func_search_save_LIBS=$LIBS
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 /* Override any GCC internal prototype to avoid an error.
25254 Use char because int might match the return type of a GCC
25255 builtin and then its argument prototype would still apply. */
25256 char clock_gettime ();
25260 return clock_gettime ();
25265 for ac_lib in '' rt posix4
25267 if test -z "$ac_lib"; then
25268 ac_res="none required"
25271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25273 if ac_fn_c_try_link "$LINENO"
25275 ac_cv_search_clock_gettime=$ac_res
25277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25279 if test ${ac_cv_search_clock_gettime+y}
25284 if test ${ac_cv_search_clock_gettime+y}
25288 ac_cv_search_clock_gettime=no
25290 rm conftest.$ac_ext
25291 LIBS=$ac_func_search_save_LIBS
25293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25294 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
25295 ac_res=$ac_cv_search_clock_gettime
25296 if test "$ac_res" != no
25298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25299 test "$ac_cv_search_clock_gettime" = "none required" ||
25300 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
25303 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
25304 if test "x$ac_cv_func_clock_getres" = xyes
25306 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
25309 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25310 if test "x$ac_cv_func_clock_gettime" = xyes
25312 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25315 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
25316 if test "x$ac_cv_func_clock_settime" = xyes
25318 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
25322 LIBS=$gl_saved_libs
25326 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
25333 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25342 if test $ac_cv_header_sys_socket_h != yes; then
25343 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25344 if test "x$ac_cv_header_winsock2_h" = xyes
25346 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
25351 if test "$ac_cv_header_winsock2_h" = yes; then
25353 UNISTD_H_HAVE_WINSOCK2_H=1
25354 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25360 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
25367 if test $REPLACE_CLOSE = 1; then
25368 GL_COND_OBJ_CLOSE_TRUE=
25369 GL_COND_OBJ_CLOSE_FALSE='#'
25371 GL_COND_OBJ_CLOSE_TRUE='#'
25372 GL_COND_OBJ_CLOSE_FALSE=
25375 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
25376 GL_COND_OBJ_CLOSE_TRUE='#'
25377 GL_COND_OBJ_CLOSE_FALSE='#'
25389 GL_SGL_GNULIB_CLOSE=1
25395 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
25402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
25403 printf %s "checking whether dup2 works... " >&6; }
25404 if test ${gl_cv_func_dup2_works+y}
25406 printf %s "(cached) " >&6
25408 if test "$cross_compiling" = yes
25411 mingw*) # on this platform, dup2 always returns 0 for success
25412 gl_cv_func_dup2_works="guessing no" ;;
25413 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
25414 gl_cv_func_dup2_works="guessing no" ;;
25416 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
25418 gl_cv_func_dup2_works="guessing no" ;;
25419 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
25420 gl_cv_func_dup2_works="guessing no" ;;
25421 *-android*) # implemented using dup3(), which fails if oldfd == newfd
25422 gl_cv_func_dup2_works="guessing no" ;;
25423 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
25424 gl_cv_func_dup2_works="guessing no" ;;
25425 *) gl_cv_func_dup2_works="guessing yes" ;;
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25433 #include <limits.h>
25434 #include <sys/resource.h>
25435 #include <unistd.h>
25440 #ifndef RLIM_SAVED_CUR
25441 # define RLIM_SAVED_CUR RLIM_INFINITY
25443 #ifndef RLIM_SAVED_MAX
25444 # define RLIM_SAVED_MAX RLIM_INFINITY
25451 int bad_fd = INT_MAX;
25452 struct rlimit rlim;
25453 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
25454 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
25455 && rlim.rlim_cur != RLIM_INFINITY
25456 && rlim.rlim_cur != RLIM_SAVED_MAX
25457 && rlim.rlim_cur != RLIM_SAVED_CUR)
25458 bad_fd = rlim.rlim_cur;
25460 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
25463 if (dup2 (1, 1) != 1)
25466 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
25470 if (dup2 (0, 0) != -1)
25472 /* Many gnulib modules require POSIX conformance of EBADF. */
25473 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
25475 /* Flush out some cygwin core dumps. */
25476 if (dup2 (2, -1) != -1 || errno != EBADF)
25480 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
25482 int fd = open (".", O_RDONLY);
25485 else if (dup2 (fd, fd + 1) == -1)
25495 if ac_fn_c_try_run "$LINENO"
25497 gl_cv_func_dup2_works=yes
25499 gl_cv_func_dup2_works=no
25501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25502 conftest.$ac_objext conftest.beam conftest.$ac_ext
25507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
25508 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
25509 case "$gl_cv_func_dup2_works" in
25513 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
25514 if test "x$ac_cv_func_setdtablesize" = xyes
25516 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
25525 if test $REPLACE_DUP2 = 1; then
25526 GL_COND_OBJ_DUP2_TRUE=
25527 GL_COND_OBJ_DUP2_FALSE='#'
25529 GL_COND_OBJ_DUP2_TRUE='#'
25530 GL_COND_OBJ_DUP2_FALSE=
25533 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
25534 GL_COND_OBJ_DUP2_TRUE='#'
25535 GL_COND_OBJ_DUP2_FALSE='#'
25538 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
25552 GL_SGL_GNULIB_DUP2=1
25558 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
25567 case "$GL_GENERATE_ERRNO_H" in
25568 false) ERRNO_H='' ;;
25570 if test -z "$ERRNO_H"; then
25571 ERRNO_H="${gl_source_base_prefix}errno.h"
25574 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
25578 if $GL_GENERATE_ERRNO_H; then
25579 GL_GENERATE_ERRNO_H_TRUE=
25580 GL_GENERATE_ERRNO_H_FALSE='#'
25582 GL_GENERATE_ERRNO_H_TRUE='#'
25583 GL_GENERATE_ERRNO_H_FALSE=
25586 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25587 GL_GENERATE_ERRNO_H_TRUE='#'
25588 GL_GENERATE_ERRNO_H_FALSE='#'
25602 if test $ac_cv_func_explicit_bzero = no; then
25603 HAVE_EXPLICIT_BZERO=0
25607 if test $HAVE_EXPLICIT_BZERO = 0; then
25608 GL_COND_OBJ_EXPLICIT_BZERO_TRUE=
25609 GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
25611 GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
25612 GL_COND_OBJ_EXPLICIT_BZERO_FALSE=
25615 if test -z "${GL_COND_OBJ_EXPLICIT_BZERO_TRUE}" && test -z "${GL_COND_OBJ_EXPLICIT_BZERO_FALSE}"; then
25616 GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
25617 GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
25620 if test -z "$GL_COND_OBJ_EXPLICIT_BZERO_TRUE"; then :
25623 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
25624 if test "x$ac_cv_func_explicit_memset" = xyes
25626 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
25648 GL_SGL_GNULIB_EXPLICIT_BZERO=1
25654 printf "%s\n" "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
25664 if test $ac_cv_func_fcntl = no; then
25668 if test $ac_cv_func_fcntl = no; then
25675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
25676 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
25677 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
25679 printf %s "(cached) " >&6
25681 if test "$cross_compiling" = yes
25684 aix* | cygwin* | haiku*)
25685 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
25686 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25693 #include <limits.h>
25694 #include <sys/resource.h>
25695 #include <unistd.h>
25700 #ifndef RLIM_SAVED_CUR
25701 # define RLIM_SAVED_CUR RLIM_INFINITY
25703 #ifndef RLIM_SAVED_MAX
25704 # define RLIM_SAVED_MAX RLIM_INFINITY
25711 int bad_fd = INT_MAX;
25712 struct rlimit rlim;
25713 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
25714 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
25715 && rlim.rlim_cur != RLIM_INFINITY
25716 && rlim.rlim_cur != RLIM_SAVED_MAX
25717 && rlim.rlim_cur != RLIM_SAVED_CUR)
25718 bad_fd = rlim.rlim_cur;
25719 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
25720 if (errno != EINVAL) result |= 2;
25721 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
25722 if (errno != EINVAL) result |= 8;
25723 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
25726 fd = open (".", O_RDONLY);
25729 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
25739 if ac_fn_c_try_run "$LINENO"
25741 gl_cv_func_fcntl_f_dupfd_works=yes
25743 gl_cv_func_fcntl_f_dupfd_works=no
25745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25746 conftest.$ac_objext conftest.beam conftest.$ac_ext
25750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
25751 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
25752 case $gl_cv_func_fcntl_f_dupfd_works in
25757 if test $ac_cv_func_fcntl = no; then
25764 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
25768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
25769 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
25770 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
25772 printf %s "(cached) " >&6
25774 if test "$cross_compiling" = yes
25777 # Guess no on NetBSD.
25778 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
25779 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h. */
25786 #include <unistd.h>
25787 int main (int argc, char *argv[])
25790 /* parent process */
25792 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
25794 return execl ("./conftest", "./conftest", "child", NULL);
25797 /* child process */
25798 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
25803 if ac_fn_c_try_run "$LINENO"
25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806 /* end confdefs.h. */
25809 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
25810 it to support the semantics on older kernels that failed with EINVAL. */
25822 if ac_fn_c_try_compile "$LINENO"
25824 gl_cv_func_fcntl_f_dupfd_cloexec=yes
25826 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
25828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25831 gl_cv_func_fcntl_f_dupfd_cloexec=no
25833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25834 conftest.$ac_objext conftest.beam conftest.$ac_ext
25839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
25840 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
25841 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
25846 if test $ac_cv_func_fcntl = no; then
25858 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
25859 GL_COND_OBJ_FCNTL_TRUE=
25860 GL_COND_OBJ_FCNTL_FALSE='#'
25862 GL_COND_OBJ_FCNTL_TRUE='#'
25863 GL_COND_OBJ_FCNTL_FALSE=
25866 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
25867 GL_COND_OBJ_FCNTL_TRUE='#'
25868 GL_COND_OBJ_FCNTL_FALSE='#'
25880 GL_SGL_GNULIB_FCNTL=1
25886 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
25903 gl_cv_func_fopen_slash="guessing no"
25906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
25907 printf %s "checking whether fopen recognizes a trailing slash... " >&6; }
25908 if test ${gl_cv_func_fopen_slash+y}
25910 printf %s "(cached) " >&6
25913 if test "$cross_compiling" = yes
25917 aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
25918 gl_cv_func_fopen_slash="guessing no" ;;
25920 gl_cv_func_fopen_slash="guessing yes" ;;
25924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25925 /* end confdefs.h. */
25927 #include <stddef.h>
25931 FILE *fp = fopen ("conftest.sl/", "w");
25932 int result = (fp != NULL);
25938 if ac_fn_c_try_run "$LINENO"
25940 gl_cv_func_fopen_slash=yes
25942 gl_cv_func_fopen_slash=no
25944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25945 conftest.$ac_objext conftest.beam conftest.$ac_ext
25951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
25952 printf "%s\n" "$gl_cv_func_fopen_slash" >&6; }
25955 case "$gl_cv_func_fopen_slash" in
25958 printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25964 if test $REPLACE_FOPEN = 1; then
25973 sgl_LIBOBJS="$sgl_LIBOBJS fopen.$ac_objext"
25986 GL_SGL_GNULIB_FOPEN=1
25992 printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
25998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
25999 printf %s "checking whether fopen supports the mode character 'x'... " >&6; }
26000 if test ${gl_cv_func_fopen_mode_x+y}
26002 printf %s "(cached) " >&6
26005 if test "$cross_compiling" = yes
26008 # Guess yes on glibc and musl systems.
26009 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
26010 gl_cv_func_fopen_mode_x="guessing yes" ;;
26011 # If we don't know, obey --enable-cross-guesses.
26013 gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
26017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018 /* end confdefs.h. */
26025 fp = fopen ("conftest.x", "w");
26027 fp = fopen ("conftest.x", "wx");
26031 else if (errno == EEXIST)
26038 if ac_fn_c_try_run "$LINENO"
26040 gl_cv_func_fopen_mode_x=yes
26042 gl_cv_func_fopen_mode_x=no
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26045 conftest.$ac_objext conftest.beam conftest.$ac_ext
26051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
26052 printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; }
26053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
26054 printf %s "checking whether fopen supports the mode character 'e'... " >&6; }
26055 if test ${gl_cv_func_fopen_mode_e+y}
26057 printf %s "(cached) " >&6
26059 echo foo > conftest.x
26060 if test "$cross_compiling" = yes
26063 # Guess yes on glibc and musl systems.
26064 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
26065 gl_cv_func_fopen_mode_e="guessing yes" ;;
26066 # Guess no on native Windows.
26068 gl_cv_func_fopen_mode_e="guessing no" ;;
26069 # If we don't know, obey --enable-cross-guesses.
26071 gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h. */
26087 FILE *fp = fopen ("conftest.x", "re");
26090 if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
26101 if ac_fn_c_try_run "$LINENO"
26103 gl_cv_func_fopen_mode_e=yes
26105 gl_cv_func_fopen_mode_e=no
26107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26108 conftest.$ac_objext conftest.beam conftest.$ac_ext
26114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
26115 printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; }
26116 REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN"
26117 case "$gl_cv_func_fopen_mode_x" in
26118 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
26120 case "$gl_cv_func_fopen_mode_e" in
26121 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
26124 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
26133 sgl_LIBOBJS="$sgl_LIBOBJS fopen.$ac_objext"
26139 printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h
26151 GL_SGL_GNULIB_FOPEN_GNU=1
26157 printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h
26164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
26165 printf %s "checking whether free is known to preserve errno... " >&6; }
26166 if test ${gl_cv_func_free_preserves_errno+y}
26168 printf %s "(cached) " >&6
26170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h. */
26172 #include <stdlib.h>
26177 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
26178 #elif defined __OpenBSD__
26179 #elif defined __sun
26181 #error "'free' is not known to preserve errno"
26188 if ac_fn_c_try_compile "$LINENO"
26190 gl_cv_func_free_preserves_errno=yes
26192 gl_cv_func_free_preserves_errno=no
26194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
26198 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
26200 case $gl_cv_func_free_preserves_errno in
26203 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
26206 *) REPLACE_FREE=1 ;;
26210 if test $REPLACE_FREE = 1; then
26211 GL_COND_OBJ_FREE_TRUE=
26212 GL_COND_OBJ_FREE_FALSE='#'
26214 GL_COND_OBJ_FREE_TRUE='#'
26215 GL_COND_OBJ_FREE_FALSE=
26218 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
26219 GL_COND_OBJ_FREE_TRUE='#'
26220 GL_COND_OBJ_FREE_FALSE='#'
26223 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
26237 GL_SGL_GNULIB_FREE_POSIX=1
26243 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
26260 if test $REPLACE_FSTAT = 1; then
26261 GL_COND_OBJ_FSTAT_TRUE=
26262 GL_COND_OBJ_FSTAT_FALSE='#'
26264 GL_COND_OBJ_FSTAT_TRUE='#'
26265 GL_COND_OBJ_FSTAT_FALSE=
26268 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
26269 GL_COND_OBJ_FSTAT_TRUE='#'
26270 GL_COND_OBJ_FSTAT_FALSE='#'
26273 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
26285 sgl_LIBOBJS="$sgl_LIBOBJS stat-w32.$ac_objext"
26305 GL_SGL_GNULIB_FSTAT=1
26311 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
26318 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
26323 if test $REPLACE_FTELL = 1; then
26324 GL_COND_OBJ_FTELL_TRUE=
26325 GL_COND_OBJ_FTELL_FALSE='#'
26327 GL_COND_OBJ_FTELL_TRUE='#'
26328 GL_COND_OBJ_FTELL_FALSE=
26331 if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then
26332 GL_COND_OBJ_FTELL_TRUE='#'
26333 GL_COND_OBJ_FTELL_FALSE='#'
26345 GL_SGL_GNULIB_FTELL=1
26351 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h
26364 if test $ac_cv_have_decl_ftello = no; then
26368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
26369 printf %s "checking for ftello... " >&6; }
26370 if test ${gl_cv_func_ftello+y}
26372 printf %s "(cached) " >&6
26375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h. */
26386 if ac_fn_c_try_link "$LINENO"
26388 gl_cv_func_ftello=yes
26390 gl_cv_func_ftello=no
26392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26393 conftest$ac_exeext conftest.$ac_ext
26396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
26397 printf "%s\n" "$gl_cv_func_ftello" >&6; }
26398 if test $gl_cv_func_ftello = no; then
26401 if test $WINDOWS_64_BIT_OFF_T = 1; then
26404 if test $gl_cv_var_stdin_large_offset = no; then
26407 if test $REPLACE_FTELLO = 0; then
26409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
26410 printf %s "checking whether ftello works... " >&6; }
26411 if test ${gl_cv_func_ftello_works+y}
26413 printf %s "(cached) " >&6
26417 # Guess no on Solaris.
26418 solaris*) gl_cv_func_ftello_works="guessing no" ;;
26419 # Guess yes on native Windows.
26420 mingw*) gl_cv_func_ftello_works="guessing yes" ;;
26421 # Guess yes otherwise.
26422 *) gl_cv_func_ftello_works="guessing yes" ;;
26424 if test "$cross_compiling" = yes
26428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26429 /* end confdefs.h. */
26432 #include <stdlib.h>
26433 #include <string.h>
26434 #define TESTFILE "conftest.tmp"
26440 /* Create a file with some contents. */
26441 fp = fopen (TESTFILE, "w");
26444 if (fwrite ("foogarsh", 1, 8, fp) < 8)
26445 { fclose (fp); return 71; }
26449 /* The file's contents is now "foogarsh". */
26451 /* Try writing after reading to EOF. */
26452 fp = fopen (TESTFILE, "r+");
26455 if (fseek (fp, -1, SEEK_END))
26456 { fclose (fp); return 74; }
26457 if (!(getc (fp) == 'h'))
26458 { fclose (fp); return 1; }
26459 if (!(getc (fp) == EOF))
26460 { fclose (fp); return 2; }
26461 if (!(ftell (fp) == 8))
26462 { fclose (fp); return 3; }
26463 if (!(ftell (fp) == 8))
26464 { fclose (fp); return 4; }
26465 if (!(putc ('!', fp) == '!'))
26466 { fclose (fp); return 5; }
26467 if (!(ftell (fp) == 9))
26468 { fclose (fp); return 6; }
26469 if (!(fclose (fp) == 0))
26471 fp = fopen (TESTFILE, "r");
26476 if (!(fread (buf, 1, 10, fp) == 9))
26477 { fclose (fp); return 10; }
26478 if (!(memcmp (buf, "foogarsh!", 9) == 0))
26479 { fclose (fp); return 11; }
26481 if (!(fclose (fp) == 0))
26484 /* The file's contents is now "foogarsh!". */
26489 if ac_fn_c_try_run "$LINENO"
26491 gl_cv_func_ftello_works=yes
26493 gl_cv_func_ftello_works=no
26495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26496 conftest.$ac_objext conftest.beam conftest.$ac_ext
26501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
26502 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
26503 case "$gl_cv_func_ftello_works" in
26508 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
26513 if test $REPLACE_FTELLO = 0; then
26515 if test $gl_ftello_broken_after_ungetc = yes; then
26518 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
26525 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
26526 GL_COND_OBJ_FTELLO_TRUE=
26527 GL_COND_OBJ_FTELLO_FALSE='#'
26529 GL_COND_OBJ_FTELLO_TRUE='#'
26530 GL_COND_OBJ_FTELLO_FALSE=
26533 if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then
26534 GL_COND_OBJ_FTELLO_TRUE='#'
26535 GL_COND_OBJ_FTELLO_FALSE='#'
26538 if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then :
26541 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
26542 if test "x$ac_cv_func__ftelli64" = xyes
26544 printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
26560 GL_SGL_GNULIB_FTELLO=1
26566 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
26575 if test $ac_cv_func_getdtablesize = yes &&
26576 test $ac_cv_have_decl_getdtablesize = yes; then
26577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
26578 printf %s "checking whether getdtablesize works... " >&6; }
26579 if test ${gl_cv_func_getdtablesize_works+y}
26581 printf %s "(cached) " >&6
26584 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
26586 if test "$cross_compiling" = yes
26589 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
26590 gl_cv_func_getdtablesize_works="guessing no" ;;
26591 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596 /* end confdefs.h. */
26598 #include <unistd.h>
26607 int size = getdtablesize();
26608 if (dup2 (0, getdtablesize()) != -1)
26610 if (size != getdtablesize())
26617 if ac_fn_c_try_run "$LINENO"
26619 gl_cv_func_getdtablesize_works=yes
26621 gl_cv_func_getdtablesize_works=no
26623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26624 conftest.$ac_objext conftest.beam conftest.$ac_ext
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
26632 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
26633 case "$gl_cv_func_getdtablesize_works" in
26634 *yes | "no (limitation)") ;;
26635 *) REPLACE_GETDTABLESIZE=1 ;;
26638 HAVE_GETDTABLESIZE=0
26642 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
26643 GL_COND_OBJ_GETDTABLESIZE_TRUE=
26644 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
26646 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
26647 GL_COND_OBJ_GETDTABLESIZE_FALSE=
26650 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
26651 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
26652 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
26655 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
26669 GL_SGL_GNULIB_GETDTABLESIZE=1
26675 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
26689 if test -n "$gl_replace_getopt"; then
26693 GL_GENERATE_GETOPT_H=false
26694 GL_GENERATE_GETOPT_CDEFS_H=false
26695 if test $REPLACE_GETOPT = 1; then
26698 if test $ac_cv_header_sys_cdefs_h = yes; then
26706 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
26708 GL_GENERATE_GETOPT_H=true
26709 GL_GENERATE_GETOPT_CDEFS_H=true
26717 case "$GL_GENERATE_GETOPT_H" in
26718 false) GETOPT_H='' ;;
26720 if test -z "$GETOPT_H"; then
26721 GETOPT_H="${gl_source_base_prefix}getopt.h"
26724 *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
26728 if $GL_GENERATE_GETOPT_H; then
26729 GL_GENERATE_GETOPT_H_TRUE=
26730 GL_GENERATE_GETOPT_H_FALSE='#'
26732 GL_GENERATE_GETOPT_H_TRUE='#'
26733 GL_GENERATE_GETOPT_H_FALSE=
26736 if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
26737 GL_GENERATE_GETOPT_H_TRUE='#'
26738 GL_GENERATE_GETOPT_H_FALSE='#'
26749 case "$GL_GENERATE_GETOPT_CDEFS_H" in
26750 false) GETOPT_CDEFS_H='' ;;
26752 if test -z "$GETOPT_CDEFS_H"; then
26753 GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
26756 *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
26760 if $GL_GENERATE_GETOPT_CDEFS_H; then
26761 GL_GENERATE_GETOPT_CDEFS_H_TRUE=
26762 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
26764 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
26765 GL_GENERATE_GETOPT_CDEFS_H_FALSE=
26768 if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
26769 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
26770 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
26779 if test $REPLACE_GETOPT = 1; then
26780 GL_COND_OBJ_GETOPT_TRUE=
26781 GL_COND_OBJ_GETOPT_FALSE='#'
26783 GL_COND_OBJ_GETOPT_TRUE='#'
26784 GL_COND_OBJ_GETOPT_FALSE=
26787 if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
26788 GL_COND_OBJ_GETOPT_TRUE='#'
26789 GL_COND_OBJ_GETOPT_FALSE='#'
26792 if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
26800 GL_SGL_GNULIB_UNISTD_H_GETOPT=1
26814 GL_SGL_GNULIB_GETOPT_POSIX=1
26820 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
26838 gl_gettimeofday_timezone=void
26839 if test $ac_cv_func_gettimeofday != yes; then
26840 HAVE_GETTIMEOFDAY=0
26842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
26843 printf %s "checking for gettimeofday with POSIX signature... " >&6; }
26844 if test ${gl_cv_func_gettimeofday_posix_signature+y}
26846 printf %s "(cached) " >&6
26848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h. */
26850 #include <sys/time.h>
26852 int gettimeofday (struct timeval *restrict, void *restrict);
26857 /* glibc uses struct timezone * rather than the POSIX void *
26858 if _GNU_SOURCE is defined. However, since the only portable
26859 use of gettimeofday uses NULL as the second parameter, and
26860 since the glibc definition is actually more typesafe, it is
26861 not worth wrapping this to get a compliant signature. */
26862 int (*f) (struct timeval *restrict, void *restrict)
26865 return !(x | c.tv_sec | c.tv_usec);
26871 if ac_fn_c_try_compile "$LINENO"
26873 gl_cv_func_gettimeofday_posix_signature=yes
26875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h. */
26877 #include <sys/time.h>
26878 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
26888 if ac_fn_c_try_compile "$LINENO"
26890 gl_cv_func_gettimeofday_posix_signature=almost
26892 gl_cv_func_gettimeofday_posix_signature=no
26894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
26899 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; }
26900 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
26901 gl_gettimeofday_timezone='struct timezone'
26902 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
26903 REPLACE_GETTIMEOFDAY=1
26905 if test $REPLACE_STRUCT_TIMEVAL = 1; then
26906 REPLACE_GETTIMEOFDAY=1
26909 mingw*) REPLACE_GETTIMEOFDAY=1 ;;
26913 printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h
26917 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
26918 GL_COND_OBJ_GETTIMEOFDAY_TRUE=
26919 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
26921 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
26922 GL_COND_OBJ_GETTIMEOFDAY_FALSE=
26925 if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then
26926 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
26927 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
26930 if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then :
26944 GL_SGL_GNULIB_GETTIMEOFDAY=1
26950 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
26967 case "$GL_GENERATE_LIMITS_H" in
26968 false) LIMITS_H='' ;;
26970 if test -z "$LIMITS_H"; then
26971 LIMITS_H="${gl_source_base_prefix}limits.h"
26974 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
26978 if $GL_GENERATE_LIMITS_H; then
26979 GL_GENERATE_LIMITS_H_TRUE=
26980 GL_GENERATE_LIMITS_H_FALSE='#'
26982 GL_GENERATE_LIMITS_H_TRUE='#'
26983 GL_GENERATE_LIMITS_H_FALSE=
26986 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
26987 GL_GENERATE_LIMITS_H_TRUE='#'
26988 GL_GENERATE_LIMITS_H_FALSE='#'
27002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
27003 printf %s "checking whether lseek detects pipes... " >&6; }
27004 if test ${gl_cv_func_lseek_pipe+y}
27006 printf %s "(cached) " >&6
27010 gl_cv_func_lseek_pipe=no
27013 if test $cross_compiling = no; then
27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27015 /* end confdefs.h. */
27017 #include <sys/types.h> /* for off_t */
27018 #include <stdio.h> /* for SEEK_CUR */
27020 # include <unistd.h>
27021 #else /* on Windows with MSVC */
27032 /* Exit with success only if stdin is seekable. */
27033 return lseek (0, (off_t)0, SEEK_CUR) < 0;
27039 if ac_fn_c_try_link "$LINENO"
27041 if test -s conftest$ac_exeext \
27042 && ./conftest$ac_exeext < conftest.$ac_ext \
27043 && test 1 = "`echo hi \
27044 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
27045 gl_cv_func_lseek_pipe=yes
27047 gl_cv_func_lseek_pipe=no
27051 gl_cv_func_lseek_pipe=no
27053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27054 conftest$ac_exeext conftest.$ac_ext
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27059 #if defined __BEOS__
27060 /* BeOS mistakenly return 0 when trying to seek on pipes. */
27064 if ac_fn_c_try_compile "$LINENO"
27066 gl_cv_func_lseek_pipe=yes
27068 gl_cv_func_lseek_pipe=no
27070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
27077 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; }
27078 if test "$gl_cv_func_lseek_pipe" = no; then
27081 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
27086 if test $WINDOWS_64_BIT_OFF_T = 1; then
27096 if test $REPLACE_LSEEK = 1; then
27097 GL_COND_OBJ_LSEEK_TRUE=
27098 GL_COND_OBJ_LSEEK_FALSE='#'
27100 GL_COND_OBJ_LSEEK_TRUE='#'
27101 GL_COND_OBJ_LSEEK_FALSE=
27104 if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then
27105 GL_COND_OBJ_LSEEK_TRUE='#'
27106 GL_COND_OBJ_LSEEK_FALSE='#'
27118 GL_SGL_GNULIB_LSEEK=1
27124 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
27129 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
27138 sgl_LIBOBJS="$sgl_LIBOBJS malloc.$ac_objext"
27150 GL_SGL_GNULIB_MALLOC_POSIX=1
27156 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
27165 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27166 GL_COND_OBJ_MSVC_INVAL_TRUE=
27167 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
27169 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
27170 GL_COND_OBJ_MSVC_INVAL_FALSE=
27173 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
27174 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
27175 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
27180 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27181 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
27182 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
27184 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
27185 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
27188 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
27189 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
27190 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
27195 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
27208 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
27213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
27214 printf %s "checking whether open recognizes a trailing slash... " >&6; }
27215 if test ${gl_cv_func_open_slash+y}
27217 printf %s "(cached) " >&6
27219 # Assume that if we have lstat, we can also check symlinks.
27220 if test $ac_cv_func_lstat = yes; then
27222 ln -s conftest.tmp conftest.lnk
27224 if test "$cross_compiling" = yes
27228 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
27229 gl_cv_func_open_slash="guessing no" ;;
27231 gl_cv_func_open_slash="guessing yes" ;;
27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h. */
27240 # include <unistd.h>
27250 if (open ("conftest.lnk/", O_RDONLY) != -1)
27253 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
27258 if ac_fn_c_try_run "$LINENO"
27260 gl_cv_func_open_slash=yes
27262 gl_cv_func_open_slash=no
27264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27265 conftest.$ac_objext conftest.beam conftest.$ac_ext
27268 rm -f conftest.sl conftest.tmp conftest.lnk
27271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
27272 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
27273 case "$gl_cv_func_open_slash" in
27276 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
27281 case "$gl_cv_func_open_slash" in
27292 if test $REPLACE_OPEN = 1; then
27293 GL_COND_OBJ_OPEN_TRUE=
27294 GL_COND_OBJ_OPEN_FALSE='#'
27296 GL_COND_OBJ_OPEN_TRUE='#'
27297 GL_COND_OBJ_OPEN_FALSE=
27300 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
27301 GL_COND_OBJ_OPEN_TRUE='#'
27302 GL_COND_OBJ_OPEN_FALSE='#'
27305 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
27322 GL_SGL_GNULIB_OPEN=1
27328 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
27335 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
27336 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27337 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
27343 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
27345 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
27346 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27347 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
27353 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
27359 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
27360 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
27363 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
27372 sgl_LIBOBJS="$sgl_LIBOBJS realloc.$ac_objext"
27384 GL_SGL_GNULIB_REALLOC_POSIX=1
27390 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
27395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27396 printf %s "checking for ssize_t... " >&6; }
27397 if test ${gt_cv_ssize_t+y}
27399 printf %s "(cached) " >&6
27401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27402 /* end confdefs.h. */
27403 #include <sys/types.h>
27407 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27413 if ac_fn_c_try_compile "$LINENO"
27419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27422 printf "%s\n" "$gt_cv_ssize_t" >&6; }
27423 if test $gt_cv_ssize_t = no; then
27425 printf "%s\n" "#define ssize_t int" >>confdefs.h
27438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27439 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
27440 if test ${gl_cv_func_stat_file_slash+y}
27442 printf %s "(cached) " >&6
27445 # Assume that if we have lstat, we can also check symlinks.
27446 if test $ac_cv_func_lstat = yes; then
27447 ln -s conftest.tmp conftest.lnk
27449 if test "$cross_compiling" = yes
27452 # Guess yes on Linux systems.
27453 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
27454 # Guess yes on glibc systems.
27455 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
27456 # If we don't know, obey --enable-cross-guesses.
27457 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
27461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27462 /* end confdefs.h. */
27463 #include <sys/stat.h>
27470 if (!stat ("conftest.tmp/", &st))
27473 if (!stat ("conftest.lnk/", &st))
27482 if ac_fn_c_try_run "$LINENO"
27484 gl_cv_func_stat_file_slash=yes
27486 gl_cv_func_stat_file_slash=no
27488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27489 conftest.$ac_objext conftest.beam conftest.$ac_ext
27492 rm -f conftest.tmp conftest.lnk
27494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27495 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
27496 case $gl_cv_func_stat_file_slash in
27500 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27511 if test $REPLACE_STAT = 1; then
27512 GL_COND_OBJ_STAT_TRUE=
27513 GL_COND_OBJ_STAT_FALSE='#'
27515 GL_COND_OBJ_STAT_TRUE='#'
27516 GL_COND_OBJ_STAT_FALSE=
27519 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
27520 GL_COND_OBJ_STAT_TRUE='#'
27521 GL_COND_OBJ_STAT_FALSE='#'
27524 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
27536 sgl_LIBOBJS="$sgl_LIBOBJS stat-w32.$ac_objext"
27556 GL_SGL_GNULIB_STAT=1
27562 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
27570 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
27571 #include <sys/stat.h>
27573 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
27576 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
27578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27579 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27580 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
27582 printf %s "(cached) " >&6
27584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h. */
27587 #include <sys/types.h>
27588 #include <sys/stat.h>
27589 #if HAVE_SYS_TIME_H
27590 # include <sys/time.h>
27593 struct timespec ts;
27606 if ac_fn_c_try_compile "$LINENO"
27608 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
27610 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
27612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27615 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27616 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27618 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27622 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
27623 #include <sys/stat.h>
27625 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
27628 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
27632 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27633 #include <sys/stat.h>
27635 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
27638 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
27642 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
27643 #include <sys/stat.h>
27645 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
27648 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
27663 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
27664 #include <sys/stat.h>
27666 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
27669 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
27673 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27674 #include <sys/stat.h>
27676 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
27679 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
27683 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
27684 #include <sys/stat.h>
27686 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
27689 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
27700 GL_GENERATE_STDARG_H=false
27701 NEXT_STDARG_H='<stdarg.h>'
27702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27703 printf %s "checking for va_copy... " >&6; }
27704 if test ${gl_cv_func_va_copy+y}
27706 printf %s "(cached) " >&6
27708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27709 /* end confdefs.h. */
27710 #include <stdarg.h>
27716 void (*func) (va_list, va_list) = va_copy;
27723 if ac_fn_c_try_compile "$LINENO"
27725 gl_cv_func_va_copy=yes
27727 gl_cv_func_va_copy=no
27729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
27733 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
27734 if test $gl_cv_func_va_copy = no; then
27735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27736 /* end confdefs.h. */
27737 #if defined _AIX && !defined __GNUC__
27742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27743 $EGREP "vaccine" >/dev/null 2>&1
27751 if test $gl_aixcc = yes; then
27752 GL_GENERATE_STDARG_H=true
27761 if test $gl_cv_have_include_next = yes; then
27762 gl_cv_next_stdarg_h='<'stdarg.h'>'
27764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
27765 printf %s "checking absolute name of <stdarg.h>... " >&6; }
27766 if test ${gl_cv_next_stdarg_h+y}
27768 printf %s "(cached) " >&6
27773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774 /* end confdefs.h. */
27775 #include <stdarg.h>
27778 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27779 *) gl_absname_cpp="$ac_cpp" ;;
27784 gl_dirsep_regex='[/\\]'
27787 gl_dirsep_regex='\/'
27790 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27791 gl_header_literal_regex=`echo 'stdarg.h' \
27792 | sed -e "$gl_make_literal_regex_sed"`
27793 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27794 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27800 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27801 sed -n "$gl_absolute_header_sed"`
27803 gl_header=$gl_cv_absolute_stdarg_h
27804 gl_cv_next_stdarg_h='"'$gl_header'"'
27808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
27809 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
27811 NEXT_STDARG_H=$gl_cv_next_stdarg_h
27813 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27814 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27815 gl_next_as_first_directive='<'stdarg.h'>'
27817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27818 gl_next_as_first_directive=$gl_cv_next_stdarg_h
27820 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
27825 if test "$gl_cv_next_stdarg_h" = '""'; then
27826 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
27827 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
27832 exec 9>&6 6>/dev/null
27834 if test ${gl_cv_func___va_copy+y}
27836 printf %s "(cached) " >&6
27839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h. */
27841 #include <stdarg.h>
27854 if ac_fn_c_try_compile "$LINENO"
27856 gl_cv_func___va_copy=yes
27858 gl_cv_func___va_copy=no
27860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27867 if test $gl_cv_func___va_copy = yes; then
27869 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
27874 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
27885 case "$GL_GENERATE_STDARG_H" in
27886 false) STDARG_H='' ;;
27888 if test -z "$STDARG_H"; then
27889 STDARG_H="${gl_source_base_prefix}stdarg.h"
27892 *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
27896 if $GL_GENERATE_STDARG_H; then
27897 GL_GENERATE_STDARG_H_TRUE=
27898 GL_GENERATE_STDARG_H_FALSE='#'
27900 GL_GENERATE_STDARG_H_TRUE='#'
27901 GL_GENERATE_STDARG_H_FALSE=
27904 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27905 GL_GENERATE_STDARG_H_TRUE='#'
27906 GL_GENERATE_STDARG_H_FALSE='#'
27918 if test "$ac_cv_header_stdbool_h" = yes; then
27921 if test -z "$GCC"; then
27922 GL_GENERATE_STDBOOL_H=true
27924 GL_GENERATE_STDBOOL_H=false
27928 GL_GENERATE_STDBOOL_H=false
27932 GL_GENERATE_STDBOOL_H=true
27935 if test "$ac_cv_type__Bool" = yes; then
27946 case "$GL_GENERATE_STDBOOL_H" in
27947 false) STDBOOL_H='' ;;
27949 if test -z "$STDBOOL_H"; then
27950 STDBOOL_H="${gl_source_base_prefix}stdbool.h"
27953 *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
27957 if $GL_GENERATE_STDBOOL_H; then
27958 GL_GENERATE_STDBOOL_H_TRUE=
27959 GL_GENERATE_STDBOOL_H_FALSE='#'
27961 GL_GENERATE_STDBOOL_H_TRUE='#'
27962 GL_GENERATE_STDBOOL_H_FALSE=
27965 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27966 GL_GENERATE_STDBOOL_H_TRUE='#'
27967 GL_GENERATE_STDBOOL_H_FALSE='#'
27976 if test $ac_cv_header_stdckdint_h = yes; then
27977 GL_GENERATE_STDCKDINT_H=false
27979 GL_GENERATE_STDCKDINT_H=true
27985 case "$GL_GENERATE_STDCKDINT_H" in
27986 false) STDCKDINT_H='' ;;
27988 if test -z "$STDCKDINT_H"; then
27989 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
27992 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
27996 if $GL_GENERATE_STDCKDINT_H; then
27997 GL_GENERATE_STDCKDINT_H_TRUE=
27998 GL_GENERATE_STDCKDINT_H_FALSE='#'
28000 GL_GENERATE_STDCKDINT_H_TRUE='#'
28001 GL_GENERATE_STDCKDINT_H_FALSE=
28004 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
28005 GL_GENERATE_STDCKDINT_H_TRUE='#'
28006 GL_GENERATE_STDCKDINT_H_FALSE='#'
28024 case "$GL_GENERATE_STDDEF_H" in
28025 false) STDDEF_H='' ;;
28027 if test -z "$STDDEF_H"; then
28028 STDDEF_H="${gl_source_base_prefix}stddef.h"
28031 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
28035 if $GL_GENERATE_STDDEF_H; then
28036 GL_GENERATE_STDDEF_H_TRUE=
28037 GL_GENERATE_STDDEF_H_FALSE='#'
28039 GL_GENERATE_STDDEF_H_TRUE='#'
28040 GL_GENERATE_STDDEF_H_FALSE=
28043 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28044 GL_GENERATE_STDDEF_H_TRUE='#'
28045 GL_GENERATE_STDDEF_H_FALSE='#'
28058 case "$GL_GENERATE_STDINT_H" in
28059 false) STDINT_H='' ;;
28061 if test -z "$STDINT_H"; then
28062 STDINT_H="${gl_source_base_prefix}stdint.h"
28065 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
28069 if $GL_GENERATE_STDINT_H; then
28070 GL_GENERATE_STDINT_H_TRUE=
28071 GL_GENERATE_STDINT_H_FALSE='#'
28073 GL_GENERATE_STDINT_H_TRUE='#'
28074 GL_GENERATE_STDINT_H_FALSE=
28077 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28078 GL_GENERATE_STDINT_H_TRUE='#'
28079 GL_GENERATE_STDINT_H_FALSE='#'
28090 case "$GL_GENERATE_LIMITS_H" in
28091 false) LIMITS_H='' ;;
28093 if test -z "$LIMITS_H"; then
28094 LIMITS_H="${gl_source_base_prefix}limits.h"
28097 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
28101 if $GL_GENERATE_LIMITS_H; then
28102 GL_GENERATE_LIMITS_H_TRUE=
28103 GL_GENERATE_LIMITS_H_FALSE='#'
28105 GL_GENERATE_LIMITS_H_TRUE='#'
28106 GL_GENERATE_LIMITS_H_FALSE=
28109 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28110 GL_GENERATE_LIMITS_H_TRUE='#'
28111 GL_GENERATE_LIMITS_H_FALSE='#'
28127 if test $REPLACE_STDIO_READ_FUNCS = 1; then
28128 GL_COND_OBJ_STDIO_READ_TRUE=
28129 GL_COND_OBJ_STDIO_READ_FALSE='#'
28131 GL_COND_OBJ_STDIO_READ_TRUE='#'
28132 GL_COND_OBJ_STDIO_READ_FALSE=
28135 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
28136 GL_COND_OBJ_STDIO_READ_TRUE='#'
28137 GL_COND_OBJ_STDIO_READ_FALSE='#'
28141 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
28142 GL_COND_OBJ_STDIO_WRITE_TRUE=
28143 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
28145 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
28146 GL_COND_OBJ_STDIO_WRITE_FALSE=
28149 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
28150 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
28151 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
28163 GL_SGL_GNULIB_FSCANF=1
28169 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
28175 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
28187 GL_SGL_GNULIB_SCANF=1
28193 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
28199 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
28211 GL_SGL_GNULIB_FGETC=1
28217 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
28230 GL_SGL_GNULIB_GETC=1
28236 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
28249 GL_SGL_GNULIB_GETCHAR=1
28255 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
28268 GL_SGL_GNULIB_FGETS=1
28274 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
28287 GL_SGL_GNULIB_FREAD=1
28293 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
28306 GL_SGL_GNULIB_FPRINTF=1
28312 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
28325 GL_SGL_GNULIB_PRINTF=1
28331 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
28344 GL_SGL_GNULIB_VFPRINTF=1
28350 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
28363 GL_SGL_GNULIB_VPRINTF=1
28369 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
28382 GL_SGL_GNULIB_FPUTC=1
28388 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
28401 GL_SGL_GNULIB_PUTC=1
28407 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
28420 GL_SGL_GNULIB_PUTCHAR=1
28426 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
28439 GL_SGL_GNULIB_FPUTS=1
28445 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
28458 GL_SGL_GNULIB_PUTS=1
28464 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
28477 GL_SGL_GNULIB_FWRITE=1
28483 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
28543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
28544 printf %s "checking for variable-length arrays... " >&6; }
28545 if test ${ac_cv_c_vararrays+y}
28547 printf %s "(cached) " >&6
28549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28550 /* end confdefs.h. */
28551 #ifdef __STDC_NO_VLA__
28556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28557 $EGREP "defined" >/dev/null 2>&1
28559 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
28561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562 /* end confdefs.h. */
28563 /* Test for VLA support. This test is partly inspired
28564 from examples in the C standard. Use at least two VLA
28565 functions to detect the GCC 3.4.3 bug described in:
28566 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
28568 #ifdef __STDC_NO_VLA__
28573 int fvla (int m, int C[m][m]);
28576 simple (int count, int all[static count])
28578 return all[count - 1];
28582 fvla (int m, int C[m][m])
28584 typedef int VLA[m][m];
28587 static int (*q)[m] = &B;
28589 return C && &x[0][0] == &D[0] && &D[0] == s[0];
28601 if ac_fn_c_try_compile "$LINENO"
28603 ac_cv_c_vararrays=yes
28605 ac_cv_c_vararrays=no
28607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
28613 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
28614 if test "$ac_cv_c_vararrays" = yes; then
28616 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
28618 elif test "$ac_cv_c_vararrays" = no; then
28620 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
28625 # Check whether --with-packager was given.
28626 if test ${with_packager+y}
28628 withval=$with_packager; case $withval in
28631 printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h
28639 # Check whether --with-packager-version was given.
28640 if test ${with_packager_version+y}
28642 withval=$with_packager_version; case $withval in
28645 printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h
28653 # Check whether --with-packager-bug-reports was given.
28654 if test ${with_packager_bug_reports+y}
28656 withval=$with_packager_bug_reports; case $withval in
28659 printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h
28666 if test "X$with_packager" = "X" && \
28667 test "X$with_packager_version$with_packager_bug_reports" != "X"
28669 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
28684 # End of code from modules
28710 gl_source_base='src/gl/tests'
28711 gl_source_base_prefix=
28712 sgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
28714 gl_module_indicator_condition=$sgltests_WITNESS
28743 # allow to override gcov location
28745 # Check whether --with-gcov was given.
28746 if test ${with_gcov+y}
28748 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
28750 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
28754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
28755 printf %s "checking whether to build with code coverage support... " >&6; }
28756 # Check whether --enable-code-coverage was given.
28757 if test ${enable_code_coverage+y}
28759 enableval=$enable_code_coverage;
28761 enable_code_coverage=no
28765 if test "x$enable_code_coverage" = xyes; then
28766 CODE_COVERAGE_ENABLED_TRUE=
28767 CODE_COVERAGE_ENABLED_FALSE='#'
28769 CODE_COVERAGE_ENABLED_TRUE='#'
28770 CODE_COVERAGE_ENABLED_FALSE=
28773 CODE_COVERAGE_ENABLED=$enable_code_coverage
28775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
28776 printf "%s\n" "$enable_code_coverage" >&6; }
28778 if test "x$enable_code_coverage" = xyes
28782 for ac_prog in gawk mawk nawk awk
28784 # Extract the first word of "$ac_prog", so it can be a program name with args.
28785 set dummy $ac_prog; ac_word=$2
28786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28787 printf %s "checking for $ac_word... " >&6; }
28788 if test ${ac_cv_prog_AWK+y}
28790 printf %s "(cached) " >&6
28792 if test -n "$AWK"; then
28793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28796 for as_dir in $PATH
28799 case $as_dir in #(((
28802 *) as_dir=$as_dir/ ;;
28804 for ac_exec_ext in '' $ac_executable_extensions; do
28805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28806 ac_cv_prog_AWK="$ac_prog"
28807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28816 AWK=$ac_cv_prog_AWK
28817 if test -n "$AWK"; then
28818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28819 printf "%s\n" "$AWK" >&6; }
28821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28822 printf "%s\n" "no" >&6; }
28826 test -n "$AWK" && break
28829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
28830 printf %s "checking for GNU make... " >&6; }
28831 if test ${_cv_gnu_make_command+y}
28833 printf %s "(cached) " >&6
28835 _cv_gnu_make_command="" ;
28836 for a in "$MAKE" make gmake gnumake ; do
28837 if test -z "$a" ; then continue ; fi ;
28838 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
28839 _cv_gnu_make_command=$a ;
28840 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
28841 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
28846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
28847 printf "%s\n" "$_cv_gnu_make_command" >&6; }
28848 if test "x$_cv_gnu_make_command" = x""
28854 if test "x$_cv_gnu_make_command" = x""
28860 if test "x$_cv_gnu_make_command" = x""
28862 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
28864 ax_cv_gnu_make_command=${_cv_gnu_make_command}
28866 if test "x$_cv_gnu_make_command" = x""
28868 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
28875 if test -n "$ac_tool_prefix"; then
28876 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
28877 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
28878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28879 printf %s "checking for $ac_word... " >&6; }
28880 if test ${ac_cv_prog_GCOV+y}
28882 printf %s "(cached) " >&6
28884 if test -n "$GCOV"; then
28885 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
28887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28888 for as_dir in $PATH
28891 case $as_dir in #(((
28894 *) as_dir=$as_dir/ ;;
28896 for ac_exec_ext in '' $ac_executable_extensions; do
28897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28898 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
28899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28908 GCOV=$ac_cv_prog_GCOV
28909 if test -n "$GCOV"; then
28910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
28911 printf "%s\n" "$GCOV" >&6; }
28913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914 printf "%s\n" "no" >&6; }
28919 if test -z "$ac_cv_prog_GCOV"; then
28921 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
28922 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
28923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28924 printf %s "checking for $ac_word... " >&6; }
28925 if test ${ac_cv_prog_ac_ct_GCOV+y}
28927 printf %s "(cached) " >&6
28929 if test -n "$ac_ct_GCOV"; then
28930 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
28932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28933 for as_dir in $PATH
28936 case $as_dir in #(((
28939 *) as_dir=$as_dir/ ;;
28941 for ac_exec_ext in '' $ac_executable_extensions; do
28942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28943 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
28944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28953 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
28954 if test -n "$ac_ct_GCOV"; then
28955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
28956 printf "%s\n" "$ac_ct_GCOV" >&6; }
28958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28959 printf "%s\n" "no" >&6; }
28962 if test "x$ac_ct_GCOV" = x; then
28965 case $cross_compiling:$ac_tool_warned in
28967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28969 ac_tool_warned=yes ;;
28974 GCOV="$ac_cv_prog_GCOV"
28977 if test "X$GCOV" = "X:"
28979 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
28983 if test "$GCC" = "no"
28986 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
28990 # Extract the first word of "lcov", so it can be a program name with args.
28991 set dummy lcov; ac_word=$2
28992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28993 printf %s "checking for $ac_word... " >&6; }
28994 if test ${ac_cv_prog_LCOV+y}
28996 printf %s "(cached) " >&6
28998 if test -n "$LCOV"; then
28999 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
29001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29002 for as_dir in $PATH
29005 case $as_dir in #(((
29008 *) as_dir=$as_dir/ ;;
29010 for ac_exec_ext in '' $ac_executable_extensions; do
29011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29012 ac_cv_prog_LCOV="lcov"
29013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29022 LCOV=$ac_cv_prog_LCOV
29023 if test -n "$LCOV"; then
29024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
29025 printf "%s\n" "$LCOV" >&6; }
29027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29028 printf "%s\n" "no" >&6; }
29032 # Extract the first word of "genhtml", so it can be a program name with args.
29033 set dummy genhtml; ac_word=$2
29034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29035 printf %s "checking for $ac_word... " >&6; }
29036 if test ${ac_cv_prog_GENHTML+y}
29038 printf %s "(cached) " >&6
29040 if test -n "$GENHTML"; then
29041 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
29043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29044 for as_dir in $PATH
29047 case $as_dir in #(((
29050 *) as_dir=$as_dir/ ;;
29052 for ac_exec_ext in '' $ac_executable_extensions; do
29053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29054 ac_cv_prog_GENHTML="genhtml"
29055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29064 GENHTML=$ac_cv_prog_GENHTML
29065 if test -n "$GENHTML"; then
29066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
29067 printf "%s\n" "$GENHTML" >&6; }
29069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29070 printf "%s\n" "no" >&6; }
29075 if test x"$LCOV" = x
29078 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
29082 if test x"$GENHTML" = x
29085 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
29089 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
29090 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
29091 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
29092 CODE_COVERAGE_LIBS="-lgcov"
29113 # Check whether --enable-gcc-warnings was given.
29114 if test ${enable_gcc_warnings+y}
29116 enableval=$enable_gcc_warnings; case $enableval in
29118 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
29120 gl_gcc_warnings=$enableval
29122 gl_gcc_warnings=yes
29127 if test "$gl_gcc_warnings" = yes; then
29130 ac_cpp='$CPP $CPPFLAGS'
29131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29137 if test -n "$GCC"; then
29139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
29140 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
29141 if test ${gl_cv_cc_nomfi_supported+y}
29143 printf %s "(cached) " >&6
29145 gl_save_CFLAGS="$CFLAGS"
29146 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
29147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29148 /* end confdefs.h. */
29158 if ac_fn_c_try_compile "$LINENO"
29160 gl_cv_cc_nomfi_supported=yes
29162 gl_cv_cc_nomfi_supported=no
29164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29165 CFLAGS="$gl_save_CFLAGS"
29168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
29169 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
29171 if test "$gl_cv_cc_nomfi_supported" = yes; then
29172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
29173 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
29174 if test ${gl_cv_cc_nomfi_needed+y}
29176 printf %s "(cached) " >&6
29178 gl_save_CFLAGS="$CFLAGS"
29179 CFLAGS="$CFLAGS -Wextra -Werror"
29180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29181 /* end confdefs.h. */
29184 typedef struct { int a; int b; } s_t;
29197 if ac_fn_c_try_compile "$LINENO"
29199 gl_cv_cc_nomfi_needed=no
29201 gl_cv_cc_nomfi_needed=yes
29203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29204 CFLAGS="$gl_save_CFLAGS"
29207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
29208 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
29211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
29212 printf %s "checking whether -Wuninitialized is supported... " >&6; }
29213 if test ${gl_cv_cc_uninitialized_supported+y}
29215 printf %s "(cached) " >&6
29217 gl_save_CFLAGS="$CFLAGS"
29218 CFLAGS="$CFLAGS -Werror -Wuninitialized"
29219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29220 /* end confdefs.h. */
29230 if ac_fn_c_try_compile "$LINENO"
29232 gl_cv_cc_uninitialized_supported=yes
29234 gl_cv_cc_uninitialized_supported=no
29236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29237 CFLAGS="$gl_save_CFLAGS"
29240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
29241 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
29245 # List all gcc warning categories.
29246 # To compare this list to your installed GCC's, run this Bash command:
29249 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
29250 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
29251 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
29254 for gl_manywarn_item in -fanalyzer -fno-common \
29256 -Warith-conversion \
29257 -Wbad-function-cast \
29258 -Wcast-align=strict \
29260 -Wdisabled-optimization \
29261 -Wdouble-promotion \
29262 -Wduplicated-branches \
29263 -Wduplicated-cond \
29265 -Wformat-signedness \
29270 -Wmissing-declarations \
29271 -Wmissing-include-dirs \
29272 -Wmissing-prototypes \
29274 -Wnull-dereference \
29275 -Wold-style-definition \
29277 -Woverlength-strings \
29281 -Wstack-protector \
29282 -Wstrict-overflow \
29283 -Wstrict-prototypes \
29284 -Wsuggest-attribute=cold \
29285 -Wsuggest-attribute=const \
29286 -Wsuggest-attribute=format \
29287 -Wsuggest-attribute=malloc \
29288 -Wsuggest-attribute=noreturn \
29289 -Wsuggest-attribute=pure \
29290 -Wsuggest-final-methods \
29291 -Wsuggest-final-types \
29296 -Wunknown-pragmas \
29297 -Wunsafe-loop-optimizations \
29299 -Wvariadic-macros \
29300 -Wvector-operation-performance \
29305 as_fn_append warnings " $gl_manywarn_item"
29308 # gcc --help=warnings outputs an unusual form for these options; list
29309 # them here so that the above 'comm' command doesn't report a false match.
29310 as_fn_append warnings ' -Warray-bounds=2'
29311 as_fn_append warnings ' -Wattribute-alias=2'
29312 as_fn_append warnings ' -Wbidi-chars=any,ucn'
29313 as_fn_append warnings ' -Wformat-overflow=2'
29314 as_fn_append warnings ' -Wformat=2'
29315 as_fn_append warnings ' -Wformat-truncation=2'
29316 as_fn_append warnings ' -Wimplicit-fallthrough=5'
29317 as_fn_append warnings ' -Wshift-overflow=2'
29318 as_fn_append warnings ' -Wuse-after-free=3'
29319 as_fn_append warnings ' -Wunused-const-variable=2'
29320 as_fn_append warnings ' -Wvla-larger-than=4031'
29322 # These are needed for older GCC versions.
29323 if test -n "$GCC"; then
29324 case `($CC --version) 2>/dev/null` in
29325 'gcc (GCC) '[0-3].* | \
29326 'gcc (GCC) '4.[0-7].*)
29327 as_fn_append warnings ' -fdiagnostics-show-option'
29328 as_fn_append warnings ' -funit-at-a-time'
29333 # Disable specific options as needed.
29334 if test "$gl_cv_cc_nomfi_needed" = yes; then
29335 as_fn_append warnings ' -Wno-missing-field-initializers'
29338 if test "$gl_cv_cc_uninitialized_supported" = no; then
29339 as_fn_append warnings ' -Wno-uninitialized'
29342 # This warning have too many false alarms in GCC 11.2.1.
29343 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
29344 as_fn_append warnings ' -Wno-analyzer-malloc-leak'
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29354 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
29355 nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
29356 nw="$nw -Wundef" # All compiler preprocessors support #if UNDEF
29357 nw="$nw -Wtraditional" # All compilers nowadays support ANSI C
29358 nw="$nw -Wconversion" # These warnings usually don't point to mistakes.
29359 nw="$nw -Wpadded" # Padding internal structs doesn't help.
29360 nw="$nw -Wunused-macros" # Lot's of warnings in ASN1.y
29361 nw="$nw -Woverlength-strings" # Modern compilers handle strings > 4096 gracefully
29362 nw="$nw -Wsuggest-attribute=pure" # Asked for several nodes handling functions
29366 set x $warnings; shift
29370 *" $gl_warn_item "*)
29373 as_fn_append gl_warn_set " $gl_warn_item"
29377 warnings=$gl_warn_set
29379 for w in $warnings; do
29382 ac_cpp='$CPP $CPPFLAGS'
29383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
29389 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
29390 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
29392 printf %s "(cached) " >&6
29395 gl_save_compiler_FLAGS="$CFLAGS"
29396 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
29397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29398 /* end confdefs.h. */
29408 if ac_fn_c_try_link "$LINENO"
29410 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
29412 gl_cv_warn_c__Werror__Wunknown_warning_option=no
29414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29415 conftest$ac_exeext conftest.$ac_ext
29416 CFLAGS="$gl_save_compiler_FLAGS"
29419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
29420 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
29421 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
29423 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
29425 gl_unknown_warnings_are_errors=
29429 ac_cpp='$CPP $CPPFLAGS'
29430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29437 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
29439 case $gl_positive in
29440 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
29442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
29443 printf %s "checking whether C compiler handles $w... " >&6; }
29444 if eval test \${$as_gl_Warn+y}
29446 printf %s "(cached) " >&6
29449 gl_save_compiler_FLAGS="$CFLAGS"
29450 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
29451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29452 /* end confdefs.h. */
29462 if ac_fn_c_try_link "$LINENO"
29464 eval "$as_gl_Warn=yes"
29466 eval "$as_gl_Warn=no"
29468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29469 conftest$ac_exeext conftest.$ac_ext
29470 CFLAGS="$gl_save_compiler_FLAGS"
29473 eval ac_res=\$$as_gl_Warn
29474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29475 printf "%s\n" "$ac_res" >&6; }
29476 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
29478 as_fn_append WARN_CFLAGS " $w"
29486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
29487 printf %s "checking whether C compiler handles -Wno-type-limits... " >&6; }
29488 if test ${gl_cv_warn_c__Wno_type_limits+y}
29490 printf %s "(cached) " >&6
29493 gl_save_compiler_FLAGS="$CFLAGS"
29494 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h. */
29506 if ac_fn_c_try_link "$LINENO"
29508 gl_cv_warn_c__Wno_type_limits=yes
29510 gl_cv_warn_c__Wno_type_limits=no
29512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29513 conftest$ac_exeext conftest.$ac_ext
29514 CFLAGS="$gl_save_compiler_FLAGS"
29517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
29518 printf "%s\n" "$gl_cv_warn_c__Wno_type_limits" >&6; }
29519 if test "x$gl_cv_warn_c__Wno_type_limits" = xyes
29521 as_fn_append WARN_CFLAGS " -Wno-type-limits"
29524 # Too many warnings from gnulib macros
29527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-truncation=1" >&5
29528 printf %s "checking whether C compiler handles -Wformat-truncation=1... " >&6; }
29529 if test ${gl_cv_warn_c__Wformat_truncation_1+y}
29531 printf %s "(cached) " >&6
29534 gl_save_compiler_FLAGS="$CFLAGS"
29535 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-truncation=1"
29536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29537 /* end confdefs.h. */
29547 if ac_fn_c_try_link "$LINENO"
29549 gl_cv_warn_c__Wformat_truncation_1=yes
29551 gl_cv_warn_c__Wformat_truncation_1=no
29553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29554 conftest$ac_exeext conftest.$ac_ext
29555 CFLAGS="$gl_save_compiler_FLAGS"
29558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_truncation_1" >&5
29559 printf "%s\n" "$gl_cv_warn_c__Wformat_truncation_1" >&6; }
29560 if test "x$gl_cv_warn_c__Wformat_truncation_1" = xyes
29562 as_fn_append WARN_CFLAGS " -Wformat-truncation=1"
29568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wimplicit-fallthrough=2" >&5
29569 printf %s "checking whether C compiler handles -Wimplicit-fallthrough=2... " >&6; }
29570 if test ${gl_cv_warn_c__Wimplicit_fallthrough_2+y}
29572 printf %s "(cached) " >&6
29575 gl_save_compiler_FLAGS="$CFLAGS"
29576 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wimplicit-fallthrough=2"
29577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29578 /* end confdefs.h. */
29588 if ac_fn_c_try_link "$LINENO"
29590 gl_cv_warn_c__Wimplicit_fallthrough_2=yes
29592 gl_cv_warn_c__Wimplicit_fallthrough_2=no
29594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29595 conftest$ac_exeext conftest.$ac_ext
29596 CFLAGS="$gl_save_compiler_FLAGS"
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wimplicit_fallthrough_2" >&5
29600 printf "%s\n" "$gl_cv_warn_c__Wimplicit_fallthrough_2" >&6; }
29601 if test "x$gl_cv_warn_c__Wimplicit_fallthrough_2" = xyes
29603 as_fn_append WARN_CFLAGS " -Wimplicit-fallthrough=2"
29609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
29610 printf %s "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
29611 if test ${gl_cv_warn_c__Wno_unused_parameter+y}
29613 printf %s "(cached) " >&6
29616 gl_save_compiler_FLAGS="$CFLAGS"
29617 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
29618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29619 /* end confdefs.h. */
29629 if ac_fn_c_try_link "$LINENO"
29631 gl_cv_warn_c__Wno_unused_parameter=yes
29633 gl_cv_warn_c__Wno_unused_parameter=no
29635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29636 conftest$ac_exeext conftest.$ac_ext
29637 CFLAGS="$gl_save_compiler_FLAGS"
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
29641 printf "%s\n" "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
29642 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes
29644 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
29650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
29651 printf %s "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
29652 if test ${gl_cv_warn_c__fdiagnostics_show_option+y}
29654 printf %s "(cached) " >&6
29657 gl_save_compiler_FLAGS="$CFLAGS"
29658 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
29659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29660 /* end confdefs.h. */
29670 if ac_fn_c_try_link "$LINENO"
29672 gl_cv_warn_c__fdiagnostics_show_option=yes
29674 gl_cv_warn_c__fdiagnostics_show_option=no
29676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29677 conftest$ac_exeext conftest.$ac_ext
29678 CFLAGS="$gl_save_compiler_FLAGS"
29681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
29682 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
29683 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes
29685 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
29691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-color=always" >&5
29692 printf %s "checking whether C compiler handles -fdiagnostics-color=always... " >&6; }
29693 if test ${gl_cv_warn_c__fdiagnostics_color_always+y}
29695 printf %s "(cached) " >&6
29698 gl_save_compiler_FLAGS="$CFLAGS"
29699 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-color=always"
29700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29701 /* end confdefs.h. */
29711 if ac_fn_c_try_link "$LINENO"
29713 gl_cv_warn_c__fdiagnostics_color_always=yes
29715 gl_cv_warn_c__fdiagnostics_color_always=no
29717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29718 conftest$ac_exeext conftest.$ac_ext
29719 CFLAGS="$gl_save_compiler_FLAGS"
29722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_color_always" >&5
29723 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_color_always" >&6; }
29724 if test "x$gl_cv_warn_c__fdiagnostics_color_always" = xyes
29726 as_fn_append WARN_CFLAGS " -fdiagnostics-color=always"
29729 # colors even when using ccache
29732 # Check whether --enable-fuzzing was given.
29733 if test ${enable_fuzzing+y}
29735 enableval=$enable_fuzzing; enable_fuzzing=yes;
29737 enable_fuzzing=no; LIB_FUZZING_ENGINE=""
29740 if test "$enable_fuzzing" = "yes"; then
29750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
29751 printf %s "checking for library containing dlsym... " >&6; }
29752 if test ${ac_cv_search_dlsym+y}
29754 printf %s "(cached) " >&6
29756 ac_func_search_save_LIBS=$LIBS
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h. */
29760 /* Override any GCC internal prototype to avoid an error.
29761 Use char because int might match the return type of a GCC
29762 builtin and then its argument prototype would still apply. */
29772 for ac_lib in '' dl dld
29774 if test -z "$ac_lib"; then
29775 ac_res="none required"
29778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29780 if ac_fn_c_try_link "$LINENO"
29782 ac_cv_search_dlsym=$ac_res
29784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29786 if test ${ac_cv_search_dlsym+y}
29791 if test ${ac_cv_search_dlsym+y}
29795 ac_cv_search_dlsym=no
29797 rm conftest.$ac_ext
29798 LIBS=$ac_func_search_save_LIBS
29800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
29801 printf "%s\n" "$ac_cv_search_dlsym" >&6; }
29802 ac_res=$ac_cv_search_dlsym
29803 if test "$ac_res" != no
29805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29813 ac_config_files="$ac_config_files Makefile doc/Makefile doc/reference/Makefile examples/Makefile fuzz/Makefile lib/Makefile lib/gl/Makefile lib/includes/libtasn1.h lib/libtasn1.pc src/Makefile src/gl/Makefile tests/Makefile"
29815 cat >confcache <<\_ACEOF
29816 # This file is a shell script that caches the results of configure
29817 # tests run on this system so they can be shared between configure
29818 # scripts and configure runs, see configure's option --config-cache.
29819 # It is not useful on other systems. If it contains results you don't
29820 # want to keep, you may remove or edit it.
29822 # config.status only pays attention to the cache file if you give it
29823 # the --recheck option to rerun configure.
29825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29827 # following values.
29831 # The following way of writing the cache mishandles newlines in values,
29832 # but we know of no workaround that is simple, portable, and efficient.
29833 # So, we kill variables containing newlines.
29834 # Ultrix sh set writes to stderr and can't be redirected directly,
29835 # and sets the high bit in the cache file unless we assign to the vars.
29837 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29838 eval ac_val=\$$ac_var
29842 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29843 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29846 _ | IFS | as_nl) ;; #(
29847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29848 *) { eval $ac_var=; unset $ac_var;} ;;
29854 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29855 *${as_nl}ac_space=\ *)
29856 # `set' does not quote correctly, so add quotes: double-quote
29857 # substitution turns \\\\ into \\, and sed turns \\ into \.
29860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29863 # `set' quotes correctly as required by POSIX, so do not add quotes.
29864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29873 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
29875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29877 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29878 if test -w "$cache_file"; then
29879 if test "x$cache_file" != "x/dev/null"; then
29880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29881 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
29882 if test ! -f "$cache_file" || test -h "$cache_file"; then
29883 cat confcache >"$cache_file"
29885 case $cache_file in #(
29887 mv -f confcache "$cache_file"$$ &&
29888 mv -f "$cache_file"$$ "$cache_file" ;; #(
29890 mv -f confcache "$cache_file" ;;
29895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29896 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
29901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29902 # Let make expand exec_prefix.
29903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29905 DEFS=-DHAVE_CONFIG_H
29910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29911 # 1. Remove the extension, and $U if already installed.
29912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29913 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
29914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29915 # will be set to the directory where LIBOBJS objects are built.
29916 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29917 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29919 LIBOBJS=$ac_libobjs
29921 LTLIBOBJS=$ac_ltlibobjs
29924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29925 printf %s "checking that generated files are newer than configure... " >&6; }
29926 if test -n "$am_sleep_pid"; then
29927 # Hide warnings about reused PIDs.
29928 wait $am_sleep_pid 2>/dev/null
29930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
29931 printf "%s\n" "done" >&6; }
29932 if test -n "$EXEEXT"; then
29934 am__EXEEXT_FALSE='#'
29936 am__EXEEXT_TRUE='#'
29940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29941 as_fn_error $? "conditional \"AMDEP\" was never defined.
29942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29948 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
29949 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
29950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29952 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
29953 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
29954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29956 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
29957 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
29958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29960 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
29961 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
29962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29964 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
29965 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
29966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29968 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
29969 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
29970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29972 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
29973 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
29974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29976 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29977 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
29978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29980 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
29981 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
29982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29984 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
29985 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
29986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29988 CONFIG_INCLUDE=config.h
29994 if test -n "$gl_LIBOBJS"; then
29995 # Remove the extension.
29996 sed_drop_objext='s/\.o$//;s/\.obj$//'
29997 sed_dirname1='s,//*,/,g'
29998 sed_dirname2='s,\(.\)/$,\1,'
29999 sed_dirname3='s,^[^/]*$,.,'
30000 sed_dirname4='s,\(.\)/[^/]*$,\1,'
30001 sed_basename1='s,.*/,,'
30002 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30003 gl_libobjs="$gl_libobjs $i.$ac_objext"
30004 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
30005 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30006 i_base=`echo "$i" | sed -e "$sed_basename1"`
30007 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30010 gl_LIBOBJS=$gl_libobjs
30012 gl_LTLIBOBJS=$gl_ltlibobjs
30014 gl_LIBOBJDEPS=$gl_libobjdeps
30020 gltests_libobjdeps=
30021 if test -n "$gltests_LIBOBJS"; then
30022 # Remove the extension.
30023 sed_drop_objext='s/\.o$//;s/\.obj$//'
30024 sed_dirname1='s,//*,/,g'
30025 sed_dirname2='s,\(.\)/$,\1,'
30026 sed_dirname3='s,^[^/]*$,.,'
30027 sed_dirname4='s,\(.\)/[^/]*$,\1,'
30028 sed_basename1='s,.*/,,'
30029 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30030 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
30031 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
30032 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30033 i_base=`echo "$i" | sed -e "$sed_basename1"`
30034 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30037 gltests_LIBOBJS=$gltests_libobjs
30039 gltests_LTLIBOBJS=$gltests_ltlibobjs
30041 gltests_LIBOBJDEPS=$gltests_libobjdeps
30044 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30045 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
30046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30052 if test -n "$sgl_LIBOBJS"; then
30053 # Remove the extension.
30054 sed_drop_objext='s/\.o$//;s/\.obj$//'
30055 sed_dirname1='s,//*,/,g'
30056 sed_dirname2='s,\(.\)/$,\1,'
30057 sed_dirname3='s,^[^/]*$,.,'
30058 sed_dirname4='s,\(.\)/[^/]*$,\1,'
30059 sed_basename1='s,.*/,,'
30060 for i in `for i in $sgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30061 sgl_libobjs="$sgl_libobjs $i.$ac_objext"
30062 sgl_ltlibobjs="$sgl_ltlibobjs $i.lo"
30063 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30064 i_base=`echo "$i" | sed -e "$sed_basename1"`
30065 sgl_libobjdeps="$sgl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30068 sgl_LIBOBJS=$sgl_libobjs
30070 sgl_LTLIBOBJS=$sgl_ltlibobjs
30072 sgl_LIBOBJDEPS=$sgl_libobjdeps
30077 sgltests_ltlibobjs=
30078 sgltests_libobjdeps=
30079 if test -n "$sgltests_LIBOBJS"; then
30080 # Remove the extension.
30081 sed_drop_objext='s/\.o$//;s/\.obj$//'
30082 sed_dirname1='s,//*,/,g'
30083 sed_dirname2='s,\(.\)/$,\1,'
30084 sed_dirname3='s,^[^/]*$,.,'
30085 sed_dirname4='s,\(.\)/[^/]*$,\1,'
30086 sed_basename1='s,.*/,,'
30087 for i in `for i in $sgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30088 sgltests_libobjs="$sgltests_libobjs $i.$ac_objext"
30089 sgltests_ltlibobjs="$sgltests_ltlibobjs $i.lo"
30090 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30091 i_base=`echo "$i" | sed -e "$sed_basename1"`
30092 sgltests_libobjdeps="$sgltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30095 sgltests_LIBOBJS=$sgltests_libobjs
30097 sgltests_LTLIBOBJS=$sgltests_ltlibobjs
30099 sgltests_LIBOBJDEPS=$sgltests_libobjdeps
30102 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
30103 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
30104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30106 if test -z "${FUZZING_TRUE}" && test -z "${FUZZING_FALSE}"; then
30107 as_fn_error $? "conditional \"FUZZING\" was never defined.
30108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30111 : "${CONFIG_STATUS=./config.status}"
30113 ac_clean_files_save=$ac_clean_files
30114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30116 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
30118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30120 # Generated by $as_me.
30121 # Run this file to recreate the current configuration.
30122 # Compiler output produced by configure, useful for debugging
30123 # configure, is in config.log if it exists.
30126 ac_cs_recheck=false
30129 SHELL=\${CONFIG_SHELL-$SHELL}
30132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30133 ## -------------------- ##
30134 ## M4sh Initialization. ##
30135 ## -------------------- ##
30137 # Be more Bourne compatible
30138 DUALCASE=1; export DUALCASE # for MKS sh
30140 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
30144 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30145 # is contrary to our usage. Disable this feature.
30146 alias -g '${1+"$@"}'='"$@"'
30147 setopt NO_GLOB_SUBST
30149 case `(set -o) 2>/dev/null` in #(
30159 # Reset variables that may have inherited troublesome values from
30162 # IFS needs to be set, to space, tab, and newline, in precisely that order.
30163 # (If _AS_PATH_WALK were called with IFS unset, it would have the
30164 # side effect of setting IFS to empty, thus disabling word splitting.)
30165 # Quoting is to prevent editors from complaining about space-tab.
30175 # Ensure predictable behavior from utilities with locale-dependent output.
30181 # We cannot yet rely on "unset" to work, but we need these variables
30182 # to be unset--not just set to an empty or harmless value--now, to
30183 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
30184 # also avoids known problems related to "unset" and subshell syntax
30185 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
30186 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
30187 do eval test \${$as_var+y} \
30188 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30191 # Ensure that fds 0, 1, and 2 are open.
30192 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
30193 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
30194 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
30196 # The user is always right.
30197 if ${PATH_SEPARATOR+false} :; then
30199 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30200 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30206 # Find who we are. Look in the path if we contain no directory separator.
30209 *[\\/]* ) as_myself=$0 ;;
30210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211 for as_dir in $PATH
30214 case $as_dir in #(((
30217 *) as_dir=$as_dir/ ;;
30219 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
30225 # We did not find ourselves, most probably we were run as `sh COMMAND'
30226 # in which case we are not to be found in the path.
30227 if test "x$as_myself" = x; then
30230 if test ! -f "$as_myself"; then
30231 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30238 # ----------------------------------------
30239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30241 # script with STATUS, using 1 if that was 0.
30244 as_status=$1; test $as_status -eq 0 && as_status=1
30246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30249 printf "%s\n" "$as_me: error: $2" >&2
30250 as_fn_exit $as_status
30255 # as_fn_set_status STATUS
30256 # -----------------------
30257 # Set $? to STATUS, without forking.
30258 as_fn_set_status ()
30261 } # as_fn_set_status
30263 # as_fn_exit STATUS
30264 # -----------------
30265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30269 as_fn_set_status $1
30275 # Portably unset VAR.
30278 { eval $1=; unset $1;}
30280 as_unset=as_fn_unset
30282 # as_fn_append VAR VALUE
30283 # ----------------------
30284 # Append the text in VALUE to the end of the definition contained in VAR. Take
30285 # advantage of any shell optimizations that allow amortized linear growth over
30286 # repeated appends, instead of the typical quadratic growth present in naive
30288 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
30290 eval 'as_fn_append ()
30301 # as_fn_arith ARG...
30302 # ------------------
30303 # Perform arithmetic evaluation on the ARGs, and store the result in the
30304 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30305 # must be portable across $(()) and expr.
30306 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
30308 eval 'as_fn_arith ()
30315 as_val=`expr "$@" || test $? -eq 1`
30320 if expr a : '\(a\)' >/dev/null 2>&1 &&
30321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30328 as_basename=basename
30333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30339 as_me=`$as_basename -- "$0" ||
30340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30341 X"$0" : 'X\(//\)$' \| \
30342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30343 printf "%s\n" X/"$0" |
30344 sed '/^.*\/\([^/][^/]*\)\/*$/{
30358 # Avoid depending upon Character Ranges.
30359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30362 as_cr_digits='0123456789'
30363 as_cr_alnum=$as_cr_Letters$as_cr_digits
30366 # Determine whether it's possible to make 'echo' print without a newline.
30367 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
30368 # for compatibility with existing Makefiles.
30369 ECHO_C= ECHO_N= ECHO_T=
30370 case `echo -n x` in #(((((
30372 case `echo 'xy\c'` in
30373 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30375 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30382 # For backward compatibility with old third-party macros, we provide
30383 # the shell variables $as_echo and $as_echo_n. New code should use
30384 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
30385 as_echo='printf %s\n'
30386 as_echo_n='printf %s'
30388 rm -f conf$$ conf$$.exe conf$$.file
30389 if test -d conf$$.dir; then
30390 rm -f conf$$.dir/conf$$.file
30393 mkdir conf$$.dir 2>/dev/null
30395 if (echo >conf$$.file) 2>/dev/null; then
30396 if ln -s conf$$.file conf$$ 2>/dev/null; then
30398 # ... but there are two gotchas:
30399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30401 # In both cases, we have to default to `cp -pR'.
30402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30404 elif ln conf$$.file conf$$ 2>/dev/null; then
30412 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30413 rmdir conf$$.dir 2>/dev/null
30418 # Create "$as_dir" as a directory, including parents if necessary.
30423 -*) as_dir=./$as_dir;;
30425 test -d "$as_dir" || eval $as_mkdir_p || {
30429 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30430 *) as_qdir=$as_dir;;
30432 as_dirs="'$as_qdir' $as_dirs"
30433 as_dir=`$as_dirname -- "$as_dir" ||
30434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30435 X"$as_dir" : 'X\(//\)[^/]' \| \
30436 X"$as_dir" : 'X\(//\)$' \| \
30437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30438 printf "%s\n" X"$as_dir" |
30439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30443 /^X\(\/\/\)[^/].*/{
30456 test -d "$as_dir" && break
30458 test -z "$as_dirs" || eval "mkdir $as_dirs"
30459 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30463 if mkdir -p . 2>/dev/null; then
30464 as_mkdir_p='mkdir -p "$as_dir"'
30466 test -d ./-p && rmdir ./-p
30471 # as_fn_executable_p FILE
30472 # -----------------------
30473 # Test if FILE is an executable regular file.
30474 as_fn_executable_p ()
30476 test -f "$1" && test -x "$1"
30477 } # as_fn_executable_p
30478 as_test_x='test -x'
30479 as_executable_p=as_fn_executable_p
30481 # Sed expression to map a string onto a valid CPP name.
30482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30484 # Sed expression to map a string onto a valid variable name.
30485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30489 ## ----------------------------------- ##
30490 ## Main body of $CONFIG_STATUS script. ##
30491 ## ----------------------------------- ##
30493 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30496 # Save the log message, to keep $0 and so on meaningful, and to
30497 # report actual input values of CONFIG_FILES etc. instead of their
30498 # values after options handling.
30500 This file was extended by GNU Libtasn1 $as_me 4.19.0, which was
30501 generated by GNU Autoconf 2.71. Invocation command line was
30503 CONFIG_FILES = $CONFIG_FILES
30504 CONFIG_HEADERS = $CONFIG_HEADERS
30505 CONFIG_LINKS = $CONFIG_LINKS
30506 CONFIG_COMMANDS = $CONFIG_COMMANDS
30509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30514 case $ac_config_files in *"
30515 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30518 case $ac_config_headers in *"
30519 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30524 # Files that config.status was made for.
30525 config_files="$ac_config_files"
30526 config_headers="$ac_config_headers"
30527 config_links="$ac_config_links"
30528 config_commands="$ac_config_commands"
30532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30534 \`$as_me' instantiates files and other configuration actions
30535 from templates according to the current configuration. Unless the files
30536 and actions are specified as TAGs, all are instantiated by default.
30538 Usage: $0 [OPTION]... [TAG]...
30540 -h, --help print this help, then exit
30541 -V, --version print version number and configuration settings, then exit
30542 --config print configuration, then exit
30543 -q, --quiet, --silent
30544 do not print progress messages
30545 -d, --debug don't remove temporary files
30546 --recheck update $as_me by reconfiguring in the same conditions
30547 --file=FILE[:TEMPLATE]
30548 instantiate the configuration file FILE
30549 --header=FILE[:TEMPLATE]
30550 instantiate the configuration header FILE
30552 Configuration files:
30555 Configuration headers:
30558 Configuration links:
30561 Configuration commands:
30564 Report bugs to <help-libtasn1@gnu.org>.
30565 GNU Libtasn1 home page: <https://www.gnu.org/software/libtasn1/>.
30566 General help using GNU software: <https://www.gnu.org/gethelp/>."
30569 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
30570 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
30571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30572 ac_cs_config='$ac_cs_config_escaped'
30574 GNU Libtasn1 config.status 4.19.0
30575 configured by $0, generated by GNU Autoconf 2.71,
30576 with options \\"\$ac_cs_config\\"
30578 Copyright (C) 2021 Free Software Foundation, Inc.
30579 This config.status script is free software; the Free Software Foundation
30580 gives unlimited permission to copy, distribute and modify it."
30587 test -n "\$AWK" || AWK=awk
30590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30591 # The default lists apply if the user does not specify any file.
30597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30614 # Handling of the options.
30615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30618 printf "%s\n" "$ac_cs_version"; exit ;;
30619 --config | --confi | --conf | --con | --co | --c )
30620 printf "%s\n" "$ac_cs_config"; exit ;;
30621 --debug | --debu | --deb | --de | --d | -d )
30623 --file | --fil | --fi | --f )
30626 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30627 '') as_fn_error $? "missing file argument" ;;
30629 as_fn_append CONFIG_FILES " '$ac_optarg'"
30630 ac_need_defaults=false;;
30631 --header | --heade | --head | --hea )
30634 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30637 ac_need_defaults=false;;
30639 # Conflict between --help and --header
30640 as_fn_error $? "ambiguous option: \`$1'
30641 Try \`$0 --help' for more information.";;
30642 --help | --hel | -h )
30643 printf "%s\n" "$ac_cs_usage"; exit ;;
30644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30648 # This is an error.
30649 -*) as_fn_error $? "unrecognized option: \`$1'
30650 Try \`$0 --help' for more information." ;;
30652 *) as_fn_append ac_config_targets " $1"
30653 ac_need_defaults=false ;;
30659 ac_configure_extra_args=
30661 if $ac_cs_silent; then
30663 ac_configure_extra_args="$ac_configure_extra_args --silent"
30667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30668 if \$ac_cs_recheck; then
30669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30671 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
30672 CONFIG_SHELL='$SHELL'
30673 export CONFIG_SHELL
30678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30683 ## Running $as_me. ##
30685 printf "%s\n" "$ac_log"
30689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30693 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
30696 # The HP-UX ksh and POSIX shell print the target directory to stdout
30697 # if CDPATH is set.
30698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30700 sed_quote_subst='$sed_quote_subst'
30701 double_quote_subst='$double_quote_subst'
30702 delay_variable_subst='$delay_variable_subst'
30703 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30704 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30705 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30706 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30707 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30712 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
30713 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30714 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30715 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30716 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30717 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30718 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30719 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30720 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30721 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30722 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30723 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30724 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30725 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30726 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30727 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30728 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30729 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30730 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30731 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30732 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30733 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30734 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30735 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30736 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30737 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30738 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30739 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30740 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30741 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30742 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30743 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30744 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30745 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30746 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30747 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30748 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30749 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30750 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30751 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30752 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30753 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30754 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30755 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30756 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30757 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30758 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30760 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
30761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30762 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"`'
30763 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
30764 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30765 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30766 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
30767 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30768 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30769 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30770 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30771 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30772 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30773 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30774 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30775 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30776 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30777 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30778 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30779 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30780 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30781 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30782 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30783 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30784 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30785 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30786 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30787 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30788 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30789 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30790 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30791 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30792 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30793 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30794 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30795 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30796 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30797 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30798 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30799 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30800 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30801 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30802 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30803 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30804 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30805 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30806 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30807 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30808 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30809 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30810 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30811 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30812 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30813 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30814 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30815 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30816 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30817 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30818 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30819 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30820 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30821 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30822 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30823 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30824 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30825 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30826 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30827 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30828 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30829 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30830 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30831 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
30832 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
30833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30841 LTCFLAGS='$LTCFLAGS'
30842 compiler='$compiler_DEFAULT'
30844 # A function that is used when there is no print builtin or printf.
30845 func_fallback_echo ()
30847 eval 'cat <<_LTECHO_EOF
30852 # Quote evaled strings.
30869 deplibs_check_method \
30873 sharedlib_from_linklib_cmd \
30876 archiver_list_spec \
30882 lt_cv_sys_global_symbol_pipe \
30883 lt_cv_sys_global_symbol_to_cdecl \
30884 lt_cv_sys_global_symbol_to_import \
30885 lt_cv_sys_global_symbol_to_c_name_address \
30886 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30887 lt_cv_nm_interface \
30888 nm_file_list_spec \
30889 lt_cv_truncate_bin \
30890 lt_prog_compiler_no_builtin_flag \
30891 lt_prog_compiler_pic \
30892 lt_prog_compiler_wl \
30893 lt_prog_compiler_static \
30894 lt_cv_prog_compiler_c_o \
30903 export_dynamic_flag_spec \
30904 whole_archive_flag_spec \
30905 compiler_needs_object \
30907 allow_undefined_flag \
30908 no_undefined_flag \
30909 hardcode_libdir_flag_spec \
30910 hardcode_libdir_separator \
30914 variables_saved_for_relink \
30916 library_names_spec \
30918 install_override_mode \
30922 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30923 *[\\\\\\\`\\"\\\$]*)
30924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30932 # Double-quote double-evaled strings.
30933 for var in reload_cmds \
30934 old_postinstall_cmds \
30935 old_postuninstall_cmds \
30937 extract_expsyms_cmds \
30938 old_archive_from_new_cmds \
30939 old_archive_from_expsyms_cmds \
30941 archive_expsym_cmds \
30943 module_expsym_cmds \
30944 export_symbols_cmds \
30948 postuninstall_cmds \
30950 sys_lib_search_path_spec \
30951 configure_time_dlsearch_path \
30952 configure_time_lt_sys_library_path; do
30953 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30954 *[\\\\\\\`\\"\\\$]*)
30955 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30958 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30963 ac_aux_dir='$ac_aux_dir'
30965 # See if we are running on zsh, and set the options that allow our
30966 # commands through without removal of \ escapes INIT.
30967 if test -n "\${ZSH_VERSION+set}"; then
30968 setopt NO_GLOB_SUBST
30979 GNUmakefile=$GNUmakefile
30983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30985 # Handling of arguments.
30986 for ac_config_target in $ac_config_targets
30988 case $ac_config_target in
30989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30991 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30992 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
30993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30994 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30995 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
30996 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30997 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
30998 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30999 "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;;
31000 "lib/includes/libtasn1.h") CONFIG_FILES="$CONFIG_FILES lib/includes/libtasn1.h" ;;
31001 "lib/libtasn1.pc") CONFIG_FILES="$CONFIG_FILES lib/libtasn1.pc" ;;
31002 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31003 "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
31004 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31011 # If the user did not use the arguments to specify the items to instantiate,
31012 # then the envvar interface is used. Set only those that are not.
31013 # We use the long form for the default assignment because of an extremely
31014 # bizarre bug on SunOS 4.1.3.
31015 if $ac_need_defaults; then
31016 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
31017 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
31018 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
31019 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
31022 # Have a temporary directory for convenience. Make it in the build tree
31023 # simply because there is no reason against having it here, and in addition,
31024 # creating and moving files from /tmp can sometimes cause problems.
31025 # Hook for its removal unless debugging.
31026 # Note that there is a small window in which the directory will not be cleaned:
31027 # after its creation but before its name has been assigned to `$tmp'.
31031 trap 'exit_status=$?
31032 : "${ac_tmp:=$tmp}"
31033 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31035 trap 'as_fn_exit 1' 1 2 13 15
31037 # Create a (secure) tmp directory for tmp files.
31040 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31044 tmp=./conf$$-$RANDOM
31045 (umask 077 && mkdir "$tmp")
31046 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31049 # Set up the scripts for CONFIG_FILES section.
31050 # No need to generate them if there are no CONFIG_FILES.
31051 # This happens for instance with `./config.status config.h'.
31052 if test -n "$CONFIG_FILES"; then
31055 ac_cr=`echo X | tr X '\015'`
31056 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31057 # But we know of no other shell where ac_cr would be empty at this
31058 # point, so we can use a bashism as a fallback.
31059 if test "x$ac_cr" = x; then
31060 eval ac_cr=\$\'\\r\'
31062 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31063 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31066 ac_cs_awk_cr=$ac_cr
31069 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31074 echo "cat >conf$$subs.awk <<_ACEOF" &&
31075 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31077 } >conf$$subs.sh ||
31078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31079 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31081 for ac_last_try in false false false false false :; do
31082 . ./conf$$subs.sh ||
31083 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31085 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31086 if test $ac_delim_n = $ac_delim_num; then
31088 elif $ac_last_try; then
31089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31094 rm -f conf$$subs.sh
31096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31097 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31101 s/^/S["/; s/!.*/"]=/
31111 s/\(.\{148\}\)..*/\1/
31113 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31125 s/\(.\{148\}\)..*/\1/
31127 s/["\\]/\\&/g; s/^/"/; s/$/"/
31131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31136 ' <conf$$subs.awk | sed '
31141 ' >>$CONFIG_STATUS || ac_write_fail=1
31142 rm -f conf$$subs.awk
31143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31145 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31146 for (key in S) S_is_set[key] = 1
31152 nfields = split(line, field, "@")
31154 len = length(field[1])
31155 for (i = 2; i < nfields; i++) {
31157 keylen = length(key)
31158 if (S_is_set[key]) {
31160 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31161 len += length(value) + length(field[++i])
31172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31173 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31174 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31177 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31178 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31181 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31182 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31183 # trailing colons and then remove the whole line if VPATH becomes empty
31184 # (actually we leave an empty line to preserve line numbers).
31185 if test "x$srcdir" = x.; then
31186 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31205 fi # test -n "$CONFIG_FILES"
31207 # Set up the scripts for CONFIG_HEADERS section.
31208 # No need to generate them if there are no CONFIG_HEADERS.
31209 # This happens for instance with `./config.status Makefile'.
31210 if test -n "$CONFIG_HEADERS"; then
31211 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31215 # Transform confdefs.h into an awk script `defines.awk', embedded as
31216 # here-document in config.status, that substitutes the proper values into
31217 # config.h.in to produce config.h.
31219 # Create a delimiter string that does not exist in confdefs.h, to ease
31220 # handling of long lines.
31222 for ac_last_try in false false :; do
31223 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31224 if test -z "$ac_tt"; then
31226 elif $ac_last_try; then
31227 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31233 # For the awk script, D is an array of macro values keyed by name,
31234 # likewise P contains macro parameters if any. Preserve backslash
31235 # newline sequences.
31237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31239 s/.\{148\}/&'"$ac_delim"'/g
31242 s/^[ ]*#[ ]*define[ ][ ]*/ /
31249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31256 D["\1"]=" \3\\\\\\n"\\/p
31258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31263 s/.\{148\}/&'"$ac_delim"'/g
31268 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31271 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31273 ' <confdefs.h | sed '
31274 s/'"$ac_delim"'/"\\\
31275 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31278 for (key in D) D_is_set[key] = 1
31281 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31283 split(line, arg, " ")
31284 if (arg[1] == "#") {
31288 defundef = substr(arg[1], 2)
31291 split(mac1, mac2, "(") #)
31293 prefix = substr(line, 1, index(line, defundef) - 1)
31294 if (D_is_set[macro]) {
31295 # Preserve the white space surrounding the "#".
31296 print prefix "define", macro P[macro] D[macro]
31299 # Replace #undef with comments. This is necessary, for example,
31300 # in the case of _POSIX_SOURCE, which is predefined and required
31301 # on some systems where configure will not decide to define it.
31302 if (defundef == "undef") {
31303 print "/*", prefix defundef, macro, "*/"
31311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31313 fi # test -n "$CONFIG_HEADERS"
31316 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31321 :[FHLC]) ac_mode=$ac_tag; continue;;
31323 case $ac_mode$ac_tag in
31325 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31326 :[FH]-) ac_tag=-:-;;
31327 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31344 -) ac_f="$ac_tmp/stdin";;
31345 *) # Look for the file first in the build tree, then in the source tree
31346 # (if the path is not absolute). The absolute path cannot be DOS-style,
31347 # because $ac_f cannot contain `:'.
31351 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31353 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31355 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31356 as_fn_append ac_file_inputs " '$ac_f'"
31359 # Let's still pretend it is `configure' which instantiates (i.e., don't
31360 # use $as_me), people would be surprised to read:
31361 # /* config.h. Generated by config.status. */
31362 configure_input='Generated from '`
31363 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31365 if test x"$ac_file" != x-; then
31366 configure_input="$ac_file. $configure_input"
31367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31368 printf "%s\n" "$as_me: creating $ac_file" >&6;}
31370 # Neutralize special characters interpreted by sed in replacement strings.
31371 case $configure_input in #(
31372 *\&* | *\|* | *\\* )
31373 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
31374 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31375 *) ac_sed_conf_input=$configure_input;;
31379 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31385 ac_dir=`$as_dirname -- "$ac_file" ||
31386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387 X"$ac_file" : 'X\(//\)[^/]' \| \
31388 X"$ac_file" : 'X\(//\)$' \| \
31389 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31390 printf "%s\n" X"$ac_file" |
31391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31395 /^X\(\/\/\)[^/].*/{
31408 as_dir="$ac_dir"; as_fn_mkdir_p
31412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31414 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
31415 # A ".." for each directory in $ac_dir_suffix.
31416 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31417 case $ac_top_builddir_sub in
31418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31422 ac_abs_top_builddir=$ac_pwd
31423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31424 # for backward compatibility:
31425 ac_top_builddir=$ac_top_build_prefix
31428 .) # We are building in place.
31430 ac_top_srcdir=$ac_top_builddir_sub
31431 ac_abs_top_srcdir=$ac_pwd ;;
31432 [\\/]* | ?:[\\/]* ) # Absolute name.
31433 ac_srcdir=$srcdir$ac_dir_suffix;
31434 ac_top_srcdir=$srcdir
31435 ac_abs_top_srcdir=$srcdir ;;
31436 *) # Relative name.
31437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31438 ac_top_srcdir=$ac_top_build_prefix$srcdir
31439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31454 ac_MKDIR_P=$MKDIR_P
31456 [\\/$]* | ?:[\\/]* ) ;;
31457 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31462 # If the template does not know about datarootdir, expand it.
31463 # FIXME: This hack should be removed a few years after 2.60.
31464 ac_datarootdir_hack=; ac_datarootdir_seen=
31475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31476 *datarootdir*) ac_datarootdir_seen=yes;;
31477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31479 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31482 ac_datarootdir_hack='
31483 s&@datadir@&$datadir&g
31484 s&@docdir@&$docdir&g
31485 s&@infodir@&$infodir&g
31486 s&@localedir@&$localedir&g
31487 s&@mandir@&$mandir&g
31488 s&\\\${datarootdir}&$datarootdir&g' ;;
31492 # Neutralize VPATH when `$srcdir' = `.'.
31493 # Shell code in configure.ac might set extrasub.
31494 # FIXME: do we really want to maintain this feature?
31495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31496 ac_sed_extra="$ac_vpsub
31499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31502 s|@configure_input@|$ac_sed_conf_input|;t t
31503 s&@top_builddir@&$ac_top_builddir_sub&;t t
31504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31505 s&@srcdir@&$ac_srcdir&;t t
31506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31507 s&@top_srcdir@&$ac_top_srcdir&;t t
31508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31509 s&@builddir@&$ac_builddir&;t t
31510 s&@abs_builddir@&$ac_abs_builddir&;t t
31511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31512 s&@INSTALL@&$ac_INSTALL&;t t
31513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31514 $ac_datarootdir_hack
31516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31517 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31520 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31522 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31524 which seems to be undefined. Please make sure it is defined" >&5
31525 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31526 which seems to be undefined. Please make sure it is defined" >&2;}
31528 rm -f "$ac_tmp/stdin"
31530 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31531 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31539 if test x"$ac_file" != x-; then
31541 printf "%s\n" "/* $configure_input */" >&1 \
31542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31543 } >"$ac_tmp/config.h" \
31544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31545 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31547 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
31550 mv "$ac_tmp/config.h" "$ac_file" \
31551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31554 printf "%s\n" "/* $configure_input */" >&1 \
31555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31556 || as_fn_error $? "could not create -" "$LINENO" 5
31558 # Compute "$ac_file"'s index in $config_headers.
31561 for _am_header in $config_headers :; do
31562 case $_am_header in
31563 $_am_arg | $_am_arg:* )
31566 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31569 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31570 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31571 X"$_am_arg" : 'X\(//\)[^/]' \| \
31572 X"$_am_arg" : 'X\(//\)$' \| \
31573 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31574 printf "%s\n" X"$_am_arg" |
31575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31579 /^X\(\/\/\)[^/].*/{
31591 s/.*/./; q'`/stamp-h$_am_stamp_count
31598 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31601 # Prefer the file from the source tree if names are identical.
31602 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31603 ac_source=$srcdir/$ac_source
31606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31607 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
31609 if test ! -r "$ac_source"; then
31610 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31614 # Try a relative symlink, then a hard link, then a copy.
31616 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31617 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31619 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31620 ln "$ac_source" "$ac_file" 2>/dev/null ||
31621 cp -p "$ac_source" "$ac_file" ||
31622 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31625 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31626 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
31631 case $ac_file$ac_mode in
31632 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31633 # Older Autoconf quotes --file arguments for eval, but not when files
31634 # are listed without --file. Let's play safe and only enable the eval
31635 # if we detect the quoting.
31636 # TODO: see whether this extra hack can be removed once we start
31637 # requiring Autoconf 2.70 or later.
31638 case $CONFIG_FILES in #(
31640 eval set x "$CONFIG_FILES" ;; #(
31642 set x $CONFIG_FILES ;; #(
31647 # Used to flag and report bootstrapping failures.
31651 # Strip MF so we end up with the name of the file.
31652 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
31653 # Check whether this is an Automake generated Makefile which includes
31654 # dependency-tracking related rules and includes.
31655 # Grep'ing the whole file directly is not great: AIX grep has a line
31656 # limit of 2048, but all sed's we know have understand at least 4000.
31657 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
31659 am_dirpart=`$as_dirname -- "$am_mf" ||
31660 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31661 X"$am_mf" : 'X\(//\)[^/]' \| \
31662 X"$am_mf" : 'X\(//\)$' \| \
31663 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31664 printf "%s\n" X"$am_mf" |
31665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31669 /^X\(\/\/\)[^/].*/{
31682 am_filepart=`$as_basename -- "$am_mf" ||
31683 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
31684 X"$am_mf" : 'X\(//\)$' \| \
31685 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31686 printf "%s\n" X/"$am_mf" |
31687 sed '/^.*\/\([^/][^/]*\)\/*$/{
31700 { echo "$as_me:$LINENO: cd "$am_dirpart" \
31701 && sed -e '/# am--include-marker/d' "$am_filepart" \
31702 | $MAKE -f - am--depfiles" >&5
31703 (cd "$am_dirpart" \
31704 && sed -e '/# am--include-marker/d' "$am_filepart" \
31705 | $MAKE -f - am--depfiles) >&5 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); } || am_rc=$?
31710 if test $am_rc -ne 0; then
31711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31713 as_fn_error $? "Something went wrong bootstrapping makefile fragments
31714 for automatic dependency tracking. If GNU make was not used, consider
31715 re-running the configure script with MAKE=\"gmake\" (or whatever is
31716 necessary). You can also try re-running configure with the
31717 '--disable-dependency-tracking' option to at least be able to build
31718 the package (albeit without support for automatic dependency tracking).
31719 See \`config.log' for more details" "$LINENO" 5; }
31721 { am_dirpart=; unset am_dirpart;}
31722 { am_filepart=; unset am_filepart;}
31723 { am_mf=; unset am_mf;}
31724 { am_rc=; unset am_rc;}
31725 rm -f conftest-deps.mk
31730 # See if we are running on zsh, and set the options that allow our
31731 # commands through without removal of \ escapes.
31732 if test -n "${ZSH_VERSION+set}"; then
31733 setopt NO_GLOB_SUBST
31737 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31740 cat <<_LT_EOF >> "$cfgfile"
31742 # Generated automatically by $as_me ($PACKAGE) $VERSION
31743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31745 # Provide generalized library-building support services.
31746 # Written by Gordon Matzigkeit, 1996
31748 # Copyright (C) 2014 Free Software Foundation, Inc.
31749 # This is free software; see the source for copying conditions. There is NO
31750 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31752 # GNU Libtool is free software; you can redistribute it and/or modify
31753 # it under the terms of the GNU General Public License as published by
31754 # the Free Software Foundation; either version 2 of of the License, or
31755 # (at your option) any later version.
31757 # As a special exception to the GNU General Public License, if you
31758 # distribute this file as part of a program or library that is built
31759 # using GNU Libtool, you may include this file under the same
31760 # distribution terms that you use for the rest of that program.
31762 # GNU Libtool is distributed in the hope that it will be useful, but
31763 # WITHOUT ANY WARRANTY; without even the implied warranty of
31764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31765 # GNU General Public License for more details.
31767 # You should have received a copy of the GNU General Public License
31768 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31771 # The names of the tagged configurations supported by this script.
31774 # Configured defaults for sys_lib_dlsearch_path munging.
31775 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
31777 # ### BEGIN LIBTOOL CONFIG
31779 # Which release of libtool.m4 was used?
31780 macro_version=$macro_version
31781 macro_revision=$macro_revision
31783 # Assembler program.
31786 # DLL creation program.
31787 DLLTOOL=$lt_DLLTOOL
31789 # Object dumper program.
31790 OBJDUMP=$lt_OBJDUMP
31792 # Whether or not to build shared libraries.
31793 build_libtool_libs=$enable_shared
31795 # Whether or not to build static libraries.
31796 build_old_libs=$enable_static
31798 # What type of objects to build.
31801 # Whether or not to optimize for fast installation.
31802 fast_install=$enable_fast_install
31804 # Shared archive member basename,for filename based shared library versioning on AIX.
31805 shared_archive_member_spec=$shared_archive_member_spec
31807 # Shell to use when invoking shell scripts.
31810 # An echo program that protects backslashes.
31813 # The PATH separator for the build system.
31814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31817 host_alias=$host_alias
31821 # The build system.
31822 build_alias=$build_alias
31826 # A sed program that does not truncate output.
31829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31830 Xsed="\$SED -e 1s/^X//"
31832 # A grep program that handles long lines.
31838 # A literal string matcher.
31841 # A BSD- or MS-compatible name lister.
31844 # Whether we need soft or hard links.
31847 # What is the maximum length of a command?
31848 max_cmd_len=$max_cmd_len
31850 # Object file suffix (normally "o").
31853 # Executable file suffix (normally "").
31856 # whether the shell understands "unset".
31859 # turn spaces into newlines.
31862 # turn newlines into spaces.
31865 # convert \$build file names to \$host format.
31866 to_host_file_cmd=$lt_cv_to_host_file_cmd
31868 # convert \$build files to toolchain format.
31869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31871 # Method to check whether dependent libraries are shared objects.
31872 deplibs_check_method=$lt_deplibs_check_method
31874 # Command to use when deplibs_check_method = "file_magic".
31875 file_magic_cmd=$lt_file_magic_cmd
31877 # How to find potential files when deplibs_check_method = "file_magic".
31878 file_magic_glob=$lt_file_magic_glob
31880 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31881 want_nocaseglob=$lt_want_nocaseglob
31883 # Command to associate shared and link libraries.
31884 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31889 # Flags to create an archive.
31890 AR_FLAGS=$lt_AR_FLAGS
31892 # How to feed a file listing to the archiver.
31893 archiver_list_spec=$lt_archiver_list_spec
31895 # A symbol stripping program.
31898 # Commands used to install an old-style archive.
31900 old_postinstall_cmds=$lt_old_postinstall_cmds
31901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31903 # Whether to use a lock for old archive extraction.
31904 lock_old_archive_extraction=$lock_old_archive_extraction
31909 # LTCC compiler flags.
31910 LTCFLAGS=$lt_CFLAGS
31912 # Take the output of nm and produce a listing of raw symbols and C names.
31913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31915 # Transform the output of nm in a proper C declaration.
31916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31918 # Transform the output of nm into a list of symbols to manually relocate.
31919 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
31921 # Transform the output of nm in a C name address pair.
31922 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31924 # Transform the output of nm in a C name address pair when lib prefix is needed.
31925 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31927 # The name lister interface.
31928 nm_interface=$lt_lt_cv_nm_interface
31930 # Specify filename containing input files for \$NM.
31931 nm_file_list_spec=$lt_nm_file_list_spec
31933 # The root where to search for dependent libraries,and where our libraries should be installed.
31934 lt_sysroot=$lt_sysroot
31936 # Command to truncate a binary pipe.
31937 lt_truncate_bin=$lt_lt_cv_truncate_bin
31939 # The name of the directory that contains temporary libtool files.
31942 # Used to examine libraries when file_magic_cmd begins with "file".
31943 MAGIC_CMD=$MAGIC_CMD
31945 # Must we lock files when doing compilation?
31946 need_locks=$lt_need_locks
31949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31952 DSYMUTIL=$lt_DSYMUTIL
31954 # Tool to change global to local symbols on Mac OS X.
31957 # Tool to manipulate fat objects and archives on Mac OS X.
31960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31964 OTOOL64=$lt_OTOOL64
31966 # Old archive suffix (normally "a").
31969 # Shared library suffix (normally ".so").
31970 shrext_cmds=$lt_shrext_cmds
31972 # The commands to extract the exported symbol list from a shared archive.
31973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31975 # Variables whose values should be saved in libtool wrapper scripts and
31976 # restored at link time.
31977 variables_saved_for_relink=$lt_variables_saved_for_relink
31979 # Do we need the "lib" prefix for modules?
31980 need_lib_prefix=$need_lib_prefix
31982 # Do we need a version for libraries?
31983 need_version=$need_version
31985 # Library versioning type.
31986 version_type=$version_type
31988 # Shared library runtime path variable.
31989 runpath_var=$runpath_var
31991 # Shared library path variable.
31992 shlibpath_var=$shlibpath_var
31994 # Is shlibpath searched before the hard-coded library search path?
31995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31997 # Format of library name prefix.
31998 libname_spec=$lt_libname_spec
32000 # List of archive names. First name is the real one, the rest are links.
32001 # The last name is the one that the linker finds with -lNAME
32002 library_names_spec=$lt_library_names_spec
32004 # The coded name of the library, if different from the real name.
32005 soname_spec=$lt_soname_spec
32007 # Permission mode override for installation of shared libraries.
32008 install_override_mode=$lt_install_override_mode
32010 # Command to use after installation of a shared archive.
32011 postinstall_cmds=$lt_postinstall_cmds
32013 # Command to use after uninstallation of a shared archive.
32014 postuninstall_cmds=$lt_postuninstall_cmds
32016 # Commands used to finish a libtool library installation in a directory.
32017 finish_cmds=$lt_finish_cmds
32019 # As "finish_cmds", except a single script fragment to be evaled but
32021 finish_eval=$lt_finish_eval
32023 # Whether we should hardcode library paths into libraries.
32024 hardcode_into_libs=$hardcode_into_libs
32026 # Compile-time system search path for libraries.
32027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32029 # Detected run-time system search path for libraries.
32030 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32032 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32033 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32035 # Whether dlopen is supported.
32036 dlopen_support=$enable_dlopen
32038 # Whether dlopen of programs is supported.
32039 dlopen_self=$enable_dlopen_self
32041 # Whether dlopen of statically linked programs is supported.
32042 dlopen_self_static=$enable_dlopen_self_static
32044 # Commands to strip libraries.
32045 old_striplib=$lt_old_striplib
32046 striplib=$lt_striplib
32049 # The linker used to build libraries.
32052 # How to create reloadable object files.
32053 reload_flag=$lt_reload_flag
32054 reload_cmds=$lt_reload_cmds
32056 # Commands used to build an old-style archive.
32057 old_archive_cmds=$lt_old_archive_cmds
32059 # A language specific compiler.
32062 # Is the compiler the GNU compiler?
32065 # Compiler flag to turn off builtin functions.
32066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32068 # Additional compiler flags for building library objects.
32069 pic_flag=$lt_lt_prog_compiler_pic
32071 # How to pass a linker flag through the compiler.
32072 wl=$lt_lt_prog_compiler_wl
32074 # Compiler flag to prevent dynamic linking.
32075 link_static_flag=$lt_lt_prog_compiler_static
32077 # Does compiler simultaneously support -c and -o options?
32078 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32080 # Whether or not to add -lc for building shared libraries.
32081 build_libtool_need_lc=$archive_cmds_need_lc
32083 # Whether or not to disallow shared libs when runtime libs are static.
32084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32086 # Compiler flag to allow reflexive dlopens.
32087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32089 # Compiler flag to generate shared objects directly from archives.
32090 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32092 # Whether the compiler copes with passing no objects directly.
32093 compiler_needs_object=$lt_compiler_needs_object
32095 # Create an old-style archive from a shared archive.
32096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32098 # Create a temporary old-style archive to link instead of a shared archive.
32099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32101 # Commands used to build a shared archive.
32102 archive_cmds=$lt_archive_cmds
32103 archive_expsym_cmds=$lt_archive_expsym_cmds
32105 # Commands used to build a loadable module if different from building
32106 # a shared archive.
32107 module_cmds=$lt_module_cmds
32108 module_expsym_cmds=$lt_module_expsym_cmds
32110 # Whether we are building with GNU ld or not.
32111 with_gnu_ld=$lt_with_gnu_ld
32113 # Flag that allows shared libraries with undefined symbols to be built.
32114 allow_undefined_flag=$lt_allow_undefined_flag
32116 # Flag that enforces no undefined symbols.
32117 no_undefined_flag=$lt_no_undefined_flag
32119 # Flag to hardcode \$libdir into a binary during linking.
32120 # This must work even if \$libdir does not exist
32121 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32123 # Whether we need a single "-rpath" flag with a separated argument.
32124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32126 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32127 # DIR into the resulting binary.
32128 hardcode_direct=$hardcode_direct
32130 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32131 # DIR into the resulting binary and the resulting library dependency is
32132 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32133 # library is relocated.
32134 hardcode_direct_absolute=$hardcode_direct_absolute
32136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32137 # into the resulting binary.
32138 hardcode_minus_L=$hardcode_minus_L
32140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32141 # into the resulting binary.
32142 hardcode_shlibpath_var=$hardcode_shlibpath_var
32144 # Set to "yes" if building a shared library automatically hardcodes DIR
32145 # into the library and all subsequent libraries and executables linked
32147 hardcode_automatic=$hardcode_automatic
32149 # Set to yes if linker adds runtime paths of dependent libraries
32150 # to runtime path list.
32151 inherit_rpath=$inherit_rpath
32153 # Whether libtool must link a program against all its dependency libraries.
32154 link_all_deplibs=$link_all_deplibs
32156 # Set to "yes" if exported symbols are required.
32157 always_export_symbols=$always_export_symbols
32159 # The commands to list exported symbols.
32160 export_symbols_cmds=$lt_export_symbols_cmds
32162 # Symbols that should not be listed in the preloaded symbols.
32163 exclude_expsyms=$lt_exclude_expsyms
32165 # Symbols that must always be exported.
32166 include_expsyms=$lt_include_expsyms
32168 # Commands necessary for linking programs (against libraries) with templates.
32169 prelink_cmds=$lt_prelink_cmds
32171 # Commands necessary for finishing linking programs.
32172 postlink_cmds=$lt_postlink_cmds
32174 # Specify filename containing input files.
32175 file_list_spec=$lt_file_list_spec
32177 # How to hardcode a shared library path into an executable.
32178 hardcode_action=$hardcode_action
32180 # ### END LIBTOOL CONFIG
32184 cat <<'_LT_EOF' >> "$cfgfile"
32186 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32188 # func_munge_path_list VARIABLE PATH
32189 # -----------------------------------
32190 # VARIABLE is name of variable containing _space_ separated list of
32191 # directories to be munged by the contents of PATH, which is string
32194 # string "DIR[ DIR]" will be prepended to VARIABLE
32196 # string "DIR[ DIR]" will be appended to VARIABLE
32197 # "DIRP[:DIRP]::[DIRA:]DIRA"
32198 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
32199 # "DIRA[ DIRA]" will be appended to VARIABLE
32201 # VARIABLE will be replaced by "DIR[ DIR]"
32202 func_munge_path_list ()
32208 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
32211 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
32214 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
32215 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
32218 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
32224 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
32225 func_cc_basename ()
32227 for cc_temp in $*""; do
32229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32235 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32239 # ### END FUNCTIONS SHARED WITH CONFIGURE
32245 cat <<\_LT_EOF >> "$cfgfile"
32246 # AIX sometimes has problems with the GCC collect2 program. For some
32247 # reason, if we set the COLLECT_NAMES environment variable, the problems
32248 # vanish in a puff of smoke.
32249 if test set != "${COLLECT_NAMES+set}"; then
32251 export COLLECT_NAMES
32259 ltmain=$ac_aux_dir/ltmain.sh
32262 # We use sed instead of cat because bash on DJGPP gets confused if
32263 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32264 # text mode, it properly converts lines to CR/LF. This bash problem
32265 # is reportedly fixed, but why not run on old versions too?
32266 sed '$q' "$ltmain" >> "$cfgfile" \
32267 || (rm -f "$cfgfile"; exit 1)
32269 mv -f "$cfgfile" "$ofile" ||
32270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32281 ac_clean_files=$ac_clean_files_save
32283 test $ac_write_fail = 0 ||
32284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32287 # configure is writing to config.log, and then calls config.status.
32288 # config.status does its own redirection, appending to config.log.
32289 # Unfortunately, on DOS this fails, as config.log is still kept open
32290 # by configure, so config.status won't be able to write to it; its
32291 # output is simply discarded. So we exec the FD to /dev/null,
32292 # effectively closing config.log, so it can be properly (re)opened and
32293 # appended to by config.status. When coming back to configure, we
32294 # need to make the FD available again.
32295 if test "$no_create" != yes; then
32297 ac_config_status_args=
32298 test "$silent" = yes &&
32299 ac_config_status_args="$ac_config_status_args --quiet"
32301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32304 # would make configure fail if this is the last instruction.
32305 $ac_cs_success || as_fn_exit 1
32307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32309 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Summary of build options:
32315 Version: ${VERSION}
32316 Libtool version $LT_CURRENT:$LT_REVISION:$LT_AGE
32317 DLL version: $DLL_VERSION
32318 Header version: major $MAJOR_VERSION minor $MINOR_VERSION patch $PATCH_VERSION number $NUMBER_VERSION
32319 Build/host system: ${build} / ${host}
32320 Install prefix: ${prefix}
32322 Warning flags: ${WARN_CFLAGS}
32323 CFLAGS: ${CFLAGS} ${CPPFLAGS}
32324 LDFlags: ${LDFLAGS}
32325 Documentation: ${enable_doc}
32326 Library types: Shared=${enable_shared}, Static=${enable_static}
32327 Valgrind: $gl_cv_prog_valgrind_works ${VALGRIND}
32328 Version script: $have_ld_version_script
32329 Fuzzing build: $enable_fuzzing $LIB_FUZZING_ENGINE
32331 printf "%s\n" "$as_me: Summary of build options:
32333 Version: ${VERSION}
32334 Libtool version $LT_CURRENT:$LT_REVISION:$LT_AGE
32335 DLL version: $DLL_VERSION
32336 Header version: major $MAJOR_VERSION minor $MINOR_VERSION patch $PATCH_VERSION number $NUMBER_VERSION
32337 Build/host system: ${build} / ${host}
32338 Install prefix: ${prefix}
32340 Warning flags: ${WARN_CFLAGS}
32341 CFLAGS: ${CFLAGS} ${CPPFLAGS}
32342 LDFlags: ${LDFLAGS}
32343 Documentation: ${enable_doc}
32344 Library types: Shared=${enable_shared}, Static=${enable_static}
32345 Valgrind: $gl_cv_prog_valgrind_works ${VALGRIND}
32346 Version script: $have_ld_version_script
32347 Fuzzing build: $enable_fuzzing $LIB_FUZZING_ENGINE