2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsodium 1.0.0.
5 # Report bugs to <https://github.com/jedisct1/libsodium/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/jedisct1/libsodium/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL
=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE
= GREP_OPTIONS
=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs
="'$as_qdir' $as_dirs"
340 as_dir
=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p
()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
409 as_val
=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit
$as_status
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits
='0123456789'
473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
476 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
477 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x
"$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec
=no
; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
529 mkdir conf$$.dir
2>/dev
/null
531 if (echo >conf$$.
file) 2>/dev
/null
; then
532 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
548 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
549 rmdir conf$$.dir
2>/dev
/null
551 if mkdir
-p .
2>/dev
/null
; then
552 as_mkdir_p
='mkdir -p "$as_dir"'
554 test -d .
/-p && rmdir .
/-p
559 as_executable_p
=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL
=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix
=/usr
/local
583 ac_config_libobj_dir
=.
590 # Identity of this package.
591 PACKAGE_NAME
='libsodium'
592 PACKAGE_TARNAME
='libsodium'
593 PACKAGE_VERSION
='1.0.0'
594 PACKAGE_STRING
='libsodium 1.0.0'
595 PACKAGE_BUGREPORT
='https://github.com/jedisct1/libsodium/issues'
596 PACKAGE_URL
='https://github.com/jedisct1/libsodium'
598 ac_unique_file
="src/libsodium/sodium/version.c"
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars
='am__EXEEXT_FALSE
639 HAVE_LD_OUTPUT_DEF_FALSE
640 HAVE_LD_OUTPUT_DEF_TRUE
674 am__fastdepCCAS_FALSE
696 SODIUM_LIBRARY_VERSION
697 SODIUM_LIBRARY_VERSION_MINOR
698 SODIUM_LIBRARY_VERSION_MAJOR
705 MAINTAINER_MODE_FALSE
719 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
784 enable_maintainer_mode
785 enable_dependency_tracking
789 enable_blocking_random
793 enable_soname_versions
802 ac_precious_vars
='build_alias
818 # Initialize some variables set by options.
820 ac_init_version
=false
821 ac_unrecognized_opts
=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name
=s
,x
,x
,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir
='${exec_prefix}/bin'
847 sbindir
='${exec_prefix}/sbin'
848 libexecdir
='${exec_prefix}/libexec'
849 datarootdir
='${prefix}/share'
850 datadir
='${datarootdir}'
851 sysconfdir
='${prefix}/etc'
852 sharedstatedir
='${prefix}/com'
853 localstatedir
='${prefix}/var'
854 includedir
='${prefix}/include'
855 oldincludedir
='/usr/include'
856 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir
='${datarootdir}/info'
862 libdir
='${exec_prefix}/lib'
863 localedir
='${datarootdir}/locale'
864 mandir
='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\
$ac_option
878 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 as_fn_error $?
"invalid feature name: $ac_useropt"
926 ac_useropt_orig
=$ac_useropt
927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep
=', ';;
935 eval enable_
$ac_useropt=no
;;
937 -docdir |
--docdir |
--docdi |
--doc |
--do)
939 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
942 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
944 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
947 -enable-* |
--enable-*)
948 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
951 as_fn_error $?
"invalid feature name: $ac_useropt"
952 ac_useropt_orig
=$ac_useropt
953 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep
=', ';;
961 eval enable_
$ac_useropt=\
$ac_optarg ;;
963 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
964 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
965 |
--exec |
--exe |
--ex)
966 ac_prev
=exec_prefix
;;
967 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
968 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
969 |
--exec=* |
--exe=* |
--ex=*)
970 exec_prefix
=$ac_optarg ;;
972 -gas |
--gas |
--ga |
--g)
973 # Obsolete; use --with-gas.
976 -help |
--help |
--hel |
--he |
-h)
978 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
979 ac_init_help
=recursive
;;
980 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
981 ac_init_help
=short
;;
983 -host |
--host |
--hos |
--ho)
984 ac_prev
=host_alias
;;
985 -host=* |
--host=* |
--hos=* |
--ho=*)
986 host_alias
=$ac_optarg ;;
988 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
990 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
992 htmldir
=$ac_optarg ;;
994 -includedir |
--includedir |
--includedi |
--included |
--include \
995 |
--includ |
--inclu |
--incl |
--inc)
996 ac_prev
=includedir
;;
997 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
998 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
999 includedir
=$ac_optarg ;;
1001 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1003 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1004 infodir
=$ac_optarg ;;
1006 -libdir |
--libdir |
--libdi |
--libd)
1008 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1009 libdir
=$ac_optarg ;;
1011 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1012 |
--libexe |
--libex |
--libe)
1013 ac_prev
=libexecdir
;;
1014 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1015 |
--libexe=* |
--libex=* |
--libe=*)
1016 libexecdir
=$ac_optarg ;;
1018 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1019 ac_prev
=localedir
;;
1020 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1021 localedir
=$ac_optarg ;;
1023 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1024 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1025 ac_prev
=localstatedir
;;
1026 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1027 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1028 localstatedir
=$ac_optarg ;;
1030 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1032 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1033 mandir
=$ac_optarg ;;
1035 -nfp |
--nfp |
--nf)
1036 # Obsolete; use --without-fp.
1039 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1040 |
--no-cr |
--no-c |
-n)
1043 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1044 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1047 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1048 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1049 |
--oldin |
--oldi |
--old |
--ol |
--o)
1050 ac_prev
=oldincludedir
;;
1051 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1052 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1053 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1054 oldincludedir
=$ac_optarg ;;
1056 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1058 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1059 prefix
=$ac_optarg ;;
1061 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1062 |
--program-pre |
--program-pr |
--program-p)
1063 ac_prev
=program_prefix
;;
1064 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1065 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1066 program_prefix
=$ac_optarg ;;
1068 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1069 |
--program-suf |
--program-su |
--program-s)
1070 ac_prev
=program_suffix
;;
1071 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1072 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1073 program_suffix
=$ac_optarg ;;
1075 -program-transform-name |
--program-transform-name \
1076 |
--program-transform-nam |
--program-transform-na \
1077 |
--program-transform-n |
--program-transform- \
1078 |
--program-transform |
--program-transfor \
1079 |
--program-transfo |
--program-transf \
1080 |
--program-trans |
--program-tran \
1081 |
--progr-tra |
--program-tr |
--program-t)
1082 ac_prev
=program_transform_name
;;
1083 -program-transform-name=* |
--program-transform-name=* \
1084 |
--program-transform-nam=* |
--program-transform-na=* \
1085 |
--program-transform-n=* |
--program-transform-=* \
1086 |
--program-transform=* |
--program-transfor=* \
1087 |
--program-transfo=* |
--program-transf=* \
1088 |
--program-trans=* |
--program-tran=* \
1089 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1090 program_transform_name
=$ac_optarg ;;
1092 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1094 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1095 pdfdir
=$ac_optarg ;;
1097 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1099 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1102 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1103 |
-silent |
--silent |
--silen |
--sile |
--sil)
1106 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1108 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1110 sbindir
=$ac_optarg ;;
1112 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1113 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1114 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1116 ac_prev
=sharedstatedir
;;
1117 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1118 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1119 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1121 sharedstatedir
=$ac_optarg ;;
1123 -site |
--site |
--sit)
1125 -site=* |
--site=* |
--sit=*)
1128 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1130 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1131 srcdir
=$ac_optarg ;;
1133 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1134 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1135 ac_prev
=sysconfdir
;;
1136 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1137 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1138 sysconfdir
=$ac_optarg ;;
1140 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1141 ac_prev
=target_alias
;;
1142 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1143 target_alias
=$ac_optarg ;;
1145 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1148 -version |
--version |
--versio |
--versi |
--vers |
-V)
1149 ac_init_version
=: ;;
1152 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1155 as_fn_error $?
"invalid package name: $ac_useropt"
1156 ac_useropt_orig
=$ac_useropt
1157 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep
=', ';;
1165 eval with_
$ac_useropt=\
$ac_optarg ;;
1167 -without-* |
--without-*)
1168 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid package name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval with_
$ac_useropt=no
;;
1184 # Obsolete; use --with-x.
1187 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1188 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1189 ac_prev
=x_includes
;;
1190 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1191 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1192 x_includes
=$ac_optarg ;;
1194 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1195 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1196 ac_prev
=x_libraries
;;
1197 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1198 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1199 x_libraries
=$ac_optarg ;;
1201 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1206 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1210 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1212 eval $ac_envvar=\
$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 if test -n "$ac_prev"; then
1227 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $?
"missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 # Check all directory arguments for consistency.
1240 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val
=\$
$ac_var
1246 # Remove trailing slashes.
1249 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\
$ac_val;;
1252 # Be sure to have absolute directory names.
1254 [\\/$
]* | ?
:[\\/]* ) continue;;
1255 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1257 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target
=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x
; then
1269 if test "x$build_alias" = x
; then
1270 cross_compiling
=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1277 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1279 test "$silent" = yes && exec 6>/dev
/null
1282 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di
=`ls -di .` &&
1284 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $?
"working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $?
"pwd does not report name of working directory"
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted
=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir
=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted
=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1326 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1328 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var
in $ac_precious_vars; do
1343 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1345 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures libsodium 1.0.0 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1419 --build=BUILD configure
for building on BUILD
[guessed
]
1420 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive
) echo "Configuration of libsodium 1.0.0:";;
1431 --disable-option-checking ignore unrecognized
--enable/--with options
1432 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1433 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1434 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1435 --disable-silent-rules verbose build output
(undo
: "make V=0")
1436 --enable-maintainer-mode
1437 enable make rules and dependencies not useful
(and
1438 sometimes confusing
) to the casual installer
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --disable-ssp Do not compile with
-fstack-protector
1444 --disable-asm Disable assembly implementations
1445 --disable-pie Do not produce position independent executables
1446 --enable-blocking-random
1447 Use
/dev
/random instead of
/dev
/urandom
1448 --enable-minimal Only compile the minimum
set of functions required
1449 for the high-level API
1450 --enable-debug For maintainers only
- please
do not use
1451 --enable-soname-versions
1452 enable soname versions
(must be disabled
for
1453 Android
) (default
: enabled
)
1454 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1455 --enable-static[=PKGS
] build static libraries
[default
=yes]
1456 --enable-fast-install[=PKGS
]
1457 optimize
for fast installation
[default
=yes]
1458 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1461 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1462 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1463 --with-safecode For maintainers only
- please
do not use
1464 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1466 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1467 --with-sysroot=DIR Search
for dependent libraries within DIR
1468 (or the compiler
's sysroot if not specified).
1470 Some influential environment variables:
1472 set to the safecode base directory
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CCAS assembler compiler command (defaults to CC)
1481 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1483 CWFLAGS define to compilation flags for generating extra warnings
1484 AR path to the ar utility
1486 Use these variables to override the choices made by `configure' or to
help
1487 it to
find libraries and programs with nonstandard names
/locations.
1489 Report bugs to
<https
://github.com
/jedisct
1/libsodium
/issues
>.
1490 libsodium home page
: <https
://github.com
/jedisct
1/libsodium
>.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1504 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1506 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1511 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir
=$ac_pwd
1515 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir
=$ac_top_build_prefix
1520 .
) # We are building in place.
1522 ac_top_srcdir
=$ac_top_builddir_sub
1523 ac_abs_top_srcdir
=$ac_pwd ;;
1524 [\\/]* | ?
:[\\/]* ) # Absolute name.
1525 ac_srcdir
=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir
=$srcdir
1527 ac_abs_top_srcdir
=$srcdir ;;
1529 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 libsodium configure
1.0.0
1554 generated by GNU Autoconf
2.69
1556 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1557 This configure
script is free software
; the Free Software Foundation
1558 gives unlimited permission to copy
, distribute and modify it.
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile
()
1572 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1573 rm -f conftest.
$ac_objext
1574 if { { ac_try
="$ac_compile"
1576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1603 } # ac_fn_c_try_compile
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1614 *) ac_try_echo
=$ac_try;;
1616 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620 if test -s conftest.err
; then
1621 grep -v '^ *+' conftest.err
>conftest.er1
1622 cat conftest.er1
>&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i
&& {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.
$ac_ext >&5
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status
$ac_retval
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1647 ac_fn_c_check_header_mongrel
()
1649 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1650 if eval \
${$3+:} false
; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \
${$3+:} false
; then :
1654 $as_echo_n "(cached) " >&6
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1668 if ac_fn_c_try_compile
"$LINENO"; then :
1669 ac_header_compiler
=yes
1671 ac_header_compiler
=no
1673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1684 if ac_fn_c_try_cpp
"$LINENO"; then :
1685 ac_header_preproc
=yes
1687 ac_header_preproc
=no
1689 rm -f conftest.err conftest.i conftest.
$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ( $as_echo "## ----------------------------------------------------------- ##
1713 ## Report this to https://github.com/jedisct1/libsodium/issues ##
1714 ## ----------------------------------------------------------- ##"
1715 ) |
sed "s/^/$as_me: WARNING: /" >&2
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \
${$3+:} false
; then :
1721 $as_echo_n "(cached) " >&6
1723 eval "$3=\$ac_header_compiler"
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_header_mongrel
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1739 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1740 if { { ac_try
="$ac_link"
1742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1753 *) ac_try_echo
=$ac_try;;
1755 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1767 ac_retval
=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status
$ac_retval
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile
()
1781 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \
${$3+:} false
; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1792 if ac_fn_c_try_compile
"$LINENO"; then :
1797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_header_compile
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1812 rm -f conftest.
$ac_objext conftest
$ac_exeext
1813 if { { ac_try
="$ac_link"
1815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1875 # include <limits.h>
1877 # include <assert.h>
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1904 if ac_fn_c_try_link "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 } # ac_fn_c_check_func
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1922 It was created by libsodium $as_me 1.0.0, which was
1923 generated by GNU Autoconf 2.69. Invocation command line was
1935 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1936 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1937 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1938 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1939 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1941 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1942 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1944 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1945 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1946 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1947 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1948 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1949 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1950 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 $as_echo "PATH: $as_dir"
1975 # Keep a trace of the command line.
1976 # Strip out --no-create and --no-recursion so they do not pile up.
1977 # Strip out --silent because we don't want to record it for future runs.
1978 # Also quote any args containing shell meta-characters.
1979 # Make two passes to allow for proper duplicate-argument suppression.
1983 ac_must_keep_next=false
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1994 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 as_fn_append ac_configure_args1 " '$ac_arg'"
2000 if test $ac_must_keep_next = true; then
2001 ac_must_keep_next=false # Got value, back to normal.
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 -* ) ac_must_keep_next=true ;;
2015 as_fn_append ac_configure_args " '$ac_arg'"
2020 { ac_configure_args0=; unset ac_configure_args0;}
2021 { ac_configure_args1=; unset ac_configure_args1;}
2023 # When interrupted or exit'd, cleanup temporary files, and complete
2024 # config.log. We remove comments because anyway the quotes in there
2025 # would cause problems or look ugly.
2026 # WARNING: Use '\'' to represent an apostrophe within the trap.
2027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028 trap 'exit_status=$?
2029 # Save into config.log some information that might help in debugging.
2033 $as_echo "## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##"
2037 # The following way of writing the cache mishandles newlines in values,
2039 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2040 eval ac_val=\$$ac_var
2044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 _ | IFS | as_nl) ;; #(
2049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050 *) { eval $ac_var=; unset $ac_var;} ;;
2055 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2056 *${as_nl}ac_space=\ *)
2058 "s/'\''/'\''\\\\'\'''\''/g;
2059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 $as_echo "## ----------------- ##
2070 ## Output variables. ##
2071 ## ----------------- ##"
2073 for ac_var in $ac_subst_vars
2075 eval ac_val=\$$ac_var
2077 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 $as_echo "$ac_var='\''$ac_val'\''"
2083 if test -n "$ac_subst_files"; then
2084 $as_echo "## ------------------- ##
2085 ## File substitutions. ##
2086 ## ------------------- ##"
2088 for ac_var in $ac_subst_files
2090 eval ac_val=\$$ac_var
2092 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 $as_echo "$ac_var='\''$ac_val'\''"
2099 if test -s confdefs.h; then
2100 $as_echo "## ----------- ##
2107 test "$ac_signal" != 0 &&
2108 $as_echo "$as_me: caught signal $ac_signal"
2109 $as_echo "$as_me: exit $exit_status"
2111 rm -f core *.core core.conftest.* &&
2112 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 for ac_signal in 1 2 13 15; do
2116 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2121 rm -f -r conftest* confdefs.h
2123 $as_echo "/* confdefs.h */" > confdefs.h
2125 # Predefined preprocessor variables.
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_URL "$PACKAGE_URL"
2152 # Let the site file select an alternate cache file if it wants to.
2153 # Prefer an explicitly selected file to automatically selected ones.
2156 if test -n "$CONFIG_SITE"; then
2157 # We do not want a PATH search for config.site.
2158 case $CONFIG_SITE in #((
2159 -*) ac_site_file1=./$CONFIG_SITE;;
2160 */*) ac_site_file1=$CONFIG_SITE;;
2161 *) ac_site_file1=./$CONFIG_SITE;;
2163 elif test "x$prefix" != xNONE; then
2164 ac_site_file1=$prefix/share/config.site
2165 ac_site_file2=$prefix/etc/config.site
2167 ac_site_file1=$ac_default_prefix/share/config.site
2168 ac_site_file2=$ac_default_prefix/etc/config.site
2170 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 test "x$ac_site_file" = xNONE && continue
2173 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2176 sed 's/^/| /' "$ac_site_file" >&5
2178 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180 as_fn_error $? "failed to load site
script $ac_site_file
2181 See \
`config.log' for more details" "$LINENO" 5; }
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special files
2187 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2202 # Check that the precious variables saved in the cache have kept the same
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2213 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2217 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x
$ac_old_val`
2224 ac_new_val_w=`echo x
$ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2228 ac_cache_corrupted=:
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2274 if test -f "$ac_dir/install-sh"; then
2276 ac_install_sh="$ac_aux_dir/install-sh -c"
2278 elif test -f "$ac_dir/install.sh"; then
2280 ac_install_sh="$ac_aux_dir/install.sh -c"
2282 elif test -f "$ac_dir/shtool"; then
2284 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 if test -z "$ac_aux_dir"; then
2289 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2301 # Make sure we can run config.sub.
2302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306 $as_echo_n "checking build system type... " >&6; }
2307 if ${ac_cv_build+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 ac_build_alias=$build_alias
2311 test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x &&
2314 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320 $as_echo "$ac_cv_build" >&6; }
2321 case $ac_cv_build in
2323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2326 ac_save_IFS=$IFS; IFS='-'
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2336 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2340 $as_echo_n "checking host system type... " >&6; }
2341 if ${ac_cv_host+:} false; then :
2342 $as_echo_n "(cached) " >&6
2344 if test "x$host_alias" = x; then
2345 ac_cv_host=$ac_cv_build
2347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2353 $as_echo "$ac_cv_host" >&6; }
2356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2359 ac_save_IFS=$IFS; IFS='-'
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2369 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2372 am__api_version='1.14'
2374 # Find a good install program. We prefer a C program (faster),
2375 # so one script is as good as another. But avoid the broken or
2376 # incompatible versions:
2377 # SysV /etc/install, /usr/sbin/install
2378 # SunOS /usr/etc/install
2379 # IRIX /sbin/install
2381 # AmigaOS /C/install, which installs bootblocks on floppy discs
2382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2385 # OS/2's system install, which has a completely different semantic
2386 # ./install, which can be erroneously created by make from ./install.sh.
2387 # Reject install programs that cannot install multiple files.
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2389 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2390 if test -z "$INSTALL"; then
2391 if ${ac_cv_path_install+:} false; then :
2392 $as_echo_n "(cached) " >&6
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 # Account for people who put trailing slashes in PATH elements.
2400 case $as_dir/ in #((
2401 ./ | .// | /[cC]/* | \
2402 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2403 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2406 # OSF1 and SCO ODT 3.0 have their own names for install.
2407 # Don't use installbsd from OSF since it installs stuff as root
2409 for ac_prog in ginstall scoinst install; do
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2412 if test $ac_prog = install &&
2413 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # AIX install. It has an incompatible calling convention.
2416 elif test $ac_prog = install &&
2417 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # program-specific install script used by HP pwplus--don't use.
2421 rm -rf conftest.one conftest.two conftest.dir
2422 echo one > conftest.one
2423 echo two > conftest.two
2425 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2426 test -s conftest.one && test -s conftest.two &&
2427 test -s conftest.dir/conftest.one &&
2428 test -s conftest.dir/conftest.two
2430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2443 rm -rf conftest.one conftest.two conftest.dir
2446 if test "${ac_cv_path_install+set}" = set; then
2447 INSTALL=$ac_cv_path_install
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for INSTALL within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 INSTALL=$ac_install_sh
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2457 $as_echo "$INSTALL" >&6; }
2459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460 # It thinks the first close brace ends the variable substitution.
2461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2465 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2468 $as_echo_n "checking whether build environment is sane... " >&6; }
2469 # Reject unsafe characters in $srcdir or the absolute working directory
2470 # name. Accept space and tab only in the latter.
2474 *[\\\"\#\$\&\'\`$am_lf]*)
2475 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2478 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2479 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2482 # Do 'set' in a subshell so we don't clobber the current shell's
2483 # arguments. Must try -L first in case configure is actually a
2484 # symlink; some systems play weird games with the mod time of symlinks
2485 # (eg FreeBSD returns the mod time of the symlink's containing
2489 for am_try
in 1 2; do
2490 echo "timestamp, slept: $am_has_slept" > conftest.
file
2491 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2492 if test "$*" = "X"; then
2494 set X
`ls -t "$srcdir/configure" conftest.file`
2496 if test "$*" != "X $srcdir/configure conftest.file" \
2497 && test "$*" != "X conftest.file $srcdir/configure"; then
2499 # If neither matched, then we have a broken ls. This can happen
2500 # if, for instance, CONFIG_SHELL is bash and it inherits a
2501 # broken ls alias from the environment. This has actually
2502 # happened. Such a system could not be considered "sane".
2503 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2504 alias in your environment" "$LINENO" 5
2506 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2513 test "$2" = conftest.
file
2519 as_fn_error $?
"newly created file is older than distributed files!
2520 Check your system clock" "$LINENO" 5
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523 $as_echo "yes" >&6; }
2524 # If we didn't sleep, we still need to ensure time stamps of config.status and
2525 # generated files are strictly newer.
2527 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2534 test "$program_prefix" != NONE
&&
2535 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2536 # Use a double $ so make ignores it.
2537 test "$program_suffix" != NONE
&&
2538 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2539 # Double any \ or $.
2540 # By default was `s,x,x', remove it if useless.
2541 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2542 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2544 # expand $ac_aux_dir to an absolute path
2545 am_aux_dir
=`cd $ac_aux_dir && pwd`
2547 if test x
"${MISSING+set}" != xset
; then
2550 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2552 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2555 # Use eval to expand $SHELL
2556 if eval "$MISSING --is-lightweight"; then
2557 am_missing_run
="$MISSING "
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2561 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2564 if test x
"${install_sh}" != xset
; then
2567 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2569 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2573 # Installed binaries are usually stripped using 'strip' when the user
2574 # run "make install-strip". However 'strip' might not be the right
2575 # tool to use in cross-compilation environments, therefore Automake
2576 # will honor the 'STRIP' environment variable to overrule this program.
2577 if test "$cross_compiling" != no
; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2580 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_STRIP+:} false
; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$STRIP"; then
2587 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir
=.
2594 for ac_exec_ext
in '' $ac_executable_extensions; do
2595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 STRIP
=$ac_cv_prog_STRIP
2607 if test -n "$STRIP"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2609 $as_echo "$STRIP" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2617 if test -z "$ac_cv_prog_STRIP"; then
2619 # Extract the first word of "strip", so it can be a program name with args.
2620 set dummy strip
; ac_word
=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$ac_ct_STRIP"; then
2627 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir
=.
2634 for ac_exec_ext
in '' $ac_executable_extensions; do
2635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_STRIP
="strip"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2647 if test -n "$ac_ct_STRIP"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2649 $as_echo "$ac_ct_STRIP" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2655 if test "x$ac_ct_STRIP" = x
; then
2658 case $cross_compiling:$ac_tool_warned in
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned
=yes ;;
2667 STRIP
="$ac_cv_prog_STRIP"
2671 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2674 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2675 if test -z "$MKDIR_P"; then
2676 if ${ac_cv_path_mkdir+:} false
; then :
2677 $as_echo_n "(cached) " >&6
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2680 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_prog
in mkdir gmkdir
; do
2685 for ac_exec_ext
in '' $ac_executable_extensions; do
2686 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2687 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2688 'mkdir (GNU coreutils) '* | \
2689 'mkdir (coreutils) '* | \
2690 'mkdir (fileutils) '4.1*)
2691 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2701 test -d .
/--version && rmdir .
/--version
2702 if test "${ac_cv_path_mkdir+set}" = set; then
2703 MKDIR_P
="$ac_cv_path_mkdir -p"
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for MKDIR_P within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 MKDIR_P
="$ac_install_sh -d"
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2713 $as_echo "$MKDIR_P" >&6; }
2715 for ac_prog
in gawk mawk nawk
awk
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy
$ac_prog; ac_word
=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false
; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$AWK"; then
2725 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_AWK
="$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$AWK"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2754 test -n "$AWK" && break
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2762 $as_echo_n "(cached) " >&6
2764 cat >conftest.
make <<\_ACEOF
2767 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2774 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2778 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 SET_MAKE
="MAKE=${MAKE-make}"
2788 rm -rf .tst
2>/dev
/null
2789 mkdir .tst
2>/dev
/null
2790 if test -d .tst
; then
2795 rmdir .tst
2>/dev
/null
2797 # Check whether --enable-silent-rules was given.
2798 if test "${enable_silent_rules+set}" = set; then :
2799 enableval
=$enable_silent_rules;
2802 case $enable_silent_rules in # (((
2803 yes) AM_DEFAULT_VERBOSITY
=0;;
2804 no
) AM_DEFAULT_VERBOSITY
=1;;
2805 *) AM_DEFAULT_VERBOSITY
=1;;
2807 am_make
=${MAKE-make}
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2809 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2810 if ${am_cv_make_support_nested_variables+:} false
; then :
2811 $as_echo_n "(cached) " >&6
2813 if $as_echo 'TRUE=$(BAR$(V))
2819 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2820 am_cv_make_support_nested_variables
=yes
2822 am_cv_make_support_nested_variables
=no
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2826 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2827 if test $am_cv_make_support_nested_variables = yes; then
2829 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2831 AM_V
=$AM_DEFAULT_VERBOSITY
2832 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2836 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838 # is not polluted with repeated "-I."
2839 am__isrc
=' -I$(srcdir)'
2840 # test to see if srcdir already configured
2841 if test -f $srcdir/config.status
; then
2842 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846 # test whether we have cygpath
2847 if test -z "$CYGPATH_W"; then
2848 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2849 CYGPATH_W
='cygpath -w'
2856 # Define the identity of the package.
2861 cat >>confdefs.h
<<_ACEOF
2862 #define PACKAGE "$PACKAGE"
2866 cat >>confdefs.h
<<_ACEOF
2867 #define VERSION "$VERSION"
2870 # Some tools Automake needs.
2872 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2875 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2878 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2881 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2884 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2886 # For better backward compatibility. To be removed once Automake 1.9.x
2887 # dies out for good. For more background, see:
2888 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2889 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2890 mkdir_p
='$(MKDIR_P)'
2892 # We need awk for the "check" target. The system "awk" is bad on
2894 # Always define AMTAR for backward compatibility. Yes, it's still used
2895 # in the wild :-( We should find a proper way to deprecate it ...
2899 # We'll loop over all known methods to create a tar archive until one works.
2900 _am_tools
='gnutar plaintar pax cpio none'
2902 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2903 # There is notably a 21 bits limit for the UID and the GID. In fact,
2904 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2906 am_max_uid
=2097151 # 2^21 - 1
2907 am_max_gid
=$am_max_uid
2908 # The $UID and $GID variables are not portable, so we need to resort
2909 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2910 # below are definitely unexpected, so allow the users to see them
2911 # (that is, avoid stderr redirection).
2912 am_uid
=`id -u || echo unknown`
2913 am_gid
=`id -g || echo unknown`
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2915 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2916 if test $am_uid -le $am_max_uid; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2918 $as_echo "yes" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2925 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2926 if test $am_gid -le $am_max_gid; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928 $as_echo "yes" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2936 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2938 # Go ahead even if we have the value already cached. We do so because we
2939 # need to set the values for the 'am__tar' and 'am__untar' variables.
2940 _am_tools
=${am_cv_prog_tar_ustar-$_am_tools}
2942 for _am_tool
in $_am_tools; do
2945 for _am_tar
in tar gnutar gtar
; do
2946 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2947 ($_am_tar --version) >&5 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && break
2952 am__tar
="$_am_tar --format=ustar -chf - "'"$$tardir"'
2953 am__tar_
="$_am_tar --format=ustar -chf - "'"$tardir"'
2954 am__untar
="$_am_tar -xf -"
2957 # Must skip GNU tar: if it does not support --format= it doesn't create
2958 # ustar tarball either.
2959 (tar --version) >/dev
/null
2>&1 && continue
2960 am__tar
='tar chf - "$$tardir"'
2961 am__tar_
='tar chf - "$tardir"'
2962 am__untar
='tar xf -'
2965 am__tar
='pax -L -x ustar -w "$$tardir"'
2966 am__tar_
='pax -L -x ustar -w "$tardir"'
2970 am__tar
='find "$$tardir" -print | cpio -o -H ustar -L'
2971 am__tar_
='find "$tardir" -print | cpio -o -H ustar -L'
2972 am__untar
='cpio -i -H ustar -d'
2981 # If the value was cached, stop now. We just wanted to have am__tar
2982 # and am__untar set.
2983 test -n "${am_cv_prog_tar_ustar}" && break
2985 # tar/untar a dummy directory, and stop if the command works.
2988 echo GrepMe
> conftest.dir
/file
2989 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2990 (tardir
=conftest.dir
&& eval $am__tar_ >conftest.
tar) >&5 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }
2995 if test -s conftest.
tar; then
2996 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2997 ($am__untar <conftest.
tar) >&5 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3002 (cat conftest.dir
/file) >&5 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006 grep GrepMe conftest.dir
/file >/dev
/null
2>&1 && break
3011 if ${am_cv_prog_tar_ustar+:} false
; then :
3012 $as_echo_n "(cached) " >&6
3014 am_cv_prog_tar_ustar
=$_am_tool
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3018 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3025 # POSIX will say in a future version that running "rm -f" with no argument
3026 # is OK; and we want to be able to make that assumption in our Makefile
3027 # recipes. So use an aggressive probe to check that the usage we want is
3028 # actually supported "in the wild" to an acceptable degree.
3029 # See automake bug#10828.
3030 # To make any issue more visible, cause the running configure to be aborted
3031 # by default if the 'rm' program in use doesn't match our expectations; the
3032 # user can still override this though.
3033 if rm -f && rm -fr && rm -rf; then : OK
; else
3037 Your 'rm' program seems unable to run without file operands specified
3038 on the command line, even when the '-f' option is present. This is contrary
3039 to the behaviour of most rm programs out there, and not conforming with
3040 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3042 Please tell bug-automake@gnu.org about your system, including the value
3043 of your $PATH and any error possibly output before this message. This
3044 can help us improve future automake versions.
3047 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3048 echo 'Configuration will proceed anyway, since you have set the' >&2
3049 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3053 Aborting the configuration process, to ensure you take notice of the issue.
3055 You can download and install GNU coreutils to get an 'rm' implementation
3056 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3058 If you want to complete the configuration process using your problematic
3059 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3060 to "yes", and re-run configure.
3063 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3066 # Check whether --enable-silent-rules was given.
3067 if test "${enable_silent_rules+set}" = set; then :
3068 enableval
=$enable_silent_rules;
3071 case $enable_silent_rules in # (((
3072 yes) AM_DEFAULT_VERBOSITY
=0;;
3073 no
) AM_DEFAULT_VERBOSITY
=1;;
3074 *) AM_DEFAULT_VERBOSITY
=0;;
3076 am_make
=${MAKE-make}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3078 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3079 if ${am_cv_make_support_nested_variables+:} false
; then :
3080 $as_echo_n "(cached) " >&6
3082 if $as_echo 'TRUE=$(BAR$(V))
3088 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3089 am_cv_make_support_nested_variables
=yes
3091 am_cv_make_support_nested_variables
=no
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3095 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3096 if test $am_cv_make_support_nested_variables = yes; then
3098 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3100 AM_V
=$AM_DEFAULT_VERBOSITY
3101 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3107 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3108 # Check whether --enable-maintainer-mode was given.
3109 if test "${enable_maintainer_mode+set}" = set; then :
3110 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3112 USE_MAINTAINER_MODE=no
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3116 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3117 if test $USE_MAINTAINER_MODE = yes; then
3118 MAINTAINER_MODE_TRUE=
3119 MAINTAINER_MODE_FALSE='#'
3121 MAINTAINER_MODE_TRUE
='#'
3122 MAINTAINER_MODE_FALSE
=
3125 MAINT
=$MAINTAINER_MODE_TRUE
3128 # Check whether --enable-dependency-tracking was given.
3129 if test "${enable_dependency_tracking+set}" = set; then :
3130 enableval
=$enable_dependency_tracking;
3133 if test "x$enable_dependency_tracking" != xno
; then
3134 am_depcomp
="$ac_aux_dir/depcomp"
3138 if test "x$enable_dependency_tracking" != xno; then
3149 ISODATE
=`date +%Y-%m-%d`
3152 SODIUM_LIBRARY_VERSION_MAJOR
=7
3153 SODIUM_LIBRARY_VERSION_MINOR
=2
3155 SODIUM_LIBRARY_VERSION
=13:2:0
3159 # current:revision:age
3161 # | | +- increment if interfaces have been added
3162 # | | set to zero if interfaces have been removed
3164 # | +- increment if source code has changed
3165 # | set to zero if current is incremented
3166 # +- increment if interfaces have been added, removed or changed
3172 LX_CFLAGS
=${CFLAGS-NONE}
3175 # Check whether --enable-ssp was given.
3176 if test "${enable_ssp+set}" = set; then :
3177 enableval
=$enable_ssp;
3178 if test "x$enableval" = "xno"; then :
3195 # Check whether --enable-asm was given.
3196 if test "${enable_asm+set}" = set; then :
3197 enableval
=$enable_asm;
3198 if test "x$enableval" = "xno"; then :
3215 if test "x$EMSCRIPTEN" != "x"; then :
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to javascript - asm implementations disabled" >&5
3219 $as_echo "$as_me: WARNING: compiling to javascript - asm implementations disabled" >&2;}
3223 # Check whether --enable-pie was given.
3224 if test "${enable_pie+set}" = set; then :
3225 enableval
=$enable_pie; enable_pie
=$enableval
3232 mingw
*|cygwin
*|msys
) :
3233 enable_pie
="no" ;; #(
3238 # Check whether --enable-blocking-random was given.
3239 if test "${enable_blocking_random+set}" = set; then :
3240 enableval
=$enable_blocking_random;
3241 if test "x$enableval" = "xyes"; then :
3244 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
3252 # Check whether --enable-minimal was given.
3253 if test "${enable_minimal+set}" = set; then :
3254 enableval
=$enable_minimal;
3255 if test "x$enableval" = "xyes"; then :
3257 enable_minimal
="yes"
3271 if test x
$enable_minimal = xyes
; then
3281 # Check whether --with-safecode was given.
3282 if test "${with_safecode+set}" = set; then :
3283 withval
=$with_safecode; if test "x$withval" = "xyes"; then :
3286 : ${SAFECODE_HOME:=/opt/safecode}
3287 LDFLAGS
="$LDFLAGS -L${SAFECODE_HOME}/lib"
3288 LIBS
="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
3289 CFLAGS
="$CFLAGS -fmemsafety"
3296 # Check whether --enable-debug was given.
3297 if test "${enable_debug+set}" = set; then :
3298 enableval
=$enable_debug;
3299 if test "x$enableval" = "xyes"; then :
3301 if test "x$LX_CFLAGS" = "xNONE"; then :
3304 for flag
in `echo $CFLAGS`; do
3311 as_fn_append nxflags
" $flag" ;; #(
3316 CFLAGS
="$nxflags -O0 -g3"
3319 CPPFLAGS
="$CPPFLAGS -DDEBUG=1"
3329 DEPDIR
="${am__leading_dot}deps"
3331 ac_config_commands
="$ac_config_commands depfiles"
3334 am_make
=${MAKE-make}
3335 cat > confinc
<< 'END'
3337 @
echo this is the am__doit target
3340 # If we don't find an include directive, just comment out the code.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3346 # First try GNU make style include.
3347 echo "include confinc" > confmf
3348 # Ignore all kinds of additional output from 'make'.
3349 case `$am_make -s -f confmf 2> /dev/null` in #(
3350 *the\ am__doit\ target
*)
3356 # Now try BSD make style include.
3357 if test "$am__include" = "#"; then
3358 echo '.include "confinc"' > confmf
3359 case `$am_make -s -f confmf 2> /dev/null` in #(
3360 *the\ am__doit\ target
*)
3361 am__include
=.include
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3370 $as_echo "$_am_result" >&6; }
3371 rm -f confinc confmf
3374 ac_cpp
='$CPP $CPPFLAGS'
3375 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3380 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_CC+:} false
; then :
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC
="$CC" # Let the user override the test.
3389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir
=.
3394 for ac_exec_ext
in '' $ac_executable_extensions; do
3395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3417 if test -z "$ac_cv_prog_CC"; then
3419 # Extract the first word of "gcc", so it can be a program name with args.
3420 set dummy gcc
; ac_word
=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$ac_ct_CC"; then
3427 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir
=.
3434 for ac_exec_ext
in '' $ac_executable_extensions; do
3435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_ac_ct_CC
="gcc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 if test "x$ac_ct_CC" = x
; then
3458 case $cross_compiling:$ac_tool_warned in
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned
=yes ;;
3470 if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3473 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_CC+:} false
; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC
="$CC" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3511 if test -z "$CC"; then
3512 # Extract the first word of "cc", so it can be a program name with args.
3513 set dummy cc
; ac_word
=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false
; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC
="$CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3531 ac_prog_rejected
=yes
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test $ac_prog_rejected = yes; then
3543 # We found a bogon in the path, so make sure we never use it.
3544 set dummy
$ac_cv_prog_CC
3546 if test $# != 0; then
3547 # We chose a different compiler from the bogus one.
3548 # However, it has the same basename, so the bogon will be chosen
3549 # first if we set CC to just the basename; use the full file name.
3551 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3557 if test -n "$CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 $as_echo "$CC" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3567 if test -z "$CC"; then
3568 if test -n "$ac_tool_prefix"; then
3569 for ac_prog
in cl.exe
3571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3572 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_CC+:} false
; then :
3576 $as_echo_n "(cached) " >&6
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC
="$CC" # Let the user override the test.
3581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir
=.
3586 for ac_exec_ext
in '' $ac_executable_extensions; do
3587 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3608 test -n "$CC" && break
3611 if test -z "$CC"; then
3613 for ac_prog
in cl.exe
3615 # Extract the first word of "$ac_prog", so it can be a program name with args.
3616 set dummy
$ac_prog; ac_word
=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir
=.
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CC
="$ac_prog"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3652 test -n "$ac_ct_CC" && break
3655 if test "x$ac_ct_CC" = x
; then
3658 case $cross_compiling:$ac_tool_warned in
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3662 ac_tool_warned
=yes ;;
3671 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $?
"no acceptable C compiler found in \$PATH
3674 See \`config.log' for more details" "$LINENO" 5; }
3676 # Provide some information about the compiler.
3677 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3680 for ac_option
in --version -v -V -qversion; do
3681 { { ac_try
="$ac_compiler $ac_option >&5"
3683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3690 if test -s conftest.err; then
3692 ... rest of stderr output deleted ...
3693 10q' conftest.err >conftest.er1
3694 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3712 ac_clean_files_save=$ac_clean_files
3713 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3714 # Try to create an executable without -o first, disregard a.out.
3715 # It will help us diagnose broken compilers, and finding out an intuition
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3718 $as_echo_n "checking whether the C compiler works... " >&6; }
3719 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3721 # The possible output files:
3722 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3725 for ac_file in $ac_files
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3729 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3734 if { { ac_try="$ac_link_default"
3736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3737 *) ac_try_echo
=$ac_try;;
3739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link_default") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3748 # so that the user can short-circuit this test for compilers unknown to
3750 for ac_file
in $ac_files ''
3752 test -f "$ac_file" ||
continue
3754 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3757 # We found the default executable, but exeext='' is most
3761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3763 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765 # We set ac_cv_exeext here because the later test for it is not
3766 # safe: cross compilers may not add the suffix if given an `-o'
3767 # argument, so we may need to know it at that point already.
3768 # Even if this section looks crufty: it has the advantage of
3775 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3780 if test -z "$ac_file"; then :
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 $as_echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.
$ac_ext >&5
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error
77 "C compiler cannot create executables
3789 See \`config.log' for more details" "$LINENO" 5; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3792 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3795 $as_echo_n "checking for C compiler default output file name... " >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3797 $as_echo "$ac_file" >&6; }
3798 ac_exeext
=$ac_cv_exeext
3800 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3801 ac_clean_files
=$ac_clean_files_save
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3803 $as_echo_n "checking for suffix of executables... " >&6; }
3804 if { { ac_try
="$ac_link"
3806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_link") 2>&5
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }; then :
3815 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3816 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3817 # work properly (i.e., refer to `conftest.exe'), while it won't with
3819 for ac_file
in conftest.exe conftest conftest.
*; do
3820 test -f "$ac_file" ||
continue
3822 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3823 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3832 See \`config.log' for more details" "$LINENO" 5; }
3834 rm -f conftest conftest
$ac_cv_exeext
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3836 $as_echo "$ac_cv_exeext" >&6; }
3838 rm -f conftest.
$ac_ext
3839 EXEEXT
=$ac_cv_exeext
3841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3847 FILE *f = fopen ("conftest.out", "w");
3848 return ferror (f) || fclose (f) != 0;
3854 ac_clean_files
="$ac_clean_files conftest.out"
3855 # Check that the compiler produces executables we can run. If not, either
3856 # the compiler is broken, or we cross compile.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3858 $as_echo_n "checking whether we are cross compiling... " >&6; }
3859 if test "$cross_compiling" != yes; then
3860 { { ac_try
="$ac_link"
3862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_link") 2>&5
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 if { ac_try='./conftest$ac_cv_exeext'
3872 { { case "(($ac_try" in
3873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3874 *) ac_try_echo
=$ac_try;;
3876 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3884 if test "$cross_compiling" = maybe
; then
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $?
"cannot run C compiled programs.
3890 If you meant to cross compile, use \`--host'.
3891 See \`config.log' for more details" "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3896 $as_echo "$cross_compiling" >&6; }
3898 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3899 ac_clean_files
=$ac_clean_files_save
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3901 $as_echo_n "checking for suffix of object files... " >&6; }
3902 if ${ac_cv_objext+:} false
; then :
3903 $as_echo_n "(cached) " >&6
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3916 rm -f conftest.o conftest.obj
3917 if { { ac_try
="$ac_compile"
3919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_compile") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 for ac_file in conftest.o conftest.obj conftest.*; do
3929 test -f "$ac_file" || continue;
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3943 See \
`config.log' for more details" "$LINENO" 5; }
3945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3948 $as_echo "$ac_cv_objext" >&6; }
3949 OBJEXT=$ac_cv_objext
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3953 if ${ac_cv_c_compiler_gnu+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3970 if ac_fn_c_try_compile "$LINENO"; then :
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3990 if ${ac_cv_prog_cc_g+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4050 $as_echo "$ac_cv_prog_cc_g" >&6; }
4051 if test "$ac_test_CFLAGS" = set; then
4052 CFLAGS=$ac_save_CFLAGS
4053 elif test $ac_cv_prog_cc_g = yes; then
4054 if test "$GCC" = yes; then
4060 if test "$GCC" = yes; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4068 if ${ac_cv_prog_cc_c89+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 ac_cv_prog_cc_c89=no
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4092 s = g (p, va_arg (v,int));
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4098 function prototypes and stuff, but not '\xHH' hex character constants.
4099 These don't provoke an error unfortunately, instead are silently treated
4100 as 'x'. The following induces an error, until -std is added to get
4101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4102 array size at least. It's necessary to write '\x00'==0 to get something
4103 that's true only with -std. */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107 inside strings and character constants. */
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 CC="$ac_save_CC $ac_arg"
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_c89=$ac_arg
4132 rm -f core conftest.err conftest.$ac_objext
4133 test "x$ac_cv_prog_cc_c89" != "xno" && break
4135 rm -f conftest.$ac_ext
4140 case "x$ac_cv_prog_cc_c89" in
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4148 CC="$CC $ac_cv_prog_cc_c89"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4168 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4169 if ${am_cv_prog_cc_c_o+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4183 # Make sure it works both with $CC and with simple cc.
4184 # Following AC_PROG_CC_C_O, we do the test twice because some
4185 # compilers refuse to overwrite an existing .o file with -o,
4186 # though they will create one.
4187 am_cv_prog_cc_c_o=yes
4189 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4190 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } \
4194 && test -f conftest2.$ac_objext; then
4197 am_cv_prog_cc_c_o=no
4201 rm -f core conftest*
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4205 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4206 if test "$am_cv_prog_cc_c_o" != yes; then
4207 # Losing compiler, so override with the script.
4208 # FIXME: It is wrong to rewrite CC.
4209 # But if we don't then we get into trouble of one sort or another.
4210 # A longer-term fix would be to have automake use am__CC in this case,
4211 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4212 CC="$am_aux_dir/compile $CC"
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 depcc="$CC" am_compiler_list=
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4224 $as_echo_n "checking dependency style of $depcc... " >&6; }
4225 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4229 # We make a subdir and do the tests there. Otherwise we can end up
4230 # making bogus files that we don't know about and never remove. For
4231 # instance it was reported that on HP-UX the gcc test will end up
4232 # making a dummy file named 'D' -- because '-MD' means "put the output
4236 # Copy depcomp to subdir because otherwise we won't find it if we're
4237 # using a relative directory.
4238 cp "$am_depcomp" conftest.dir
4240 # We will build objects and dependencies in a subdirectory because
4241 # it helps to detect inapplicable dependency modes. For instance
4242 # both Tru64's cc and ICC support -MD to output dependencies as a
4243 # side effect of compilation, but ICC will put the dependencies in
4244 # the current directory while Tru64 will put them in the object
4248 am_cv_CC_dependencies_compiler_type=none
4249 if test "$am_compiler_list" = ""; then
4250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4253 case " $depcc " in #(
4254 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4257 for depmode in $am_compiler_list; do
4258 # Setup a source with many dependencies, because some compilers
4259 # like to wrap large dependency lists on column 80 (with \), and
4260 # we should not choose a depcomp mode which is confused by this.
4262 # We need to recreate these files for each test, as the compiler may
4263 # overwrite some of them when testing with obscure command lines.
4264 # This happens at least with the AIX C compiler.
4266 for i in 1 2 3 4 5 6; do
4267 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4268 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4269 # Solaris 10 /bin/sh.
4270 echo '/* dummy */' > sub/conftst$i.h
4272 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4274 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4275 # mode. It turns out that the SunPro C++ compiler does not properly
4276 # handle '-M -o', and we need to detect this. Also, some Intel
4277 # versions had trouble with output in subdirs.
4278 am__obj=sub/conftest.${OBJEXT-o}
4279 am__minus_obj="-o $am__obj"
4282 # This depmode causes a compiler race in universal mode.
4283 test "$am__universal" = false || continue
4286 # After this tag, mechanisms are not by side-effect, so they'll
4287 # only be used when explicitly requested.
4288 if test "x$enable_dependency_tracking" = xyes; then
4294 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4295 # This compiler won't grok '-c -o', but also, the minuso test has
4296 # not run yet. These depmodes are late enough in the game, and
4297 # so weak that their functioning should not be impacted.
4298 am__obj=conftest.${OBJEXT-o}
4303 if depmode=$depmode \
4304 source=sub/conftest.c object=$am__obj \
4305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4306 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4307 >/dev/null 2>conftest.err &&
4308 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312 # icc doesn't choke on unknown options, it will just issue warnings
4313 # or remarks (even with -Werror). So we grep stderr for any message
4314 # that says an option was ignored or not supported.
4315 # When given -MP, icc 7.0 and 7.1 complain thusly:
4316 # icc: Command line warning: ignoring option '-M'; no argument required
4317 # The diagnosis changed in icc 8.0:
4318 # icc: Command line remark: option '-MP' not supported
4319 if (grep 'ignoring option' conftest.err ||
4320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321 am_cv_CC_dependencies_compiler_type=$depmode
4330 am_cv_CC_dependencies_compiler_type=none
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4335 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4336 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4339 test "x$enable_dependency_tracking" != xno \
4340 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4342 am__fastdepCC_FALSE='#'
4344 am__fastdepCC_TRUE='#'
4345 am__fastdepCC_FALSE=
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4350 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4351 if ${ac_cv_prog_cc_c99+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_cv_prog_cc_c99=no
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4359 #include <stdbool.h>
4364 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4365 #define debug(...) fprintf (stderr, __VA_ARGS__)
4366 #define showlist(...) puts (#__VA_ARGS__)
4367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4369 test_varargs_macros (void)
4374 debug ("X = %d\n", x);
4375 showlist (The first, second, and third items.);
4376 report (x>y, "x is %d but y is %d", x, y);
4379 // Check long long types.
4380 #define BIG64 18446744073709551615ull
4381 #define BIG32 4294967295ul
4382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4384 your preprocessor is broken;
4388 your preprocessor is broken;
4390 static long long int bignum = -9223372036854775807LL;
4391 static unsigned long long int ubignum = BIG64;
4393 struct incomplete_array
4401 const wchar_t *name;
4405 typedef const char *ccp;
4408 test_restrict (ccp restrict text)
4410 // See if C++-style comments work.
4411 // Iterate through items via the restricted pointer.
4412 // Also check for declarations in for loops.
4413 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4418 // Check varargs and va_copy.
4420 test_varargs (const char *format, ...)
4423 va_start (args, format);
4425 va_copy (args_copy, args);
4436 str = va_arg (args_copy, const char *);
4439 number = va_arg (args_copy, int);
4442 fnumber = va_arg (args_copy, double);
4457 _Bool success = false;
4460 if (test_restrict ("String literal") == 0)
4462 char *restrict newvar = "Another string";
4465 test_varargs ("s, d' f .", "string", 65, 34.234);
4466 test_varargs_macros ();
4468 // Check flexible array members.
4469 struct incomplete_array *ia =
4470 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4472 for (int i = 0; i < ia->datasize; ++i)
4473 ia->data[i] = i * 1.234;
4475 // Check named initializers.
4476 struct named_init ni = {
4478 .name = L"Test wide string",
4479 .average = 543.34343,
4484 int dynamic_array[ni.number];
4485 dynamic_array[ni.number - 1] = 543;
4487 // work around unused variable warnings
4488 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4489 || dynamic_array[ni.number - 1] != 543);
4495 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4497 CC="$ac_save_CC $ac_arg"
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_prog_cc_c99=$ac_arg
4501 rm -f core conftest.err conftest.$ac_objext
4502 test "x$ac_cv_prog_cc_c99" != "xno" && break
4504 rm -f conftest.$ac_ext
4509 case "x$ac_cv_prog_cc_c99" in
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4512 $as_echo "none needed" >&6; } ;;
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4515 $as_echo "unsupported" >&6; } ;;
4517 CC="$CC $ac_cv_prog_cc_c99"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4519 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4521 if test "x$ac_cv_prog_cc_c99" != xno; then :
4526 # By default we simply use the C compiler to build assembly code.
4528 test "${CCAS+set}" = set || CCAS=$CC
4529 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4533 depcc="$CCAS" am_compiler_list=
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4536 $as_echo_n "checking dependency style of $depcc... " >&6; }
4537 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4541 # We make a subdir and do the tests there. Otherwise we can end up
4542 # making bogus files that we don't know about and never remove. For
4543 # instance it was reported that on HP-UX the gcc test will end up
4544 # making a dummy file named 'D' -- because '-MD' means "put the output
4548 # Copy depcomp to subdir because otherwise we won't find it if we're
4549 # using a relative directory.
4550 cp "$am_depcomp" conftest.dir
4552 # We will build objects and dependencies in a subdirectory because
4553 # it helps to detect inapplicable dependency modes. For instance
4554 # both Tru64's cc and ICC support -MD to output dependencies as a
4555 # side effect of compilation, but ICC will put the dependencies in
4556 # the current directory while Tru64 will put them in the object
4560 am_cv_CCAS_dependencies_compiler_type=none
4561 if test "$am_compiler_list" = ""; then
4562 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4567 for depmode in $am_compiler_list; do
4568 # Setup a source with many dependencies, because some compilers
4569 # like to wrap large dependency lists on column 80 (with \), and
4570 # we should not choose a depcomp mode which is confused by this.
4572 # We need to recreate these files for each test, as the compiler may
4573 # overwrite some of them when testing with obscure command lines.
4574 # This happens at least with the AIX C compiler.
4576 for i in 1 2 3 4 5 6; do
4577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4578 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4579 # Solaris 10 /bin/sh.
4580 echo '/* dummy */' > sub/conftst$i.h
4582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4584 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4585 # mode. It turns out that the SunPro C++ compiler does not properly
4586 # handle '-M -o', and we need to detect this. Also, some Intel
4587 # versions had trouble with output in subdirs.
4588 am__obj=sub/conftest.${OBJEXT-o}
4589 am__minus_obj="-o $am__obj"
4592 # This depmode causes a compiler race in universal mode.
4593 test "$am__universal" = false || continue
4596 # After this tag, mechanisms are not by side-effect, so they'll
4597 # only be used when explicitly requested.
4598 if test "x$enable_dependency_tracking" = xyes; then
4604 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4605 # This compiler won't grok '-c -o', but also, the minuso test has
4606 # not run yet. These depmodes are late enough in the game, and
4607 # so weak that their functioning should not be impacted.
4608 am__obj=conftest.${OBJEXT-o}
4613 if depmode=$depmode \
4614 source=sub/conftest.c object=$am__obj \
4615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4616 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4617 >/dev/null 2>conftest.err &&
4618 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4620 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4622 # icc doesn't choke on unknown options, it will just issue warnings
4623 # or remarks (even with -Werror). So we grep stderr for any message
4624 # that says an option was ignored or not supported.
4625 # When given -MP, icc 7.0 and 7.1 complain thusly:
4626 # icc: Command line warning: ignoring option '-M'; no argument required
4627 # The diagnosis changed in icc 8.0:
4628 # icc: Command line remark: option '-MP' not supported
4629 if (grep 'ignoring option' conftest.err ||
4630 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4631 am_cv_CCAS_dependencies_compiler_type=$depmode
4640 am_cv_CCAS_dependencies_compiler_type=none
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4645 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4646 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4649 test "x$enable_dependency_tracking" != xno \
4650 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4651 am__fastdepCCAS_TRUE=
4652 am__fastdepCCAS_FALSE='#'
4654 am__fastdepCCAS_TRUE='#'
4655 am__fastdepCCAS_FALSE=
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4666 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4667 # On Suns, sometimes $CPP names a directory.
4668 if test -n "$CPP" && test -d "$CPP"; then
4671 if test -z "$CPP"; then
4672 if ${ac_cv_prog_CPP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 # Double quotes because CPP needs to be expanded
4676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4679 for ac_c_preproc_warn_flag in '' yes
4681 # Use a header file that comes with gcc, so configuring glibc
4682 # with a fresh cross-compiler works.
4683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684 # <limits.h> exists even on freestanding compilers.
4685 # On the NeXT, cc -E runs the code through the compiler's parser,
4686 # not just through cpp. "Syntax error" is here to catch this case.
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4690 # include <limits.h>
4692 # include <assert.h>
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4699 # Broken: fails on valid input.
4702 rm -f conftest.err conftest.i conftest.$ac_ext
4704 # OK, works on sane cases. Now check whether nonexistent headers
4705 # can be detected and how.
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <ac_nonexistent.h>
4710 if ac_fn_c_try_cpp "$LINENO"; then :
4711 # Broken: success on invalid input.
4714 # Passes both tests.
4718 rm -f conftest.err conftest.i conftest.$ac_ext
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.i conftest.err conftest.
$ac_ext
4723 if $ac_preproc_ok; then :
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4736 $as_echo "$CPP" >&6; }
4738 for ac_c_preproc_warn_flag
in '' yes
4740 # Use a header file that comes with gcc, so configuring glibc
4741 # with a fresh cross-compiler works.
4742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 # <limits.h> exists even on freestanding compilers.
4744 # On the NeXT, cc -E runs the code through the compiler's parser,
4745 # not just through cpp. "Syntax error" is here to catch this case.
4746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4749 # include <limits.h>
4751 # include <assert.h>
4755 if ac_fn_c_try_cpp
"$LINENO"; then :
4758 # Broken: fails on valid input.
4761 rm -f conftest.err conftest.i conftest.
$ac_ext
4763 # OK, works on sane cases. Now check whether nonexistent headers
4764 # can be detected and how.
4765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <ac_nonexistent.h>
4769 if ac_fn_c_try_cpp
"$LINENO"; then :
4770 # Broken: success on invalid input.
4773 # Passes both tests.
4777 rm -f conftest.err conftest.i conftest.
$ac_ext
4780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4781 rm -f conftest.i conftest.err conftest.
$ac_ext
4782 if $ac_preproc_ok; then :
4785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4787 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4788 See \`config.log' for more details" "$LINENO" 5; }
4792 ac_cpp
='$CPP $CPPFLAGS'
4793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4800 if ${ac_cv_path_GREP+:} false
; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -z "$GREP"; then
4804 ac_path_GREP_found
=false
4805 # Loop through the user's path and test for each of PROGNAME-LIST
4806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4807 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4810 test -z "$as_dir" && as_dir
=.
4811 for ac_prog
in grep ggrep
; do
4812 for ac_exec_ext
in '' $ac_executable_extensions; do
4813 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4814 as_fn_executable_p
"$ac_path_GREP" ||
continue
4815 # Check for GNU ac_path_GREP and select it if it is found.
4816 # Check for GNU $ac_path_GREP
4817 case `"$ac_path_GREP" --version 2>&1` in
4819 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4822 $as_echo_n 0123456789 >"conftest.in"
4825 cat "conftest.in" "conftest.in" >"conftest.tmp"
4826 mv "conftest.tmp" "conftest.in"
4827 cp "conftest.in" "conftest.nl"
4828 $as_echo 'GREP' >> "conftest.nl"
4829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4830 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4831 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4833 # Best one so far, save it but keep looking for a better one
4834 ac_cv_path_GREP
="$ac_path_GREP"
4835 ac_path_GREP_max
=$ac_count
4837 # 10*(2^10) chars as input seems more than enough
4838 test $ac_count -gt 10 && break
4840 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4843 $ac_path_GREP_found && break 3
4848 if test -z "$ac_cv_path_GREP"; then
4849 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852 ac_cv_path_GREP
=$GREP
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4857 $as_echo "$ac_cv_path_GREP" >&6; }
4858 GREP
="$ac_cv_path_GREP"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4862 $as_echo_n "checking for egrep... " >&6; }
4863 if ${ac_cv_path_EGREP+:} false
; then :
4864 $as_echo_n "(cached) " >&6
4866 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4867 then ac_cv_path_EGREP
="$GREP -E"
4869 if test -z "$EGREP"; then
4870 ac_path_EGREP_found
=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4873 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4876 test -z "$as_dir" && as_dir
=.
4877 for ac_prog
in egrep; do
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4880 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4881 # Check for GNU ac_path_EGREP and select it if it is found.
4882 # Check for GNU $ac_path_EGREP
4883 case `"$ac_path_EGREP" --version 2>&1` in
4885 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4888 $as_echo_n 0123456789 >"conftest.in"
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'EGREP' >> "conftest.nl"
4895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4896 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4897 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_EGREP
="$ac_path_EGREP"
4901 ac_path_EGREP_max
=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4906 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4909 $ac_path_EGREP_found && break 3
4914 if test -z "$ac_cv_path_EGREP"; then
4915 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 ac_cv_path_EGREP
=$EGREP
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4924 $as_echo "$ac_cv_path_EGREP" >&6; }
4925 EGREP
="$ac_cv_path_EGREP"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4929 $as_echo_n "checking for ANSI C header files... " >&6; }
4930 if ${ac_cv_header_stdc+:} false
; then :
4931 $as_echo_n "(cached) " >&6
4933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4948 if ac_fn_c_try_compile
"$LINENO"; then :
4949 ac_cv_header_stdc
=yes
4951 ac_cv_header_stdc
=no
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4955 if test $ac_cv_header_stdc = yes; then
4956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963 $EGREP "memchr" >/dev
/null
2>&1; then :
4966 ac_cv_header_stdc
=no
4972 if test $ac_cv_header_stdc = yes; then
4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 $EGREP "free" >/dev
/null
2>&1; then :
4983 ac_cv_header_stdc
=no
4989 if test $ac_cv_header_stdc = yes; then
4990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4991 if test "$cross_compiling" = yes; then :
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 #if ((' ' & 0x0FF) == 0x020)
4999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 # define ISLOWER(c) \
5003 (('a' <= (c) && (c) <= 'i') \
5004 || ('j' <= (c) && (c) <= 'r') \
5005 || ('s' <= (c) && (c) <= 'z'))
5006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5014 for (i = 0; i < 256; i++)
5015 if (XOR (islower (i), ISLOWER (i))
5016 || toupper (i) != TOUPPER (i))
5021 if ac_fn_c_try_run
"$LINENO"; then :
5024 ac_cv_header_stdc
=no
5026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5033 $as_echo "$ac_cv_header_stdc" >&6; }
5034 if test $ac_cv_header_stdc = yes; then
5036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5042 inttypes.h stdint.h unistd.h
5044 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5045 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5047 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5048 cat >>confdefs.h
<<_ACEOF
5049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5059 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5066 if test "$MINIX" = yes; then
5068 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5071 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5074 $as_echo "#define _MINIX 1" >>confdefs.h
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5080 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5081 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5082 $as_echo_n "(cached) " >&6
5084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5087 # define __EXTENSIONS__ 1
5088 $ac_includes_default
5097 if ac_fn_c_try_compile
"$LINENO"; then :
5098 ac_cv_safe_to_define___extensions__
=yes
5100 ac_cv_safe_to_define___extensions__
=no
5102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5105 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5106 test $ac_cv_safe_to_define___extensions__ = yes &&
5107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5118 CPPFLAGS
="$CPPFLAGS -D_FORTIFY_SOURCE=2"
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
5121 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
5122 if ${ax_cv_check_cflags___fvisibility_hidden+:} false
; then :
5123 $as_echo_n "(cached) " >&6
5126 ax_check_save_flags
=$CFLAGS
5127 CFLAGS
="$CFLAGS -fvisibility=hidden"
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5134 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5139 if ac_fn_c_try_compile
"$LINENO"; then :
5140 ax_cv_check_cflags___fvisibility_hidden
=yes
5142 ax_cv_check_cflags___fvisibility_hidden
=no
5144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5145 CFLAGS
=$ax_check_save_flags
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
5148 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
5149 if test x
"$ax_cv_check_cflags___fvisibility_hidden" = xyes
; then :
5150 CFLAGS
="$CFLAGS -fvisibility=hidden"
5157 cygwin
*|mingw
*|msys|pw32
*|cegcc
*) :
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5162 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
5163 if ${ax_cv_check_cflags___fPIC+:} false
; then :
5164 $as_echo_n "(cached) " >&6
5167 ax_check_save_flags
=$CFLAGS
5168 CFLAGS
="$CFLAGS -fPIC"
5169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5175 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5180 if ac_fn_c_try_compile
"$LINENO"; then :
5181 ax_cv_check_cflags___fPIC
=yes
5183 ax_cv_check_cflags___fPIC
=no
5185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5186 CFLAGS
=$ax_check_save_flags
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
5189 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5190 if test x
"$ax_cv_check_cflags___fPIC" = xyes
; then :
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5193 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
5194 if ${ax_cv_check_ldflags___fPIC+:} false
; then :
5195 $as_echo_n "(cached) " >&6
5198 ax_check_save_flags
=$LDFLAGS
5199 LDFLAGS
="$LDFLAGS -fPIC"
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5206 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5211 if ac_fn_c_try_link
"$LINENO"; then :
5212 ax_cv_check_ldflags___fPIC
=yes
5214 ax_cv_check_ldflags___fPIC
=no
5216 rm -f core conftest.err conftest.
$ac_objext \
5217 conftest
$ac_exeext conftest.
$ac_ext
5218 LDFLAGS
=$ax_check_save_flags
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5221 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5222 if test x
"$ax_cv_check_ldflags___fPIC" = xyes
; then :
5223 CFLAGS
="$CFLAGS -fPIC"
5237 if test "$enable_pie" != "no"; then :
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
5240 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
5241 if ${ax_cv_check_cflags___fPIE+:} false
; then :
5242 $as_echo_n "(cached) " >&6
5245 ax_check_save_flags
=$CFLAGS
5246 CFLAGS
="$CFLAGS -fPIE"
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5253 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5258 if ac_fn_c_try_compile
"$LINENO"; then :
5259 ax_cv_check_cflags___fPIE
=yes
5261 ax_cv_check_cflags___fPIE
=no
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5264 CFLAGS
=$ax_check_save_flags
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5267 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5268 if test x
"$ax_cv_check_cflags___fPIE" = xyes
; then :
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5271 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
5272 if ${ax_cv_check_ldflags___fPIE+:} false
; then :
5273 $as_echo_n "(cached) " >&6
5276 ax_check_save_flags
=$LDFLAGS
5277 LDFLAGS
="$LDFLAGS -fPIE"
5278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5284 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5289 if ac_fn_c_try_link
"$LINENO"; then :
5290 ax_cv_check_ldflags___fPIE
=yes
5292 ax_cv_check_ldflags___fPIE
=no
5294 rm -f core conftest.err conftest.
$ac_objext \
5295 conftest
$ac_exeext conftest.
$ac_ext
5296 LDFLAGS
=$ax_check_save_flags
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5299 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5300 if test x
"$ax_cv_check_ldflags___fPIE" = xyes
; then :
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5302 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5303 if ${ax_cv_check_ldflags___pie+:} false
; then :
5304 $as_echo_n "(cached) " >&6
5307 ax_check_save_flags
=$LDFLAGS
5308 LDFLAGS
="$LDFLAGS -pie"
5309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5315 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5320 if ac_fn_c_try_link
"$LINENO"; then :
5321 ax_cv_check_ldflags___pie
=yes
5323 ax_cv_check_ldflags___pie
=no
5325 rm -f core conftest.err conftest.
$ac_objext \
5326 conftest
$ac_exeext conftest.
$ac_ext
5327 LDFLAGS
=$ax_check_save_flags
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5330 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5331 if test x
"$ax_cv_check_ldflags___pie" = xyes
; then :
5332 CFLAGS
="$CFLAGS -fPIE"
5333 LDFLAGS
="$LDFLAGS -pie"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5352 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5353 if ${ax_cv_check_cflags___fwrapv+:} false
; then :
5354 $as_echo_n "(cached) " >&6
5357 ax_check_save_flags
=$CFLAGS
5358 CFLAGS
="$CFLAGS -fwrapv"
5359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5365 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5370 if ac_fn_c_try_compile
"$LINENO"; then :
5371 ax_cv_check_cflags___fwrapv
=yes
5373 ax_cv_check_cflags___fwrapv
=no
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 CFLAGS
=$ax_check_save_flags
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5379 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5380 if test x
"$ax_cv_check_cflags___fwrapv" = xyes
; then :
5381 CFLAGS
="$CFLAGS -fwrapv"
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5387 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5388 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false
; then :
5389 $as_echo_n "(cached) " >&6
5392 ax_check_save_flags
=$CFLAGS
5393 CFLAGS
="$CFLAGS -fno-strict-aliasing"
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5400 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5405 if ac_fn_c_try_compile
"$LINENO"; then :
5406 ax_cv_check_cflags___fno_strict_aliasing
=yes
5408 ax_cv_check_cflags___fno_strict_aliasing
=no
5410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5411 CFLAGS
=$ax_check_save_flags
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5414 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5415 if test x
"$ax_cv_check_cflags___fno_strict_aliasing" = xyes
; then :
5416 CFLAGS
="$CFLAGS -fno-strict-aliasing"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5422 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5423 if ${ax_cv_check_cflags___fno_strict_overflow+:} false
; then :
5424 $as_echo_n "(cached) " >&6
5427 ax_check_save_flags
=$CFLAGS
5428 CFLAGS
="$CFLAGS -fno-strict-overflow"
5429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5435 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5440 if ac_fn_c_try_compile
"$LINENO"; then :
5441 ax_cv_check_cflags___fno_strict_overflow
=yes
5443 ax_cv_check_cflags___fno_strict_overflow
=no
5445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5446 CFLAGS
=$ax_check_save_flags
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5449 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5450 if test x
"$ax_cv_check_cflags___fno_strict_overflow" = xyes
; then :
5451 CFLAGS
="$CFLAGS -fno-strict-overflow"
5457 LIBTOOL_OLD_FLAGS
="$LIBTOOL_EXTRA_FLAGS"
5458 LIBTOOL_EXTRA_FLAGS
="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
5459 # Check whether --enable-soname-versions was given.
5460 if test "${enable_soname_versions+set}" = set; then :
5461 enableval
=$enable_soname_versions;
5462 if test "x$enableval" = "xno"; then :
5464 LIBTOOL_EXTRA_FLAGS
="$LIBTOOL_OLD_FLAGS -avoid-version"
5473 cygwin
*|mingw
*|msys|pw32
*|cegcc
*) :
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5476 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5477 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false
; then :
5478 $as_echo_n "(cached) " >&6
5481 ax_check_save_flags
=$LDFLAGS
5482 LDFLAGS
="$LDFLAGS -Wl,--dynamicbase"
5483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5489 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5494 if ac_fn_c_try_link
"$LINENO"; then :
5495 ax_cv_check_ldflags___Wl___dynamicbase
=yes
5497 ax_cv_check_ldflags___Wl___dynamicbase
=no
5499 rm -f core conftest.err conftest.
$ac_objext \
5500 conftest
$ac_exeext conftest.
$ac_ext
5501 LDFLAGS
=$ax_check_save_flags
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5504 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5505 if test x
"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes
; then :
5506 LDFLAGS
="$LDFLAGS -Wl,--dynamicbase"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
5512 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
5513 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false
; then :
5514 $as_echo_n "(cached) " >&6
5517 ax_check_save_flags
=$LDFLAGS
5518 LDFLAGS
="$LDFLAGS -Wl,--nxcompat"
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5525 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5530 if ac_fn_c_try_link
"$LINENO"; then :
5531 ax_cv_check_ldflags___Wl___nxcompat
=yes
5533 ax_cv_check_ldflags___Wl___nxcompat
=no
5535 rm -f core conftest.err conftest.
$ac_objext \
5536 conftest
$ac_exeext conftest.
$ac_ext
5537 LDFLAGS
=$ax_check_save_flags
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5540 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5541 if test x
"$ax_cv_check_ldflags___Wl___nxcompat" = xyes
; then :
5542 LDFLAGS
="$LDFLAGS -Wl,--nxcompat"
5552 if test "x$enable_ssp" != "xno"; then :
5556 cygwin
*|mingw
*|msys|pw32
*|cegcc
*) :
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5561 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5562 if ${ax_cv_check_cflags___fstack_protector+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5566 ax_check_save_flags
=$CFLAGS
5567 CFLAGS
="$CFLAGS -fstack-protector"
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5574 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5579 if ac_fn_c_try_compile
"$LINENO"; then :
5580 ax_cv_check_cflags___fstack_protector
=yes
5582 ax_cv_check_cflags___fstack_protector
=no
5584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 CFLAGS
=$ax_check_save_flags
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5588 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5589 if test x
"$ax_cv_check_cflags___fstack_protector" = xyes
; then :
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5592 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5593 if ${ax_cv_check_ldflags___fstack_protector+:} false
; then :
5594 $as_echo_n "(cached) " >&6
5597 ax_check_save_flags
=$LDFLAGS
5598 LDFLAGS
="$LDFLAGS -fstack-protector"
5599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5605 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5610 if ac_fn_c_try_link
"$LINENO"; then :
5611 ax_cv_check_ldflags___fstack_protector
=yes
5613 ax_cv_check_ldflags___fstack_protector
=no
5615 rm -f core conftest.err conftest.
$ac_objext \
5616 conftest
$ac_exeext conftest.
$ac_ext
5617 LDFLAGS
=$ax_check_save_flags
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5620 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5621 if test x
"$ax_cv_check_ldflags___fstack_protector" = xyes
; then :
5622 CFLAGS
="$CFLAGS -fstack-protector"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5641 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5642 if ${ax_cv_check_cflags___Winit_self+:} false
; then :
5643 $as_echo_n "(cached) " >&6
5646 ax_check_save_flags
=$CFLAGS
5647 CFLAGS
="$CFLAGS -Winit-self"
5648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5654 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5659 if ac_fn_c_try_compile
"$LINENO"; then :
5660 ax_cv_check_cflags___Winit_self
=yes
5662 ax_cv_check_cflags___Winit_self
=no
5664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5665 CFLAGS
=$ax_check_save_flags
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5668 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5669 if test x
"$ax_cv_check_cflags___Winit_self" = xyes
; then :
5670 CFLAGS
="$CFLAGS -Winit-self"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5676 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5677 if ${ax_cv_check_cflags___Wwrite_strings+:} false
; then :
5678 $as_echo_n "(cached) " >&6
5681 ax_check_save_flags
=$CFLAGS
5682 CFLAGS
="$CFLAGS -Wwrite-strings"
5683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5689 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5694 if ac_fn_c_try_compile
"$LINENO"; then :
5695 ax_cv_check_cflags___Wwrite_strings
=yes
5697 ax_cv_check_cflags___Wwrite_strings
=no
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 CFLAGS
=$ax_check_save_flags
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5703 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5704 if test x
"$ax_cv_check_cflags___Wwrite_strings" = xyes
; then :
5705 CFLAGS
="$CFLAGS -Wwrite-strings"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5711 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5712 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5716 ax_check_save_flags
=$CFLAGS
5717 CFLAGS
="$CFLAGS -Wdiv-by-zero"
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5724 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5729 if ac_fn_c_try_compile
"$LINENO"; then :
5730 ax_cv_check_cflags___Wdiv_by_zero
=yes
5732 ax_cv_check_cflags___Wdiv_by_zero
=no
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5735 CFLAGS
=$ax_check_save_flags
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5738 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5739 if test x
"$ax_cv_check_cflags___Wdiv_by_zero" = xyes
; then :
5740 CFLAGS
="$CFLAGS -Wdiv-by-zero"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
5746 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
5747 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5751 ax_check_save_flags
=$CFLAGS
5752 CFLAGS
="$CFLAGS -Wsometimes-uninitialized"
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5759 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5765 ax_cv_check_cflags___Wsometimes_uninitialized
=yes
5767 ax_cv_check_cflags___Wsometimes_uninitialized
=no
5769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 CFLAGS
=$ax_check_save_flags
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5773 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5774 if test x
"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes
; then :
5775 CFLAGS
="$CFLAGS -Wsometimes-uninitialized"
5783 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5785 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5786 if eval \
${$as_CACHEVAR+:} false
; then :
5787 $as_echo_n "(cached) " >&6
5790 ax_check_save_flags
=$CFLAGS
5791 CFLAGS
="$CFLAGS $CWFLAGS -Wall"
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5798 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5803 if ac_fn_c_try_compile
"$LINENO"; then :
5804 eval "$as_CACHEVAR=yes"
5806 eval "$as_CACHEVAR=no"
5808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5809 CFLAGS
=$ax_check_save_flags
5811 eval ac_res
=\$
$as_CACHEVAR
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5813 $as_echo "$ac_res" >&6; }
5814 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
5815 CWFLAGS
="$CWFLAGS -Wall"
5820 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
5822 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
5823 if eval \
${$as_CACHEVAR+:} false
; then :
5824 $as_echo_n "(cached) " >&6
5827 ax_check_save_flags
=$CFLAGS
5828 CFLAGS
="$CFLAGS $CWFLAGS -Wextra"
5829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5835 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5840 if ac_fn_c_try_compile
"$LINENO"; then :
5841 eval "$as_CACHEVAR=yes"
5843 eval "$as_CACHEVAR=no"
5845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 CFLAGS
=$ax_check_save_flags
5848 eval ac_res
=\$
$as_CACHEVAR
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5850 $as_echo "$ac_res" >&6; }
5851 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
5852 CWFLAGS
="$CWFLAGS -Wextra"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5859 $as_echo_n "checking for clang... " >&6; }
5860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5875 if ac_fn_c_try_compile
"$LINENO"; then :
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877 $as_echo "yes" >&6; }
5878 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
5880 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
5881 if eval \
${$as_CACHEVAR+:} false
; then :
5882 $as_echo_n "(cached) " >&6
5885 ax_check_save_flags
=$CFLAGS
5886 CFLAGS
="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5893 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5898 if ac_fn_c_try_compile
"$LINENO"; then :
5899 eval "$as_CACHEVAR=yes"
5901 eval "$as_CACHEVAR=no"
5903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 CFLAGS
=$ax_check_save_flags
5906 eval ac_res
=\$
$as_CACHEVAR
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5908 $as_echo "$ac_res" >&6; }
5909 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
5910 CWFLAGS
="$CWFLAGS -Wno-unknown-warning-option"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5923 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
5925 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
5926 if eval \
${$as_CACHEVAR+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5930 ax_check_save_flags
=$CFLAGS
5931 CFLAGS
="$CFLAGS $CWFLAGS -Wbad-function-cast"
5932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5938 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5943 if ac_fn_c_try_compile
"$LINENO"; then :
5944 eval "$as_CACHEVAR=yes"
5946 eval "$as_CACHEVAR=no"
5948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 CFLAGS
=$ax_check_save_flags
5951 eval ac_res
=\$
$as_CACHEVAR
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5953 $as_echo "$ac_res" >&6; }
5954 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
5955 CWFLAGS
="$CWFLAGS -Wbad-function-cast"
5960 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
5962 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
5963 if eval \
${$as_CACHEVAR+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5967 ax_check_save_flags
=$CFLAGS
5968 CFLAGS
="$CFLAGS $CWFLAGS -Wcast-align"
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5975 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5980 if ac_fn_c_try_compile
"$LINENO"; then :
5981 eval "$as_CACHEVAR=yes"
5983 eval "$as_CACHEVAR=no"
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 CFLAGS
=$ax_check_save_flags
5988 eval ac_res
=\$
$as_CACHEVAR
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5990 $as_echo "$ac_res" >&6; }
5991 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
5992 CWFLAGS
="$CWFLAGS -Wcast-align"
5997 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
5999 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
6000 if eval \
${$as_CACHEVAR+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6004 ax_check_save_flags
=$CFLAGS
6005 CFLAGS
="$CFLAGS $CWFLAGS -Wcast-qual"
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6012 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6017 if ac_fn_c_try_compile
"$LINENO"; then :
6018 eval "$as_CACHEVAR=yes"
6020 eval "$as_CACHEVAR=no"
6022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 CFLAGS
=$ax_check_save_flags
6025 eval ac_res
=\$
$as_CACHEVAR
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6027 $as_echo "$ac_res" >&6; }
6028 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6029 CWFLAGS
="$CWFLAGS -Wcast-qual"
6034 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
6036 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
6037 if eval \
${$as_CACHEVAR+:} false
; then :
6038 $as_echo_n "(cached) " >&6
6041 ax_check_save_flags
=$CFLAGS
6042 CFLAGS
="$CFLAGS $CWFLAGS -Wchar-subscripts"
6043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6049 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6054 if ac_fn_c_try_compile
"$LINENO"; then :
6055 eval "$as_CACHEVAR=yes"
6057 eval "$as_CACHEVAR=no"
6059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6060 CFLAGS
=$ax_check_save_flags
6062 eval ac_res
=\$
$as_CACHEVAR
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6064 $as_echo "$ac_res" >&6; }
6065 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6066 CWFLAGS
="$CWFLAGS -Wchar-subscripts"
6071 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
6073 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
6074 if eval \
${$as_CACHEVAR+:} false
; then :
6075 $as_echo_n "(cached) " >&6
6078 ax_check_save_flags
=$CFLAGS
6079 CFLAGS
="$CFLAGS $CWFLAGS -Wcomment"
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6086 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6091 if ac_fn_c_try_compile
"$LINENO"; then :
6092 eval "$as_CACHEVAR=yes"
6094 eval "$as_CACHEVAR=no"
6096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6097 CFLAGS
=$ax_check_save_flags
6099 eval ac_res
=\$
$as_CACHEVAR
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6101 $as_echo "$ac_res" >&6; }
6102 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6103 CWFLAGS
="$CWFLAGS -Wcomment"
6108 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
6110 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
6111 if eval \
${$as_CACHEVAR+:} false
; then :
6112 $as_echo_n "(cached) " >&6
6115 ax_check_save_flags
=$CFLAGS
6116 CFLAGS
="$CFLAGS $CWFLAGS -Wfloat-equal"
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6123 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6128 if ac_fn_c_try_compile
"$LINENO"; then :
6129 eval "$as_CACHEVAR=yes"
6131 eval "$as_CACHEVAR=no"
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6134 CFLAGS
=$ax_check_save_flags
6136 eval ac_res
=\$
$as_CACHEVAR
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6138 $as_echo "$ac_res" >&6; }
6139 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6140 CWFLAGS
="$CWFLAGS -Wfloat-equal"
6145 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
6147 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
6148 if eval \
${$as_CACHEVAR+:} false
; then :
6149 $as_echo_n "(cached) " >&6
6152 ax_check_save_flags
=$CFLAGS
6153 CFLAGS
="$CFLAGS $CWFLAGS -Wformat=2"
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6160 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6165 if ac_fn_c_try_compile
"$LINENO"; then :
6166 eval "$as_CACHEVAR=yes"
6168 eval "$as_CACHEVAR=no"
6170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6171 CFLAGS
=$ax_check_save_flags
6173 eval ac_res
=\$
$as_CACHEVAR
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6175 $as_echo "$ac_res" >&6; }
6176 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6177 CWFLAGS
="$CWFLAGS -Wformat=2"
6182 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
6184 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
6185 if eval \
${$as_CACHEVAR+:} false
; then :
6186 $as_echo_n "(cached) " >&6
6189 ax_check_save_flags
=$CFLAGS
6190 CFLAGS
="$CFLAGS $CWFLAGS -Wimplicit"
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6197 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6202 if ac_fn_c_try_compile
"$LINENO"; then :
6203 eval "$as_CACHEVAR=yes"
6205 eval "$as_CACHEVAR=no"
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 CFLAGS
=$ax_check_save_flags
6210 eval ac_res
=\$
$as_CACHEVAR
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6212 $as_echo "$ac_res" >&6; }
6213 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6214 CWFLAGS
="$CWFLAGS -Wimplicit"
6219 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
6221 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
6222 if eval \
${$as_CACHEVAR+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6226 ax_check_save_flags
=$CFLAGS
6227 CFLAGS
="$CFLAGS $CWFLAGS -Wmissing-declarations"
6228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6234 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6239 if ac_fn_c_try_compile
"$LINENO"; then :
6240 eval "$as_CACHEVAR=yes"
6242 eval "$as_CACHEVAR=no"
6244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6245 CFLAGS
=$ax_check_save_flags
6247 eval ac_res
=\$
$as_CACHEVAR
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6249 $as_echo "$ac_res" >&6; }
6250 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6251 CWFLAGS
="$CWFLAGS -Wmissing-declarations"
6256 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
6258 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
6259 if eval \
${$as_CACHEVAR+:} false
; then :
6260 $as_echo_n "(cached) " >&6
6263 ax_check_save_flags
=$CFLAGS
6264 CFLAGS
="$CFLAGS $CWFLAGS -Wmissing-prototypes"
6265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6271 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6276 if ac_fn_c_try_compile
"$LINENO"; then :
6277 eval "$as_CACHEVAR=yes"
6279 eval "$as_CACHEVAR=no"
6281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6282 CFLAGS
=$ax_check_save_flags
6284 eval ac_res
=\$
$as_CACHEVAR
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6286 $as_echo "$ac_res" >&6; }
6287 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6288 CWFLAGS
="$CWFLAGS -Wmissing-prototypes"
6293 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
6295 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
6296 if eval \
${$as_CACHEVAR+:} false
; then :
6297 $as_echo_n "(cached) " >&6
6300 ax_check_save_flags
=$CFLAGS
6301 CFLAGS
="$CFLAGS $CWFLAGS -Wnormalized=id"
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6308 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 eval "$as_CACHEVAR=yes"
6316 eval "$as_CACHEVAR=no"
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 CFLAGS
=$ax_check_save_flags
6321 eval ac_res
=\$
$as_CACHEVAR
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6323 $as_echo "$ac_res" >&6; }
6324 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6325 CWFLAGS
="$CWFLAGS -Wnormalized=id"
6330 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
6332 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
6333 if eval \
${$as_CACHEVAR+:} false
; then :
6334 $as_echo_n "(cached) " >&6
6337 ax_check_save_flags
=$CFLAGS
6338 CFLAGS
="$CFLAGS $CWFLAGS -Woverride-init"
6339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6345 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6350 if ac_fn_c_try_compile
"$LINENO"; then :
6351 eval "$as_CACHEVAR=yes"
6353 eval "$as_CACHEVAR=no"
6355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 CFLAGS
=$ax_check_save_flags
6358 eval ac_res
=\$
$as_CACHEVAR
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6360 $as_echo "$ac_res" >&6; }
6361 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6362 CWFLAGS
="$CWFLAGS -Woverride-init"
6367 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
6369 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
6370 if eval \
${$as_CACHEVAR+:} false
; then :
6371 $as_echo_n "(cached) " >&6
6374 ax_check_save_flags
=$CFLAGS
6375 CFLAGS
="$CFLAGS $CWFLAGS -Wparentheses"
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6382 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6388 eval "$as_CACHEVAR=yes"
6390 eval "$as_CACHEVAR=no"
6392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6393 CFLAGS
=$ax_check_save_flags
6395 eval ac_res
=\$
$as_CACHEVAR
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6399 CWFLAGS
="$CWFLAGS -Wparentheses"
6404 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
6406 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
6407 if eval \
${$as_CACHEVAR+:} false
; then :
6408 $as_echo_n "(cached) " >&6
6411 ax_check_save_flags
=$CFLAGS
6412 CFLAGS
="$CFLAGS $CWFLAGS -Wpointer-arith"
6413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6419 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6424 if ac_fn_c_try_compile
"$LINENO"; then :
6425 eval "$as_CACHEVAR=yes"
6427 eval "$as_CACHEVAR=no"
6429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 CFLAGS
=$ax_check_save_flags
6432 eval ac_res
=\$
$as_CACHEVAR
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6436 CWFLAGS
="$CWFLAGS -Wpointer-arith"
6441 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6443 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6444 if eval \
${$as_CACHEVAR+:} false
; then :
6445 $as_echo_n "(cached) " >&6
6448 ax_check_save_flags
=$CFLAGS
6449 CFLAGS
="$CFLAGS $CWFLAGS -Wredundant-decls"
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6456 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 eval "$as_CACHEVAR=yes"
6464 eval "$as_CACHEVAR=no"
6466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6467 CFLAGS
=$ax_check_save_flags
6469 eval ac_res
=\$
$as_CACHEVAR
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6471 $as_echo "$ac_res" >&6; }
6472 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6473 CWFLAGS
="$CWFLAGS -Wredundant-decls"
6478 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6480 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6481 if eval \
${$as_CACHEVAR+:} false
; then :
6482 $as_echo_n "(cached) " >&6
6485 ax_check_save_flags
=$CFLAGS
6486 CFLAGS
="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6493 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6498 if ac_fn_c_try_compile
"$LINENO"; then :
6499 eval "$as_CACHEVAR=yes"
6501 eval "$as_CACHEVAR=no"
6503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6504 CFLAGS
=$ax_check_save_flags
6506 eval ac_res
=\$
$as_CACHEVAR
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6508 $as_echo "$ac_res" >&6; }
6509 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6510 CWFLAGS
="$CWFLAGS -Wstrict-prototypes"
6515 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6517 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6518 if eval \
${$as_CACHEVAR+:} false
; then :
6519 $as_echo_n "(cached) " >&6
6522 ax_check_save_flags
=$CFLAGS
6523 CFLAGS
="$CFLAGS $CWFLAGS -Wswitch-enum"
6524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6530 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6535 if ac_fn_c_try_compile
"$LINENO"; then :
6536 eval "$as_CACHEVAR=yes"
6538 eval "$as_CACHEVAR=no"
6540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 CFLAGS
=$ax_check_save_flags
6543 eval ac_res
=\$
$as_CACHEVAR
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6545 $as_echo "$ac_res" >&6; }
6546 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6547 CWFLAGS
="$CWFLAGS -Wswitch-enum"
6552 as_CACHEVAR
=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6554 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6555 if eval \
${$as_CACHEVAR+:} false
; then :
6556 $as_echo_n "(cached) " >&6
6559 ax_check_save_flags
=$CFLAGS
6560 CFLAGS
="$CFLAGS $CWFLAGS -Wvariable-decl"
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6567 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6572 if ac_fn_c_try_compile
"$LINENO"; then :
6573 eval "$as_CACHEVAR=yes"
6575 eval "$as_CACHEVAR=no"
6577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 CFLAGS
=$ax_check_save_flags
6580 eval ac_res
=\$
$as_CACHEVAR
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6582 $as_echo "$ac_res" >&6; }
6583 if test x
"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes
; then :
6584 CWFLAGS
="$CWFLAGS -Wvariable-decl"
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6591 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6592 if ${ax_cv_check_ldflags___Wl__z_relro+:} false
; then :
6593 $as_echo_n "(cached) " >&6
6596 ax_check_save_flags
=$LDFLAGS
6597 LDFLAGS
="$LDFLAGS -Wl,-z,relro"
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6604 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6609 if ac_fn_c_try_link
"$LINENO"; then :
6610 ax_cv_check_ldflags___Wl__z_relro
=yes
6612 ax_cv_check_ldflags___Wl__z_relro
=no
6614 rm -f core conftest.err conftest.
$ac_objext \
6615 conftest
$ac_exeext conftest.
$ac_ext
6616 LDFLAGS
=$ax_check_save_flags
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6619 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6620 if test x
"$ax_cv_check_ldflags___Wl__z_relro" = xyes
; then :
6621 LDFLAGS
="$LDFLAGS -Wl,-z,relro"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6627 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6628 if ${ax_cv_check_ldflags___Wl__z_now+:} false
; then :
6629 $as_echo_n "(cached) " >&6
6632 ax_check_save_flags
=$LDFLAGS
6633 LDFLAGS
="$LDFLAGS -Wl,-z,now"
6634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6640 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6645 if ac_fn_c_try_link
"$LINENO"; then :
6646 ax_cv_check_ldflags___Wl__z_now
=yes
6648 ax_cv_check_ldflags___Wl__z_now
=no
6650 rm -f core conftest.err conftest.
$ac_objext \
6651 conftest
$ac_exeext conftest.
$ac_ext
6652 LDFLAGS
=$ax_check_save_flags
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6655 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6656 if test x
"$ax_cv_check_ldflags___Wl__z_now" = xyes
; then :
6657 LDFLAGS
="$LDFLAGS -Wl,-z,now"
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6663 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6664 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false
; then :
6665 $as_echo_n "(cached) " >&6
6668 ax_check_save_flags
=$LDFLAGS
6669 LDFLAGS
="$LDFLAGS -Wl,-z,noexecstack"
6670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6676 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6681 if ac_fn_c_try_link
"$LINENO"; then :
6682 ax_cv_check_ldflags___Wl__z_noexecstack
=yes
6684 ax_cv_check_ldflags___Wl__z_noexecstack
=no
6686 rm -f core conftest.err conftest.
$ac_objext \
6687 conftest
$ac_exeext conftest.
$ac_ext
6688 LDFLAGS
=$ax_check_save_flags
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6691 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6692 if test x
"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes
; then :
6693 LDFLAGS
="$LDFLAGS -Wl,-z,noexecstack"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6702 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6707 macro_version
='2.4.2'
6708 macro_revision
='1.3337'
6722 ltmain
="$ac_aux_dir/ltmain.sh"
6724 # Backslashify metacharacters that are still active within
6725 # double-quoted strings.
6726 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6728 # Same as above, but do not quote variable references.
6729 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6731 # Sed substitution to delay expansion of an escaped shell variable in a
6732 # double_quote_subst'ed string.
6733 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6735 # Sed substitution to delay expansion of an escaped single quote.
6736 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6738 # Sed substitution to avoid accidental globbing in evaled expressions
6739 no_glob_subst
='s/\*/\\\*/g'
6741 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6742 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6743 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6746 $as_echo_n "checking how to print strings... " >&6; }
6747 # Test print first, because it will be a builtin if present.
6748 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6749 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6751 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6754 # Use this function as a fallback that always works.
6755 func_fallback_echo ()
6757 eval 'cat <<_LTECHO_EOF
6761 ECHO='func_fallback_echo
'
6764 # func_echo_all arg...
6765 # Invoke $ECHO with all args, space-separated.
6772 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6773 $as_echo "printf" >&6; } ;;
6774 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6775 $as_echo "print -r" >&6; } ;;
6776 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6777 $as_echo "cat" >&6; } ;;
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6794 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6795 if ${ac_cv_path_SED+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6799 for ac_i in 1 2 3 4 5 6 7; do
6800 ac_script="$ac_script$as_nl$ac_script"
6802 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6803 { ac_script=; unset ac_script;}
6804 if test -z "$SED"; then
6805 ac_path_SED_found=false
6806 # Loop through the user's path and
test for each of PROGNAME-LIST
6807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir
=.
6812 for ac_prog
in sed gsed
; do
6813 for ac_exec_ext
in '' $ac_executable_extensions; do
6814 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6815 as_fn_executable_p
"$ac_path_SED" ||
continue
6816 # Check for GNU ac_path_SED and select it if it is found.
6817 # Check for GNU $ac_path_SED
6818 case `"$ac_path_SED" --version 2>&1` in
6820 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6823 $as_echo_n 0123456789 >"conftest.in"
6826 cat "conftest.in" "conftest.in" >"conftest.tmp"
6827 mv "conftest.tmp" "conftest.in"
6828 cp "conftest.in" "conftest.nl"
6829 $as_echo '' >> "conftest.nl"
6830 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6831 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6832 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6833 if test $ac_count -gt ${ac_path_SED_max-0}; then
6834 # Best one so far, save it but keep looking for a better one
6835 ac_cv_path_SED
="$ac_path_SED"
6836 ac_path_SED_max
=$ac_count
6838 # 10*(2^10) chars as input seems more than enough
6839 test $ac_count -gt 10 && break
6841 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6844 $ac_path_SED_found && break 3
6849 if test -z "$ac_cv_path_SED"; then
6850 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6858 $as_echo "$ac_cv_path_SED" >&6; }
6859 SED
="$ac_cv_path_SED"
6862 test -z "$SED" && SED
=sed
6863 Xsed
="$SED -e 1s/^X//"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6876 $as_echo_n "checking for fgrep... " >&6; }
6877 if ${ac_cv_path_FGREP+:} false
; then :
6878 $as_echo_n "(cached) " >&6
6880 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6881 then ac_cv_path_FGREP
="$GREP -F"
6883 if test -z "$FGREP"; then
6884 ac_path_FGREP_found
=false
6885 # Loop through the user's path and test for each of PROGNAME-LIST
6886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6887 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6890 test -z "$as_dir" && as_dir
=.
6891 for ac_prog
in fgrep
; do
6892 for ac_exec_ext
in '' $ac_executable_extensions; do
6893 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6894 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6895 # Check for GNU ac_path_FGREP and select it if it is found.
6896 # Check for GNU $ac_path_FGREP
6897 case `"$ac_path_FGREP" --version 2>&1` in
6899 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6902 $as_echo_n 0123456789 >"conftest.in"
6905 cat "conftest.in" "conftest.in" >"conftest.tmp"
6906 mv "conftest.tmp" "conftest.in"
6907 cp "conftest.in" "conftest.nl"
6908 $as_echo 'FGREP' >> "conftest.nl"
6909 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6910 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6911 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6912 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6913 # Best one so far, save it but keep looking for a better one
6914 ac_cv_path_FGREP
="$ac_path_FGREP"
6915 ac_path_FGREP_max
=$ac_count
6917 # 10*(2^10) chars as input seems more than enough
6918 test $ac_count -gt 10 && break
6920 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6923 $ac_path_FGREP_found && break 3
6928 if test -z "$ac_cv_path_FGREP"; then
6929 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6932 ac_cv_path_FGREP
=$FGREP
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6938 $as_echo "$ac_cv_path_FGREP" >&6; }
6939 FGREP
="$ac_cv_path_FGREP"
6942 test -z "$GREP" && GREP
=grep
6962 # Check whether --with-gnu-ld was given.
6963 if test "${with_gnu_ld+set}" = set; then :
6964 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6970 if test "$GCC" = yes; then
6971 # Check if gcc -print-prog-name=ld gives a path.
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6973 $as_echo_n "checking for ld used by $CC... " >&6; }
6976 # gcc leaves a trailing carriage return which upsets mingw
6977 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6979 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6982 # Accept absolute paths.
6984 re_direlt
='/[^/][^/]*/\.\./'
6985 # Canonicalize the pathname of ld
6986 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6987 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6988 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6990 test -z "$LD" && LD
="$ac_prog"
6993 # If it fails, then pretend we aren't using GCC.
6997 # If it is relative, then search for the first ld in PATH.
7001 elif test "$with_gnu_ld" = yes; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7003 $as_echo_n "checking for GNU ld... " >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7006 $as_echo_n "checking for non-GNU ld... " >&6; }
7008 if ${lt_cv_path_LD+:} false
; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -z "$LD"; then
7012 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7013 for ac_dir
in $PATH; do
7015 test -z "$ac_dir" && ac_dir
=.
7016 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7017 lt_cv_path_LD
="$ac_dir/$ac_prog"
7018 # Check to see if the program is GNU ld. I'd rather use --version,
7019 # but apparently some variants of GNU ld only accept -v.
7020 # Break only if it was the GNU/non-GNU ld that we prefer.
7021 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7022 *GNU
* |
*'with BFD'*)
7023 test "$with_gnu_ld" != no
&& break
7026 test "$with_gnu_ld" != yes && break
7033 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
7038 if test -n "$LD"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7040 $as_echo "$LD" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7045 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7047 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7048 if ${lt_cv_prog_gnu_ld+:} false
; then :
7049 $as_echo_n "(cached) " >&6
7051 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7052 case `$LD -v 2>&1 </dev/null` in
7053 *GNU
* |
*'with BFD'*)
7054 lt_cv_prog_gnu_ld
=yes
7057 lt_cv_prog_gnu_ld
=no
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7062 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7063 with_gnu_ld
=$lt_cv_prog_gnu_ld
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7074 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7075 if ${lt_cv_path_NM+:} false
; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$NM"; then
7079 # Let the user override the test.
7082 lt_nm_to_check
="${ac_tool_prefix}nm"
7083 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7084 lt_nm_to_check
="$lt_nm_to_check nm"
7086 for lt_tmp_nm
in $lt_nm_to_check; do
7087 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7088 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
7090 test -z "$ac_dir" && ac_dir
=.
7091 tmp_nm
="$ac_dir/$lt_tmp_nm"
7092 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
7093 # Check to see if the nm accepts a BSD-compat flag.
7094 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7095 # nm: unknown option "B" ignored
7096 # Tru64's nm complains that /dev/null is an invalid object file
7097 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7098 */dev
/null
* |
*'Invalid file or object type'*)
7099 lt_cv_path_NM
="$tmp_nm -B"
7103 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7105 lt_cv_path_NM
="$tmp_nm -p"
7109 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7110 continue # so that we can try to find one that supports BSD flags
7119 : ${lt_cv_path_NM=no}
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7123 $as_echo "$lt_cv_path_NM" >&6; }
7124 if test "$lt_cv_path_NM" != "no"; then
7127 # Didn't find any BSD compatible name lister, look for dumpbin.
7128 if test -n "$DUMPBIN"; then :
7129 # Let the user override the test.
7131 if test -n "$ac_tool_prefix"; then
7132 for ac_prog
in dumpbin
"link -dump"
7134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7135 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_DUMPBIN+:} false
; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$DUMPBIN"; then
7142 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 DUMPBIN
=$ac_cv_prog_DUMPBIN
7162 if test -n "$DUMPBIN"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7164 $as_echo "$DUMPBIN" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7171 test -n "$DUMPBIN" && break
7174 if test -z "$DUMPBIN"; then
7175 ac_ct_DUMPBIN
=$DUMPBIN
7176 for ac_prog
in dumpbin
"link -dump"
7178 # Extract the first word of "$ac_prog", so it can be a program name with args.
7179 set dummy
$ac_prog; ac_word
=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
7183 $as_echo_n "(cached) " >&6
7185 if test -n "$ac_ct_DUMPBIN"; then
7186 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
7188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir
=.
7193 for ac_exec_ext
in '' $ac_executable_extensions; do
7194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
7206 if test -n "$ac_ct_DUMPBIN"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7208 $as_echo "$ac_ct_DUMPBIN" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7215 test -n "$ac_ct_DUMPBIN" && break
7218 if test "x$ac_ct_DUMPBIN" = x
; then
7221 case $cross_compiling:$ac_tool_warned in
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225 ac_tool_warned
=yes ;;
7227 DUMPBIN
=$ac_ct_DUMPBIN
7231 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7233 DUMPBIN
="$DUMPBIN -symbols"
7241 if test "$DUMPBIN" != ":"; then
7245 test -z "$NM" && NM
=nm
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7253 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7254 if ${lt_cv_nm_interface+:} false
; then :
7255 $as_echo_n "(cached) " >&6
7257 lt_cv_nm_interface
="BSD nm"
7258 echo "int some_variable = 0;" > conftest.
$ac_ext
7259 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7260 (eval "$ac_compile" 2>conftest.err
)
7261 cat conftest.err
>&5
7262 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7263 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
7264 cat conftest.err
>&5
7265 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7266 cat conftest.out
>&5
7267 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
7268 lt_cv_nm_interface
="MS dumpbin"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7273 $as_echo "$lt_cv_nm_interface" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7276 $as_echo_n "checking whether ln -s works... " >&6; }
7278 if test "$LN_S" = "ln -s"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7283 $as_echo "no, using $LN_S" >&6; }
7286 # find the maximum length of command line arguments
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7288 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7289 if ${lt_cv_sys_max_cmd_len+:} false
; then :
7290 $as_echo_n "(cached) " >&6
7297 # On DJGPP, this test can blow up pretty badly due to problems in libc
7298 # (any single argument exceeding 2000 bytes causes a buffer overrun
7299 # during glob expansion). Even if it were fixed, the result of this
7300 # check would be larger than it should be.
7301 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7305 # Under GNU Hurd, this test is not required because there is
7306 # no limit to the length of command line arguments.
7307 # Libtool will interpret -1 as no limit whatsoever
7308 lt_cv_sys_max_cmd_len
=-1;
7311 cygwin
* | mingw
* | cegcc
*)
7312 # On Win9x/ME, this test blows up -- it succeeds, but takes
7313 # about 5 minutes as the teststring grows exponentially.
7314 # Worse, since 9x/ME are not pre-emptively multitasking,
7315 # you end up with a "frozen" computer, even though with patience
7316 # the test eventually succeeds (with a max line length of 256k).
7317 # Instead, let's just punt: use the minimum linelength reported by
7318 # all of the supported platforms: 8192 (on NT/2K/XP).
7319 lt_cv_sys_max_cmd_len
=8192;
7323 # On MiNT this can take a long time and run out of memory.
7324 lt_cv_sys_max_cmd_len
=8192;
7328 # On AmigaOS with pdksh, this test takes hours, literally.
7329 # So we just punt and use a minimum line length of 8192.
7330 lt_cv_sys_max_cmd_len
=8192;
7333 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7334 # This has been around since 386BSD, at least. Likely further.
7335 if test -x /sbin
/sysctl
; then
7336 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7337 elif test -x /usr
/sbin
/sysctl
; then
7338 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7340 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7342 # And add a safety zone
7343 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7344 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7348 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7349 lt_cv_sys_max_cmd_len
=196608
7353 # The test takes a long time on OS/2.
7354 lt_cv_sys_max_cmd_len
=8192
7358 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7359 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7360 # nice to cause kernel panics so lets avoid the loop below.
7361 # First set a reasonable default.
7362 lt_cv_sys_max_cmd_len
=16384
7364 if test -x /sbin
/sysconfig
; then
7365 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7366 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7371 lt_cv_sys_max_cmd_len
=102400
7373 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7374 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7375 if test -n "$kargmax"; then
7376 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7378 lt_cv_sys_max_cmd_len
=32768
7382 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7383 if test -n "$lt_cv_sys_max_cmd_len"; then
7384 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7385 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7387 # Make teststring a little bigger before we do anything with it.
7388 # a 1K string should be a reasonable start.
7389 for i
in 1 2 3 4 5 6 7 8 ; do
7390 teststring
=$teststring$teststring
7392 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7393 # If test is not a shell built-in, we'll probably end up computing a
7394 # maximum length that is only half of the actual maximum length, but
7396 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7397 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
7398 test $i != 17 # 1/2 MB should be enough
7401 teststring
=$teststring$teststring
7403 # Only check the string length outside the loop.
7404 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
7406 # Add a significant safety factor because C++ compilers can tack on
7407 # massive amounts of additional arguments before passing them to the
7408 # linker. It appears as though 1/2 is a usable value.
7409 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7416 if test -n $lt_cv_sys_max_cmd_len ; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7421 $as_echo "none" >&6; }
7423 max_cmd_len
=$lt_cv_sys_max_cmd_len
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7435 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7436 # Try some XSI features
7439 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7441 && eval 'test $(( 1 + 1 )) -eq 2 \
7442 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
7445 $as_echo "$xsi_shell" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
7449 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
7451 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
7453 && lt_shell_append=yes
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
7455 $as_echo "$lt_shell_append" >&6; }
7458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7468 # test EBCDIC or ASCII
7469 case `echo X|tr X '\101'` in
7470 A) # ASCII based system
7471 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7472 lt_SP2NL='tr \040 \012'
7473 lt_NL2SP='tr \015\012 \040\040'
7475 *) # EBCDIC based system
7476 lt_SP2NL='tr \100 \n'
7477 lt_NL2SP='tr \r\n \100\100'
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
7490 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
7491 if ${lt_cv_to_host_file_cmd+:} false; then :
7492 $as_echo_n "(cached
) " >&6
7497 *-*-mingw* ) # actually msys
7498 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7501 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7503 * ) # otherwise, assume *nix
7504 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7510 *-*-mingw* ) # actually msys
7511 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7514 lt_cv_to_host_file_cmd=func_convert_file_noop
7516 * ) # otherwise, assume *nix
7517 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7521 * ) # unhandled hosts (and "normal
" native builds)
7522 lt_cv_to_host_file_cmd=func_convert_file_noop
7528 to_host_file_cmd=$lt_cv_to_host_file_cmd
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
7530 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
7537 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
7538 if ${lt_cv_to_tool_file_cmd+:} false; then :
7539 $as_echo_n "(cached
) " >&6
7541 #assume ordinary cross tools, or native build.
7542 lt_cv_to_tool_file_cmd=func_convert_file_noop
7546 *-*-mingw* ) # actually msys
7547 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7555 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
7557 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
7564 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
7565 if ${lt_cv_ld_reload_flag+:} false; then :
7566 $as_echo_n "(cached
) " >&6
7568 lt_cv_ld_reload_flag='-r'
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
7571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7572 reload_flag=$lt_cv_ld_reload_flag
7573 case $reload_flag in
7575 *) reload_flag=" $reload_flag" ;;
7577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7579 cygwin* | mingw* | pw32* | cegcc*)
7580 if test "$GCC" != yes; then
7585 if test "$GCC" = yes; then
7586 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7605 $as_echo_n "checking
for $ac_word...
" >&6; }
7606 if ${ac_cv_prog_OBJDUMP+:} false; then :
7607 $as_echo_n "(cached
) " >&6
7609 if test -n "$OBJDUMP"; then
7610 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7629 OBJDUMP=$ac_cv_prog_OBJDUMP
7630 if test -n "$OBJDUMP"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
7632 $as_echo "$OBJDUMP" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7635 $as_echo "no
" >&6; }
7640 if test -z "$ac_cv_prog_OBJDUMP"; then
7641 ac_ct_OBJDUMP=$OBJDUMP
7642 # Extract the first word of "objdump
", so it can be a program name with args.
7643 set dummy objdump; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7645 $as_echo_n "checking
for $ac_word...
" >&6; }
7646 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7647 $as_echo_n "(cached
) " >&6
7649 if test -n "$ac_ct_OBJDUMP"; then
7650 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7669 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7670 if test -n "$ac_ct_OBJDUMP"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
7672 $as_echo "$ac_ct_OBJDUMP" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7675 $as_echo "no
" >&6; }
7678 if test "x
$ac_ct_OBJDUMP" = x; then
7681 case $cross_compiling:$ac_tool_warned in
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7684 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7685 ac_tool_warned=yes ;;
7687 OBJDUMP=$ac_ct_OBJDUMP
7690 OBJDUMP="$ac_cv_prog_OBJDUMP"
7693 test -z "$OBJDUMP" && OBJDUMP=objdump
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
7704 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
7705 if ${lt_cv_deplibs_check_method+:} false; then :
7706 $as_echo_n "(cached
) " >&6
7708 lt_cv_file_magic_cmd='$MAGIC_CMD'
7709 lt_cv_file_magic_test_file=
7710 lt_cv_deplibs_check_method='unknown'
7711 # Need to set the preceding variable on all platforms that support
7712 # interlibrary dependencies.
7713 # 'none' -- dependencies not supported.
7714 # `unknown' -- same as none, but documents that we really don't know.
7715 # 'pass_all' -- all dependencies passed with no checks.
7716 # 'test_compile' -- check by making test program.
7717 # 'file_magic [[regex]]' -- check by looking for files in library path
7718 # which responds to the $file_magic_cmd with a given extended regex.
7719 # If you have `file' or equivalent on your system and you're not sure
7720 # whether `pass_all' will *always* work, you probably want this one.
7724 lt_cv_deplibs_check_method=pass_all
7728 lt_cv_deplibs_check_method=pass_all
7732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7733 lt_cv_file_magic_cmd='/usr/bin/file -L'
7734 lt_cv_file_magic_test_file=/shlib/libc.so
7738 # func_win32_libid is a shell function defined in ltmain.sh
7739 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7740 lt_cv_file_magic_cmd='func_win32_libid'
7744 # Base MSYS/MinGW do not provide the 'file' command needed by
7745 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7746 # unless we find 'file', for example because we are cross-compiling.
7747 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7748 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7750 lt_cv_file_magic_cmd='func_win32_libid'
7752 # Keep this pattern in sync with the one in func_win32_libid.
7753 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7754 lt_cv_file_magic_cmd='$OBJDUMP -f'
7759 # use the weaker test based on 'objdump'. See mingw*.
7760 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7761 lt_cv_file_magic_cmd='$OBJDUMP -f'
7764 darwin* | rhapsody*)
7765 lt_cv_deplibs_check_method=pass_all
7768 freebsd* | dragonfly*)
7769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7772 # Not sure whether the presence of OpenBSD here was a mistake.
7773 # Let's accept both of them until this is cleared up.
7774 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7775 lt_cv_file_magic_cmd=/usr/bin/file
7776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7780 lt_cv_deplibs_check_method=pass_all
7785 lt_cv_deplibs_check_method=pass_all
7789 lt_cv_deplibs_check_method=pass_all
7792 hpux10.20* | hpux11*)
7793 lt_cv_file_magic_cmd=/usr/bin/file
7796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7800 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]'
7801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7805 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7811 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7815 irix5* | irix6* | nonstopux*)
7817 *-32|*"-32 ") libmagic=32-bit;;
7818 *-n32|*"-n32 ") libmagic=N32;;
7819 *-64|*"-64 ") libmagic=64-bit;;
7820 *) libmagic=never-match;;
7822 lt_cv_deplibs_check_method=pass_all
7825 # This must be glibc/ELF.
7826 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7827 lt_cv_deplibs_check_method=pass_all
7831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7840 lt_cv_file_magic_cmd=/usr/bin/file
7841 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7845 lt_cv_deplibs_check_method=pass_all
7849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7856 osf3* | osf4* | osf5*)
7857 lt_cv_deplibs_check_method=pass_all
7861 lt_cv_deplibs_check_method=pass_all
7865 lt_cv_deplibs_check_method=pass_all
7868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7869 lt_cv_deplibs_check_method=pass_all
7873 case $host_vendor in
7875 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]'
7876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7879 lt_cv_deplibs_check_method=pass_all
7882 lt_cv_file_magic_cmd='/bin/file'
7883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7886 lt_cv_file_magic_cmd='/bin/file'
7887 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7888 lt_cv_file_magic_test_file=/lib/libc.so
7891 lt_cv_deplibs_check_method=pass_all
7894 lt_cv_deplibs_check_method=pass_all
7900 lt_cv_deplibs_check_method=pass_all
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7906 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7910 if test "$build" = "$host"; then
7913 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7916 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
7922 file_magic_cmd=$lt_cv_file_magic_cmd
7923 deplibs_check_method=$lt_cv_deplibs_check_method
7924 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7951 $as_echo_n "checking
for $ac_word...
" >&6; }
7952 if ${ac_cv_prog_DLLTOOL+:} false; then :
7953 $as_echo_n "(cached
) " >&6
7955 if test -n "$DLLTOOL"; then
7956 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7975 DLLTOOL=$ac_cv_prog_DLLTOOL
7976 if test -n "$DLLTOOL"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
7978 $as_echo "$DLLTOOL" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7981 $as_echo "no
" >&6; }
7986 if test -z "$ac_cv_prog_DLLTOOL"; then
7987 ac_ct_DLLTOOL=$DLLTOOL
7988 # Extract the first word of "dlltool
", so it can be a program name with args.
7989 set dummy dlltool; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7991 $as_echo_n "checking
for $ac_word...
" >&6; }
7992 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7993 $as_echo_n "(cached
) " >&6
7995 if test -n "$ac_ct_DLLTOOL"; then
7996 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8016 if test -n "$ac_ct_DLLTOOL"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
8018 $as_echo "$ac_ct_DLLTOOL" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8021 $as_echo "no
" >&6; }
8024 if test "x
$ac_ct_DLLTOOL" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8030 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8031 ac_tool_warned=yes ;;
8033 DLLTOOL=$ac_ct_DLLTOOL
8036 DLLTOOL="$ac_cv_prog_DLLTOOL"
8039 test -z "$DLLTOOL" && DLLTOOL=dlltool
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
8051 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
8052 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8053 $as_echo_n "(cached
) " >&6
8055 lt_cv_sharedlib_from_linklib_cmd='unknown'
8058 cygwin* | mingw* | pw32* | cegcc*)
8059 # two different shell functions defined in ltmain.sh
8060 # decide which to use based on capabilities of $DLLTOOL
8061 case `$DLLTOOL --help 2>&1` in
8062 *--identify-strict*)
8063 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8066 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8071 # fallback: assume linklib IS sharedlib
8072 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
8078 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8079 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8080 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8088 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8094 $as_echo_n "checking
for $ac_word...
" >&6; }
8095 if ${ac_cv_prog_AR+:} false; then :
8096 $as_echo_n "(cached
) " >&6
8098 if test -n "$AR"; then
8099 ac_cv_prog_AR="$AR" # Let the user override the test.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8119 if test -n "$AR"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8121 $as_echo "$AR" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8124 $as_echo "no
" >&6; }
8128 test -n "$AR" && break
8131 if test -z "$AR"; then
8135 # Extract the first word of "$ac_prog", so it can be a program name with args.
8136 set dummy $ac_prog; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8138 $as_echo_n "checking
for $ac_word...
" >&6; }
8139 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8140 $as_echo_n "(cached
) " >&6
8142 if test -n "$ac_ct_AR"; then
8143 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_ac_ct_AR="$ac_prog"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8163 if test -n "$ac_ct_AR"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
8165 $as_echo "$ac_ct_AR" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8168 $as_echo "no
" >&6; }
8172 test -n "$ac_ct_AR" && break
8175 if test "x
$ac_ct_AR" = x; then
8178 case $cross_compiling:$ac_tool_warned in
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8182 ac_tool_warned=yes ;;
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
8202 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
8203 if ${lt_cv_ar_at_file+:} false; then :
8204 $as_echo_n "(cached
) " >&6
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 echo conftest.$ac_objext > conftest.lst
8220 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8221 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8222 (eval $lt_ar_try) 2>&5
8224 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8225 test $ac_status = 0; }
8226 if test "$ac_status" -eq 0; then
8227 # Ensure the archiver fails upon bogus file names.
8228 rm -f conftest.$ac_objext libconftest.a
8229 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8230 (eval $lt_ar_try) 2>&5
8232 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8233 test $ac_status = 0; }
8234 if test "$ac_status" -ne 0; then
8238 rm -f conftest.* libconftest.a
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
8245 $as_echo "$lt_cv_ar_at_file" >&6; }
8247 if test "x
$lt_cv_ar_at_file" = xno; then
8250 archiver_list_spec=$lt_cv_ar_at_file
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}strip; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8263 $as_echo_n "checking
for $ac_word...
" >&6; }
8264 if ${ac_cv_prog_STRIP+:} false; then :
8265 $as_echo_n "(cached
) " >&6
8267 if test -n "$STRIP"; then
8268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8287 STRIP=$ac_cv_prog_STRIP
8288 if test -n "$STRIP"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
8290 $as_echo "$STRIP" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8293 $as_echo "no
" >&6; }
8298 if test -z "$ac_cv_prog_STRIP"; then
8300 # Extract the first word of "strip
", so it can be a program name with args.
8301 set dummy strip; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8303 $as_echo_n "checking
for $ac_word...
" >&6; }
8304 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8305 $as_echo_n "(cached
) " >&6
8307 if test -n "$ac_ct_STRIP"; then
8308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_ac_ct_STRIP="strip
"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8328 if test -n "$ac_ct_STRIP"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
8330 $as_echo "$ac_ct_STRIP" >&6; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8333 $as_echo "no
" >&6; }
8336 if test "x
$ac_ct_STRIP" = x; then
8339 case $cross_compiling:$ac_tool_warned in
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8342 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8343 ac_tool_warned=yes ;;
8348 STRIP="$ac_cv_prog_STRIP"
8351 test -z "$STRIP" && STRIP=:
8358 if test -n "$ac_tool_prefix"; then
8359 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8362 $as_echo_n "checking
for $ac_word...
" >&6; }
8363 if ${ac_cv_prog_RANLIB+:} false; then :
8364 $as_echo_n "(cached
) " >&6
8366 if test -n "$RANLIB"; then
8367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8386 RANLIB=$ac_cv_prog_RANLIB
8387 if test -n "$RANLIB"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
8389 $as_echo "$RANLIB" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8392 $as_echo "no
" >&6; }
8397 if test -z "$ac_cv_prog_RANLIB"; then
8398 ac_ct_RANLIB=$RANLIB
8399 # Extract the first word of "ranlib
", so it can be a program name with args.
8400 set dummy ranlib; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8402 $as_echo_n "checking
for $ac_word...
" >&6; }
8403 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8404 $as_echo_n "(cached
) " >&6
8406 if test -n "$ac_ct_RANLIB"; then
8407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_ac_ct_RANLIB="ranlib
"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8427 if test -n "$ac_ct_RANLIB"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
8429 $as_echo "$ac_ct_RANLIB" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8432 $as_echo "no
" >&6; }
8435 if test "x
$ac_ct_RANLIB" = x; then
8438 case $cross_compiling:$ac_tool_warned in
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8441 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8442 ac_tool_warned=yes ;;
8444 RANLIB=$ac_ct_RANLIB
8447 RANLIB="$ac_cv_prog_RANLIB"
8450 test -z "$RANLIB" && RANLIB=:
8457 # Determine commands to create old-style static archives.
8458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8459 old_postinstall_cmds='chmod 644 $oldlib'
8460 old_postuninstall_cmds=
8462 if test -n "$RANLIB"; then
8465 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
8468 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
8471 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
8476 lock_old_archive_extraction=yes ;;
8478 lock_old_archive_extraction=no ;;
8519 # If no C compiler was specified, use CC.
8522 # If no C compiler flags were specified, use CFLAGS.
8523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8525 # Allow CC to be a program name with arguments.
8529 # Check for command to grab the raw symbol name followed by C symbol from nm.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
8531 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
8532 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8533 $as_echo_n "(cached
) " >&6
8536 # These are sane defaults that work on at least a few old systems.
8537 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8539 # Character class describing NM global symbol codes.
8540 symcode='[BCDEGRST]'
8542 # Regexp to match symbols that can be accessed directly from C.
8543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8545 # Define system-specific variables.
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 symcode='[ABCDGISTW]'
8554 if test "$host_cpu" = ia64; then
8555 symcode='[ABCDEGRST]'
8559 symcode='[BCDEGRST]'
8562 symcode='[BCDEGQRST]'
8573 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8581 # If we're using GNU nm, then use its standard symbol codes.
8582 case `$NM -V 2>&1` in
8583 *GNU* | *'with BFD'*)
8584 symcode='[ABCDGIRSTW]' ;;
8587 # Transform an extracted symbol line into a proper C declaration.
8588 # Some systems (esp. on ia64) link data and code symbols differently,
8589 # so use this general approach.
8590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8592 # Transform an extracted symbol line into symbol name and symbol address
8593 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8594 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8596 # Handle CRLF in mingw tool chain
8600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8604 # Try without a prefix underscore, then with it.
8605 for ac_symprfx in "" "_
"; do
8607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8608 symxfrm="\\1 $ac_symprfx\\2 \\2"
8610 # Write the raw and C identifiers.
8611 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8612 # Fake it for dumpbin and say T for any non-static function
8613 # and D for any global variable.
8614 # Also find C++ and __fastcall symbols from MSVC++,
8615 # which start with @ or ?.
8616 lt_cv_sys_global_symbol_pipe="$AWK '"\
8617 " {last_section=section; section=\$ 3};"\
8618 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8619 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8620 " \$ 0!~/External *\|/{next};"\
8621 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8622 " {if(hide[section]) next};"\
8623 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8624 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8625 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8626 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8627 " ' prfx
=^
$ac_symprfx"
8629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8631 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
8633 # Check to see that the pipe works correctly.
8637 cat > conftest.$ac_ext <<_LT_EOF
8642 void nm_test_func(void);
8643 void nm_test_func(void){}
8647 int main(){nm_test_var='a';nm_test_func();return(0);}
8650 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8651 (eval $ac_compile) 2>&5
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8654 test $ac_status = 0; }; then
8655 # Now try to grab the symbols.
8657 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
8658 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8660 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8661 test $ac_status = 0; } && test -s "$nlist"; then
8662 # Try sorting and uniquifying the output.
8663 if sort "$nlist" | uniq > "$nlist"T; then
8664 mv -f "$nlist"T "$nlist"
8669 # Make sure that we snagged all the symbols we need.
8670 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8671 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8672 cat <<_LT_EOF > conftest.$ac_ext
8673 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8674 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8675 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8676 relocations are performed -- see ld's documentation on pseudo-relocs. */
8677 # define LT_DLSYM_CONST
8678 #elif defined(__osf__)
8679 /* This system does not cope well with relocations in const data. */
8680 # define LT_DLSYM_CONST
8682 # define LT_DLSYM_CONST const
8690 # Now generate the symbol file.
8691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8693 cat <<_LT_EOF >> conftest.$ac_ext
8695 /* The mapping between symbol names and symbols. */
8696 LT_DLSYM_CONST struct {
8700 lt__PROGRAM__LTX_preloaded_symbols[] =
8702 { "@PROGRAM@
", (void *) 0 },
8704 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8705 cat <<\_LT_EOF >> conftest.$ac_ext
8709 /* This works around a problem in FreeBSD linker */
8710 #ifdef FREEBSD_WORKAROUND
8711 static const void *lt_preloaded_setup() {
8712 return lt__PROGRAM__LTX_preloaded_symbols;
8720 # Now try linking the two files.
8721 mv conftest.$ac_objext conftstm.$ac_objext
8722 lt_globsym_save_LIBS=$LIBS
8723 lt_globsym_save_CFLAGS=$CFLAGS
8724 LIBS="conftstm.
$ac_objext"
8725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8726 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8727 (eval $ac_link) 2>&5
8729 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8733 LIBS=$lt_globsym_save_LIBS
8734 CFLAGS=$lt_globsym_save_CFLAGS
8736 echo "cannot
find nm_test_func
in $nlist" >&5
8739 echo "cannot
find nm_test_var
in $nlist" >&5
8742 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
8745 echo "$progname: failed program was
:" >&5
8746 cat conftest.$ac_ext >&5
8748 rm -rf conftest* conftst*
8750 # Do not use the global_symbol_pipe unless it works.
8751 if test "$pipe_works" = yes; then
8754 lt_cv_sys_global_symbol_pipe=
8760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8761 lt_cv_sys_global_symbol_to_cdecl=
8763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
8765 $as_echo "failed
" >&6; }
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
8768 $as_echo "ok
" >&6; }
8771 # Response file support.
8772 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8773 nm_file_list_spec='@'
8774 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8775 nm_file_list_spec='@'
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
8805 $as_echo_n "checking
for sysroot...
" >&6; }
8807 # Check whether --with-sysroot was given.
8808 if test "${with_sysroot+set}" = set; then :
8809 withval=$with_sysroot;
8816 case ${with_sysroot} in #(
8818 if test "$GCC" = yes; then
8819 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8823 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
8829 $as_echo "${with_sysroot}" >&6; }
8830 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
8835 $as_echo "${lt_sysroot:-no}" >&6; }
8841 # Check whether --enable-libtool-lock was given.
8842 if test "${enable_libtool_lock+set}" = set; then :
8843 enableval=$enable_libtool_lock;
8846 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
8848 # Some flags need to be propagated to the compiler or linker for good
8852 # Find out which ABI we are using.
8853 echo 'int i;' > conftest.$ac_ext
8854 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8855 (eval $ac_compile) 2>&5
8857 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8858 test $ac_status = 0; }; then
8859 case `/usr/bin/file conftest.$ac_objext` in
8871 # Find out which ABI we are using.
8872 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
8873 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8874 (eval $ac_compile) 2>&5
8876 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8877 test $ac_status = 0; }; then
8878 if test "$lt_cv_prog_gnu_ld" = yes; then
8879 case `/usr/bin/file conftest.$ac_objext` in
8881 LD="${LD-ld} -melf32bsmip"
8884 LD="${LD-ld} -melf32bmipn32"
8887 LD="${LD-ld} -melf64bmip"
8891 case `/usr/bin/file conftest.$ac_objext` in
8907 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8908 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8909 # Find out which ABI we are using.
8910 echo 'int i;' > conftest.$ac_ext
8911 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8912 (eval $ac_compile) 2>&5
8914 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8915 test $ac_status = 0; }; then
8916 case `/usr/bin/file conftest.o` in
8919 x86_64-*kfreebsd*-gnu)
8920 LD="${LD-ld} -m elf_i386_fbsd
"
8923 LD="${LD-ld} -m elf_i386
"
8925 ppc64-*linux*|powerpc64-*linux*)
8926 LD="${LD-ld} -m elf32ppclinux
"
8929 LD="${LD-ld} -m elf_s390
"
8932 LD="${LD-ld} -m elf32_sparc
"
8938 x86_64-*kfreebsd*-gnu)
8939 LD="${LD-ld} -m elf_x86_64_fbsd
"
8942 LD="${LD-ld} -m elf_x86_64
"
8944 ppc*-*linux*|powerpc*-*linux*)
8945 LD="${LD-ld} -m elf64ppc
"
8947 s390*-*linux*|s390*-*tpf*)
8948 LD="${LD-ld} -m elf64_s390
"
8951 LD="${LD-ld} -m elf64_sparc
"
8961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8962 SAVE_CFLAGS="$CFLAGS"
8963 CFLAGS="$CFLAGS -belf"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8965 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8966 if ${lt_cv_cc_needs_belf+:} false; then :
8967 $as_echo_n "(cached
) " >&6
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8986 if ac_fn_c_try_link "$LINENO"; then :
8987 lt_cv_cc_needs_belf=yes
8989 lt_cv_cc_needs_belf=no
8991 rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
9001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9002 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9004 CFLAGS="$SAVE_CFLAGS"
9008 # Find out which ABI we are using.
9009 echo 'int i;' > conftest.$ac_ext
9010 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9011 (eval $ac_compile) 2>&5
9013 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
9014 test $ac_status = 0; }; then
9015 case `/usr/bin/file conftest.o` in
9017 case $lt_cv_prog_gnu_ld in
9021 LD="${LD-ld} -m elf_x86_64
"
9024 LD="${LD-ld} -m elf64_sparc
"
9027 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9028 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9045 need_locks="$enable_libtool_lock"
9047 if test -n "$ac_tool_prefix"; then
9048 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
9049 set dummy ${ac_tool_prefix}mt; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9051 $as_echo_n "checking
for $ac_word...
" >&6; }
9052 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9053 $as_echo_n "(cached
) " >&6
9055 if test -n "$MANIFEST_TOOL"; then
9056 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9075 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9076 if test -n "$MANIFEST_TOOL"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
9078 $as_echo "$MANIFEST_TOOL" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9081 $as_echo "no
" >&6; }
9086 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9087 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9088 # Extract the first word of "mt
", so it can be a program name with args.
9089 set dummy mt; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9091 $as_echo_n "checking
for $ac_word...
" >&6; }
9092 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9093 $as_echo_n "(cached
) " >&6
9095 if test -n "$ac_ct_MANIFEST_TOOL"; then
9096 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 test -z "$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_MANIFEST_TOOL="mt
"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9115 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9116 if test -n "$ac_ct_MANIFEST_TOOL"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
9118 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9121 $as_echo "no
" >&6; }
9124 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
9127 case $cross_compiling:$ac_tool_warned in
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9131 ac_tool_warned=yes ;;
9133 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9136 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9139 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
9141 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
9142 if ${lt_cv_path_mainfest_tool+:} false; then :
9143 $as_echo_n "(cached
) " >&6
9145 lt_cv_path_mainfest_tool=no
9146 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9147 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9148 cat conftest.err >&5
9149 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9150 lt_cv_path_mainfest_tool=yes
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
9155 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9156 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
9166 rhapsody* | darwin*)
9167 if test -n "$ac_tool_prefix"; then
9168 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
9169 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9171 $as_echo_n "checking
for $ac_word...
" >&6; }
9172 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9173 $as_echo_n "(cached
) " >&6
9175 if test -n "$DSYMUTIL"; then
9176 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9195 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9196 if test -n "$DSYMUTIL"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
9198 $as_echo "$DSYMUTIL" >&6; }
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9201 $as_echo "no
" >&6; }
9206 if test -z "$ac_cv_prog_DSYMUTIL"; then
9207 ac_ct_DSYMUTIL=$DSYMUTIL
9208 # Extract the first word of "dsymutil
", so it can be a program name with args.
9209 set dummy dsymutil; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9211 $as_echo_n "checking
for $ac_word...
" >&6; }
9212 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9213 $as_echo_n "(cached
) " >&6
9215 if test -n "$ac_ct_DSYMUTIL"; then
9216 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9225 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9235 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9236 if test -n "$ac_ct_DSYMUTIL"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
9238 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9241 $as_echo "no
" >&6; }
9244 if test "x
$ac_ct_DSYMUTIL" = x; then
9247 case $cross_compiling:$ac_tool_warned in
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9250 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9251 ac_tool_warned=yes ;;
9253 DSYMUTIL=$ac_ct_DSYMUTIL
9256 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9259 if test -n "$ac_tool_prefix"; then
9260 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
9261 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9263 $as_echo_n "checking
for $ac_word...
" >&6; }
9264 if ${ac_cv_prog_NMEDIT+:} false; then :
9265 $as_echo_n "(cached
) " >&6
9267 if test -n "$NMEDIT"; then
9268 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9287 NMEDIT=$ac_cv_prog_NMEDIT
9288 if test -n "$NMEDIT"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
9290 $as_echo "$NMEDIT" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9293 $as_echo "no
" >&6; }
9298 if test -z "$ac_cv_prog_NMEDIT"; then
9299 ac_ct_NMEDIT=$NMEDIT
9300 # Extract the first word of "nmedit
", so it can be a program name with args.
9301 set dummy nmedit; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9303 $as_echo_n "checking
for $ac_word...
" >&6; }
9304 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9305 $as_echo_n "(cached
) " >&6
9307 if test -n "$ac_ct_NMEDIT"; then
9308 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9327 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9328 if test -n "$ac_ct_NMEDIT"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
9330 $as_echo "$ac_ct_NMEDIT" >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9333 $as_echo "no
" >&6; }
9336 if test "x
$ac_ct_NMEDIT" = x; then
9339 case $cross_compiling:$ac_tool_warned in
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9342 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9343 ac_tool_warned=yes ;;
9345 NMEDIT=$ac_ct_NMEDIT
9348 NMEDIT="$ac_cv_prog_NMEDIT"
9351 if test -n "$ac_tool_prefix"; then
9352 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
9353 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9355 $as_echo_n "checking
for $ac_word...
" >&6; }
9356 if ${ac_cv_prog_LIPO+:} false; then :
9357 $as_echo_n "(cached
) " >&6
9359 if test -n "$LIPO"; then
9360 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9379 LIPO=$ac_cv_prog_LIPO
9380 if test -n "$LIPO"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9382 $as_echo "$LIPO" >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9385 $as_echo "no
" >&6; }
9390 if test -z "$ac_cv_prog_LIPO"; then
9392 # Extract the first word of "lipo
", so it can be a program name with args.
9393 set dummy lipo; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9395 $as_echo_n "checking
for $ac_word...
" >&6; }
9396 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9397 $as_echo_n "(cached
) " >&6
9399 if test -n "$ac_ct_LIPO"; then
9400 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9409 ac_cv_prog_ac_ct_LIPO="lipo
"
9410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9419 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9420 if test -n "$ac_ct_LIPO"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
9422 $as_echo "$ac_ct_LIPO" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9425 $as_echo "no
" >&6; }
9428 if test "x
$ac_ct_LIPO" = x; then
9431 case $cross_compiling:$ac_tool_warned in
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9434 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9435 ac_tool_warned=yes ;;
9440 LIPO="$ac_cv_prog_LIPO"
9443 if test -n "$ac_tool_prefix"; then
9444 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
9445 set dummy ${ac_tool_prefix}otool; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9447 $as_echo_n "checking
for $ac_word...
" >&6; }
9448 if ${ac_cv_prog_OTOOL+:} false; then :
9449 $as_echo_n "(cached
) " >&6
9451 if test -n "$OTOOL"; then
9452 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 test -z "$as_dir" && as_dir=.
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
9462 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9471 OTOOL=$ac_cv_prog_OTOOL
9472 if test -n "$OTOOL"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
9474 $as_echo "$OTOOL" >&6; }
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9477 $as_echo "no
" >&6; }
9482 if test -z "$ac_cv_prog_OTOOL"; then
9484 # Extract the first word of "otool
", so it can be a program name with args.
9485 set dummy otool; ac_word=$2
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9487 $as_echo_n "checking
for $ac_word...
" >&6; }
9488 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9489 $as_echo_n "(cached
) " >&6
9491 if test -n "$ac_ct_OTOOL"; then
9492 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 ac_cv_prog_ac_ct_OTOOL="otool
"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9511 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9512 if test -n "$ac_ct_OTOOL"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
9514 $as_echo "$ac_ct_OTOOL" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9517 $as_echo "no
" >&6; }
9520 if test "x
$ac_ct_OTOOL" = x; then
9523 case $cross_compiling:$ac_tool_warned in
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9526 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9527 ac_tool_warned=yes ;;
9532 OTOOL="$ac_cv_prog_OTOOL"
9535 if test -n "$ac_tool_prefix"; then
9536 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
9537 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9539 $as_echo_n "checking
for $ac_word...
" >&6; }
9540 if ${ac_cv_prog_OTOOL64+:} false; then :
9541 $as_echo_n "(cached
) " >&6
9543 if test -n "$OTOOL64"; then
9544 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 test -z "$as_dir" && as_dir=.
9551 for ac_exec_ext in '' $ac_executable_extensions; do
9552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9553 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
9554 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9563 OTOOL64=$ac_cv_prog_OTOOL64
9564 if test -n "$OTOOL64"; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
9566 $as_echo "$OTOOL64" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9569 $as_echo "no
" >&6; }
9574 if test -z "$ac_cv_prog_OTOOL64"; then
9575 ac_ct_OTOOL64=$OTOOL64
9576 # Extract the first word of "otool64
", so it can be a program name with args.
9577 set dummy otool64; ac_word=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9579 $as_echo_n "checking
for $ac_word...
" >&6; }
9580 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9581 $as_echo_n "(cached
) " >&6
9583 if test -n "$ac_ct_OTOOL64"; then
9584 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593 ac_cv_prog_ac_ct_OTOOL64="otool64
"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9603 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9604 if test -n "$ac_ct_OTOOL64"; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
9606 $as_echo "$ac_ct_OTOOL64" >&6; }
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9609 $as_echo "no
" >&6; }
9612 if test "x
$ac_ct_OTOOL64" = x; then
9615 case $cross_compiling:$ac_tool_warned in
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9618 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9619 ac_tool_warned=yes ;;
9621 OTOOL64=$ac_ct_OTOOL64
9624 OTOOL64="$ac_cv_prog_OTOOL64"
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
9654 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
9655 if ${lt_cv_apple_cc_single_mod+:} false; then :
9656 $as_echo_n "(cached
) " >&6
9658 lt_cv_apple_cc_single_mod=no
9659 if test -z "${LT_MULTI_MODULE}"; then
9660 # By default we will add the -single_module flag. You can override
9661 # by either setting the environment variable LT_MULTI_MODULE
9662 # non-empty at configure time, or by adding -multi_module to the
9664 rm -rf libconftest.dylib*
9665 echo "int foo
(void
){return 1;}" > conftest.c
9666 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9667 -dynamiclib -Wl,-single_module conftest.c
" >&5
9668 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9669 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9671 # If there is a non-empty error log, and "single_module
"
9672 # appears in it, assume the flag caused a linker warning
9673 if test -s conftest.err && $GREP single_module conftest.err; then
9674 cat conftest.err >&5
9675 # Otherwise, if the output was created with a 0 exit code from
9676 # the compiler, it worked.
9677 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9678 lt_cv_apple_cc_single_mod=yes
9680 cat conftest.err >&5
9682 rm -rf libconftest.dylib*
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
9687 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
9690 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
9691 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9692 $as_echo_n "(cached
) " >&6
9694 lt_cv_ld_exported_symbols_list=no
9695 save_LDFLAGS=$LDFLAGS
9696 echo "_main
" > conftest.sym
9697 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9709 if ac_fn_c_try_link "$LINENO"; then :
9710 lt_cv_ld_exported_symbols_list=yes
9712 lt_cv_ld_exported_symbols_list=no
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LDFLAGS="$save_LDFLAGS"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
9720 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
9723 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
9724 if ${lt_cv_ld_force_load+:} false; then :
9725 $as_echo_n "(cached
) " >&6
9727 lt_cv_ld_force_load=no
9728 cat > conftest.c << _LT_EOF
9729 int forced_loaded() { return 2;}
9731 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
9732 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9733 echo "$AR cru libconftest.a conftest.o
" >&5
9734 $AR cru libconftest.a conftest.o 2>&5
9735 echo "$RANLIB libconftest.a
" >&5
9736 $RANLIB libconftest.a 2>&5
9737 cat > conftest.c << _LT_EOF
9738 int main() { return 0;}
9740 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
9741 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9743 if test -s conftest.err && $GREP force_load conftest.err; then
9744 cat conftest.err >&5
9745 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9746 lt_cv_ld_force_load=yes
9748 cat conftest.err >&5
9750 rm -f conftest.err libconftest.a conftest conftest.c
9751 rm -rf conftest.dSYM
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
9755 $as_echo "$lt_cv_ld_force_load" >&6; }
9757 rhapsody* | darwin1.[012])
9758 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9760 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9761 darwin*) # darwin 5.x on
9762 # if running on 10.5 or later, the deployment target defaults
9763 # to the OS version, if on x86, and 10.4, the deployment
9764 # target defaults to 10.4. Don't you love it?
9765 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9766 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9767 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9769 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9771 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9775 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9776 _lt_dar_single_mod='$single_module'
9778 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9779 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9781 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9783 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
9784 _lt_dsymutil='~$DSYMUTIL $lib || :'
9791 for ac_header in dlfcn.h
9793 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
9795 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
9796 cat >>confdefs.h <<_ACEOF
9797 #define HAVE_DLFCN_H 1
9818 # Check whether --enable-shared was given.
9819 if test "${enable_shared+set}" = set; then :
9820 enableval=$enable_shared; p=${PACKAGE-default}
9822 yes) enable_shared=yes ;;
9823 no) enable_shared=no ;;
9826 # Look at the argument we got. We use all the common list separators.
9827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9828 for pkg in $enableval; do
9830 if test "X
$pkg" = "X
$p"; then
9849 # Check whether --enable-static was given.
9850 if test "${enable_static+set}" = set; then :
9851 enableval=$enable_static; p=${PACKAGE-default}
9853 yes) enable_static=yes ;;
9854 no) enable_static=no ;;
9857 # Look at the argument we got. We use all the common list separators.
9858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9859 for pkg in $enableval; do
9861 if test "X
$pkg" = "X
$p"; then
9881 # Check whether --with-pic was given.
9882 if test "${with_pic+set}" = set; then :
9883 withval=$with_pic; lt_p=${PACKAGE-default}
9885 yes|no) pic_mode=$withval ;;
9888 # Look at the argument we got. We use all the common list separators.
9889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9890 for lt_pkg in $withval; do
9892 if test "X
$lt_pkg" = "X
$lt_p"; then
9904 test -z "$pic_mode" && pic_mode=default
9912 # Check whether --enable-fast-install was given.
9913 if test "${enable_fast_install+set}" = set; then :
9914 enableval=$enable_fast_install; p=${PACKAGE-default}
9916 yes) enable_fast_install=yes ;;
9917 no) enable_fast_install=no ;;
9919 enable_fast_install=no
9920 # Look at the argument we got. We use all the common list separators.
9921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9922 for pkg in $enableval; do
9924 if test "X
$pkg" = "X
$p"; then
9925 enable_fast_install=yes
9932 enable_fast_install=yes
9945 # This can be used to rebuild libtool when needed
9946 LIBTOOL_DEPS="$ltmain"
9948 # Always use our own libtool.
9949 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9980 test -z "$LN_S" && LN_S="ln -s"
9995 if test -n "${ZSH_VERSION+set}" ; then
9996 setopt NO_GLOB_SUBST
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
10000 $as_echo_n "checking
for objdir...
" >&6; }
10001 if ${lt_cv_objdir+:} false; then :
10002 $as_echo_n "(cached
) " >&6
10004 rm -f .libs 2>/dev/null
10005 mkdir .libs 2>/dev/null
10006 if test -d .libs; then
10009 # MS-DOS does not allow filenames that begin with a dot.
10012 rmdir .libs 2>/dev/null
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
10015 $as_echo "$lt_cv_objdir" >&6; }
10016 objdir=$lt_cv_objdir
10022 cat >>confdefs.h <<_ACEOF
10023 #define LT_OBJDIR "$lt_cv_objdir/"
10031 # AIX sometimes has problems with the GCC collect2 program. For some
10032 # reason, if we set the COLLECT_NAMES environment variable, the problems
10033 # vanish in a puff of smoke.
10034 if test "X
${COLLECT_NAMES+set}" != Xset; then
10036 export COLLECT_NAMES
10041 # Global variables:
10043 can_build_shared=yes
10045 # All known linkers require a `.a' archive for static linking (except MSVC,
10046 # which needs '.lib').
10049 with_gnu_ld="$lt_cv_prog_gnu_ld"
10052 old_CFLAGS="$CFLAGS"
10054 # Set sane defaults for various variables
10055 test -z "$CC" && CC=cc
10056 test -z "$LTCC" && LTCC=$CC
10057 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10058 test -z "$LD" && LD=ld
10059 test -z "$ac_objext" && ac_objext=o
10061 for cc_temp in $compiler""; do
10063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10069 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
10072 # Only perform the check for file, if the check method requires it
10073 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10074 case $deplibs_check_method in
10076 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
10078 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
10079 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10080 $as_echo_n "(cached
) " >&6
10084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10087 lt_save_MAGIC_CMD="$MAGIC_CMD"
10088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10089 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
10090 for ac_dir in $ac_dummy; do
10092 test -z "$ac_dir" && ac_dir=.
10093 if test -f $ac_dir/${ac_tool_prefix}file; then
10094 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10095 if test -n "$file_magic_test_file"; then
10096 case $deplibs_check_method in
10098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10101 $EGREP "$file_magic_regex" > /dev/null; then
10106 *** Warning: the command libtool uses to detect shared libraries,
10107 *** $file_magic_cmd, produces output that libtool cannot recognize.
10108 *** The result is that libtool may fail to recognize shared libraries
10109 *** as such. This will affect the creation of libtool libraries that
10110 *** depend on shared libraries, but programs linked with such libtool
10111 *** libraries will work regardless of this problem. Nevertheless, you
10112 *** may want to report the problem to your system manager and/or to
10113 *** bug-libtool@gnu.org
10123 MAGIC_CMD="$lt_save_MAGIC_CMD"
10128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10129 if test -n "$MAGIC_CMD"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
10131 $as_echo "$MAGIC_CMD" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10134 $as_echo "no
" >&6; }
10141 if test -z "$lt_cv_path_MAGIC_CMD"; then
10142 if test -n "$ac_tool_prefix"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
10144 $as_echo_n "checking
for file...
" >&6; }
10145 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10146 $as_echo_n "(cached
) " >&6
10150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10153 lt_save_MAGIC_CMD="$MAGIC_CMD"
10154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10155 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
10156 for ac_dir in $ac_dummy; do
10158 test -z "$ac_dir" && ac_dir=.
10159 if test -f $ac_dir/file; then
10160 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10161 if test -n "$file_magic_test_file"; then
10162 case $deplibs_check_method in
10164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10167 $EGREP "$file_magic_regex" > /dev/null; then
10172 *** Warning: the command libtool uses to detect shared libraries,
10173 *** $file_magic_cmd, produces output that libtool cannot recognize.
10174 *** The result is that libtool may fail to recognize shared libraries
10175 *** as such. This will affect the creation of libtool libraries that
10176 *** depend on shared libraries, but programs linked with such libtool
10177 *** libraries will work regardless of this problem. Nevertheless, you
10178 *** may want to report the problem to your system manager and/or to
10179 *** bug-libtool@gnu.org
10189 MAGIC_CMD="$lt_save_MAGIC_CMD"
10194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10195 if test -n "$MAGIC_CMD"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
10197 $as_echo "$MAGIC_CMD" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10200 $as_echo "no
" >&6; }
10213 # Use C for the default configuration in the libtool script
10217 ac_cpp='$CPP $CPPFLAGS'
10218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10223 # Source file extension for C test sources.
10226 # Object file extension for compiled C test sources.
10230 # Code to be used in simple compile tests
10231 lt_simple_compile_test_code="int some_variable
= 0;"
10233 # Code to be used in simple link tests
10234 lt_simple_link_test_code='int main(){return(0);}'
10242 # If no C compiler was specified, use CC.
10245 # If no C compiler flags were specified, use CFLAGS.
10246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10248 # Allow CC to be a program name with arguments.
10251 # Save the default compiler, since it gets overwritten when the other
10252 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10253 compiler_DEFAULT=$CC
10255 # save warnings/boilerplate of simple test code
10256 ac_outfile=conftest.$ac_objext
10257 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10259 _lt_compiler_boilerplate=`cat conftest.err`
10262 ac_outfile=conftest.$ac_objext
10263 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10264 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10265 _lt_linker_boilerplate=`cat conftest.err`
10270 ## There is no encapsulation within the following macros, do not change
10271 ## the running order or otherwise move them around unless you know exactly
10272 ## what you are doing...
10273 if test -n "$compiler"; then
10275 lt_prog_compiler_no_builtin_flag=
10277 if test "$GCC" = yes; then
10278 case $cc_basename in
10280 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10282 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
10286 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
10287 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10288 $as_echo_n "(cached
) " >&6
10290 lt_cv_prog_compiler_rtti_exceptions=no
10291 ac_outfile=conftest.$ac_objext
10292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10293 lt_compiler_flag="-fno-rtti -fno-exceptions"
10294 # Insert the option either (1) after the last *FLAGS variable, or
10295 # (2) before a word containing "conftest.
", or (3) at the end.
10296 # Note that $ac_compile itself does not contain backslashes and begins
10297 # with a dollar sign (not a hyphen), so the echo should work correctly.
10298 # The option is referenced via a variable to avoid confusing sed.
10299 lt_compile=`echo "$ac_compile" | $SED \
10300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10302 -e 's:$: $lt_compiler_flag:'`
10303 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10304 (eval "$lt_compile" 2>conftest.err)
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10308 if (exit $ac_status) && test -s "$ac_outfile"; then
10309 # The compiler can only warn and ignore the option if not recognized
10310 # So say no if there are warnings other than the usual output.
10311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10314 lt_cv_prog_compiler_rtti_exceptions=yes
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
10321 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10323 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10324 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10336 lt_prog_compiler_wl=
10337 lt_prog_compiler_pic=
10338 lt_prog_compiler_static=
10341 if test "$GCC" = yes; then
10342 lt_prog_compiler_wl='-Wl,'
10343 lt_prog_compiler_static='-static'
10347 # All AIX code is PIC.
10348 if test "$host_cpu" = ia64; then
10349 # AIX 5 now supports IA64 processor
10350 lt_prog_compiler_static='-Bstatic'
10357 # see comment about AmigaOS4 .so support
10358 lt_prog_compiler_pic='-fPIC'
10361 # FIXME: we need at least 68020 code to build shared libraries, but
10362 # adding the `-m68020' flag to GCC prevents building anything better,
10364 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10369 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10370 # PIC is the default for these OSes.
10373 mingw* | cygwin* | pw32* | os2* | cegcc*)
10374 # This hack is so that the source file can tell whether it is being
10375 # built for inclusion in a dll (and should export symbols for example).
10376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10377 # (--disable-auto-import) libraries
10378 lt_prog_compiler_pic='-DDLL_EXPORT'
10381 darwin* | rhapsody*)
10382 # PIC is the default on this platform
10383 # Common symbols not allowed in MH_DYLIB files
10384 lt_prog_compiler_pic='-fno-common'
10388 # PIC is the default for Haiku.
10389 # The "-static" flag exists, but is broken.
10390 lt_prog_compiler_static=
10394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10396 # sets the default TLS model and affects inlining.
10402 lt_prog_compiler_pic='-fPIC'
10408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10409 # Instead, we relocate shared libraries at runtime.
10413 # Just because we use GCC doesn't mean we suddenly get shared libraries
10414 # on systems that don't support them.
10415 lt_prog_compiler_can_build_shared=no
10420 # QNX uses GNU C++, but need to define -shared option too, otherwise
10421 # it will coredump.
10422 lt_prog_compiler_pic='-fPIC -shared'
10426 if test -d /usr/nec; then
10427 lt_prog_compiler_pic=-Kconform_pic
10432 lt_prog_compiler_pic='-fPIC'
10436 case $cc_basename in
10437 nvcc*) # Cuda Compiler Driver 2.2
10438 lt_prog_compiler_wl='-Xlinker '
10439 if test -n "$lt_prog_compiler_pic"; then
10440 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10445 # PORTME Check for flag to pass linker flags through the system compiler.
10448 lt_prog_compiler_wl='-Wl,'
10449 if test "$host_cpu" = ia64; then
10450 # AIX 5 now supports IA64 processor
10451 lt_prog_compiler_static='-Bstatic'
10453 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10457 mingw* | cygwin* | pw32* | os2* | cegcc*)
10458 # This hack is so that the source file can tell whether it is being
10459 # built for inclusion in a dll (and should export symbols for example).
10460 lt_prog_compiler_pic='-DDLL_EXPORT'
10463 hpux9* | hpux10* | hpux11*)
10464 lt_prog_compiler_wl='-Wl,'
10465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10466 # not for PA HP-UX.
10472 lt_prog_compiler_pic='+Z'
10475 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10476 lt_prog_compiler_static='${wl}-a ${wl}archive'
10479 irix5* | irix6* | nonstopux*)
10480 lt_prog_compiler_wl='-Wl,'
10481 # PIC (with -KPIC) is the default.
10482 lt_prog_compiler_static='-non_shared'
10485 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10486 case $cc_basename in
10487 # old Intel for x86_64 which still supported -KPIC.
10489 lt_prog_compiler_wl='-Wl,'
10490 lt_prog_compiler_pic='-KPIC'
10491 lt_prog_compiler_static='-static'
10493 # icc used to be incompatible with GCC.
10494 # ICC 10 doesn't accept -KPIC any more.
10496 lt_prog_compiler_wl='-Wl,'
10497 lt_prog_compiler_pic='-fPIC'
10498 lt_prog_compiler_static='-static'
10500 # Lahey Fortran 8.1.
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_pic='--shared'
10504 lt_prog_compiler_static='--static'
10507 # NAG Fortran compiler
10508 lt_prog_compiler_wl='-Wl,-Wl,,'
10509 lt_prog_compiler_pic='-PIC'
10510 lt_prog_compiler_static='-Bstatic'
10512 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10513 # Portland Group compilers (*not* the Pentium gcc compiler,
10514 # which looks to be a dead project)
10515 lt_prog_compiler_wl='-Wl,'
10516 lt_prog_compiler_pic='-fpic'
10517 lt_prog_compiler_static='-Bstatic'
10520 lt_prog_compiler_wl='-Wl,'
10521 # All Alpha code is PIC.
10522 lt_prog_compiler_static='-non_shared'
10524 xl* | bgxl* | bgf* | mpixl*)
10525 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_pic='-qpic'
10528 lt_prog_compiler_static='-qstaticlink'
10531 case `$CC -V 2>&1 | sed 5q` in
10532 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10533 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10534 lt_prog_compiler_pic='-KPIC'
10535 lt_prog_compiler_static='-Bstatic'
10536 lt_prog_compiler_wl=''
10538 *Sun\ F* | *Sun*Fortran*)
10539 lt_prog_compiler_pic='-KPIC'
10540 lt_prog_compiler_static='-Bstatic'
10541 lt_prog_compiler_wl='-Qoption ld '
10545 lt_prog_compiler_pic='-KPIC'
10546 lt_prog_compiler_static='-Bstatic'
10547 lt_prog_compiler_wl='-Wl,'
10549 *Intel*\ [CF]*Compiler*)
10550 lt_prog_compiler_wl='-Wl,'
10551 lt_prog_compiler_pic='-fPIC'
10552 lt_prog_compiler_static='-static'
10555 lt_prog_compiler_wl='-Wl,'
10556 lt_prog_compiler_pic='-fpic'
10557 lt_prog_compiler_static='-Bstatic'
10565 lt_prog_compiler_pic='-KPIC'
10566 lt_prog_compiler_static='-Bstatic'
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10575 osf3* | osf4* | osf5*)
10576 lt_prog_compiler_wl='-Wl,'
10577 # All OSF/1 code is PIC.
10578 lt_prog_compiler_static='-non_shared'
10582 lt_prog_compiler_static='-non_shared'
10586 lt_prog_compiler_pic='-KPIC'
10587 lt_prog_compiler_static='-Bstatic'
10588 case $cc_basename in
10589 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10590 lt_prog_compiler_wl='-Qoption ld ';;
10592 lt_prog_compiler_wl='-Wl,';;
10597 lt_prog_compiler_wl='-Qoption ld '
10598 lt_prog_compiler_pic='-PIC'
10599 lt_prog_compiler_static='-Bstatic'
10602 sysv4 | sysv4.2uw2* | sysv4.3*)
10603 lt_prog_compiler_wl='-Wl,'
10604 lt_prog_compiler_pic='-KPIC'
10605 lt_prog_compiler_static='-Bstatic'
10609 if test -d /usr/nec ;then
10610 lt_prog_compiler_pic='-Kconform_pic'
10611 lt_prog_compiler_static='-Bstatic'
10615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10616 lt_prog_compiler_wl='-Wl,'
10617 lt_prog_compiler_pic='-KPIC'
10618 lt_prog_compiler_static='-Bstatic'
10622 lt_prog_compiler_wl='-Wl,'
10623 lt_prog_compiler_can_build_shared=no
10627 lt_prog_compiler_pic='-pic'
10628 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_can_build_shared=no
10638 # For platforms which do not support PIC, -DPIC is meaningless:
10640 lt_prog_compiler_pic=
10643 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
10648 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
10649 if ${lt_cv_prog_compiler_pic+:} false; then :
10650 $as_echo_n "(cached
) " >&6
10652 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic" >&5
10655 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10656 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10659 # Check to make sure the PIC flag actually works.
10661 if test -n "$lt_prog_compiler_pic"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
10663 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
10664 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10665 $as_echo_n "(cached
) " >&6
10667 lt_cv_prog_compiler_pic_works=no
10668 ac_outfile=conftest.$ac_objext
10669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10670 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10671 # Insert the option either (1) after the last *FLAGS variable, or
10672 # (2) before a word containing "conftest.
", or (3) at the end.
10673 # Note that $ac_compile itself does not contain backslashes and begins
10674 # with a dollar sign (not a hyphen), so the echo should work correctly.
10675 # The option is referenced via a variable to avoid confusing sed.
10676 lt_compile=`echo "$ac_compile" | $SED \
10677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10679 -e 's:$: $lt_compiler_flag:'`
10680 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10681 (eval "$lt_compile" 2>conftest.err)
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10685 if (exit $ac_status) && test -s "$ac_outfile"; then
10686 # The compiler can only warn and ignore the option if not recognized
10687 # So say no if there are warnings other than the usual output.
10688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10691 lt_cv_prog_compiler_pic_works=yes
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
10698 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10700 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10701 case $lt_prog_compiler_pic in
10703 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10706 lt_prog_compiler_pic=
10707 lt_prog_compiler_can_build_shared=no
10723 # Check to make sure the static flag actually works.
10725 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
10727 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
10728 if ${lt_cv_prog_compiler_static_works+:} false; then :
10729 $as_echo_n "(cached
) " >&6
10731 lt_cv_prog_compiler_static_works=no
10732 save_LDFLAGS="$LDFLAGS"
10733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10734 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10736 # The linker can only warn and ignore the option if not recognized
10737 # So say no if there are warnings
10738 if test -s conftest.err; then
10739 # Append any errors to the config.log.
10740 cat conftest.err 1>&5
10741 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10743 if diff conftest.exp conftest.er2 >/dev/null; then
10744 lt_cv_prog_compiler_static_works=yes
10747 lt_cv_prog_compiler_static_works=yes
10751 LDFLAGS="$save_LDFLAGS"
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
10755 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10757 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10760 lt_prog_compiler_static=
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10770 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10771 if ${lt_cv_prog_compiler_c_o+:} false; then :
10772 $as_echo_n "(cached
) " >&6
10774 lt_cv_prog_compiler_c_o=no
10775 $RM -r conftest 2>/dev/null
10779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10781 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10782 # Insert the option either (1) after the last *FLAGS variable, or
10783 # (2) before a word containing "conftest.
", or (3) at the end.
10784 # Note that $ac_compile itself does not contain backslashes and begins
10785 # with a dollar sign (not a hyphen), so the echo should work correctly.
10786 lt_compile=`echo "$ac_compile" | $SED \
10787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10789 -e 's:$: $lt_compiler_flag:'`
10790 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10791 (eval "$lt_compile" 2>out/conftest.err)
10793 cat out/conftest.err >&5
10794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10797 # The compiler can only warn and ignore the option if not recognized
10798 # So say no if there are warnings
10799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10802 lt_cv_prog_compiler_c_o=yes
10807 # SGI C++ compiler will create directory out/ii_files/ for
10808 # template instantiation
10809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10810 $RM out/* && rmdir out
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10817 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10825 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10826 if ${lt_cv_prog_compiler_c_o+:} false; then :
10827 $as_echo_n "(cached
) " >&6
10829 lt_cv_prog_compiler_c_o=no
10830 $RM -r conftest 2>/dev/null
10834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10836 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10837 # Insert the option either (1) after the last *FLAGS variable, or
10838 # (2) before a word containing "conftest.
", or (3) at the end.
10839 # Note that $ac_compile itself does not contain backslashes and begins
10840 # with a dollar sign (not a hyphen), so the echo should work correctly.
10841 lt_compile=`echo "$ac_compile" | $SED \
10842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10844 -e 's:$: $lt_compiler_flag:'`
10845 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10846 (eval "$lt_compile" 2>out/conftest.err)
10848 cat out/conftest.err >&5
10849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10852 # The compiler can only warn and ignore the option if not recognized
10853 # So say no if there are warnings
10854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10857 lt_cv_prog_compiler_c_o=yes
10862 # SGI C++ compiler will create directory out/ii_files/ for
10863 # template instantiation
10864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10865 $RM out/* && rmdir out
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10872 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10877 hard_links="nottested
"
10878 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10879 # do not overwrite the value of need_locks provided by the user
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
10881 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
10884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10886 ln conftest.a conftest.b 2>&5 || hard_links=no
10887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
10889 $as_echo "$hard_links" >&6; }
10890 if test "$hard_links" = no; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10892 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10905 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
10908 allow_undefined_flag=
10909 always_export_symbols=no
10911 archive_expsym_cmds=
10912 compiler_needs_object=no
10913 enable_shared_with_static_runtimes=no
10914 export_dynamic_flag_spec=
10915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10916 hardcode_automatic=no
10918 hardcode_direct_absolute=no
10919 hardcode_libdir_flag_spec=
10920 hardcode_libdir_separator=
10921 hardcode_minus_L=no
10922 hardcode_shlibpath_var=unsupported
10924 link_all_deplibs=unknown
10926 module_expsym_cmds=
10927 old_archive_from_new_cmds=
10928 old_archive_from_expsyms_cmds=
10929 thread_safe_flag_spec=
10930 whole_archive_flag_spec=
10931 # include_expsyms should be a list of space-separated symbols to be *always*
10932 # included in the symbol list
10934 # exclude_expsyms can be an extended regexp of symbols to exclude
10935 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10936 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10937 # as well as any symbol that contains `d'.
10938 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10939 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10940 # platforms (ab)use it in PIC code, but their linkers get confused if
10941 # the symbol is explicitly referenced. Since portable code cannot
10942 # rely on this symbol name, it's probably fine to never include it in
10943 # preloaded symbol tables.
10944 # Exclude shared library initialization/finalization symbols.
10945 extract_expsyms_cmds=
10948 cygwin* | mingw* | pw32* | cegcc*)
10949 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10950 # When not using gcc, we currently assume that we are using
10951 # Microsoft Visual C++.
10952 if test "$GCC" != yes; then
10957 # we just hope/assume this is gcc and not c89 (= MSVC++)
10967 # On some targets, GNU ld is compatible enough with the native linker
10968 # that we're better off using the native interface for both.
10969 lt_use_gnu_ld_interface=no
10970 if test "$with_gnu_ld" = yes; then
10973 # The AIX port of GNU ld has always aspired to compatibility
10974 # with the native linker. However, as the warning in the GNU ld
10975 # block says, versions before 2.19.5* couldn't really create working
10976 # shared libraries, regardless of the interface used.
10977 case `$LD -v 2>&1` in
10978 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10979 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10980 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10982 lt_use_gnu_ld_interface=yes
10987 lt_use_gnu_ld_interface=yes
10992 if test "$lt_use_gnu_ld_interface" = yes; then
10993 # If archive_cmds runs LD, not CC, wlarc should be empty
10996 # Set some defaults for GNU ld with shared library support. These
10997 # are reset later if shared libraries are not supported. Putting them
10998 # here allows them to be overridden if necessary.
10999 runpath_var=LD_RUN_PATH
11000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11001 export_dynamic_flag_spec='${wl}--export-dynamic'
11002 # ancient GNU ld didn't support --whole-archive et. al.
11003 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11004 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11006 whole_archive_flag_spec=
11008 supports_anon_versioning=no
11009 case `$LD -v 2>&1` in
11010 *GNU\ gold*) supports_anon_versioning=yes ;;
11011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11014 *\ 2.11.*) ;; # other 2.11 versions
11015 *) supports_anon_versioning=yes ;;
11018 # See if GNU ld supports shared libraries.
11021 # On AIX/PPC, the GNU linker is very broken
11022 if test "$host_cpu" != ia64; then
11026 *** Warning: the GNU linker, at least up to release 2.19, is reported
11027 *** to be unable to reliably create shared libraries on AIX.
11028 *** Therefore, libtool is disabling shared libraries support. If you
11029 *** really care for shared libraries, you may want to install binutils
11030 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11031 *** You will then need to restart the configuration process.
11040 # see comment about AmigaOS4 .so support
11041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 archive_expsym_cmds=''
11045 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)'
11046 hardcode_libdir_flag_spec
='-L$libdir'
11047 hardcode_minus_L
=yes
11053 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11054 allow_undefined_flag
=unsupported
11055 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11056 # support --undefined. This deserves some investigation. FIXME
11057 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 cygwin
* | mingw
* | pw32
* | cegcc
*)
11064 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11065 # as there is no search path for DLLs.
11066 hardcode_libdir_flag_spec
='-L$libdir'
11067 export_dynamic_flag_spec
='${wl}--export-all-symbols'
11068 allow_undefined_flag
=unsupported
11069 always_export_symbols
=no
11070 enable_shared_with_static_runtimes
=yes
11071 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'
11072 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11074 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
11075 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11076 # If the export-symbols file already is a .def file (1st line
11077 # is EXPORTS), use it as is; otherwise, prepend...
11078 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11079 cp $export_symbols $output_objdir/$soname.def;
11081 echo EXPORTS > $output_objdir/$soname.def;
11082 cat $export_symbols >> $output_objdir/$soname.def;
11084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11091 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11092 link_all_deplibs
=yes
11097 hardcode_shlibpath_var
=no
11098 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11099 export_dynamic_flag_spec
='${wl}-E'
11100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11101 # Instead, shared libraries are loaded at an image base (0x10000000 by
11102 # default) and relocated if they conflict, which is a slow very memory
11103 # consuming and fragmenting process. To avoid this, we pick a random,
11104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11106 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11107 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'
11110 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11112 if test "$host_os" = linux-dietlibc
; then
11113 case $cc_basename in
11114 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
11117 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
11118 && test "$tmp_diet" = no
11120 tmp_addflag
=' $pic_flag'
11121 tmp_sharedflag
='-shared'
11122 case $cc_basename,$host_cpu in
11123 pgcc
*) # Portland Group C compiler
11124 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'
11125 tmp_addflag
=' $pic_flag'
11127 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11128 # Portland Group f77 and f90 compilers
11129 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'
11130 tmp_addflag
=' $pic_flag -Mnomain' ;;
11131 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11132 tmp_addflag
=' -i_dynamic' ;;
11133 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11134 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11135 ifc
* | ifort
*) # Intel Fortran compiler
11136 tmp_addflag
=' -nofor_main' ;;
11137 lf95
*) # Lahey Fortran 8.1
11138 whole_archive_flag_spec
=
11139 tmp_sharedflag
='--shared' ;;
11140 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11141 tmp_sharedflag
='-qmkshrobj'
11143 nvcc
*) # Cuda Compiler Driver 2.2
11144 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'
11145 compiler_needs_object
=yes
11148 case `$CC -V 2>&1 | sed 5q` in
11149 *Sun\ C
*) # Sun C 5.9
11150 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'
11151 compiler_needs_object
=yes
11152 tmp_sharedflag
='-G' ;;
11153 *Sun\ F
*) # Sun Fortran 8.3
11154 tmp_sharedflag
='-G' ;;
11156 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11158 if test "x$supports_anon_versioning" = xyes
; then
11159 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11160 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11161 echo "local: *; };" >> $output_objdir/$libname.ver~
11162 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11165 case $cc_basename in
11166 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
11167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11168 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
11169 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11170 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11171 if test "x$supports_anon_versioning" = xyes
; then
11172 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11174 echo "local: *; };" >> $output_objdir/$libname.ver~
11175 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11185 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11186 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11189 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11190 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11195 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
11199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11200 *** create shared libraries on Solaris systems. Therefore, libtool
11201 *** is disabling shared libraries support. We urge you to upgrade GNU
11202 *** binutils to release 2.9.1 or newer. Another option is to modify
11203 *** your PATH or compiler configuration so that the native linker is
11204 *** used, and then restart.
11207 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11208 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11209 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11215 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11216 case `$LD -v 2>&1` in
11217 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
11221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11222 *** reliably create shared libraries on SCO systems. Therefore, libtool
11223 *** is disabling shared libraries support. We urge you to upgrade GNU
11224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11225 *** your PATH or compiler configuration so that the native linker is
11226 *** used, and then restart.
11231 # For security reasons, it is highly recommended that you always
11232 # use absolute paths for naming shared libraries, and exclude the
11233 # DT_RUNPATH tag from executables and libraries. But doing so
11234 # requires that you compile everything twice, which is a pain.
11235 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11236 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11237 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11247 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_direct
=yes
11250 hardcode_shlibpath_var
=no
11254 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11255 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11263 if test "$ld_shlibs" = no
; then
11265 hardcode_libdir_flag_spec
=
11266 export_dynamic_flag_spec
=
11267 whole_archive_flag_spec
=
11270 # PORTME fill in a description of your system's linker (not GNU ld)
11273 allow_undefined_flag
=unsupported
11274 always_export_symbols
=yes
11275 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'
11276 # Note: this linker hardcodes the directories in LIBPATH if there
11277 # are no directories specified by -L.
11278 hardcode_minus_L
=yes
11279 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11280 # Neither direct hardcoding nor static linking is supported with a
11282 hardcode_direct
=unsupported
11287 if test "$host_cpu" = ia64
; then
11288 # On IA64, the linker does run time linking by default, so we don't
11289 # have to do anything special.
11290 aix_use_runtimelinking
=no
11291 exp_sym_flag
='-Bexport'
11294 # If we're using GNU nm, then we don't want the "-C" option.
11295 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11296 # Also, AIX nm treats weak defined symbols like other global
11297 # defined symbols, whereas GNU nm marks them as "W".
11298 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
11299 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11301 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11303 aix_use_runtimelinking
=no
11305 # Test if we are trying to use run time linking or normal
11306 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11307 # need to do runtime linking.
11308 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11309 for ld_flag
in $LDFLAGS; do
11310 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
11311 aix_use_runtimelinking
=yes
11318 exp_sym_flag
='-bexport'
11319 no_entry_flag
='-bnoentry'
11322 # When large executables or shared objects are built, AIX ld can
11323 # have problems creating the table of contents. If linking a library
11324 # or program results in "error TOC overflow" add -mminimal-toc to
11325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11329 hardcode_direct
=yes
11330 hardcode_direct_absolute
=yes
11331 hardcode_libdir_separator
=':'
11332 link_all_deplibs
=yes
11333 file_list_spec
='${wl}-f,'
11335 if test "$GCC" = yes; then
11336 case $host_os in aix4.
[012]|aix4.
[012].
*)
11337 # We only want to do this on AIX 4.2 and lower, the check
11338 # below for broken collect2 doesn't work under 4.3+
11339 collect2name
=`${CC} -print-prog-name=collect2`
11340 if test -f "$collect2name" &&
11341 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
11343 # We have reworked collect2
11346 # We have old collect2
11347 hardcode_direct
=unsupported
11348 # It fails to find uninstalled libraries when the uninstalled
11349 # path is not listed in the libpath. Setting hardcode_minus_L
11350 # to unsupported forces relinking
11351 hardcode_minus_L
=yes
11352 hardcode_libdir_flag_spec
='-L$libdir'
11353 hardcode_libdir_separator
=
11357 shared_flag
='-shared'
11358 if test "$aix_use_runtimelinking" = yes; then
11359 shared_flag
="$shared_flag "'${wl}-G'
11363 if test "$host_cpu" = ia64
; then
11364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11365 # chokes on -Wl,-G. The following line is correct:
11368 if test "$aix_use_runtimelinking" = yes; then
11369 shared_flag
='${wl}-G'
11371 shared_flag
='${wl}-bM:SRE'
11376 export_dynamic_flag_spec
='${wl}-bexpall'
11377 # It seems that -bexpall does not export symbols beginning with
11378 # underscore (_), so it is better to generate a list of symbols to export.
11379 always_export_symbols
=yes
11380 if test "$aix_use_runtimelinking" = yes; then
11381 # Warning - without using the other runtime loading flags (-brtl),
11382 # -berok will link without error, but may produce a broken library.
11383 allow_undefined_flag
='-berok'
11384 # Determine the default libpath from the value encoded in an
11385 # empty executable.
11386 if test "${lt_cv_aix_libpath+set}" = set; then
11387 aix_libpath
=$lt_cv_aix_libpath
11389 if ${lt_cv_aix_libpath_+:} false
; then :
11390 $as_echo_n "(cached) " >&6
11392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11403 if ac_fn_c_try_link
"$LINENO"; then :
11405 lt_aix_libpath_sed
='
11406 /Import File Strings/,/^$/ {
11408 s/^0 *\([^ ]*\) *$/\1/
11412 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11413 # Check for a 64-bit object if we didn't find anything.
11414 if test -z "$lt_cv_aix_libpath_"; then
11415 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418 rm -f core conftest.err conftest.
$ac_objext \
11419 conftest
$ac_exeext conftest.
$ac_ext
11420 if test -z "$lt_cv_aix_libpath_"; then
11421 lt_cv_aix_libpath_
="/usr/lib:/lib"
11426 aix_libpath
=$lt_cv_aix_libpath_
11429 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11430 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11432 if test "$host_cpu" = ia64
; then
11433 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
11434 allow_undefined_flag
="-z nodefs"
11435 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"
11437 # Determine the default libpath from the value encoded in an
11438 # empty executable.
11439 if test "${lt_cv_aix_libpath+set}" = set; then
11440 aix_libpath
=$lt_cv_aix_libpath
11442 if ${lt_cv_aix_libpath_+:} false
; then :
11443 $as_echo_n "(cached) " >&6
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11456 if ac_fn_c_try_link
"$LINENO"; then :
11458 lt_aix_libpath_sed
='
11459 /Import File Strings/,/^$/ {
11461 s/^0 *\([^ ]*\) *$/\1/
11465 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 # Check for a 64-bit object if we didn't find anything.
11467 if test -z "$lt_cv_aix_libpath_"; then
11468 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471 rm -f core conftest.err conftest.
$ac_objext \
11472 conftest
$ac_exeext conftest.
$ac_ext
11473 if test -z "$lt_cv_aix_libpath_"; then
11474 lt_cv_aix_libpath_
="/usr/lib:/lib"
11479 aix_libpath
=$lt_cv_aix_libpath_
11482 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11483 # Warning - without using the other run time loading flags,
11484 # -berok will link without error, but may produce a broken library.
11485 no_undefined_flag
=' ${wl}-bernotok'
11486 allow_undefined_flag
=' ${wl}-berok'
11487 if test "$with_gnu_ld" = yes; then
11488 # We only use this code for GNU lds that support --whole-archive.
11489 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11491 # Exported symbols can be pulled into shared objects from archives
11492 whole_archive_flag_spec
='$convenience'
11494 archive_cmds_need_lc
=yes
11495 # This is similar to how AIX traditionally builds its shared libraries.
11496 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11504 # see comment about AmigaOS4 .so support
11505 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506 archive_expsym_cmds
=''
11509 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)'
11510 hardcode_libdir_flag_spec
='-L$libdir'
11511 hardcode_minus_L
=yes
11517 export_dynamic_flag_spec
=-rdynamic
11520 cygwin
* | mingw
* | pw32
* | cegcc
*)
11521 # When not using gcc, we currently assume that we are using
11522 # Microsoft Visual C++.
11523 # hardcode_libdir_flag_spec is actually meaningless, as there is
11524 # no search path for DLLs.
11525 case $cc_basename in
11528 hardcode_libdir_flag_spec
=' '
11529 allow_undefined_flag
=unsupported
11530 always_export_symbols
=yes
11532 # Tell ltmain to make .lib files, not .a files.
11534 # Tell ltmain to make .dll files, not .so files.
11536 # FIXME: Setting linknames here is a bad hack.
11537 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11538 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11539 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
11541 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
11543 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11545 # The linker will not automatically build a static lib if we build a DLL.
11546 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11547 enable_shared_with_static_runtimes
=yes
11548 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11549 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11551 old_postinstall_cmds
='chmod 644 $oldlib'
11552 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11553 lt_tool_outputfile="@TOOL_OUTPUT@"~
11554 case $lt_outputfile in
11557 lt_outputfile="$lt_outputfile.exe"
11558 lt_tool_outputfile="$lt_tool_outputfile.exe"
11561 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11562 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11563 $RM "$lt_outputfile.manifest";
11567 # Assume MSVC wrapper
11568 hardcode_libdir_flag_spec
=' '
11569 allow_undefined_flag
=unsupported
11570 # Tell ltmain to make .lib files, not .a files.
11572 # Tell ltmain to make .dll files, not .so files.
11574 # FIXME: Setting linknames here is a bad hack.
11575 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11576 # The linker will automatically build a .lib file if we build a DLL.
11577 old_archive_from_new_cmds
='true'
11578 # FIXME: Should let the user specify the lib program.
11579 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11580 enable_shared_with_static_runtimes
=yes
11585 darwin
* | rhapsody
*)
11588 archive_cmds_need_lc
=no
11590 hardcode_automatic
=yes
11591 hardcode_shlibpath_var
=unsupported
11592 if test "$lt_cv_ld_force_load" = "yes"; then
11593 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\"`'
11596 whole_archive_flag_spec
=''
11598 link_all_deplibs
=yes
11599 allow_undefined_flag
="$_lt_dar_allow_undefined"
11600 case $cc_basename in
11601 ifort
*) _lt_dar_can_shared
=yes ;;
11602 *) _lt_dar_can_shared
=$GCC ;;
11604 if test "$_lt_dar_can_shared" = "yes"; then
11605 output_verbose_link_cmd
=func_echo_all
11606 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11607 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11608 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}"
11609 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}"
11618 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11619 hardcode_libdir_flag_spec
='-L$libdir'
11620 hardcode_shlibpath_var
=no
11623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11624 # support. Future versions do this automatically, but an explicit c++rt0.o
11625 # does not break anything, and helps significantly (at the cost of a little
11628 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11629 hardcode_libdir_flag_spec
='-R$libdir'
11630 hardcode_direct
=yes
11631 hardcode_shlibpath_var
=no
11634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11636 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11637 hardcode_direct
=yes
11638 hardcode_minus_L
=yes
11639 hardcode_shlibpath_var
=no
11642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11643 freebsd
* | dragonfly
*)
11644 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11645 hardcode_libdir_flag_spec
='-R$libdir'
11646 hardcode_direct
=yes
11647 hardcode_shlibpath_var
=no
11651 if test "$GCC" = yes; then
11652 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11654 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11656 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11657 hardcode_libdir_separator
=:
11658 hardcode_direct
=yes
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L
=yes
11663 export_dynamic_flag_spec
='${wl}-E'
11667 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11668 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11670 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11672 if test "$with_gnu_ld" = no
; then
11673 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11674 hardcode_libdir_separator
=:
11675 hardcode_direct
=yes
11676 hardcode_direct_absolute
=yes
11677 export_dynamic_flag_spec
='${wl}-E'
11678 # hardcode_minus_L: Not really in the search PATH,
11679 # but as the default location of the library.
11680 hardcode_minus_L
=yes
11685 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11688 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11691 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11694 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11703 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11707 # Older versions of the 11.00 compiler do not understand -b yet
11708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11710 $as_echo_n "checking if $CC understands -b... " >&6; }
11711 if ${lt_cv_prog_compiler__b+:} false
; then :
11712 $as_echo_n "(cached) " >&6
11714 lt_cv_prog_compiler__b
=no
11715 save_LDFLAGS
="$LDFLAGS"
11716 LDFLAGS
="$LDFLAGS -b"
11717 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11718 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11719 # The linker can only warn and ignore the option if not recognized
11720 # So say no if there are warnings
11721 if test -s conftest.err
; then
11722 # Append any errors to the config.log.
11723 cat conftest.err
1>&5
11724 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11725 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11726 if diff conftest.exp conftest.er2
>/dev
/null
; then
11727 lt_cv_prog_compiler__b
=yes
11730 lt_cv_prog_compiler__b
=yes
11734 LDFLAGS
="$save_LDFLAGS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11740 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11741 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11743 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11749 if test "$with_gnu_ld" = no
; then
11750 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11751 hardcode_libdir_separator
=:
11756 hardcode_shlibpath_var
=no
11759 hardcode_direct
=yes
11760 hardcode_direct_absolute
=yes
11761 export_dynamic_flag_spec
='${wl}-E'
11763 # hardcode_minus_L: Not really in the search PATH,
11764 # but as the default location of the library.
11765 hardcode_minus_L
=yes
11771 irix5
* | irix6
* | nonstopux
*)
11772 if test "$GCC" = yes; then
11773 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'
11774 # Try to use the -exported_symbol ld option, if it does not
11775 # work, assume that -exports_file does not work either and
11776 # implicitly export all symbols.
11777 # This should be the same for all languages, so no per-tag cache variable.
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11779 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11780 if ${lt_cv_irix_exported_symbol+:} false
; then :
11781 $as_echo_n "(cached) " >&6
11783 save_LDFLAGS
="$LDFLAGS"
11784 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 int foo (void) { return 0; }
11789 if ac_fn_c_try_link
"$LINENO"; then :
11790 lt_cv_irix_exported_symbol
=yes
11792 lt_cv_irix_exported_symbol
=no
11794 rm -f core conftest.err conftest.
$ac_objext \
11795 conftest
$ac_exeext conftest.
$ac_ext
11796 LDFLAGS
="$save_LDFLAGS"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11799 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11800 if test "$lt_cv_irix_exported_symbol" = yes; then
11801 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'
11804 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'
11805 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'
11807 archive_cmds_need_lc
='no'
11808 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11809 hardcode_libdir_separator
=:
11811 link_all_deplibs
=yes
11815 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11816 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11818 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11820 hardcode_libdir_flag_spec
='-R$libdir'
11821 hardcode_direct
=yes
11822 hardcode_shlibpath_var
=no
11826 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11827 hardcode_direct
=yes
11828 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11829 hardcode_libdir_separator
=:
11830 hardcode_shlibpath_var
=no
11837 if test -f /usr
/libexec
/ld.so
; then
11838 hardcode_direct
=yes
11839 hardcode_shlibpath_var
=no
11840 hardcode_direct_absolute
=yes
11841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11842 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11843 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11844 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11845 export_dynamic_flag_spec
='${wl}-E'
11848 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11849 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11850 hardcode_libdir_flag_spec
='-R$libdir'
11853 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11854 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11864 hardcode_libdir_flag_spec
='-L$libdir'
11865 hardcode_minus_L
=yes
11866 allow_undefined_flag
=unsupported
11867 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11868 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11872 if test "$GCC" = yes; then
11873 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11874 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'
11876 allow_undefined_flag
=' -expect_unresolved \*'
11877 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'
11879 archive_cmds_need_lc
='no'
11880 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11881 hardcode_libdir_separator
=:
11884 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11885 if test "$GCC" = yes; then
11886 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11887 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'
11888 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11890 allow_undefined_flag
=' -expect_unresolved \*'
11891 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'
11892 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~
11893 $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'
11895 # Both c and cxx compiler support -rpath directly
11896 hardcode_libdir_flag_spec
='-rpath $libdir'
11898 archive_cmds_need_lc
='no'
11899 hardcode_libdir_separator
=:
11903 no_undefined_flag
=' -z defs'
11904 if test "$GCC" = yes; then
11906 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11908 $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'
11910 case `$CC -V 2>&1` in
11913 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11914 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11919 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11920 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11921 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11925 hardcode_libdir_flag_spec
='-R$libdir'
11926 hardcode_shlibpath_var
=no
11928 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11930 # The compiler driver will combine and reorder linker options,
11931 # but understands `-z linker_flag'. GCC discards it without `$wl',
11932 # but is careful enough not to reorder.
11933 # Supported since Solaris 2.6 (maybe 2.5.1?)
11934 if test "$GCC" = yes; then
11935 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11937 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11941 link_all_deplibs
=yes
11945 if test "x$host_vendor" = xsequent
; then
11946 # Use $CC to link under sequent, because it throws in some extra .o
11947 # files that make .init and .fini sections work.
11948 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11950 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11952 hardcode_libdir_flag_spec
='-L$libdir'
11953 hardcode_direct
=yes
11954 hardcode_minus_L
=yes
11955 hardcode_shlibpath_var
=no
11959 case $host_vendor in
11961 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11962 hardcode_direct
=yes # is this really true???
11965 ## LD is ld it makes a PLAMLIB
11966 ## CC just makes a GrossModule.
11967 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11968 reload_cmds
='$CC -r -o $output$reload_objs'
11972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11973 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11976 runpath_var
='LD_RUN_PATH'
11977 hardcode_shlibpath_var
=no
11981 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11982 hardcode_shlibpath_var
=no
11983 export_dynamic_flag_spec
='-Bexport'
11987 if test -d /usr
/nec
; then
11988 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11989 hardcode_shlibpath_var
=no
11990 runpath_var
=LD_RUN_PATH
11991 hardcode_runpath_var
=yes
11996 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11997 no_undefined_flag
='${wl}-z,text'
11998 archive_cmds_need_lc
=no
11999 hardcode_shlibpath_var
=no
12000 runpath_var
='LD_RUN_PATH'
12002 if test "$GCC" = yes; then
12003 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12004 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12007 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12011 sysv5
* | sco3.2v5
* | sco5v6
*)
12012 # Note: We can NOT use -z defs as we might desire, because we do not
12013 # link with -lc, and that would cause any symbols used from libc to
12014 # always be unresolved, which means just about no library would
12015 # ever link correctly. If we're not using GNU ld we use -z text
12016 # though, which does catch some bad symbols but isn't as heavy-handed
12018 no_undefined_flag
='${wl}-z,text'
12019 allow_undefined_flag
='${wl}-z,nodefs'
12020 archive_cmds_need_lc
=no
12021 hardcode_shlibpath_var
=no
12022 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
12023 hardcode_libdir_separator
=':'
12024 link_all_deplibs
=yes
12025 export_dynamic_flag_spec
='${wl}-Bexport'
12026 runpath_var
='LD_RUN_PATH'
12028 if test "$GCC" = yes; then
12029 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12030 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12032 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12033 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12038 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12039 hardcode_libdir_flag_spec
='-L$libdir'
12040 hardcode_shlibpath_var
=no
12048 if test x
$host_vendor = xsni
; then
12050 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12051 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12058 $as_echo "$ld_shlibs" >&6; }
12059 test "$ld_shlibs" = no
&& can_build_shared
=no
12061 with_gnu_ld
=$with_gnu_ld
12078 # Do we need to explicitly link libc?
12080 case "x$archive_cmds_need_lc" in
12082 # Assume -lc should be added
12083 archive_cmds_need_lc
=yes
12085 if test "$enable_shared" = yes && test "$GCC" = yes; then
12086 case $archive_cmds in
12088 # FIXME: we may have to deal with multi-command sequences.
12091 # Test whether the compiler implicitly links with -lc since on some
12092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12093 # to ld, don't add -lc before -lgcc.
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12095 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12096 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
12097 $as_echo_n "(cached) " >&6
12100 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12103 (eval $ac_compile) 2>&5
12105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12106 test $ac_status = 0; } 2>conftest.err
; then
12109 libobjs
=conftest.
$ac_objext
12111 wl
=$lt_prog_compiler_wl
12112 pic_flag
=$lt_prog_compiler_pic
12118 lt_save_allow_undefined_flag
=$allow_undefined_flag
12119 allow_undefined_flag
=
12120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12121 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12124 test $ac_status = 0; }
12126 lt_cv_archive_cmds_need_lc
=no
12128 lt_cv_archive_cmds_need_lc
=yes
12130 allow_undefined_flag
=$lt_save_allow_undefined_flag
12132 cat conftest.err
1>&5
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12138 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12139 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12300 if test "$GCC" = yes; then
12302 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
12303 *) lt_awk_arg
="/^libraries:/" ;;
12306 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
12307 *) lt_sed_strip_eq
="s,=/,/,g" ;;
12309 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12310 case $lt_search_path_spec in
12312 # if the path contains ";" then we assume it to be the separator
12313 # otherwise default to the standard path separator (i.e. ":") - it is
12314 # assumed that no part of a normal pathname contains ";" but that should
12315 # okay in the real world where ";" in dirpaths is itself problematic.
12316 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12319 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12322 # Ok, now we have the path, separated by spaces, we can step through it
12323 # and add multilib dir if necessary.
12324 lt_tmp_lt_search_path_spec
=
12325 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12326 for lt_sys_path
in $lt_search_path_spec; do
12327 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12328 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12330 test -d "$lt_sys_path" && \
12331 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12334 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12335 BEGIN {RS=" "; FS="/|\n";} {
12338 for (lt_i = NF; lt_i > 0; lt_i--) {
12339 if ($lt_i != "" && $lt_i != ".") {
12340 if ($lt_i == "..") {
12343 if (lt_count == 0) {
12344 lt_foo="/" $lt_i lt_foo;
12351 if (lt_foo != "") { lt_freq[lt_foo]++; }
12352 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12354 # AWK program above erroneously prepends '/' to C:/dos/paths
12357 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
12358 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12360 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12362 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12364 library_names_spec
=
12365 libname_spec
='lib$name'
12369 postuninstall_cmds
=
12373 shlibpath_overrides_runpath
=unknown
12375 dynamic_linker
="$host_os ld.so"
12376 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12377 need_lib_prefix
=unknown
12378 hardcode_into_libs
=no
12380 # when you set need_version to no, make sure it does not cause -set_version
12381 # flags to be left without arguments
12382 need_version
=unknown
12386 version_type
=linux
# correct to gnu/linux during the next big refactor
12387 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12388 shlibpath_var
=LIBPATH
12390 # AIX 3 has no versioning support, so we append a major version to the name.
12391 soname_spec
='${libname}${release}${shared_ext}$major'
12395 version_type
=linux
# correct to gnu/linux during the next big refactor
12398 hardcode_into_libs
=yes
12399 if test "$host_cpu" = ia64
; then
12400 # AIX 5 supports IA64
12401 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12402 shlibpath_var
=LD_LIBRARY_PATH
12404 # With GCC up to 2.95.x, collect2 would create an import file
12405 # for dependence libraries. The import file would start with
12406 # the line `#! .'. This would cause the generated library to
12407 # depend on `.', always an invalid library. This was fixed in
12408 # development snapshots of GCC prior to 3.0.
12410 aix4 | aix4.
[01] | aix4.
[01].
*)
12411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12413 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
12416 can_build_shared
=no
12420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12421 # soname into executable. Probably we can add versioning support to
12422 # collect2, so additional links can be useful in future.
12423 if test "$aix_use_runtimelinking" = yes; then
12424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12425 # instead of lib<name>.a to let people know that these are not
12426 # typical AIX shared libraries.
12427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 # We preserve .a as extension for shared libraries through AIX4.2
12430 # and later when we are not doing run time linking.
12431 library_names_spec
='${libname}${release}.a $libname.a'
12432 soname_spec
='${libname}${release}${shared_ext}$major'
12434 shlibpath_var
=LIBPATH
12441 # Since July 2007 AmigaOS4 officially supports .so libraries.
12442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12446 library_names_spec
='$libname.ixlibrary $libname.a'
12447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12448 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12454 library_names_spec
='${libname}${shared_ext}'
12455 dynamic_linker
="$host_os ld.so"
12456 shlibpath_var
=LIBRARY_PATH
12460 version_type
=linux
# correct to gnu/linux during the next big refactor
12462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463 soname_spec
='${libname}${release}${shared_ext}$major'
12464 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12465 shlibpath_var
=LD_LIBRARY_PATH
12466 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12467 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12468 # the default ld.so.conf also contains /usr/contrib/lib and
12469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12470 # libtool to hard-code these into programs
12473 cygwin
* | mingw
* | pw32
* | cegcc
*)
12474 version_type
=windows
12479 case $GCC,$cc_basename in
12482 library_names_spec
='$libname.dll.a'
12483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12484 postinstall_cmds
='base_file=`basename \${file}`~
12485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12486 dldir=$destdir/`dirname \$dlpath`~
12487 test -d \$dldir || mkdir -p \$dldir~
12488 $install_prog $dir/$dlname \$dldir/$dlname~
12489 chmod a+x \$dldir/$dlname~
12490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12493 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12494 dlpath=$dir/\$dldll~
12496 shlibpath_overrides_runpath
=yes
12500 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12501 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12503 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12506 # MinGW DLLs use traditional 'lib' prefix
12507 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12510 # pw32 DLLs use 'pw' prefix rather than 'lib'
12511 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12514 dynamic_linker
='Win32 ld.exe'
12519 libname_spec
='$name'
12520 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12521 library_names_spec
='${libname}.dll.lib'
12525 sys_lib_search_path_spec
=
12528 for lt_path
in $LIB
12531 # Let DOS variable expansion print the short 8.3 style file name.
12532 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12533 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12536 # Convert to MSYS style.
12537 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12540 # Convert to unix form, then to dos form, then back to unix form
12541 # but this time dos style (no spaces!) so that the unix form looks
12542 # like /cygdrive/c/PROGRA~1:/cygdr...
12543 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12544 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12545 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12548 sys_lib_search_path_spec
="$LIB"
12549 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12550 # It is most probably a Windows format PATH.
12551 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12553 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12555 # FIXME: find the short name or the path components, as spaces are
12556 # common. (e.g. "Program Files" -> "PROGRA~1")
12560 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12561 postinstall_cmds
='base_file=`basename \${file}`~
12562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12563 dldir=$destdir/`dirname \$dlpath`~
12564 test -d \$dldir || mkdir -p \$dldir~
12565 $install_prog $dir/$dlname \$dldir/$dlname'
12566 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12567 dlpath=$dir/\$dldll~
12569 shlibpath_overrides_runpath
=yes
12570 dynamic_linker
='Win32 link.exe'
12574 # Assume MSVC wrapper
12575 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12576 dynamic_linker
='Win32 ld.exe'
12579 # FIXME: first we should search . and the directory the executable is in
12583 darwin
* | rhapsody
*)
12584 dynamic_linker
="$host_os dyld"
12585 version_type
=darwin
12588 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12589 soname_spec
='${libname}${release}${major}$shared_ext'
12590 shlibpath_overrides_runpath
=yes
12591 shlibpath_var
=DYLD_LIBRARY_PATH
12592 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12594 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12595 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12599 version_type
=linux
# correct to gnu/linux during the next big refactor
12602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12603 soname_spec
='${libname}${release}${shared_ext}$major'
12604 shlibpath_var
=LD_LIBRARY_PATH
12607 freebsd
* | dragonfly
*)
12608 # DragonFly does not have aout. When/if they implement a new
12609 # versioning mechanism, adjust this.
12610 if test -x /usr
/bin
/objformat
; then
12611 objformat
=`/usr/bin/objformat`
12614 freebsd
[23].
*) objformat
=aout
;;
12615 *) objformat
=elf
;;
12618 version_type
=freebsd-
$objformat
12619 case $version_type in
12621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12626 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12630 shlibpath_var
=LD_LIBRARY_PATH
12633 shlibpath_overrides_runpath
=yes
12635 freebsd3.
[01]* | freebsdelf3.
[01]*)
12636 shlibpath_overrides_runpath
=yes
12637 hardcode_into_libs
=yes
12639 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12640 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12641 shlibpath_overrides_runpath
=no
12642 hardcode_into_libs
=yes
12644 *) # from 4.6 on, and DragonFly
12645 shlibpath_overrides_runpath
=yes
12646 hardcode_into_libs
=yes
12652 version_type
=linux
# correct to gnu/linux during the next big refactor
12655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12656 soname_spec
='${libname}${release}${shared_ext}$major'
12657 shlibpath_var
=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath
=no
12659 hardcode_into_libs
=yes
12663 version_type
=linux
# correct to gnu/linux during the next big refactor
12666 dynamic_linker
="$host_os runtime_loader"
12667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12668 soname_spec
='${libname}${release}${shared_ext}$major'
12669 shlibpath_var
=LIBRARY_PATH
12670 shlibpath_overrides_runpath
=yes
12671 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12672 hardcode_into_libs
=yes
12675 hpux9
* | hpux10
* | hpux11
*)
12676 # Give a soname corresponding to the major version so that dld.sl refuses to
12677 # link against other versions.
12684 hardcode_into_libs
=yes
12685 dynamic_linker
="$host_os dld.so"
12686 shlibpath_var
=LD_LIBRARY_PATH
12687 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec
='${libname}${release}${shared_ext}$major'
12690 if test "X$HPUX_IA64_MODE" = X32
; then
12691 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12693 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12695 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12699 hardcode_into_libs
=yes
12700 dynamic_linker
="$host_os dld.sl"
12701 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12702 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12704 soname_spec
='${libname}${release}${shared_ext}$major'
12705 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12706 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12710 dynamic_linker
="$host_os dld.sl"
12711 shlibpath_var
=SHLIB_PATH
12712 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 soname_spec
='${libname}${release}${shared_ext}$major'
12717 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12718 postinstall_cmds
='chmod 555 $lib'
12719 # or fails outright, so override atomically:
12720 install_override_mode
=555
12724 version_type
=linux
# correct to gnu/linux during the next big refactor
12727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12728 soname_spec
='${libname}${release}${shared_ext}$major'
12729 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12730 shlibpath_var
=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath
=no
12732 hardcode_into_libs
=yes
12735 irix5
* | irix6
* | nonstopux
*)
12737 nonstopux
*) version_type
=nonstopux
;;
12739 if test "$lt_cv_prog_gnu_ld" = yes; then
12740 version_type
=linux
# correct to gnu/linux during the next big refactor
12747 soname_spec
='${libname}${release}${shared_ext}$major'
12748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12750 irix5
* | nonstopux
*)
12751 libsuff
= shlibsuff
=
12754 case $LD in # libtool.m4 will add one of these switches to LD
12755 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12756 libsuff
= shlibsuff
= libmagic
=32-bit;;
12757 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12758 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12759 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12760 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12761 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12765 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12766 shlibpath_overrides_runpath
=no
12767 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12768 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12769 hardcode_into_libs
=yes
12772 # No shared lib support for Linux oldld, aout, or coff.
12773 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12777 # This must be glibc/ELF.
12778 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12779 version_type
=linux
# correct to gnu/linux during the next big refactor
12782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 soname_spec
='${libname}${release}${shared_ext}$major'
12784 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12785 shlibpath_var
=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath
=no
12788 # Some binutils ld are patched to set DT_RUNPATH
12789 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12790 $as_echo_n "(cached) " >&6
12792 lt_cv_shlibpath_overrides_runpath
=no
12793 save_LDFLAGS
=$LDFLAGS
12794 save_libdir
=$libdir
12795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12808 if ac_fn_c_try_link
"$LINENO"; then :
12809 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12810 lt_cv_shlibpath_overrides_runpath
=yes
12813 rm -f core conftest.err conftest.
$ac_objext \
12814 conftest
$ac_exeext conftest.
$ac_ext
12815 LDFLAGS
=$save_LDFLAGS
12816 libdir
=$save_libdir
12820 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12822 # This implies no fast_install, which is unacceptable.
12823 # Some rework will be needed to allow for fast_install
12824 # before this can be enabled.
12825 hardcode_into_libs
=yes
12827 # Append ld.so.conf contents to the search path
12828 if test -f /etc
/ld.so.conf
; then
12829 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' ' '`
12830 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12833 # We used to test for /lib/ld.so.1 and disable shared libraries on
12834 # powerpc, because MkLinux only supported shared libraries with the
12835 # GNU dynamic linker. Since this was broken with cross compilers,
12836 # most powerpc-linux boxes support dynamic linking these days and
12837 # people can always --disable-shared, the test was removed, and we
12838 # assume the GNU/Linux dynamic linker is in use.
12839 dynamic_linker
='GNU/Linux ld.so'
12846 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12848 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12849 dynamic_linker
='NetBSD (a.out) ld.so'
12851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12852 soname_spec
='${libname}${release}${shared_ext}$major'
12853 dynamic_linker
='NetBSD ld.elf_so'
12855 shlibpath_var
=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath
=yes
12857 hardcode_into_libs
=yes
12861 version_type
=linux
# correct to gnu/linux during the next big refactor
12862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863 shlibpath_var
=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath
=yes
12871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12872 soname_spec
='${libname}${release}${shared_ext}$major'
12873 shlibpath_var
=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath
=no
12875 hardcode_into_libs
=yes
12876 dynamic_linker
='ldqnx.so'
12881 sys_lib_dlsearch_path_spec
="/usr/lib"
12883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12885 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12886 *) need_version
=no
;;
12888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12889 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12890 shlibpath_var
=LD_LIBRARY_PATH
12891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12893 openbsd2.
[89] | openbsd2.
[89].
*)
12894 shlibpath_overrides_runpath
=no
12897 shlibpath_overrides_runpath
=yes
12901 shlibpath_overrides_runpath
=yes
12906 libname_spec
='$name'
12909 library_names_spec
='$libname${shared_ext} $libname.a'
12910 dynamic_linker
='OS/2 ld.exe'
12911 shlibpath_var
=LIBPATH
12914 osf3
* | osf4
* | osf5
*)
12918 soname_spec
='${libname}${release}${shared_ext}$major'
12919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12920 shlibpath_var
=LD_LIBRARY_PATH
12921 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12922 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12930 version_type
=linux
# correct to gnu/linux during the next big refactor
12933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec
='${libname}${release}${shared_ext}$major'
12935 shlibpath_var
=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath
=yes
12937 hardcode_into_libs
=yes
12938 # ldd complains unless libraries are executable
12939 postinstall_cmds
='chmod +x $lib'
12944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12945 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12946 shlibpath_var
=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath
=yes
12948 if test "$with_gnu_ld" = yes; then
12955 version_type
=linux
# correct to gnu/linux during the next big refactor
12956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 soname_spec
='${libname}${release}${shared_ext}$major'
12958 shlibpath_var
=LD_LIBRARY_PATH
12959 case $host_vendor in
12961 shlibpath_overrides_runpath
=no
12963 runpath_var
=LD_RUN_PATH
12971 shlibpath_overrides_runpath
=no
12972 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12978 if test -d /usr
/nec
;then
12979 version_type
=linux
# correct to gnu/linux during the next big refactor
12980 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12981 soname_spec
='$libname${shared_ext}.$major'
12982 shlibpath_var
=LD_LIBRARY_PATH
12986 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12987 version_type
=freebsd-elf
12990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12991 soname_spec
='${libname}${release}${shared_ext}$major'
12992 shlibpath_var
=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath
=yes
12994 hardcode_into_libs
=yes
12995 if test "$with_gnu_ld" = yes; then
12996 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12998 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13001 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13005 sys_lib_dlsearch_path_spec
='/usr/lib'
13009 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13010 version_type
=linux
# correct to gnu/linux during the next big refactor
13013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 shlibpath_var
=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath
=no
13016 hardcode_into_libs
=yes
13020 version_type
=linux
# correct to gnu/linux during the next big refactor
13021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec
='${libname}${release}${shared_ext}$major'
13023 shlibpath_var
=LD_LIBRARY_PATH
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13031 $as_echo "$dynamic_linker" >&6; }
13032 test "$dynamic_linker" = no
&& can_build_shared
=no
13034 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13035 if test "$GCC" = yes; then
13036 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13040 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
13042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13043 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13138 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13140 if test -n "$hardcode_libdir_flag_spec" ||
13141 test -n "$runpath_var" ||
13142 test "X$hardcode_automatic" = "Xyes" ; then
13144 # We can hardcode non-existent directories.
13145 if test "$hardcode_direct" != no
&&
13146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13147 # have to relink, otherwise we might link with an installed library
13148 # when we should be linking with a yet-to-be-installed one
13149 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13150 test "$hardcode_minus_L" != no
; then
13151 # Linking always hardcodes the temporary library directory.
13152 hardcode_action
=relink
13154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13155 hardcode_action
=immediate
13158 # We cannot hardcode anything, or else we can only hardcode existing
13160 hardcode_action
=unsupported
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13163 $as_echo "$hardcode_action" >&6; }
13165 if test "$hardcode_action" = relink ||
13166 test "$inherit_rpath" = yes; then
13167 # Fast installation is not supported
13168 enable_fast_install
=no
13169 elif test "$shlibpath_overrides_runpath" = yes ||
13170 test "$enable_shared" = no
; then
13171 # Fast installation is not necessary
13172 enable_fast_install
=needless
13180 if test "x$enable_dlopen" != xyes
; then
13181 enable_dlopen
=unknown
13182 enable_dlopen_self
=unknown
13183 enable_dlopen_self_static
=unknown
13190 lt_cv_dlopen
="load_add_on"
13192 lt_cv_dlopen_self
=yes
13195 mingw
* | pw32
* | cegcc
*)
13196 lt_cv_dlopen
="LoadLibrary"
13201 lt_cv_dlopen
="dlopen"
13206 # if libdl is installed we need to link against it
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13209 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13210 $as_echo_n "(cached) " >&6
13212 ac_check_lib_save_LIBS
=$LIBS
13214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13232 if ac_fn_c_try_link
"$LINENO"; then :
13233 ac_cv_lib_dl_dlopen
=yes
13235 ac_cv_lib_dl_dlopen
=no
13237 rm -f core conftest.err conftest.
$ac_objext \
13238 conftest
$ac_exeext conftest.
$ac_ext
13239 LIBS
=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13243 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13244 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13247 lt_cv_dlopen
="dyld"
13249 lt_cv_dlopen_self
=yes
13256 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13257 if test "x$ac_cv_func_shl_load" = xyes
; then :
13258 lt_cv_dlopen
="shl_load"
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13261 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13262 if ${ac_cv_lib_dld_shl_load+:} false
; then :
13263 $as_echo_n "(cached) " >&6
13265 ac_check_lib_save_LIBS
=$LIBS
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13280 return shl_load ();
13285 if ac_fn_c_try_link
"$LINENO"; then :
13286 ac_cv_lib_dld_shl_load
=yes
13288 ac_cv_lib_dld_shl_load
=no
13290 rm -f core conftest.err conftest.
$ac_objext \
13291 conftest
$ac_exeext conftest.
$ac_ext
13292 LIBS
=$ac_check_lib_save_LIBS
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13295 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13296 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
13297 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
13299 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13300 if test "x$ac_cv_func_dlopen" = xyes
; then :
13301 lt_cv_dlopen
="dlopen"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13305 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13306 $as_echo_n "(cached) " >&6
13308 ac_check_lib_save_LIBS
=$LIBS
13310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13328 if ac_fn_c_try_link
"$LINENO"; then :
13329 ac_cv_lib_dl_dlopen
=yes
13331 ac_cv_lib_dl_dlopen
=no
13333 rm -f core conftest.err conftest.
$ac_objext \
13334 conftest
$ac_exeext conftest.
$ac_ext
13335 LIBS
=$ac_check_lib_save_LIBS
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13339 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13340 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13343 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13344 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13345 $as_echo_n "(cached) " >&6
13347 ac_check_lib_save_LIBS
=$LIBS
13348 LIBS
="-lsvld $LIBS"
13349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13367 if ac_fn_c_try_link
"$LINENO"; then :
13368 ac_cv_lib_svld_dlopen
=yes
13370 ac_cv_lib_svld_dlopen
=no
13372 rm -f core conftest.err conftest.
$ac_objext \
13373 conftest
$ac_exeext conftest.
$ac_ext
13374 LIBS
=$ac_check_lib_save_LIBS
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13377 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13378 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13379 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13382 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13383 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13384 $as_echo_n "(cached) " >&6
13386 ac_check_lib_save_LIBS
=$LIBS
13388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13401 return dld_link ();
13406 if ac_fn_c_try_link
"$LINENO"; then :
13407 ac_cv_lib_dld_dld_link
=yes
13409 ac_cv_lib_dld_dld_link
=no
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13413 LIBS
=$ac_check_lib_save_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13416 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13417 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13418 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
13439 if test "x$lt_cv_dlopen" != xno
; then
13445 case $lt_cv_dlopen in
13447 save_CPPFLAGS
="$CPPFLAGS"
13448 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13450 save_LDFLAGS
="$LDFLAGS"
13451 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13454 LIBS
="$lt_cv_dlopen_libs $LIBS"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13457 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13458 if ${lt_cv_dlopen_self+:} false
; then :
13459 $as_echo_n "(cached) " >&6
13461 if test "$cross_compiling" = yes; then :
13462 lt_cv_dlopen_self
=cross
13464 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13465 lt_status
=$lt_dlunknown
13466 cat > conftest.
$ac_ext <<_LT_EOF
13467 #line $LINENO "configure"
13468 #include "confdefs.h"
13477 # define LT_DLGLOBAL RTLD_GLOBAL
13480 # define LT_DLGLOBAL DL_GLOBAL
13482 # define LT_DLGLOBAL 0
13486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13487 find out it does not work in some platform. */
13488 #ifndef LT_DLLAZY_OR_NOW
13490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13493 # define LT_DLLAZY_OR_NOW DL_LAZY
13496 # define LT_DLLAZY_OR_NOW RTLD_NOW
13499 # define LT_DLLAZY_OR_NOW DL_NOW
13501 # define LT_DLLAZY_OR_NOW 0
13508 /* When -fvisbility=hidden is used, assume the code has been annotated
13509 correspondingly for the symbols needed. */
13510 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13511 int fnord () __attribute__((visibility("default")));
13514 int fnord () { return 42; }
13517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13518 int status = $lt_dlunknown;
13522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13525 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13526 else puts (dlerror ());
13528 /* dlclose (self); */
13536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13537 (eval $ac_link) 2>&5
13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13540 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13541 (.
/conftest
; exit; ) >&5 2>/dev
/null
13543 case x
$lt_status in
13544 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13545 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13546 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13549 # compilation failed
13550 lt_cv_dlopen_self
=no
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13558 $as_echo "$lt_cv_dlopen_self" >&6; }
13560 if test "x$lt_cv_dlopen_self" = xyes
; then
13561 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13563 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13564 if ${lt_cv_dlopen_self_static+:} false
; then :
13565 $as_echo_n "(cached) " >&6
13567 if test "$cross_compiling" = yes; then :
13568 lt_cv_dlopen_self_static
=cross
13570 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13571 lt_status
=$lt_dlunknown
13572 cat > conftest.
$ac_ext <<_LT_EOF
13573 #line $LINENO "configure"
13574 #include "confdefs.h"
13583 # define LT_DLGLOBAL RTLD_GLOBAL
13586 # define LT_DLGLOBAL DL_GLOBAL
13588 # define LT_DLGLOBAL 0
13592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13593 find out it does not work in some platform. */
13594 #ifndef LT_DLLAZY_OR_NOW
13596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13599 # define LT_DLLAZY_OR_NOW DL_LAZY
13602 # define LT_DLLAZY_OR_NOW RTLD_NOW
13605 # define LT_DLLAZY_OR_NOW DL_NOW
13607 # define LT_DLLAZY_OR_NOW 0
13614 /* When -fvisbility=hidden is used, assume the code has been annotated
13615 correspondingly for the symbols needed. */
13616 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13617 int fnord () __attribute__((visibility("default")));
13620 int fnord () { return 42; }
13623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13624 int status = $lt_dlunknown;
13628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13631 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13632 else puts (dlerror ());
13634 /* dlclose (self); */
13642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13643 (eval $ac_link) 2>&5
13645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13646 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13647 (.
/conftest
; exit; ) >&5 2>/dev
/null
13649 case x
$lt_status in
13650 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13651 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13652 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13655 # compilation failed
13656 lt_cv_dlopen_self_static
=no
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13664 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13667 CPPFLAGS
="$save_CPPFLAGS"
13668 LDFLAGS
="$save_LDFLAGS"
13673 case $lt_cv_dlopen_self in
13674 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13675 *) enable_dlopen_self
=unknown
;;
13678 case $lt_cv_dlopen_self_static in
13679 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13680 *) enable_dlopen_self_static
=unknown
;;
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13703 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13704 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13705 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13706 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13708 $as_echo "yes" >&6; }
13710 # FIXME - insert some real tests, host_os isn't really good enough
13713 if test -n "$STRIP" ; then
13714 striplib
="$STRIP -x"
13715 old_striplib
="$STRIP -S"
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13717 $as_echo "yes" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13741 # Report which library types will actually be built
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13743 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13745 $as_echo "$can_build_shared" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13748 $as_echo_n "checking whether to build shared libraries... " >&6; }
13749 test "$can_build_shared" = "no" && enable_shared
=no
13751 # On AIX, shared libraries and static libraries use the same namespace, and
13752 # are all built from PIC.
13755 test "$enable_shared" = yes && enable_static
=no
13756 if test -n "$RANLIB"; then
13757 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13758 postinstall_cmds
='$RANLIB $lib'
13763 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13764 test "$enable_shared" = yes && enable_static
=no
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13769 $as_echo "$enable_shared" >&6; }
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13772 $as_echo_n "checking whether to build static libraries... " >&6; }
13773 # Make sure either enable_shared or enable_static is yes.
13774 test "$enable_shared" = yes || enable_static
=yes
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13776 $as_echo "$enable_static" >&6; }
13783 ac_cpp
='$CPP $CPPFLAGS'
13784 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13785 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13786 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13804 ac_config_commands
="$ac_config_commands libtool"
13809 # Only expand once:
13815 if test -n "$ac_tool_prefix"; then
13816 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13817 set dummy
${ac_tool_prefix}ar; ac_word
=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 $as_echo_n "checking for $ac_word... " >&6; }
13820 if ${ac_cv_prog_AR+:} false
; then :
13821 $as_echo_n "(cached) " >&6
13823 if test -n "$AR"; then
13824 ac_cv_prog_AR
="$AR" # Let the user override the test.
13826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13827 for as_dir
in $PATH
13830 test -z "$as_dir" && as_dir
=.
13831 for ac_exec_ext
in '' $ac_executable_extensions; do
13832 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13833 ac_cv_prog_AR
="${ac_tool_prefix}ar"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 if test -n "$AR"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13846 $as_echo "$AR" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13854 if test -z "$ac_cv_prog_AR"; then
13856 # Extract the first word of "ar", so it can be a program name with args.
13857 set dummy
ar; ac_word
=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
13861 $as_echo_n "(cached) " >&6
13863 if test -n "$ac_ct_AR"; then
13864 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
13866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13867 for as_dir
in $PATH
13870 test -z "$as_dir" && as_dir
=.
13871 for ac_exec_ext
in '' $ac_executable_extensions; do
13872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13873 ac_cv_prog_ac_ct_AR
="ar"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
13884 if test -n "$ac_ct_AR"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13886 $as_echo "$ac_ct_AR" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13892 if test "x$ac_ct_AR" = x
; then
13895 case $cross_compiling:$ac_tool_warned in
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13899 ac_tool_warned
=yes ;;
13904 AR
="$ac_cv_prog_AR"
13909 if test "x$EMSCRIPTEN" = "x"; then :
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
13913 $as_echo_n "checking for MMX instructions set... " >&6; }
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13917 #pragma GCC target("mmx")
13918 #include <mmintrin.h>
13923 __m64 x = _mm_setzero_si64();
13928 if ac_fn_c_try_compile
"$LINENO"; then :
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13930 $as_echo "yes" >&6; }
13932 $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
13941 $as_echo_n "checking for SSE2 instructions set... " >&6; }
13942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 #pragma GCC target("sse2")
13946 #include <emmintrin.h>
13951 __m128d x = _mm_setzero_pd();
13956 if ac_fn_c_try_compile
"$LINENO"; then :
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13958 $as_echo "yes" >&6; }
13960 $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
13969 $as_echo_n "checking for SSE3 instructions set... " >&6; }
13970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13973 #pragma GCC target("sse3")
13974 #include <pmmintrin.h>
13979 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
13980 _mm_cvtpd_ps(_mm_setzero_pd()));
13985 if ac_fn_c_try_compile
"$LINENO"; then :
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13987 $as_echo "yes" >&6; }
13989 $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
13995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
13998 $as_echo_n "checking for SSSE3 instructions set... " >&6; }
13999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14002 #pragma GCC target("ssse3")
14003 #include <tmmintrin.h>
14008 __m64 x = _mm_abs_pi32(_m_from_int(0));
14013 if ac_fn_c_try_compile
"$LINENO"; then :
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14015 $as_echo "yes" >&6; }
14017 $as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14027 for ac_header
in sys
/mman.h
14029 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14030 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
14031 cat >>confdefs.h
<<_ACEOF
14032 #define HAVE_SYS_MMAN_H 1
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14042 $as_echo_n "checking for inline... " >&6; }
14043 if ${ac_cv_c_inline+:} false
; then :
14044 $as_echo_n "(cached) " >&6
14047 for ac_kw
in inline __inline__ __inline
; do
14048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 #ifndef __cplusplus
14052 static $ac_kw foo_t static_foo () {return 0; }
14053 $ac_kw foo_t foo () {return 0; }
14057 if ac_fn_c_try_compile
"$LINENO"; then :
14058 ac_cv_c_inline
=$ac_kw
14060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14061 test "$ac_cv_c_inline" != no
&& break
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14066 $as_echo "$ac_cv_c_inline" >&6; }
14068 case $ac_cv_c_inline in
14071 case $ac_cv_c_inline in
14073 *) ac_val
=$ac_cv_c_inline;;
14075 cat >>confdefs.h
<<_ACEOF
14076 #ifndef __cplusplus
14077 #define inline $ac_val
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14084 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14085 if ${ac_cv_c_bigendian+:} false
; then :
14086 $as_echo_n "(cached) " >&6
14088 ac_cv_c_bigendian
=unknown
14089 # See if we're dealing with a universal compiler.
14090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #ifndef __APPLE_CC__
14093 not a universal capable compiler
14098 if ac_fn_c_try_compile
"$LINENO"; then :
14100 # Check for potential -arch flags. It is not universal unless
14101 # there are at least two -arch flags with different values.
14104 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14105 if test -n "$ac_prev"; then
14107 i?
86 | x86_64 | ppc | ppc64
)
14108 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14111 ac_cv_c_bigendian
=universal
14117 elif test "x$ac_word" = "x-arch"; then
14122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14123 if test $ac_cv_c_bigendian = unknown
; then
14124 # See if sys/param.h defines the BYTE_ORDER macro.
14125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <sys/types.h>
14128 #include <sys/param.h>
14133 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14134 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14136 bogus endian macros
14143 if ac_fn_c_try_compile
"$LINENO"; then :
14144 # It does; now see whether it defined to BIG_ENDIAN or not.
14145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <sys/param.h>
14153 #if BYTE_ORDER != BIG_ENDIAN
14161 if ac_fn_c_try_compile
"$LINENO"; then :
14162 ac_cv_c_bigendian
=yes
14164 ac_cv_c_bigendian
=no
14166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14170 if test $ac_cv_c_bigendian = unknown
; then
14171 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #include <limits.h>
14179 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14180 bogus endian macros
14187 if ac_fn_c_try_compile
"$LINENO"; then :
14188 # It does; now see whether it defined to _BIG_ENDIAN or not.
14189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 #include <limits.h>
14196 #ifndef _BIG_ENDIAN
14204 if ac_fn_c_try_compile
"$LINENO"; then :
14205 ac_cv_c_bigendian
=yes
14207 ac_cv_c_bigendian
=no
14209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14213 if test $ac_cv_c_bigendian = unknown
; then
14214 # Compile a test program.
14215 if test "$cross_compiling" = yes; then :
14216 # Try to guess by grepping values from an object file.
14217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219 short int ascii_mm[] =
14220 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14221 short int ascii_ii[] =
14222 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14223 int use_ascii (int i) {
14224 return ascii_mm[i] + ascii_ii[i];
14226 short int ebcdic_ii[] =
14227 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14228 short int ebcdic_mm[] =
14229 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14230 int use_ebcdic (int i) {
14231 return ebcdic_mm[i] + ebcdic_ii[i];
14238 return use_ascii (foo) == use_ebcdic (foo);
14243 if ac_fn_c_try_compile
"$LINENO"; then :
14244 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14245 ac_cv_c_bigendian
=yes
14247 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14248 if test "$ac_cv_c_bigendian" = unknown
; then
14249 ac_cv_c_bigendian
=no
14251 # finding both strings is unlikely to happen, but who knows?
14252 ac_cv_c_bigendian
=unknown
14256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 $ac_includes_default
14265 /* Are we little or big endian? From Harbison&Steele. */
14269 char c[sizeof (long int)];
14272 return u.c[sizeof (long int) - 1] == 1;
14278 if ac_fn_c_try_run
"$LINENO"; then :
14279 ac_cv_c_bigendian
=no
14281 ac_cv_c_bigendian
=yes
14283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14290 $as_echo "$ac_cv_c_bigendian" >&6; }
14291 case $ac_cv_c_bigendian in #(
14294 $as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
14298 $as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
14301 as_fn_error $?
"universal endianess is not supported - compile separately and use lipo(1)" "$LINENO" 5
14305 as_fn_error $?
"unknown endianess" "$LINENO" 5 ;;
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
14310 $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
14311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14314 #include <limits.h>
14315 #include <stdint.h>
14328 if ac_fn_c_try_compile
"$LINENO"; then :
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14333 $as_echo "yes" >&6; }
14334 CPPFLAGS
="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
14337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14340 if test "$enable_asm" != "no"; then :
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use x86_64 asm code" >&5
14343 $as_echo_n "checking whether we should use x86_64 asm code... " >&6; }
14344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14352 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
14353 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
14354 # error Windows x86_64 calling conventions are not supported yet
14360 __asm__("pxor %xmm12,%xmm6");
14366 if ac_fn_c_try_compile
"$LINENO"; then :
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368 $as_echo "yes" >&6; }
14370 $as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14380 if test $HAVE_AMD64_ASM_V = 1; then
14381 HAVE_AMD64_ASM_TRUE
=
14382 HAVE_AMD64_ASM_FALSE
='#'
14384 HAVE_AMD64_ASM_TRUE
='#'
14385 HAVE_AMD64_ASM_FALSE
=
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
14391 $as_echo_n "checking for 128-bit arithmetic... " >&6; }
14393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14397 # error mode(TI) is a gcc extension
14399 #if defined(__clang__) && !defined(__x86_64__)
14400 # error clang doesn't properly compile smult_curve25519_donna_c64.c
14402 #ifndef NATIVE_LITTLE_ENDIAN
14403 # error donna_c64 currently requires a little endian CPU
14406 # error emscripten currently supports only shift operations on integers \
14407 # larger than 64 bits
14409 #include <stdint.h>
14410 typedef unsigned uint128_t __attribute__((mode(TI)));
14411 void fcontract(uint128_t *t) {
14412 *t += 0x8000000000000 - 1;
14425 if ac_fn_c_try_compile
"$LINENO"; then :
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14427 $as_echo "yes" >&6; }
14429 $as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14437 if test $HAVE_TI_MODE_V = 1; then
14439 HAVE_TI_MODE_FALSE
='#'
14441 HAVE_TI_MODE_TRUE
='#'
14442 HAVE_TI_MODE_FALSE
=
14448 if test "$enable_asm" != "no"; then :
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
14451 $as_echo_n "checking for cpuid instruction... " >&6; }
14452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14459 unsigned int cpu_info[4];
14460 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
14461 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
14462 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
14463 "0" (0U), "2" (0U));
14469 if ac_fn_c_try_compile
"$LINENO"; then :
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14471 $as_echo "yes" >&6; }
14473 $as_echo "#define HAVE_CPUID 1" >>confdefs.h
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478 $as_echo "no" >&6; }
14480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
14486 $as_echo_n "checking if weak symbols are supported... " >&6; }
14487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14490 __attribute__((weak)) void __dummy(void *x) { }
14491 void f(void *x) { __dummy(x); }
14502 if ac_fn_c_try_link
"$LINENO"; then :
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14506 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14512 rm -f core conftest.err conftest.
$ac_objext \
14513 conftest
$ac_exeext conftest.
$ac_ext
14515 case $host_cpu in #(
14516 i
*86 | x86_64 | powerpc
* | s390
*) :
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is not required on this target" >&5
14518 $as_echo "$as_me: data alignment is not required on this target" >&6;} ;; #(
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is required on this target" >&5
14521 $as_echo "$as_me: data alignment is required on this target" >&6;}
14523 $as_echo "#define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
14531 if test "x$EMSCRIPTEN" = "x"; then :
14533 for ac_func
in arc4random arc4random_buf
14535 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14536 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14537 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14538 cat >>confdefs.h
<<_ACEOF
14539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14547 for ac_func
in mlock mprotect explicit_bzero posix_memalign
14549 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14550 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14551 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14552 cat >>confdefs.h
<<_ACEOF
14553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14564 enable_win32_dll
=yes
14567 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-cegcc*)
14568 if test -n "$ac_tool_prefix"; then
14569 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14570 set dummy
${ac_tool_prefix}as
; ac_word
=$2
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572 $as_echo_n "checking for $ac_word... " >&6; }
14573 if ${ac_cv_prog_AS+:} false
; then :
14574 $as_echo_n "(cached) " >&6
14576 if test -n "$AS"; then
14577 ac_cv_prog_AS
="$AS" # Let the user override the test.
14579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14580 for as_dir
in $PATH
14583 test -z "$as_dir" && as_dir
=.
14584 for ac_exec_ext
in '' $ac_executable_extensions; do
14585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14586 ac_cv_prog_AS
="${ac_tool_prefix}as"
14587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14597 if test -n "$AS"; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14599 $as_echo "$AS" >&6; }
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 $as_echo "no" >&6; }
14607 if test -z "$ac_cv_prog_AS"; then
14609 # Extract the first word of "as", so it can be a program name with args.
14610 set dummy as
; ac_word
=$2
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14612 $as_echo_n "checking for $ac_word... " >&6; }
14613 if ${ac_cv_prog_ac_ct_AS+:} false
; then :
14614 $as_echo_n "(cached) " >&6
14616 if test -n "$ac_ct_AS"; then
14617 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
14619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14620 for as_dir
in $PATH
14623 test -z "$as_dir" && as_dir
=.
14624 for ac_exec_ext
in '' $ac_executable_extensions; do
14625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14626 ac_cv_prog_ac_ct_AS
="as"
14627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14636 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
14637 if test -n "$ac_ct_AS"; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14639 $as_echo "$ac_ct_AS" >&6; }
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 $as_echo "no" >&6; }
14645 if test "x$ac_ct_AS" = x
; then
14648 case $cross_compiling:$ac_tool_warned in
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14652 ac_tool_warned
=yes ;;
14657 AS
="$ac_cv_prog_AS"
14660 if test -n "$ac_tool_prefix"; then
14661 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14662 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_prog_DLLTOOL+:} false
; then :
14666 $as_echo_n "(cached) " >&6
14668 if test -n "$DLLTOOL"; then
14669 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
14671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14672 for as_dir
in $PATH
14675 test -z "$as_dir" && as_dir
=.
14676 for ac_exec_ext
in '' $ac_executable_extensions; do
14677 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14688 DLLTOOL
=$ac_cv_prog_DLLTOOL
14689 if test -n "$DLLTOOL"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14691 $as_echo "$DLLTOOL" >&6; }
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14699 if test -z "$ac_cv_prog_DLLTOOL"; then
14700 ac_ct_DLLTOOL
=$DLLTOOL
14701 # Extract the first word of "dlltool", so it can be a program name with args.
14702 set dummy dlltool
; ac_word
=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
14706 $as_echo_n "(cached) " >&6
14708 if test -n "$ac_ct_DLLTOOL"; then
14709 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
14711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14712 for as_dir
in $PATH
14715 test -z "$as_dir" && as_dir
=.
14716 for ac_exec_ext
in '' $ac_executable_extensions; do
14717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14728 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
14729 if test -n "$ac_ct_DLLTOOL"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14731 $as_echo "$ac_ct_DLLTOOL" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14737 if test "x$ac_ct_DLLTOOL" = x
; then
14740 case $cross_compiling:$ac_tool_warned in
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14744 ac_tool_warned
=yes ;;
14746 DLLTOOL
=$ac_ct_DLLTOOL
14749 DLLTOOL
="$ac_cv_prog_DLLTOOL"
14752 if test -n "$ac_tool_prefix"; then
14753 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14754 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14756 $as_echo_n "checking for $ac_word... " >&6; }
14757 if ${ac_cv_prog_OBJDUMP+:} false
; then :
14758 $as_echo_n "(cached) " >&6
14760 if test -n "$OBJDUMP"; then
14761 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
14763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14764 for as_dir
in $PATH
14767 test -z "$as_dir" && as_dir
=.
14768 for ac_exec_ext
in '' $ac_executable_extensions; do
14769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14770 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
14771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780 OBJDUMP
=$ac_cv_prog_OBJDUMP
14781 if test -n "$OBJDUMP"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14783 $as_echo "$OBJDUMP" >&6; }
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14791 if test -z "$ac_cv_prog_OBJDUMP"; then
14792 ac_ct_OBJDUMP
=$OBJDUMP
14793 # Extract the first word of "objdump", so it can be a program name with args.
14794 set dummy objdump
; ac_word
=$2
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 $as_echo_n "checking for $ac_word... " >&6; }
14797 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
14798 $as_echo_n "(cached) " >&6
14800 if test -n "$ac_ct_OBJDUMP"; then
14801 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
14803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14804 for as_dir
in $PATH
14807 test -z "$as_dir" && as_dir
=.
14808 for ac_exec_ext
in '' $ac_executable_extensions; do
14809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14810 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
14811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
14821 if test -n "$ac_ct_OBJDUMP"; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14823 $as_echo "$ac_ct_OBJDUMP" >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14829 if test "x$ac_ct_OBJDUMP" = x
; then
14832 case $cross_compiling:$ac_tool_warned in
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14836 ac_tool_warned
=yes ;;
14838 OBJDUMP
=$ac_ct_OBJDUMP
14841 OBJDUMP
="$ac_cv_prog_OBJDUMP"
14847 test -z "$AS" && AS
=as
14853 test -z "$DLLTOOL" && DLLTOOL
=dlltool
14856 test -z "$OBJDUMP" && OBJDUMP
=objdump
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
14863 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
14864 if ${gl_cv_ld_output_def+:} false
; then :
14865 $as_echo_n "(cached) " >&6
14867 if test "$enable_shared" = no
; then
14868 gl_cv_ld_output_def
="not needed, shared libraries are disabled"
14870 gl_ldflags_save
=$LDFLAGS
14871 LDFLAGS
="-Wl,--output-def,conftest.def"
14872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14883 if ac_fn_c_try_link
"$LINENO"; then :
14884 gl_cv_ld_output_def
=yes
14886 gl_cv_ld_output_def
=no
14888 rm -f core conftest.err conftest.
$ac_objext \
14889 conftest
$ac_exeext conftest.
$ac_ext
14891 LDFLAGS
="$gl_ldflags_save"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
14895 $as_echo "$gl_cv_ld_output_def" >&6; }
14896 if test "x$gl_cv_ld_output_def" = "xyes"; then
14897 HAVE_LD_OUTPUT_DEF_TRUE
=
14898 HAVE_LD_OUTPUT_DEF_FALSE
='#'
14900 HAVE_LD_OUTPUT_DEF_TRUE
='#'
14901 HAVE_LD_OUTPUT_DEF_FALSE
=
14909 if test "x$PKG_CONFIG" != "x"; then :
14911 ac_config_files
="$ac_config_files libsodium.pc"
14915 ac_config_files
="$ac_config_files Makefile dist-build/Makefile msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
14917 cat >confcache
<<\_ACEOF
14918 # This file is a shell script that caches the results of configure
14919 # tests run on this system so they can be shared between configure
14920 # scripts and configure runs, see configure's option --config-cache.
14921 # It is not useful on other systems. If it contains results you don't
14922 # want to keep, you may remove or edit it.
14924 # config.status only pays attention to the cache file if you give it
14925 # the --recheck option to rerun configure.
14927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14929 # following values.
14933 # The following way of writing the cache mishandles newlines in values,
14934 # but we know of no workaround that is simple, portable, and efficient.
14935 # So, we kill variables containing newlines.
14936 # Ultrix sh set writes to stderr and can't be redirected directly,
14937 # and sets the high bit in the cache file unless we assign to the vars.
14939 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14940 eval ac_val
=\$
$ac_var
14944 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14948 _ | IFS | as_nl
) ;; #(
14949 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14950 *) { eval $ac_var=; unset $ac_var;} ;;
14956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14957 *${as_nl}ac_space
=\
*)
14958 # `set' does not quote correctly, so add quotes: double-quote
14959 # substitution turns \\\\ into \\, and sed turns \\ into \.
14962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14965 # `set' quotes correctly as required by POSIX, so do not add quotes.
14966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14979 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14980 if test -w "$cache_file"; then
14981 if test "x$cache_file" != "x/dev/null"; then
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14983 $as_echo "$as_me: updating cache $cache_file" >&6;}
14984 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14985 cat confcache
>"$cache_file"
14987 case $cache_file in #(
14989 mv -f confcache
"$cache_file"$$
&&
14990 mv -f "$cache_file"$$
"$cache_file" ;; #(
14992 mv -f confcache
"$cache_file" ;;
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15004 # Let make expand exec_prefix.
15005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15007 # Transform confdefs.h into DEFS.
15008 # Protect against shell expansion while executing Makefile rules.
15009 # Protect against Makefile macro expansion.
15011 # If the first sed substitution is executed (which looks for macros that
15012 # take arguments), then branch to the quote section. Otherwise,
15013 # look for a macro that doesn't take arguments.
15023 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15025 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15029 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15042 DEFS
=`sed -n "$ac_script" confdefs.h`
15048 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15049 # 1. Remove the extension, and $U if already installed.
15050 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15051 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15053 # will be set to the directory where LIBOBJS objects are built.
15054 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15055 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15057 LIBOBJS
=$ac_libobjs
15059 LTLIBOBJS
=$ac_ltlibobjs
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15063 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15064 if test -n "$am_sleep_pid"; then
15065 # Hide warnings about reused PIDs.
15066 wait $am_sleep_pid 2>/dev
/null
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15069 $as_echo "done" >&6; }
15070 if test -n "$EXEEXT"; then
15072 am__EXEEXT_FALSE
='#'
15074 am__EXEEXT_TRUE
='#'
15078 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15079 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15083 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
15087 as_fn_error $?
"conditional \"MINIMAL\" was never defined.
15088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15091 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15095 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
15099 as_fn_error $?
"conditional \"HAVE_AMD64_ASM\" was never defined.
15100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
15103 as_fn_error $?
"conditional \"HAVE_TI_MODE\" was never defined.
15104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
15107 as_fn_error $?
"conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 : "${CONFIG_STATUS=./config.status}"
15113 ac_clean_files_save
=$ac_clean_files
15114 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15116 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15120 # Generated by $as_me.
15121 # Run this file to recreate the current configuration.
15122 # Compiler output produced by configure, useful for debugging
15123 # configure, is in config.log if it exists.
15126 ac_cs_recheck=false
15129 SHELL=\${CONFIG_SHELL-$SHELL}
15132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15133 ## -------------------- ##
15134 ## M4sh Initialization. ##
15135 ## -------------------- ##
15137 # Be more Bourne compatible
15138 DUALCASE
=1; export DUALCASE
# for MKS sh
15139 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15142 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15143 # is contrary to our usage. Disable this feature.
15144 alias -g '${1+"$@"}'='"$@"'
15145 setopt NO_GLOB_SUBST
15147 case `(set -o) 2>/dev/null` in #(
15159 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15160 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15163 # Prefer a ksh shell builtin over an external printf program on Solaris,
15164 # but without wasting forks for bash or zsh.
15165 if test -z "$BASH_VERSION$ZSH_VERSION" \
15166 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15167 as_echo='print
-r --'
15168 as_echo_n='print
-rn --'
15169 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15170 as_echo='printf %s
\n'
15171 as_echo_n='printf %s
'
15173 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15174 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15175 as_echo_n='/usr
/ucb
/echo -n'
15177 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15178 as_echo_n_body='eval
15182 expr "X$arg" : "X\\(.*\\)$as_nl";
15183 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15185 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15187 export as_echo_n_body
15188 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15190 export as_echo_body
15191 as_echo='sh
-c $as_echo_body as_echo
'
15194 # The user is always right.
15195 if test "${PATH_SEPARATOR+set}" != set; then
15197 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15198 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15205 # We need space, tab and new line, in precisely that order. Quoting is
15206 # there to prevent editors from complaining about space-tab.
15207 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15208 # splitting by setting IFS to empty value.)
15211 # Find who we are. Look in the path if we contain no directory separator.
15214 *[\\/]* ) as_myself=$0 ;;
15215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216 for as_dir in $PATH
15219 test -z "$as_dir" && as_dir=.
15220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15226 # We did not find ourselves, most probably we were run as `sh COMMAND'
15227 # in which case we are not to be found in the path.
15228 if test "x$as_myself" = x
; then
15231 if test ! -f "$as_myself"; then
15232 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15236 # Unset variables that we do not need and which cause bugs (e.g. in
15237 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15238 # suppresses any "Segmentation fault" message there. '((' could
15239 # trigger a bug in pdksh 5.2.14.
15240 for as_var
in BASH_ENV ENV MAIL MAILPATH
15241 do eval test x\
${$as_var+set} = xset \
15242 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15255 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15258 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15259 # ----------------------------------------
15260 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15261 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15262 # script with STATUS, using 1 if that was 0.
15265 as_status
=$1; test $as_status -eq 0 && as_status
=1
15267 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15268 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15270 $as_echo "$as_me: error: $2" >&2
15271 as_fn_exit
$as_status
15275 # as_fn_set_status STATUS
15276 # -----------------------
15277 # Set $? to STATUS, without forking.
15278 as_fn_set_status
()
15281 } # as_fn_set_status
15283 # as_fn_exit STATUS
15284 # -----------------
15285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15289 as_fn_set_status
$1
15295 # Portably unset VAR.
15298 { eval $1=; unset $1;}
15300 as_unset
=as_fn_unset
15301 # as_fn_append VAR VALUE
15302 # ----------------------
15303 # Append the text in VALUE to the end of the definition contained in VAR. Take
15304 # advantage of any shell optimizations that allow amortized linear growth over
15305 # repeated appends, instead of the typical quadratic growth present in naive
15307 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15308 eval 'as_fn_append ()
15319 # as_fn_arith ARG...
15320 # ------------------
15321 # Perform arithmetic evaluation on the ARGs, and store the result in the
15322 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15323 # must be portable across $(()) and expr.
15324 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15325 eval 'as_fn_arith ()
15332 as_val
=`expr "$@" || test $? -eq 1`
15337 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15338 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15344 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15345 as_basename
=basename
15350 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15356 as_me
=`$as_basename -- "$0" ||
15357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15358 X"$0" : 'X\(//\)$' \| \
15359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15361 sed '/^.*\/\([^/][^/]*\)\/*$/{
15375 # Avoid depending upon Character Ranges.
15376 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15377 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15378 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15379 as_cr_digits
='0123456789'
15380 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15382 ECHO_C
= ECHO_N
= ECHO_T
=
15383 case `echo -n x` in #(((((
15385 case `echo 'xy\c'` in
15386 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15388 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15395 rm -f conf$$ conf$$.exe conf$$.
file
15396 if test -d conf$$.dir
; then
15397 rm -f conf$$.dir
/conf$$.
file
15400 mkdir conf$$.dir
2>/dev
/null
15402 if (echo >conf$$.
file) 2>/dev
/null
; then
15403 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15405 # ... but there are two gotchas:
15406 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15407 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15408 # In both cases, we have to default to `cp -pR'.
15409 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15411 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15419 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15420 rmdir conf$$.dir
2>/dev
/null
15425 # Create "$as_dir" as a directory, including parents if necessary.
15430 -*) as_dir
=.
/$as_dir;;
15432 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15436 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15437 *) as_qdir
=$as_dir;;
15439 as_dirs
="'$as_qdir' $as_dirs"
15440 as_dir
=`$as_dirname -- "$as_dir" ||
15441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15442 X"$as_dir" : 'X\(//\)[^/]' \| \
15443 X"$as_dir" : 'X\(//\)$' \| \
15444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15445 $as_echo X"$as_dir" |
15446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15450 /^X\(\/\/\)[^/].*/{
15463 test -d "$as_dir" && break
15465 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15466 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15470 if mkdir
-p .
2>/dev
/null
; then
15471 as_mkdir_p
='mkdir -p "$as_dir"'
15473 test -d .
/-p && rmdir .
/-p
15478 # as_fn_executable_p FILE
15479 # -----------------------
15480 # Test if FILE is an executable regular file.
15481 as_fn_executable_p
()
15483 test -f "$1" && test -x "$1"
15484 } # as_fn_executable_p
15485 as_test_x
='test -x'
15486 as_executable_p
=as_fn_executable_p
15488 # Sed expression to map a string onto a valid CPP name.
15489 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15491 # Sed expression to map a string onto a valid variable name.
15492 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15496 ## ----------------------------------- ##
15497 ## Main body of $CONFIG_STATUS script. ##
15498 ## ----------------------------------- ##
15500 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15503 # Save the log message, to keep $0 and so on meaningful, and to
15504 # report actual input values of CONFIG_FILES etc. instead of their
15505 # values after options handling.
15507 This file was extended by libsodium $as_me 1.0.0, which was
15508 generated by GNU Autoconf 2.69. Invocation command line was
15510 CONFIG_FILES = $CONFIG_FILES
15511 CONFIG_HEADERS = $CONFIG_HEADERS
15512 CONFIG_LINKS = $CONFIG_LINKS
15513 CONFIG_COMMANDS = $CONFIG_COMMANDS
15516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15521 case $ac_config_files in *"
15522 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15528 # Files that config.status was made for.
15529 config_files="$ac_config_files"
15530 config_commands="$ac_config_commands"
15534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15536 \`$as_me' instantiates files and other configuration actions
15537 from templates according to the current configuration. Unless the files
15538 and actions are specified as TAGs, all are instantiated by default.
15540 Usage: $0 [OPTION]... [TAG]...
15542 -h, --help print this help, then exit
15543 -V, --version print version number and configuration settings, then exit
15544 --config print configuration, then exit
15545 -q, --quiet, --silent
15546 do not print progress messages
15547 -d, --debug don't remove temporary files
15548 --recheck update $as_me by reconfiguring in the same conditions
15549 --file=FILE[:TEMPLATE]
15550 instantiate the configuration file FILE
15552 Configuration files:
15555 Configuration commands:
15558 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
15559 libsodium home page: <https://github.com/jedisct1/libsodium>."
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15565 libsodium config.status 1.0.0
15566 configured by $0, generated by GNU Autoconf 2.69,
15567 with options \\"\$ac_cs_config\\"
15569 Copyright (C) 2012 Free Software Foundation, Inc.
15570 This config.status script is free software; the Free Software Foundation
15571 gives unlimited permission to copy, distribute and modify it."
15578 test -n "\$AWK" || AWK=awk
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15582 # The default lists apply if the user does not specify any file.
15588 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15589 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15593 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15605 # Handling of the options.
15606 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15608 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15609 $as_echo "$ac_cs_version"; exit ;;
15610 --config |
--confi |
--conf |
--con |
--co |
--c )
15611 $as_echo "$ac_cs_config"; exit ;;
15612 --debug |
--debu |
--deb |
--de |
--d |
-d )
15614 --file |
--fil |
--fi |
--f )
15617 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15618 '') as_fn_error $?
"missing file argument" ;;
15620 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15621 ac_need_defaults
=false
;;
15622 --he |
--h |
--help |
--hel |
-h )
15623 $as_echo "$ac_cs_usage"; exit ;;
15624 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15625 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15628 # This is an error.
15629 -*) as_fn_error $?
"unrecognized option: \`$1'
15630 Try \`$0 --help' for more information." ;;
15632 *) as_fn_append ac_config_targets
" $1"
15633 ac_need_defaults
=false
;;
15639 ac_configure_extra_args
=
15641 if $ac_cs_silent; then
15643 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15648 if \$ac_cs_recheck; then
15649 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15651 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15652 CONFIG_SHELL='$SHELL'
15653 export CONFIG_SHELL
15658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15662 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15663 ## Running $as_me. ##
15669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15676 # The HP-UX ksh and POSIX shell print the target directory to stdout
15677 # if CDPATH is set.
15678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15680 sed_quote_subst='$sed_quote_subst'
15681 double_quote_subst='$double_quote_subst'
15682 delay_variable_subst='$delay_variable_subst'
15683 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15684 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15685 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15686 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15687 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15688 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15689 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15690 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15691 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15692 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15693 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15694 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15695 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15696 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15697 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15698 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15699 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15700 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15701 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15702 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15703 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15704 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15705 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15706 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15707 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15708 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15709 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15710 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15711 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15712 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15713 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15714 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15715 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15716 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15717 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15718 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15719 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15720 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15721 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15722 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15723 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15724 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15725 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15726 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15727 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15728 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15729 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15730 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15731 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15732 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15733 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15734 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15735 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15736 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15737 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15738 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15739 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"`'
15740 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15741 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15742 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15743 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15744 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15745 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15746 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15747 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15748 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15749 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15750 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15751 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15752 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15753 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15754 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15755 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15756 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15757 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15758 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15759 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15760 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15761 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15762 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15763 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15764 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15765 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15766 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15767 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15768 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15769 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15770 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15771 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15772 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15773 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15774 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15775 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15776 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15777 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15778 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15779 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15780 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15781 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15782 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15783 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15784 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15785 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15786 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15787 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15788 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15789 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15790 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15791 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15792 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15793 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15794 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15795 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15796 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15797 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15798 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15799 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15800 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15801 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15802 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15803 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15804 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15805 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15806 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15807 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15808 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15809 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15810 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15811 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15812 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15813 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15816 LTCFLAGS='$LTCFLAGS'
15817 compiler='$compiler_DEFAULT'
15819 # A function that is used when there is no print builtin or printf.
15820 func_fallback_echo ()
15822 eval 'cat <<_LTECHO_EOF
15827 # Quote evaled strings.
15842 deplibs_check_method \
15847 sharedlib_from_linklib_cmd \
15850 archiver_list_spec \
15856 lt_cv_sys_global_symbol_pipe \
15857 lt_cv_sys_global_symbol_to_cdecl \
15858 lt_cv_sys_global_symbol_to_c_name_address \
15859 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15860 nm_file_list_spec \
15861 lt_prog_compiler_no_builtin_flag \
15862 lt_prog_compiler_pic \
15863 lt_prog_compiler_wl \
15864 lt_prog_compiler_static \
15865 lt_cv_prog_compiler_c_o \
15874 export_dynamic_flag_spec \
15875 whole_archive_flag_spec \
15876 compiler_needs_object \
15878 allow_undefined_flag \
15879 no_undefined_flag \
15880 hardcode_libdir_flag_spec \
15881 hardcode_libdir_separator \
15885 variables_saved_for_relink \
15887 library_names_spec \
15889 install_override_mode \
15894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15895 *[\\\\\\\`\\"\\\$]*)
15896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15904 # Double-quote double-evaled strings.
15905 for var in reload_cmds \
15906 old_postinstall_cmds \
15907 old_postuninstall_cmds \
15909 extract_expsyms_cmds \
15910 old_archive_from_new_cmds \
15911 old_archive_from_expsyms_cmds \
15913 archive_expsym_cmds \
15915 module_expsym_cmds \
15916 export_symbols_cmds \
15920 postuninstall_cmds \
15922 sys_lib_search_path_spec \
15923 sys_lib_dlsearch_path_spec; do
15924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15925 *[\\\\\\\`\\"\\\$]*)
15926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15934 ac_aux_dir='$ac_aux_dir'
15935 xsi_shell='$xsi_shell'
15936 lt_shell_append='$lt_shell_append'
15938 # See if we are running on zsh, and set the options which allow our
15939 # commands through without removal of \ escapes INIT.
15940 if test -n "\${ZSH_VERSION+set}" ; then
15941 setopt NO_GLOB_SUBST
15947 TIMESTAMP='$TIMESTAMP'
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15958 # Handling of arguments.
15959 for ac_config_target
in $ac_config_targets
15961 case $ac_config_target in
15962 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15963 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15964 "libsodium.pc") CONFIG_FILES
="$CONFIG_FILES libsodium.pc" ;;
15965 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15966 "dist-build/Makefile") CONFIG_FILES
="$CONFIG_FILES dist-build/Makefile" ;;
15967 "msvc-scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES msvc-scripts/Makefile" ;;
15968 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15969 "src/libsodium/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libsodium/Makefile" ;;
15970 "src/libsodium/include/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libsodium/include/Makefile" ;;
15971 "src/libsodium/include/sodium/version.h") CONFIG_FILES
="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
15972 "test/default/Makefile") CONFIG_FILES
="$CONFIG_FILES test/default/Makefile" ;;
15973 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
15975 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15980 # If the user did not use the arguments to specify the items to instantiate,
15981 # then the envvar interface is used. Set only those that are not.
15982 # We use the long form for the default assignment because of an extremely
15983 # bizarre bug on SunOS 4.1.3.
15984 if $ac_need_defaults; then
15985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15989 # Have a temporary directory for convenience. Make it in the build tree
15990 # simply because there is no reason against having it here, and in addition,
15991 # creating and moving files from /tmp can sometimes cause problems.
15992 # Hook for its removal unless debugging.
15993 # Note that there is a small window in which the directory will not be cleaned:
15994 # after its creation but before its name has been assigned to `$tmp'.
15998 trap 'exit_status=$?
15999 : "${ac_tmp:=$tmp}"
16000 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16002 trap 'as_fn_exit 1' 1 2 13 15
16004 # Create a (secure) tmp directory for tmp files.
16007 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16011 tmp
=.
/conf$$
-$RANDOM
16012 (umask 077 && mkdir
"$tmp")
16013 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16016 # Set up the scripts for CONFIG_FILES section.
16017 # No need to generate them if there are no CONFIG_FILES.
16018 # This happens for instance with `./config.status config.h'.
16019 if test -n "$CONFIG_FILES"; then
16022 ac_cr
=`echo X | tr X '\015'`
16023 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16024 # But we know of no other shell where ac_cr would be empty at this
16025 # point, so we can use a bashism as a fallback.
16026 if test "x$ac_cr" = x
; then
16027 eval ac_cr
=\$
\'\\r
\'
16029 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16030 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16033 ac_cs_awk_cr
=$ac_cr
16036 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16041 echo "cat >conf$$subs.awk <<_ACEOF" &&
16042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16044 } >conf$$subs.sh ||
16045 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16046 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16048 for ac_last_try in false false false false false :; do
16049 . ./conf$$subs.sh ||
16050 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16052 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16053 if test $ac_delim_n = $ac_delim_num; then
16055 elif $ac_last_try; then
16056 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16058 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16061 rm -f conf$$subs.sh
16063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16068 s/^/S["/; s
/!.
*/"]=/
16078 s/\(.\{148\}\)..*/\1/
16080 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16085 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16092 s/\(.\{148\}\)..*/\1/
16094 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16098 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16103 ' <conf$$subs.awk | sed '
16108 ' >>$CONFIG_STATUS || ac_write_fail=1
16109 rm -f conf$$subs.awk
16110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16113 for (key in S) S_is_set[key] = 1
16119 nfields = split(line, field, "@
")
16121 len = length(field[1])
16122 for (i = 2; i < nfields; i++) {
16124 keylen = length(key)
16125 if (S_is_set[key]) {
16127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16128 len += length(value) + length(field[++i])
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16141 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16144 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16145 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16148 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16149 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16150 # trailing colons and then remove the whole line if VPATH becomes empty
16151 # (actually we leave an empty line to preserve line numbers).
16152 if test "x
$srcdir" = x.; then
16153 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16172 fi # test -n "$CONFIG_FILES"
16175 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
16180 :[FHLC]) ac_mode=$ac_tag; continue;;
16182 case $ac_mode$ac_tag in
16184 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
16185 :[FH]-) ac_tag=-:-;;
16186 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16203 -) ac_f="$ac_tmp/stdin";;
16204 *) # Look for the file first in the build tree, then in the source tree
16205 # (if the path is not absolute). The absolute path cannot be DOS-style,
16206 # because $ac_f cannot contain `:'.
16210 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16212 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16214 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
16215 as_fn_append ac_file_inputs " '$ac_f'"
16218 # Let's still pretend it is `configure' which instantiates (i.e., don't
16219 # use $as_me), people would be surprised to read:
16220 # /* config.h. Generated by config.status. */
16221 configure_input='Generated from '`
16222 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16224 if test x"$ac_file" != x-; then
16225 configure_input="$ac_file.
$configure_input"
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
16227 $as_echo "$as_me: creating
$ac_file" >&6;}
16229 # Neutralize special characters interpreted by sed in replacement strings.
16230 case $configure_input in #(
16231 *\&* | *\|* | *\\* )
16232 ac_sed_conf_input=`$as_echo "$configure_input" |
16233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16234 *) ac_sed_conf_input=$configure_input;;
16238 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
16239 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
16244 ac_dir=`$as_dirname -- "$ac_file" ||
16245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16246 X"$ac_file" : 'X\(//\)[^/]' \| \
16247 X"$ac_file" : 'X\(//\)$' \| \
16248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16249 $as_echo X"$ac_file" |
16250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16254 /^X\(\/\/\)[^/].*/{
16267 as_dir="$ac_dir"; as_fn_mkdir_p
16271 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16273 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16274 # A "..
" for each directory in $ac_dir_suffix.
16275 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16276 case $ac_top_builddir_sub in
16277 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16278 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16281 ac_abs_top_builddir=$ac_pwd
16282 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16283 # for backward compatibility:
16284 ac_top_builddir=$ac_top_build_prefix
16287 .) # We are building in place.
16289 ac_top_srcdir=$ac_top_builddir_sub
16290 ac_abs_top_srcdir=$ac_pwd ;;
16291 [\\/]* | ?:[\\/]* ) # Absolute name.
16292 ac_srcdir=$srcdir$ac_dir_suffix;
16293 ac_top_srcdir=$srcdir
16294 ac_abs_top_srcdir=$srcdir ;;
16295 *) # Relative name.
16296 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16297 ac_top_srcdir=$ac_top_build_prefix$srcdir
16298 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16300 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16310 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16311 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16313 ac_MKDIR_P=$MKDIR_P
16315 [\\/$]* | ?:[\\/]* ) ;;
16316 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16321 # If the template does not know about datarootdir, expand it.
16322 # FIXME: This hack should be removed a few years after 2.60.
16323 ac_datarootdir_hack=; ac_datarootdir_seen=
16334 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
16335 *datarootdir*) ac_datarootdir_seen=yes;;
16336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
16338 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 ac_datarootdir_hack='
16342 s&@datadir@&$datadir&g
16343 s&@docdir@&$docdir&g
16344 s&@infodir@&$infodir&g
16345 s&@localedir@&$localedir&g
16346 s&@mandir@&$mandir&g
16347 s&\\\${datarootdir}&$datarootdir&g' ;;
16351 # Neutralize VPATH when `$srcdir' = `.'.
16352 # Shell code in configure.ac might set extrasub.
16353 # FIXME: do we really want to maintain this feature?
16354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355 ac_sed_extra="$ac_vpsub
16358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16360 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16361 s|@configure_input@|
$ac_sed_conf_input|
;t t
16362 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16363 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16364 s
&@srcdir@
&$ac_srcdir&;t t
16365 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16366 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16367 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16368 s
&@builddir@
&$ac_builddir&;t t
16369 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16370 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16371 s
&@INSTALL@
&$ac_INSTALL&;t t
16372 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16373 $ac_datarootdir_hack
16375 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16376 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16379 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16381 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16383 which seems to be undefined. Please make sure it is defined" >&5
16384 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16385 which seems to be undefined. Please make sure it is defined" >&2;}
16387 rm -f "$ac_tmp/stdin"
16389 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16390 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16396 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16397 $as_echo "$as_me: executing $ac_file commands" >&6;}
16402 case $ac_file$ac_mode in
16403 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16404 # Older Autoconf quotes --file arguments for eval, but not when files
16405 # are listed without --file. Let's play safe and only
enable the
eval
16406 # if we detect the quoting.
16407 case $CONFIG_FILES in
16408 *\'*) eval set x
"$CONFIG_FILES" ;;
16409 *) set x
$CONFIG_FILES ;;
16414 # Strip MF so we end up with the name of the file.
16415 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16416 # Check whether this is an Automake generated Makefile or not.
16417 # We used to match only the files named 'Makefile.in', but
16418 # some people rename them; so instead we look at the file content.
16419 # Grep'ing the first line is not enough: some people post-process
16420 # each Makefile.in and add a new line on top of each file to say so.
16421 # Grep'ing the whole file is not good either: AIX grep has a line
16422 # limit of 2048, but all sed's we know have understand at least 4000.
16423 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16424 dirpart
=`$as_dirname -- "$mf" ||
16425 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16426 X"$mf" : 'X\(//\)[^/]' \| \
16427 X"$mf" : 'X\(//\)$' \| \
16428 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16434 /^X\(\/\/\)[^/].*/{
16450 # Extract the definition of DEPDIR, am__include, and am__quote
16451 # from the Makefile without running 'make'.
16452 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16453 test -z "$DEPDIR" && continue
16454 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16455 test -z "$am__include" && continue
16456 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16457 # Find all dependency output files, they are included files with
16458 # $(DEPDIR) in their names. We invoke sed twice because it is the
16459 # simplest approach to changing $(DEPDIR) to its actual value in the
16461 for file in `sed -n "
16462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16464 # Make sure the directory exists.
16465 test -f "$dirpart/$file" && continue
16466 fdir
=`$as_dirname -- "$file" ||
16467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$file" : 'X\(//\)[^/]' \| \
16469 X"$file" : 'X\(//\)$' \| \
16470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16471 $as_echo X"$file" |
16472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16476 /^X\(\/\/\)[^/].*/{
16489 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16490 # echo "creating $dirpart/$file"
16491 echo '# dummy' > "$dirpart/$file"
16498 # See if we are running on zsh, and set the options which allow our
16499 # commands through without removal of \ escapes.
16500 if test -n "${ZSH_VERSION+set}" ; then
16501 setopt NO_GLOB_SUBST
16504 cfgfile
="${ofile}T"
16505 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16508 cat <<_LT_EOF >> "$cfgfile"
16511 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16512 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16516 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16517 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16519 # Written by Gordon Matzigkeit, 1996
16521 # This file is part of GNU Libtool.
16523 # GNU Libtool is free software; you can redistribute it and/or
16524 # modify it under the terms of the GNU General Public License as
16525 # published by the Free Software Foundation; either version 2 of
16526 # the License, or (at your option) any later version.
16528 # As a special exception to the GNU General Public License,
16529 # if you distribute this file as part of a program or library that
16530 # is built using GNU Libtool, you may include this file under the
16531 # same distribution terms that you use for the rest of that program.
16533 # GNU Libtool is distributed in the hope that it will be useful,
16534 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16536 # GNU General Public License for more details.
16538 # You should have received a copy of the GNU General Public License
16539 # along with GNU Libtool; see the file COPYING. If not, a copy
16540 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16541 # obtained by writing to the Free Software Foundation, Inc.,
16542 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16545 # The names of the tagged configurations supported by this script.
16548 # ### BEGIN LIBTOOL CONFIG
16550 # Which release of libtool.m4 was used?
16551 macro_version=$macro_version
16552 macro_revision=$macro_revision
16554 # Whether or not to build shared libraries.
16555 build_libtool_libs=$enable_shared
16557 # Whether or not to build static libraries.
16558 build_old_libs=$enable_static
16560 # What type of objects to build.
16563 # Whether or not to optimize for fast installation.
16564 fast_install=$enable_fast_install
16566 # Shell to use when invoking shell scripts.
16569 # An echo program that protects backslashes.
16572 # The PATH separator for the build system.
16573 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16576 host_alias=$host_alias
16580 # The build system.
16581 build_alias=$build_alias
16585 # A sed program that does not truncate output.
16588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16589 Xsed="\$SED -e 1s/^X//"
16591 # A grep program that handles long lines.
16597 # A literal string matcher.
16600 # A BSD- or MS-compatible name lister.
16603 # Whether we need soft or hard links.
16606 # What is the maximum length of a command?
16607 max_cmd_len=$max_cmd_len
16609 # Object file suffix (normally "o").
16612 # Executable file suffix (normally "").
16615 # whether the shell understands "unset".
16618 # turn spaces into newlines.
16621 # turn newlines into spaces.
16624 # convert \$build file names to \$host format.
16625 to_host_file_cmd=$lt_cv_to_host_file_cmd
16627 # convert \$build files to toolchain format.
16628 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16630 # An object symbol dumper.
16631 OBJDUMP=$lt_OBJDUMP
16633 # Method to check whether dependent libraries are shared objects.
16634 deplibs_check_method=$lt_deplibs_check_method
16636 # Command to use when deplibs_check_method = "file_magic".
16637 file_magic_cmd=$lt_file_magic_cmd
16639 # How to find potential files when deplibs_check_method = "file_magic".
16640 file_magic_glob=$lt_file_magic_glob
16642 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16643 want_nocaseglob=$lt_want_nocaseglob
16645 # DLL creation program.
16646 DLLTOOL=$lt_DLLTOOL
16648 # Command to associate shared and link libraries.
16649 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16654 # Flags to create an archive.
16655 AR_FLAGS=$lt_AR_FLAGS
16657 # How to feed a file listing to the archiver.
16658 archiver_list_spec=$lt_archiver_list_spec
16660 # A symbol stripping program.
16663 # Commands used to install an old-style archive.
16665 old_postinstall_cmds=$lt_old_postinstall_cmds
16666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16668 # Whether to use a lock for old archive extraction.
16669 lock_old_archive_extraction=$lock_old_archive_extraction
16674 # LTCC compiler flags.
16675 LTCFLAGS=$lt_CFLAGS
16677 # Take the output of nm and produce a listing of raw symbols and C names.
16678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16680 # Transform the output of nm in a proper C declaration.
16681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16683 # Transform the output of nm in a C name address pair.
16684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16686 # Transform the output of nm in a C name address pair when lib prefix is needed.
16687 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16689 # Specify filename containing input files for \$NM.
16690 nm_file_list_spec=$lt_nm_file_list_spec
16692 # The root where to search for dependent libraries,and in which our libraries should be installed.
16693 lt_sysroot=$lt_sysroot
16695 # The name of the directory that contains temporary libtool files.
16698 # Used to examine libraries when file_magic_cmd begins with "file".
16699 MAGIC_CMD=$MAGIC_CMD
16701 # Must we lock files when doing compilation?
16702 need_locks=$lt_need_locks
16705 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16707 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16708 DSYMUTIL=$lt_DSYMUTIL
16710 # Tool to change global to local symbols on Mac OS X.
16713 # Tool to manipulate fat objects and archives on Mac OS X.
16716 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16719 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16720 OTOOL64=$lt_OTOOL64
16722 # Old archive suffix (normally "a").
16725 # Shared library suffix (normally ".so").
16726 shrext_cmds=$lt_shrext_cmds
16728 # The commands to extract the exported symbol list from a shared archive.
16729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16731 # Variables whose values should be saved in libtool wrapper scripts and
16732 # restored at link time.
16733 variables_saved_for_relink=$lt_variables_saved_for_relink
16735 # Do we need the "lib" prefix for modules?
16736 need_lib_prefix=$need_lib_prefix
16738 # Do we need a version for libraries?
16739 need_version=$need_version
16741 # Library versioning type.
16742 version_type=$version_type
16744 # Shared library runtime path variable.
16745 runpath_var=$runpath_var
16747 # Shared library path variable.
16748 shlibpath_var=$shlibpath_var
16750 # Is shlibpath searched before the hard-coded library search path?
16751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16753 # Format of library name prefix.
16754 libname_spec=$lt_libname_spec
16756 # List of archive names. First name is the real one, the rest are links.
16757 # The last name is the one that the linker finds with -lNAME
16758 library_names_spec=$lt_library_names_spec
16760 # The coded name of the library, if different from the real name.
16761 soname_spec=$lt_soname_spec
16763 # Permission mode override for installation of shared libraries.
16764 install_override_mode=$lt_install_override_mode
16766 # Command to use after installation of a shared archive.
16767 postinstall_cmds=$lt_postinstall_cmds
16769 # Command to use after uninstallation of a shared archive.
16770 postuninstall_cmds=$lt_postuninstall_cmds
16772 # Commands used to finish a libtool library installation in a directory.
16773 finish_cmds=$lt_finish_cmds
16775 # As "finish_cmds", except a single script fragment to be evaled but
16777 finish_eval=$lt_finish_eval
16779 # Whether we should hardcode library paths into libraries.
16780 hardcode_into_libs=$hardcode_into_libs
16782 # Compile-time system search path for libraries.
16783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16785 # Run-time system search path for libraries.
16786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16788 # Whether dlopen is supported.
16789 dlopen_support=$enable_dlopen
16791 # Whether dlopen of programs is supported.
16792 dlopen_self=$enable_dlopen_self
16794 # Whether dlopen of statically linked programs is supported.
16795 dlopen_self_static=$enable_dlopen_self_static
16797 # Commands to strip libraries.
16798 old_striplib=$lt_old_striplib
16799 striplib=$lt_striplib
16801 # Assembler program.
16805 # The linker used to build libraries.
16808 # How to create reloadable object files.
16809 reload_flag=$lt_reload_flag
16810 reload_cmds=$lt_reload_cmds
16812 # Commands used to build an old-style archive.
16813 old_archive_cmds=$lt_old_archive_cmds
16815 # A language specific compiler.
16818 # Is the compiler the GNU compiler?
16821 # Compiler flag to turn off builtin functions.
16822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16824 # Additional compiler flags for building library objects.
16825 pic_flag=$lt_lt_prog_compiler_pic
16827 # How to pass a linker flag through the compiler.
16828 wl=$lt_lt_prog_compiler_wl
16830 # Compiler flag to prevent dynamic linking.
16831 link_static_flag=$lt_lt_prog_compiler_static
16833 # Does compiler simultaneously support -c and -o options?
16834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16836 # Whether or not to add -lc for building shared libraries.
16837 build_libtool_need_lc=$archive_cmds_need_lc
16839 # Whether or not to disallow shared libs when runtime libs are static.
16840 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16842 # Compiler flag to allow reflexive dlopens.
16843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16845 # Compiler flag to generate shared objects directly from archives.
16846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16848 # Whether the compiler copes with passing no objects directly.
16849 compiler_needs_object=$lt_compiler_needs_object
16851 # Create an old-style archive from a shared archive.
16852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16854 # Create a temporary old-style archive to link instead of a shared archive.
16855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16857 # Commands used to build a shared archive.
16858 archive_cmds=$lt_archive_cmds
16859 archive_expsym_cmds=$lt_archive_expsym_cmds
16861 # Commands used to build a loadable module if different from building
16862 # a shared archive.
16863 module_cmds=$lt_module_cmds
16864 module_expsym_cmds=$lt_module_expsym_cmds
16866 # Whether we are building with GNU ld or not.
16867 with_gnu_ld=$lt_with_gnu_ld
16869 # Flag that allows shared libraries with undefined symbols to be built.
16870 allow_undefined_flag=$lt_allow_undefined_flag
16872 # Flag that enforces no undefined symbols.
16873 no_undefined_flag=$lt_no_undefined_flag
16875 # Flag to hardcode \$libdir into a binary during linking.
16876 # This must work even if \$libdir does not exist
16877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16879 # Whether we need a single "-rpath" flag with a separated argument.
16880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16883 # DIR into the resulting binary.
16884 hardcode_direct=$hardcode_direct
16886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16887 # DIR into the resulting binary and the resulting library dependency is
16888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16889 # library is relocated.
16890 hardcode_direct_absolute=$hardcode_direct_absolute
16892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16893 # into the resulting binary.
16894 hardcode_minus_L=$hardcode_minus_L
16896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16897 # into the resulting binary.
16898 hardcode_shlibpath_var=$hardcode_shlibpath_var
16900 # Set to "yes" if building a shared library automatically hardcodes DIR
16901 # into the library and all subsequent libraries and executables linked
16903 hardcode_automatic=$hardcode_automatic
16905 # Set to yes if linker adds runtime paths of dependent libraries
16906 # to runtime path list.
16907 inherit_rpath=$inherit_rpath
16909 # Whether libtool must link a program against all its dependency libraries.
16910 link_all_deplibs=$link_all_deplibs
16912 # Set to "yes" if exported symbols are required.
16913 always_export_symbols=$always_export_symbols
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds
16918 # Symbols that should not be listed in the preloaded symbols.
16919 exclude_expsyms=$lt_exclude_expsyms
16921 # Symbols that must always be exported.
16922 include_expsyms=$lt_include_expsyms
16924 # Commands necessary for linking programs (against libraries) with templates.
16925 prelink_cmds=$lt_prelink_cmds
16927 # Commands necessary for finishing linking programs.
16928 postlink_cmds=$lt_postlink_cmds
16930 # Specify filename containing input files.
16931 file_list_spec=$lt_file_list_spec
16933 # How to hardcode a shared library path into an executable.
16934 hardcode_action=$hardcode_action
16936 # ### END LIBTOOL CONFIG
16942 cat <<\_LT_EOF
>> "$cfgfile"
16943 # AIX sometimes has problems with the GCC collect2 program. For some
16944 # reason, if we set the COLLECT_NAMES environment variable, the problems
16945 # vanish in a puff of smoke.
16946 if test "X${COLLECT_NAMES+set}" != Xset
; then
16948 export COLLECT_NAMES
16955 ltmain
="$ac_aux_dir/ltmain.sh"
16958 # We use sed instead of cat because bash on DJGPP gets confused if
16959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16960 # text mode, it properly converts lines to CR/LF. This bash problem
16961 # is reportedly fixed, but why not run on old versions too?
16962 sed '$q' "$ltmain" >> "$cfgfile" \
16963 ||
(rm -f "$cfgfile"; exit 1)
16965 if test x
"$xsi_shell" = xyes
; then
16966 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16970 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16971 \ * ) func_dirname_result="${3}" ;;\
16973 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16974 && mv -f "$cfgfile.tmp" "$cfgfile" \
16975 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16976 test 0 -eq $? || _lt_function_replace_fail
=:
16979 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16982 \ func_basename_result="${1##*/}"\
16983 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16984 && mv -f "$cfgfile.tmp" "$cfgfile" \
16985 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16986 test 0 -eq $? || _lt_function_replace_fail
=:
16989 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16990 func_dirname_and_basename ()\
16993 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16994 \ * ) func_dirname_result="${3}" ;;\
16996 \ func_basename_result="${1##*/}"\
16997 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16998 && mv -f "$cfgfile.tmp" "$cfgfile" \
16999 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000 test 0 -eq $? || _lt_function_replace_fail
=:
17003 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17006 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17007 \ # positional parameters, so assign one to ordinary parameter first.\
17008 \ func_stripname_result=${3}\
17009 \ func_stripname_result=${func_stripname_result#"${1}"}\
17010 \ func_stripname_result=${func_stripname_result%"${2}"}\
17011 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17012 && mv -f "$cfgfile.tmp" "$cfgfile" \
17013 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17014 test 0 -eq $? || _lt_function_replace_fail
=:
17017 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17018 func_split_long_opt ()\
17020 \ func_split_long_opt_name=${1%%=*}\
17021 \ func_split_long_opt_arg=${1#*=}\
17022 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17023 && mv -f "$cfgfile.tmp" "$cfgfile" \
17024 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17025 test 0 -eq $? || _lt_function_replace_fail
=:
17028 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17029 func_split_short_opt ()\
17031 \ func_split_short_opt_arg=${1#??}\
17032 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17033 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17034 && mv -f "$cfgfile.tmp" "$cfgfile" \
17035 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17036 test 0 -eq $? || _lt_function_replace_fail
=:
17039 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17043 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17044 \ *) func_lo2o_result=${1} ;;\
17046 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17047 && mv -f "$cfgfile.tmp" "$cfgfile" \
17048 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17049 test 0 -eq $? || _lt_function_replace_fail
=:
17052 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17055 func_xform_result=${1%.*}.lo\
17056 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17057 && mv -f "$cfgfile.tmp" "$cfgfile" \
17058 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17059 test 0 -eq $? || _lt_function_replace_fail
=:
17062 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17065 func_arith_result=$(( $* ))\
17066 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17067 && mv -f "$cfgfile.tmp" "$cfgfile" \
17068 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17069 test 0 -eq $? || _lt_function_replace_fail
=:
17072 sed -e '/^func_len ()$/,/^} # func_len /c\
17075 func_len_result=${#1}\
17076 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17077 && mv -f "$cfgfile.tmp" "$cfgfile" \
17078 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17079 test 0 -eq $? || _lt_function_replace_fail
=:
17083 if test x
"$lt_shell_append" = xyes
; then
17084 sed -e '/^func_append ()$/,/^} # func_append /c\
17087 eval "${1}+=\\${2}"\
17088 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17089 && mv -f "$cfgfile.tmp" "$cfgfile" \
17090 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17091 test 0 -eq $? || _lt_function_replace_fail
=:
17094 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17095 func_append_quoted ()\
17097 \ func_quote_for_eval "${2}"\
17098 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17099 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17100 && mv -f "$cfgfile.tmp" "$cfgfile" \
17101 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail
=:
17105 # Save a `func_append' function call where possible by direct use of '+='
17106 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17107 && mv -f "$cfgfile.tmp" "$cfgfile" \
17108 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17109 test 0 -eq $? || _lt_function_replace_fail
=:
17111 # Save a `func_append' function call even when '+=' is not available
17112 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17113 && mv -f "$cfgfile.tmp" "$cfgfile" \
17114 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17115 test 0 -eq $? || _lt_function_replace_fail
=:
17118 if test x
"$_lt_function_replace_fail" = x
":"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17120 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17124 mv -f "$cfgfile" "$ofile" ||
17125 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17136 ac_clean_files
=$ac_clean_files_save
17138 test $ac_write_fail = 0 ||
17139 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17142 # configure is writing to config.log, and then calls config.status.
17143 # config.status does its own redirection, appending to config.log.
17144 # Unfortunately, on DOS this fails, as config.log is still kept open
17145 # by configure, so config.status won't be able to write to it; its
17146 # output is simply discarded. So we exec the FD to /dev/null,
17147 # effectively closing config.log, so it can be properly (re)opened and
17148 # appended to by config.status. When coming back to configure, we
17149 # need to make the FD available again.
17150 if test "$no_create" != yes; then
17152 ac_config_status_args
=
17153 test "$silent" = yes &&
17154 ac_config_status_args
="$ac_config_status_args --quiet"
17156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17159 # would make configure fail if this is the last instruction.
17160 $ac_cs_success || as_fn_exit
1
17162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}