2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for json-c 0.13.1.
5 # Report bugs to <json-c@googlegroups.com>.
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: json-c@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: 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='json-c'
592 PACKAGE_TARNAME='json-c'
593 PACKAGE_VERSION='0.13.1'
594 PACKAGE_STRING='json-c 0.13.1'
595 PACKAGE_BUGREPORT='json-c@googlegroups.com'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
637 JSON_BSYMBOLIC_LDFLAGS
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
757 enable_dependency_tracking
767 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=no ;;
1144 # Obsolete; use --with-x.
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures json-c 0.13.1 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/json-c]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of json-c 0.13.1:";;
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: "make V=1")
1395 --disable-silent-rules verbose build output (undo: "make V=0")
1396 --enable-threading Enable code to support partly multi-threaded use
1397 --enable-rdrand Enable RDRAND Hardware RNG Hash Seed generation on
1398 supported x86/x64 platforms.
1399 --enable-dependency-tracking
1400 do not reject slow dependency extractors
1401 --disable-dependency-tracking
1402 speeds up one-time build
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --disable-Bsymbolic Avoid linking with -Bsymbolic-function
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-sysroot=DIR Search for dependent libraries within DIR
1417 (or the compiler's sysroot if not specified).
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to <json-c@googlegroups.com>.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 json-c configure 0.13.1
1496 generated by GNU Autoconf 2.69
1498 Copyright (C) 2012 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1584 # ac_fn_c_try_run LINENO
1585 # ----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587 # that executables *can* be run.
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_link"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>&5
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602 { { case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_try") 2>&5
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; }; }; then :
1614 $as_echo "$as_me: program exited with status $ac_status" >&5
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1618 ac_retval=$ac_status
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1631 ac_fn_c_check_header_mongrel ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1655 ac_header_compiler=no
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1671 ac_header_preproc=no
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ( $as_echo "## -------------------------------------- ##
1697 ## Report this to json-c@googlegroups.com ##
1698 ## -------------------------------------- ##"
1699 ) | sed "s/^/$as_me: WARNING: /" >&2
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 eval "$3=\$ac_header_compiler"
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 } # ac_fn_c_check_header_mongrel
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1734 if ac_fn_c_try_compile "$LINENO"; then :
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_compile
1748 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749 # -------------------------------------------
1750 # Tests whether TYPE exists after having included INCLUDES, setting cache
1751 # variable VAR accordingly.
1752 ac_fn_c_check_type ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_type
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_check_func LINENO FUNC VAR
1849 # ----------------------------------
1850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1851 ac_fn_c_check_func ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1863 #define $2 innocuous_$2
1865 /* System header to define __stub macros and hopefully few prototypes,
1866 which can conflict with char $2 (); below.
1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868 <limits.h> exists even on freestanding compilers. */
1871 # include <limits.h>
1873 # include <assert.h>
1878 /* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1885 /* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888 #if defined __stub_$2 || defined __stub___$2
1900 if ac_fn_c_try_link "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext \
1906 conftest$ac_exeext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_func
1915 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1916 # ---------------------------------------------
1917 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1919 ac_fn_c_check_decl ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 as_decl_name=`echo $2|sed 's/ *(.*//'`
1923 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1925 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1935 #ifndef $as_decl_name
1937 (void) $as_decl_use;
1939 (void) $as_decl_name;
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_decl
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1964 It was created by json-c $as_me 0.13.1, which was
1965 generated by GNU Autoconf 2.69. Invocation command line was
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 $as_echo "PATH: $as_dir"
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_must_keep_next=false
2031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033 | -silent | --silent | --silen | --sile | --sil)
2036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2041 as_fn_append ac_configure_args1 " '$ac_arg'"
2042 if test $ac_must_keep_next = true; then
2043 ac_must_keep_next=false # Got value, back to normal.
2046 *=* | --config-cache | -C | -disable-* | --disable-* \
2047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049 | -with-* | --with-* | -without-* | --without-* | --x)
2050 case "$ac_configure_args0 " in
2051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 -* ) ac_must_keep_next=true ;;
2057 as_fn_append ac_configure_args " '$ac_arg'"
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log. We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071 # Save into config.log some information that might help in debugging.
2075 $as_echo "## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##"
2079 # The following way of writing the cache mishandles newlines in values,
2081 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082 eval ac_val=\$$ac_var
2086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 _ | IFS | as_nl) ;; #(
2091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092 *) { eval $ac_var=; unset $ac_var;} ;;
2097 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098 *${as_nl}ac_space=\ *)
2100 "s/'\''/'\''\\\\'\'''\''/g;
2101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 $as_echo "## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##"
2115 for ac_var in $ac_subst_vars
2117 eval ac_val=\$$ac_var
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -n "$ac_subst_files"; then
2126 $as_echo "## ------------------- ##
2127 ## File substitutions. ##
2128 ## ------------------- ##"
2130 for ac_var in $ac_subst_files
2132 eval ac_val=\$$ac_var
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 $as_echo "$ac_var='\''$ac_val'\''"
2141 if test -s confdefs.h; then
2142 $as_echo "## ----------- ##
2149 test "$ac_signal" != 0 &&
2150 $as_echo "$as_me: caught signal $ac_signal"
2151 $as_echo "$as_me: exit $exit_status"
2153 rm -f core *.core core.conftest.* &&
2154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 for ac_signal in 1 2 13 15; do
2158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2165 $as_echo "/* confdefs.h */" > confdefs.h
2167 # Predefined preprocessor variables.
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2198 if test -n "$CONFIG_SITE"; then
2199 # We do not want a PATH search for config.site.
2200 case $CONFIG_SITE in #((
2201 -*) ac_site_file1=./$CONFIG_SITE;;
2202 */*) ac_site_file1=$CONFIG_SITE;;
2203 *) ac_site_file1=./$CONFIG_SITE;;
2205 elif test "x$prefix" != xNONE; then
2206 ac_site_file1=$prefix/share/config.site
2207 ac_site_file2=$prefix/etc/config.site
2209 ac_site_file1=$ac_default_prefix/share/config.site
2210 ac_site_file2=$ac_default_prefix/etc/config.site
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214 test "x$ac_site_file" = xNONE && continue
2215 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218 sed 's/^/| /' "$ac_site_file" >&5
2220 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See \`config.log' for more details" "$LINENO" 5; }
2227 if test -r "$cache_file"; then
2228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244 # Check that the precious variables saved in the cache have kept the same
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249 eval ac_new_set=\$ac_env_${ac_var}_set
2250 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251 eval ac_new_val=\$ac_env_${ac_var}_value
2252 case $ac_old_set,$ac_new_set in
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2263 if test "x$ac_old_val" != "x$ac_new_val"; then
2264 # differences in whitespace do not lead to failure.
2265 ac_old_val_w=`echo x $ac_old_val`
2266 ac_new_val_w=`echo x $ac_new_val`
2267 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270 ac_cache_corrupted=:
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274 eval $ac_var=\$ac_old_val
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2277 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2279 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 # Pass precious variables to config.status.
2283 if test "$ac_new_set" = set; then
2285 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286 *) ac_arg=$ac_var=$ac_new_val ;;
2288 case " $ac_configure_args " in
2289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2290 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294 if $ac_cache_corrupted; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2301 ## -------------------- ##
2302 ## Main body of script. ##
2303 ## -------------------- ##
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 am__api_version='1.14'
2316 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2317 if test -f "$ac_dir/install-sh"; then
2319 ac_install_sh="$ac_aux_dir/install-sh -c"
2321 elif test -f "$ac_dir/install.sh"; then
2323 ac_install_sh="$ac_aux_dir/install.sh -c"
2325 elif test -f "$ac_dir/shtool"; then
2327 ac_install_sh="$ac_aux_dir/shtool install -c"
2331 if test -z "$ac_aux_dir"; then
2332 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2341 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2344 # Find a good install program. We prefer a C program (faster),
2345 # so one script is as good as another. But avoid the broken or
2346 # incompatible versions:
2347 # SysV /etc/install, /usr/sbin/install
2348 # SunOS /usr/etc/install
2349 # IRIX /sbin/install
2351 # AmigaOS /C/install, which installs bootblocks on floppy discs
2352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2355 # OS/2's system install, which has a completely different semantic
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 # Reject install programs that cannot install multiple files.
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2359 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2360 if test -z "$INSTALL"; then
2361 if ${ac_cv_path_install+:} false; then :
2362 $as_echo_n "(cached) " >&6
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 # Account for people who put trailing slashes in PATH elements.
2370 case $as_dir/ in #((
2371 ./ | .// | /[cC]/* | \
2372 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2373 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2376 # OSF1 and SCO ODT 3.0 have their own names for install.
2377 # Don't use installbsd from OSF since it installs stuff as root
2379 for ac_prog in ginstall scoinst install; do
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2382 if test $ac_prog = install &&
2383 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # AIX install. It has an incompatible calling convention.
2386 elif test $ac_prog = install &&
2387 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388 # program-specific install script used by HP pwplus--don't use.
2391 rm -rf conftest.one conftest.two conftest.dir
2392 echo one > conftest.one
2393 echo two > conftest.two
2395 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2396 test -s conftest.one && test -s conftest.two &&
2397 test -s conftest.dir/conftest.one &&
2398 test -s conftest.dir/conftest.two
2400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2413 rm -rf conftest.one conftest.two conftest.dir
2416 if test "${ac_cv_path_install+set}" = set; then
2417 INSTALL=$ac_cv_path_install
2419 # As a last resort, use the slow shell script. Don't cache a
2420 # value for INSTALL within a source directory, because that will
2421 # break other packages using the cache if that directory is
2422 # removed, or if the value is a relative name.
2423 INSTALL=$ac_install_sh
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2427 $as_echo "$INSTALL" >&6; }
2429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2430 # It thinks the first close brace ends the variable substitution.
2431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2433 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2438 $as_echo_n "checking whether build environment is sane... " >&6; }
2439 # Reject unsafe characters in $srcdir or the absolute working directory
2440 # name. Accept space and tab only in the latter.
2444 *[\\\"\#\$\&\'\`$am_lf]*)
2445 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2448 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2449 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2452 # Do 'set' in a subshell so we don't clobber the current shell's
2453 # arguments. Must try -L first in case configure is actually a
2454 # symlink; some systems play weird games with the mod time of symlinks
2455 # (eg FreeBSD returns the mod time of the symlink's containing
2459 for am_try in 1 2; do
2460 echo "timestamp, slept: $am_has_slept" > conftest.file
2461 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2462 if test "$*" = "X"; then
2464 set X `ls -t "$srcdir/configure" conftest.file`
2466 if test "$*" != "X $srcdir/configure conftest.file" \
2467 && test "$*" != "X conftest.file $srcdir/configure"; then
2469 # If neither matched, then we have a broken ls. This can happen
2470 # if, for instance, CONFIG_SHELL is bash and it inherits a
2471 # broken ls alias from the environment. This has actually
2472 # happened. Such a system could not be considered "sane".
2473 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2474 alias in your environment" "$LINENO" 5
2476 if test "$2" = conftest.file || test $am_try -eq 2; then
2483 test "$2" = conftest.file
2489 as_fn_error $? "newly created file is older than distributed files!
2490 Check your system clock" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 # If we didn't sleep, we still need to ensure time stamps of config.status and
2495 # generated files are strictly newer.
2497 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2504 test "$program_prefix" != NONE &&
2505 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2506 # Use a double $ so make ignores it.
2507 test "$program_suffix" != NONE &&
2508 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2509 # Double any \ or $.
2510 # By default was `s,x,x', remove it if useless.
2511 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2512 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2514 # Expand $ac_aux_dir to an absolute path.
2515 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2517 if test x"${MISSING+set}" != xset; then
2520 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2522 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2525 # Use eval to expand $SHELL
2526 if eval "$MISSING --is-lightweight"; then
2527 am_missing_run="$MISSING "
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2531 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2534 if test x"${install_sh}" != xset; then
2537 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2539 install_sh="\${SHELL} $am_aux_dir/install-sh"
2543 # Installed binaries are usually stripped using 'strip' when the user
2544 # run "make install-strip". However 'strip' might not be the right
2545 # tool to use in cross-compilation environments, therefore Automake
2546 # will honor the 'STRIP' environment variable to overrule this program.
2547 if test "$cross_compiling" != no; then
2548 if test -n "$ac_tool_prefix"; then
2549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}strip; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_STRIP+:} false; then :
2554 $as_echo_n "(cached) " >&6
2556 if test -n "$STRIP"; then
2557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 STRIP=$ac_cv_prog_STRIP
2577 if test -n "$STRIP"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2579 $as_echo "$STRIP" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2587 if test -z "$ac_cv_prog_STRIP"; then
2589 # Extract the first word of "strip", so it can be a program name with args.
2590 set dummy strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$ac_ct_STRIP"; then
2597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_ac_ct_STRIP="strip"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2617 if test -n "$ac_ct_STRIP"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2619 $as_echo "$ac_ct_STRIP" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2625 if test "x$ac_ct_STRIP" = x; then
2628 case $cross_compiling:$ac_tool_warned in
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632 ac_tool_warned=yes ;;
2637 STRIP="$ac_cv_prog_STRIP"
2641 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2644 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2645 if test -z "$MKDIR_P"; then
2646 if ${ac_cv_path_mkdir+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in mkdir gmkdir; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2657 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2658 'mkdir (GNU coreutils) '* | \
2659 'mkdir (coreutils) '* | \
2660 'mkdir (fileutils) '4.1*)
2661 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2671 test -d ./--version && rmdir ./--version
2672 if test "${ac_cv_path_mkdir+set}" = set; then
2673 MKDIR_P="$ac_cv_path_mkdir -p"
2675 # As a last resort, use the slow shell script. Don't cache a
2676 # value for MKDIR_P within a source directory, because that will
2677 # break other packages using the cache if that directory is
2678 # removed, or if the value is a relative name.
2679 MKDIR_P="$ac_install_sh -d"
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2683 $as_echo "$MKDIR_P" >&6; }
2685 for ac_prog in gawk mawk nawk awk
2687 # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_AWK+:} false; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$AWK"; then
2695 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_AWK="$ac_prog"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 if test -n "$AWK"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2717 $as_echo "$AWK" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2724 test -n "$AWK" && break
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2728 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2730 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2731 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 cat >conftest.make <<\_ACEOF
2737 @echo '@@@%%%=$(MAKE)=@@@%%%'
2739 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2742 eval ac_cv_prog_make_${ac_make}_set=yes;;
2744 eval ac_cv_prog_make_${ac_make}_set=no;;
2748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2750 $as_echo "yes" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 SET_MAKE="MAKE=${MAKE-make}"
2758 rm -rf .tst 2>/dev/null
2759 mkdir .tst 2>/dev/null
2760 if test -d .tst; then
2765 rmdir .tst 2>/dev/null
2767 # Check whether --enable-silent-rules was given.
2768 if test "${enable_silent_rules+set}" = set; then :
2769 enableval=$enable_silent_rules;
2772 case $enable_silent_rules in # (((
2773 yes) AM_DEFAULT_VERBOSITY=0;;
2774 no) AM_DEFAULT_VERBOSITY=1;;
2775 *) AM_DEFAULT_VERBOSITY=1;;
2777 am_make=${MAKE-make}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2779 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2780 if ${am_cv_make_support_nested_variables+:} false; then :
2781 $as_echo_n "(cached) " >&6
2783 if $as_echo 'TRUE=$(BAR$(V))
2789 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2790 am_cv_make_support_nested_variables=yes
2792 am_cv_make_support_nested_variables=no
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2796 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2797 if test $am_cv_make_support_nested_variables = yes; then
2799 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2801 AM_V=$AM_DEFAULT_VERBOSITY
2802 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2806 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2807 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2808 # is not polluted with repeated "-I."
2809 am__isrc=' -I$(srcdir)'
2810 # test to see if srcdir already configured
2811 if test -f $srcdir/config.status; then
2812 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2816 # test whether we have cygpath
2817 if test -z "$CYGPATH_W"; then
2818 if (cygpath --version) >/dev/null 2>/dev/null; then
2819 CYGPATH_W='cygpath -w'
2826 # Define the identity of the package.
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE "$PACKAGE"
2836 cat >>confdefs.h <<_ACEOF
2837 #define VERSION "$VERSION"
2840 # Some tools Automake needs.
2842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2856 # For better backward compatibility. To be removed once Automake 1.9.x
2857 # dies out for good. For more background, see:
2858 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2859 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2860 mkdir_p='$(MKDIR_P)'
2862 # We need awk for the "check" target. The system "awk" is bad on
2864 # Always define AMTAR for backward compatibility. Yes, it's still used
2865 # in the wild :-( We should find a proper way to deprecate it ...
2869 # We'll loop over all known methods to create a tar archive until one works.
2870 _am_tools='gnutar pax cpio none'
2872 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2879 # POSIX will say in a future version that running "rm -f" with no argument
2880 # is OK; and we want to be able to make that assumption in our Makefile
2881 # recipes. So use an aggressive probe to check that the usage we want is
2882 # actually supported "in the wild" to an acceptable degree.
2883 # See automake bug#10828.
2884 # To make any issue more visible, cause the running configure to be aborted
2885 # by default if the 'rm' program in use doesn't match our expectations; the
2886 # user can still override this though.
2887 if rm -f && rm -fr && rm -rf; then : OK; else
2891 Your 'rm' program seems unable to run without file operands specified
2892 on the command line, even when the '-f' option is present. This is contrary
2893 to the behaviour of most rm programs out there, and not conforming with
2894 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2896 Please tell bug-automake@gnu.org about your system, including the value
2897 of your $PATH and any error possibly output before this message. This
2898 can help us improve future automake versions.
2901 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2902 echo 'Configuration will proceed anyway, since you have set the' >&2
2903 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2907 Aborting the configuration process, to ensure you take notice of the issue.
2909 You can download and install GNU coreutils to get an 'rm' implementation
2910 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2912 If you want to complete the configuration process using your problematic
2913 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2914 to "yes", and re-run configure.
2917 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2925 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2927 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2928 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 cat >conftest.make <<\_ACEOF
2934 @echo '@@@%%%=$(MAKE)=@@@%%%'
2936 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2939 eval ac_cv_prog_make_${ac_make}_set=yes;;
2941 eval ac_cv_prog_make_${ac_make}_set=no;;
2945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 SET_MAKE="MAKE=${MAKE-make}"
2956 # Make sure we can run config.sub.
2957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2958 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2961 $as_echo_n "checking build system type... " >&6; }
2962 if ${ac_cv_build+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 ac_build_alias=$build_alias
2966 test "x$ac_build_alias" = x &&
2967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2968 test "x$ac_build_alias" = x &&
2969 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2975 $as_echo "$ac_cv_build" >&6; }
2976 case $ac_cv_build in
2978 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2981 ac_save_IFS=$IFS; IFS='-'
2987 # Remember, the first character of IFS is used to create $*,
2988 # except with old shells:
2991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2995 $as_echo_n "checking host system type... " >&6; }
2996 if ${ac_cv_host+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test "x$host_alias" = x; then
3000 ac_cv_host=$ac_cv_build
3002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3008 $as_echo "$ac_cv_host" >&6; }
3011 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3014 ac_save_IFS=$IFS; IFS='-'
3020 # Remember, the first character of IFS is used to create $*,
3021 # except with old shells:
3024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3028 # Check whether --enable-threading was given.
3029 if test "${enable_threading+set}" = set; then :
3030 enableval=$enable_threading; if test x$enableval = xyes; then
3031 enable_threading=yes
3033 $as_echo "#define ENABLE_THREADING 1" >>confdefs.h
3039 if test "x$enable_threading" = "xyes"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Partial multi-threaded support enabled." >&5
3041 $as_echo "Partial multi-threaded support enabled." >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Multi-threaded support disabled. Use --enable-threading to enable." >&5
3044 $as_echo "Multi-threaded support disabled. Use --enable-threading to enable." >&6; }
3047 # Check whether --enable-rdrand was given.
3048 if test "${enable_rdrand+set}" = set; then :
3049 enableval=$enable_rdrand; if test x$enableval = xyes; then
3052 $as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
3058 if test "x$enable_rdrand" = "xyes"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
3060 $as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
3063 $as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
3066 # enable silent build by default
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069 enableval=$enable_silent_rules;
3072 case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY=0;;
3074 no) AM_DEFAULT_VERBOSITY=1;;
3075 *) AM_DEFAULT_VERBOSITY=0;;
3077 am_make=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if $as_echo 'TRUE=$(BAR$(V))
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090 am_cv_make_support_nested_variables=yes
3092 am_cv_make_support_nested_variables=no
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3101 AM_V=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3107 # Checks for programs.
3109 # Checks for libraries.
3111 # Checks for header files.
3112 DEPDIR="${am__leading_dot}deps"
3114 ac_config_commands="$ac_config_commands depfiles"
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3120 @echo this is the am__doit target
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from 'make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 case `$am_make -s -f confmf 2> /dev/null` in #(
3143 *the\ am__doit\ target*)
3144 am__include=.include
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158 enableval=$enable_dependency_tracking;
3161 if test "x$enable_dependency_tracking" != xno; then
3162 am_depcomp="$ac_aux_dir/depcomp"
3166 if test "x$enable_dependency_tracking" != xno; then
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$ac_cv_prog_CC"; then
3221 # Extract the first word of "gcc", so it can be a program name with args.
3222 set dummy gcc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CC="gcc"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3257 if test "x$ac_ct_CC" = x; then
3260 case $cross_compiling:$ac_tool_warned in
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$CC" && break
3413 if test -z "$CC"; then
3415 for ac_prog in cl.exe
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$ac_ct_CC" && break
3457 if test "x$ac_ct_CC" = x; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "no acceptable C compiler found in \$PATH
3476 See \`config.log' for more details" "$LINENO" 5; }
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3482 for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3492 if test -s conftest.err; then
3494 ... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3498 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3527 for ac_file in $ac_files
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 if { { ac_try="$ac_link_default"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3552 for ac_file in $ac_files ''
3554 test -f "$ac_file" || continue
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3559 # We found the default executable, but exeext='' is most
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582 if test -z "$ac_file"; then :
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error 77 "C compiler cannot create executables
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link") 2>&5
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 for ac_file in conftest.exe conftest conftest.*; do
3622 test -f "$ac_file" || continue
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details" "$LINENO" 5; }
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3649 FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662 { { ac_try="$ac_link"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 if { ac_try='./conftest$ac_cv_exeext'
3674 { { case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_try") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; }; then
3686 if test "$cross_compiling" = maybe; then
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details" "$LINENO" 5; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if ${ac_cv_objext+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_compile") 2>&5
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 for ac_file in conftest.o conftest.obj conftest.*; do
3731 test -f "$ac_file" || continue;
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details" "$LINENO" 5; }
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if ${ac_cv_c_compiler_gnu+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3772 if ac_fn_c_try_compile "$LINENO"; then :
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if ${ac_cv_prog_cc_g+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 if ac_fn_c_try_compile "$LINENO"; then :
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 if ac_fn_c_try_compile "$LINENO"; then :
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854 CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856 if test "$GCC" = yes; then
3862 if test "$GCC" = yes; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if ${ac_cv_prog_cc_c89+:} false; then :
3871 $as_echo_n "(cached) " >&6
3873 ac_cv_prog_cc_c89=no
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3894 s = g (p, va_arg (v,int));
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 rm -f conftest.$ac_ext
3942 case "x$ac_cv_prog_cc_c89" in
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971 if ${am_cv_prog_cc_c_o+:} false; then :
3972 $as_echo_n "(cached) " >&6
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 # Make sure it works both with $CC and with simple cc.
3986 # Following AC_PROG_CC_C_O, we do the test twice because some
3987 # compilers refuse to overwrite an existing .o file with -o,
3988 # though they will create one.
3989 am_cv_prog_cc_c_o=yes
3991 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } \
3996 && test -f conftest2.$ac_objext; then
3999 am_cv_prog_cc_c_o=no
4003 rm -f core conftest*
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4008 if test "$am_cv_prog_cc_c_o" != yes; then
4009 # Losing compiler, so override with the script.
4010 # FIXME: It is wrong to rewrite CC.
4011 # But if we don't then we get into trouble of one sort or another.
4012 # A longer-term fix would be to have automake use am__CC in this case,
4013 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014 CC="$am_aux_dir/compile $CC"
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 depcc="$CC" am_compiler_list=
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031 # We make a subdir and do the tests there. Otherwise we can end up
4032 # making bogus files that we don't know about and never remove. For
4033 # instance it was reported that on HP-UX the gcc test will end up
4034 # making a dummy file named 'D' -- because '-MD' means "put the output
4038 # Copy depcomp to subdir because otherwise we won't find it if we're
4039 # using a relative directory.
4040 cp "$am_depcomp" conftest.dir
4042 # We will build objects and dependencies in a subdirectory because
4043 # it helps to detect inapplicable dependency modes. For instance
4044 # both Tru64's cc and ICC support -MD to output dependencies as a
4045 # side effect of compilation, but ICC will put the dependencies in
4046 # the current directory while Tru64 will put them in the object
4050 am_cv_CC_dependencies_compiler_type=none
4051 if test "$am_compiler_list" = ""; then
4052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4055 case " $depcc " in #(
4056 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4059 for depmode in $am_compiler_list; do
4060 # Setup a source with many dependencies, because some compilers
4061 # like to wrap large dependency lists on column 80 (with \), and
4062 # we should not choose a depcomp mode which is confused by this.
4064 # We need to recreate these files for each test, as the compiler may
4065 # overwrite some of them when testing with obscure command lines.
4066 # This happens at least with the AIX C compiler.
4068 for i in 1 2 3 4 5 6; do
4069 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071 # Solaris 10 /bin/sh.
4072 echo '/* dummy */' > sub/conftst$i.h
4074 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4076 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077 # mode. It turns out that the SunPro C++ compiler does not properly
4078 # handle '-M -o', and we need to detect this. Also, some Intel
4079 # versions had trouble with output in subdirs.
4080 am__obj=sub/conftest.${OBJEXT-o}
4081 am__minus_obj="-o $am__obj"
4084 # This depmode causes a compiler race in universal mode.
4085 test "$am__universal" = false || continue
4088 # After this tag, mechanisms are not by side-effect, so they'll
4089 # only be used when explicitly requested.
4090 if test "x$enable_dependency_tracking" = xyes; then
4096 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097 # This compiler won't grok '-c -o', but also, the minuso test has
4098 # not run yet. These depmodes are late enough in the game, and
4099 # so weak that their functioning should not be impacted.
4100 am__obj=conftest.${OBJEXT-o}
4105 if depmode=$depmode \
4106 source=sub/conftest.c object=$am__obj \
4107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109 >/dev/null 2>conftest.err &&
4110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114 # icc doesn't choke on unknown options, it will just issue warnings
4115 # or remarks (even with -Werror). So we grep stderr for any message
4116 # that says an option was ignored or not supported.
4117 # When given -MP, icc 7.0 and 7.1 complain thusly:
4118 # icc: Command line warning: ignoring option '-M'; no argument required
4119 # The diagnosis changed in icc 8.0:
4120 # icc: Command line remark: option '-MP' not supported
4121 if (grep 'ignoring option' conftest.err ||
4122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123 am_cv_CC_dependencies_compiler_type=$depmode
4132 am_cv_CC_dependencies_compiler_type=none
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4141 test "x$enable_dependency_tracking" != xno \
4142 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCC_FALSE='#'
4146 am__fastdepCC_TRUE='#'
4147 am__fastdepCC_FALSE=
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4153 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4154 if ${ac_cv_prog_cc_c99+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 ac_cv_prog_cc_c99=no
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4162 #include <stdbool.h>
4167 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4168 #define debug(...) fprintf (stderr, __VA_ARGS__)
4169 #define showlist(...) puts (#__VA_ARGS__)
4170 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4172 test_varargs_macros (void)
4177 debug ("X = %d\n", x);
4178 showlist (The first, second, and third items.);
4179 report (x>y, "x is %d but y is %d", x, y);
4182 // Check long long types.
4183 #define BIG64 18446744073709551615ull
4184 #define BIG32 4294967295ul
4185 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4187 your preprocessor is broken;
4191 your preprocessor is broken;
4193 static long long int bignum = -9223372036854775807LL;
4194 static unsigned long long int ubignum = BIG64;
4196 struct incomplete_array
4204 const wchar_t *name;
4208 typedef const char *ccp;
4211 test_restrict (ccp restrict text)
4213 // See if C++-style comments work.
4214 // Iterate through items via the restricted pointer.
4215 // Also check for declarations in for loops.
4216 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4221 // Check varargs and va_copy.
4223 test_varargs (const char *format, ...)
4226 va_start (args, format);
4228 va_copy (args_copy, args);
4239 str = va_arg (args_copy, const char *);
4242 number = va_arg (args_copy, int);
4245 fnumber = va_arg (args_copy, double);
4260 _Bool success = false;
4263 if (test_restrict ("String literal") == 0)
4265 char *restrict newvar = "Another string";
4268 test_varargs ("s, d' f .", "string", 65, 34.234);
4269 test_varargs_macros ();
4271 // Check flexible array members.
4272 struct incomplete_array *ia =
4273 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4275 for (int i = 0; i < ia->datasize; ++i)
4276 ia->data[i] = i * 1.234;
4278 // Check named initializers.
4279 struct named_init ni = {
4281 .name = L"Test wide string",
4282 .average = 543.34343,
4287 int dynamic_array[ni.number];
4288 dynamic_array[ni.number - 1] = 543;
4290 // work around unused variable warnings
4291 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4292 || dynamic_array[ni.number - 1] != 543);
4298 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c99=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c99" != "xno" && break
4307 rm -f conftest.$ac_ext
4312 case "x$ac_cv_prog_cc_c99" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c99"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4322 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4324 if test "x$ac_cv_prog_cc_c99" != xno; then :
4329 ac_config_headers="$ac_config_headers config.h"
4331 ac_config_headers="$ac_config_headers json_config.h"
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4341 # On Suns, sometimes $CPP names a directory.
4342 if test -n "$CPP" && test -d "$CPP"; then
4345 if test -z "$CPP"; then
4346 if ${ac_cv_prog_CPP+:} false; then :
4347 $as_echo_n "(cached) " >&6
4349 # Double quotes because CPP needs to be expanded
4350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4353 for ac_c_preproc_warn_flag in '' yes
4355 # Use a header file that comes with gcc, so configuring glibc
4356 # with a fresh cross-compiler works.
4357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4358 # <limits.h> exists even on freestanding compilers.
4359 # On the NeXT, cc -E runs the code through the compiler's parser,
4360 # not just through cpp. "Syntax error" is here to catch this case.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4364 # include <limits.h>
4366 # include <assert.h>
4370 if ac_fn_c_try_cpp "$LINENO"; then :
4373 # Broken: fails on valid input.
4376 rm -f conftest.err conftest.i conftest.$ac_ext
4378 # OK, works on sane cases. Now check whether nonexistent headers
4379 # can be detected and how.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <ac_nonexistent.h>
4384 if ac_fn_c_try_cpp "$LINENO"; then :
4385 # Broken: success on invalid input.
4388 # Passes both tests.
4392 rm -f conftest.err conftest.i conftest.$ac_ext
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.i conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then :
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4410 $as_echo "$CPP" >&6; }
4412 for ac_c_preproc_warn_flag in '' yes
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 # include <limits.h>
4425 # include <assert.h>
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444 # Broken: success on invalid input.
4447 # Passes both tests.
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4462 See \`config.log' for more details" "$LINENO" 5; }
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4474 if ${ac_cv_path_GREP+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 if test -z "$GREP"; then
4478 ac_path_GREP_found=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484 test -z "$as_dir" && as_dir=.
4485 for ac_prog in grep ggrep; do
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4488 as_fn_executable_p "$ac_path_GREP" || continue
4489 # Check for GNU ac_path_GREP and select it if it is found.
4490 # Check for GNU $ac_path_GREP
4491 case `"$ac_path_GREP" --version 2>&1` in
4493 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4496 $as_echo_n 0123456789 >"conftest.in"
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 $as_echo 'GREP' >> "conftest.nl"
4503 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505 as_fn_arith $ac_count + 1 && ac_count=$as_val
4506 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_GREP="$ac_path_GREP"
4509 ac_path_GREP_max=$ac_count
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 $ac_path_GREP_found && break 3
4522 if test -z "$ac_cv_path_GREP"; then
4523 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526 ac_cv_path_GREP=$GREP
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4531 $as_echo "$ac_cv_path_GREP" >&6; }
4532 GREP="$ac_cv_path_GREP"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4536 $as_echo_n "checking for egrep... " >&6; }
4537 if ${ac_cv_path_EGREP+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541 then ac_cv_path_EGREP="$GREP -E"
4543 if test -z "$EGREP"; then
4544 ac_path_EGREP_found=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 test -z "$as_dir" && as_dir=.
4551 for ac_prog in egrep; do
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4554 as_fn_executable_p "$ac_path_EGREP" || continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556 # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4559 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4562 $as_echo_n 0123456789 >"conftest.in"
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 $as_echo 'EGREP' >> "conftest.nl"
4569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571 as_fn_arith $ac_count + 1 && ac_count=$as_val
4572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_EGREP="$ac_path_EGREP"
4575 ac_path_EGREP_max=$ac_count
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 $ac_path_EGREP_found && break 3
4588 if test -z "$ac_cv_path_EGREP"; then
4589 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592 ac_cv_path_EGREP=$EGREP
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4598 $as_echo "$ac_cv_path_EGREP" >&6; }
4599 EGREP="$ac_cv_path_EGREP"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4603 $as_echo_n "checking for ANSI C header files... " >&6; }
4604 if ${ac_cv_header_stdc+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 ac_cv_header_stdc=yes
4625 ac_cv_header_stdc=no
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 if test $ac_cv_header_stdc = yes; then
4630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev/null 2>&1; then :
4640 ac_cv_header_stdc=no
4646 if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "free" >/dev/null 2>&1; then :
4657 ac_cv_header_stdc=no
4663 if test $ac_cv_header_stdc = yes; then
4664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4665 if test "$cross_compiling" = yes; then :
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4672 #if ((' ' & 0x0FF) == 0x020)
4673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4676 # define ISLOWER(c) \
4677 (('a' <= (c) && (c) <= 'i') \
4678 || ('j' <= (c) && (c) <= 'r') \
4679 || ('s' <= (c) && (c) <= 'z'))
4680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4688 for (i = 0; i < 256; i++)
4689 if (XOR (islower (i), ISLOWER (i))
4690 || toupper (i) != TOUPPER (i))
4695 if ac_fn_c_try_run "$LINENO"; then :
4698 ac_cv_header_stdc=no
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4701 conftest.$ac_objext conftest.beam conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4707 $as_echo "$ac_cv_header_stdc" >&6; }
4708 if test $ac_cv_header_stdc = yes; then
4710 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4716 inttypes.h stdint.h unistd.h
4718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4722 cat >>confdefs.h <<_ACEOF
4723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4731 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h xlocale.h endian.h
4733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4736 cat >>confdefs.h <<_ACEOF
4737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4745 if test "x$ac_cv_header_inttypes_h" = xyes; then :
4747 $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
4753 # Checks for typedefs, structures, and compiler characteristics.
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4756 if ${ac_cv_c_const+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4767 /* Ultrix mips cc rejects this sort of thing. */
4768 typedef int charset[2];
4769 const charset cs = { 0, 0 };
4770 /* SunOS 4.1.1 cc rejects this. */
4771 char const *const *pcpcc;
4773 /* NEC SVR4.0.2 mips cc rejects this. */
4774 struct point {int x, y;};
4775 static struct point const zero = {0,0};
4776 /* AIX XL C 1.02.0.0 rejects this.
4777 It does not let you subtract one const X* pointer from another in
4778 an arm of an if-expression whose if-part is not a constant
4780 const char *g = "string";
4781 pcpcc = &g + (g ? g-g : 0);
4782 /* HPUX 7.0 cc rejects these. */
4784 ppc = (char**) pcpcc;
4785 pcpcc = (char const *const *) ppc;
4786 { /* SCO 3.2v4 cc rejects this sort of thing. */
4789 char const *s = 0 ? (char *) 0 : (char const *) 0;
4794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4796 const int *foo = &x[0];
4799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4800 typedef const int *iptr;
4804 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4806 struct s { int j; const int *ap[3]; } bx;
4807 struct s *b = &bx; b->j = 5;
4809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4813 return !cs[0] && !zero.x;
4820 if ac_fn_c_try_compile "$LINENO"; then :
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4828 $as_echo "$ac_cv_c_const" >&6; }
4829 if test $ac_cv_c_const = no; then
4831 $as_echo "#define const /**/" >>confdefs.h
4835 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4836 if test "x$ac_cv_type_size_t" = xyes; then :
4840 cat >>confdefs.h <<_ACEOF
4841 #define size_t unsigned int
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
4848 $as_echo_n "checking for __thread support... " >&6; }
4849 if ${ac_cv___thread+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4855 static __thread int a; int foo (int b) { return a + b; }
4864 if ac_fn_c_try_link "$LINENO"; then :
4869 rm -f core conftest.err conftest.$ac_objext \
4870 conftest$ac_exeext conftest.$ac_ext
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___thread" >&5
4874 $as_echo "$ac_cv___thread" >&6; }
4875 if test "x$ac_cv___thread" != xno; then :
4877 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
4880 $as_echo "#define SPEC___THREAD __thread" >>confdefs.h
4885 # Checks for library functions.
4886 for ac_func in vprintf
4888 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4889 if test "x$ac_cv_func_vprintf" = xyes; then :
4890 cat >>confdefs.h <<_ACEOF
4891 #define HAVE_VPRINTF 1
4894 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4895 if test "x$ac_cv_func__doprnt" = xyes; then :
4897 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4906 $as_echo_n "checking for working memcmp... " >&6; }
4907 if ${ac_cv_func_memcmp_working+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 if test "$cross_compiling" = yes; then :
4911 ac_cv_func_memcmp_working=no
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 $ac_includes_default
4920 /* Some versions of memcmp are not 8-bit clean. */
4921 char c0 = '\100', c1 = '\200', c2 = '\201';
4922 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4925 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4926 or more and with at least one buffer not starting on a 4-byte boundary.
4927 William Lewis provided this test program. */
4932 for (i = 0; i < 4; i++)
4936 strcpy (a, "--------01111111");
4937 strcpy (b, "--------10000000");
4938 if (memcmp (a, b, 16) >= 0)
4948 if ac_fn_c_try_run "$LINENO"; then :
4949 ac_cv_func_memcmp_working=yes
4951 ac_cv_func_memcmp_working=no
4953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954 conftest.$ac_objext conftest.beam conftest.$ac_ext
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4959 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4960 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4961 *" memcmp.$ac_objext "* ) ;;
4962 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4967 for ac_func in realloc
4969 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
4970 if test "x$ac_cv_func_realloc" = xyes; then :
4971 cat >>confdefs.h <<_ACEOF
4972 #define HAVE_REALLOC 1
4978 for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
4980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4990 ac_fn_c_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
4992 if test "x$ac_cv_have_decl_INFINITY" = xyes; then :
4998 cat >>confdefs.h <<_ACEOF
4999 #define HAVE_DECL_INFINITY $ac_have_decl
5002 ac_fn_c_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
5004 if test "x$ac_cv_have_decl_nan" = xyes; then :
5010 cat >>confdefs.h <<_ACEOF
5011 #define HAVE_DECL_NAN $ac_have_decl
5014 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
5016 if test "x$ac_cv_have_decl_isnan" = xyes; then :
5022 cat >>confdefs.h <<_ACEOF
5023 #define HAVE_DECL_ISNAN $ac_have_decl
5026 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
5028 if test "x$ac_cv_have_decl_isinf" = xyes; then :
5034 cat >>confdefs.h <<_ACEOF
5035 #define HAVE_DECL_ISINF $ac_have_decl
5038 ac_fn_c_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
5040 if test "x$ac_cv_have_decl__isnan" = xyes; then :
5046 cat >>confdefs.h <<_ACEOF
5047 #define HAVE_DECL__ISNAN $ac_have_decl
5050 ac_fn_c_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
5052 if test "x$ac_cv_have_decl__finite" = xyes; then :
5058 cat >>confdefs.h <<_ACEOF
5059 #define HAVE_DECL__FINITE $ac_have_decl
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
5063 $as_echo_n "checking for GCC atomic builtins... " >&6; }
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5069 volatile unsigned int val = 1;
5070 /* Note: __sync_val_compare_and_swap isn't checked here
5071 * because it's protected by __GCC_HAVE_SYNC_COMPARE_AND_SWAP_<n>,
5072 * which is automatically defined by gcc.
5074 __sync_add_and_fetch(&val, 1);
5075 __sync_sub_and_fetch(&val, 1);
5081 if ac_fn_c_try_link "$LINENO"; then :
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5084 $as_echo "yes" >&6; }
5086 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&5
5094 $as_echo "$as_me: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&2;}
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5100 case "${host_os}" in
5102 for ac_func in uselocale
5104 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
5105 if test "x$ac_cv_func_uselocale" = xyes; then :
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_USELOCALE 1
5118 if test "$ac_cv_have_decl_isnan" = "yes" ; then
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5125 float f = 0.0; return isnan(f)
5130 if ac_fn_c_try_link "$LINENO"; then :
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5139 #check if .section.gnu.warning accepts long strings (for __warn_references)
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
5148 $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5152 extern void json_object_get();
5153 __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
5155 int main(int c,char* v) {return 0;}
5158 if ac_fn_c_try_link "$LINENO"; then :
5161 $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 $as_echo "yes" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5172 rm -f core conftest.err conftest.$ac_objext \
5173 conftest$ac_exeext conftest.$ac_ext
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5185 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5190 macro_version='2.4.2'
5191 macro_revision='1.3337'
5205 ltmain="$ac_aux_dir/ltmain.sh"
5207 # Backslashify metacharacters that are still active within
5208 # double-quoted strings.
5209 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5211 # Same as above, but do not quote variable references.
5212 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5214 # Sed substitution to delay expansion of an escaped shell variable in a
5215 # double_quote_subst'ed string.
5216 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5218 # Sed substitution to delay expansion of an escaped single quote.
5219 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5221 # Sed substitution to avoid accidental globbing in evaled expressions
5222 no_glob_subst='s/\*/\\\*/g'
5224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5229 $as_echo_n "checking how to print strings... " >&6; }
5230 # Test print first, because it will be a builtin if present.
5231 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5232 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5234 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5237 # Use this function as a fallback that always works.
5238 func_fallback_echo ()
5240 eval 'cat <<_LTECHO_EOF
5244 ECHO='func_fallback_echo'
5247 # func_echo_all arg...
5248 # Invoke $ECHO with all args, space-separated.
5255 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5256 $as_echo "printf" >&6; } ;;
5257 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5258 $as_echo "print -r" >&6; } ;;
5259 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5260 $as_echo "cat" >&6; } ;;
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278 if ${ac_cv_path_SED+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282 for ac_i in 1 2 3 4 5 6 7; do
5283 ac_script="$ac_script$as_nl$ac_script"
5285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286 { ac_script=; unset ac_script;}
5287 if test -z "$SED"; then
5288 ac_path_SED_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in sed gsed; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298 as_fn_executable_p "$ac_path_SED" || continue
5299 # Check for GNU ac_path_SED and select it if it is found.
5300 # Check for GNU $ac_path_SED
5301 case `"$ac_path_SED" --version 2>&1` in
5303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5306 $as_echo_n 0123456789 >"conftest.in"
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo '' >> "conftest.nl"
5313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_SED_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_SED="$ac_path_SED"
5319 ac_path_SED_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327 $ac_path_SED_found && break 3
5332 if test -z "$ac_cv_path_SED"; then
5333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341 $as_echo "$ac_cv_path_SED" >&6; }
5342 SED="$ac_cv_path_SED"
5345 test -z "$SED" && SED=sed
5346 Xsed="$SED -e 1s/^X//"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359 $as_echo_n "checking for fgrep... " >&6; }
5360 if ${ac_cv_path_FGREP+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364 then ac_cv_path_FGREP="$GREP -F"
5366 if test -z "$FGREP"; then
5367 ac_path_FGREP_found=false
5368 # Loop through the user's path and test for each of PROGNAME-LIST
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5373 test -z "$as_dir" && as_dir=.
5374 for ac_prog in fgrep; do
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377 as_fn_executable_p "$ac_path_FGREP" || continue
5378 # Check for GNU ac_path_FGREP and select it if it is found.
5379 # Check for GNU $ac_path_FGREP
5380 case `"$ac_path_FGREP" --version 2>&1` in
5382 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5385 $as_echo_n 0123456789 >"conftest.in"
5388 cat "conftest.in" "conftest.in" >"conftest.tmp"
5389 mv "conftest.tmp" "conftest.in"
5390 cp "conftest.in" "conftest.nl"
5391 $as_echo 'FGREP' >> "conftest.nl"
5392 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394 as_fn_arith $ac_count + 1 && ac_count=$as_val
5395 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396 # Best one so far, save it but keep looking for a better one
5397 ac_cv_path_FGREP="$ac_path_FGREP"
5398 ac_path_FGREP_max=$ac_count
5400 # 10*(2^10) chars as input seems more than enough
5401 test $ac_count -gt 10 && break
5403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 $ac_path_FGREP_found && break 3
5411 if test -z "$ac_cv_path_FGREP"; then
5412 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5415 ac_cv_path_FGREP=$FGREP
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421 $as_echo "$ac_cv_path_FGREP" >&6; }
5422 FGREP="$ac_cv_path_FGREP"
5425 test -z "$GREP" && GREP=grep
5445 # Check whether --with-gnu-ld was given.
5446 if test "${with_gnu_ld+set}" = set; then :
5447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5453 if test "$GCC" = yes; then
5454 # Check if gcc -print-prog-name=ld gives a path.
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456 $as_echo_n "checking for ld used by $CC... " >&6; }
5459 # gcc leaves a trailing carriage return which upsets mingw
5460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5465 # Accept absolute paths.
5467 re_direlt='/[^/][^/]*/\.\./'
5468 # Canonicalize the pathname of ld
5469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5473 test -z "$LD" && LD="$ac_prog"
5476 # If it fails, then pretend we aren't using GCC.
5480 # If it is relative, then search for the first ld in PATH.
5484 elif test "$with_gnu_ld" = yes; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486 $as_echo_n "checking for GNU ld... " >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489 $as_echo_n "checking for non-GNU ld... " >&6; }
5491 if ${lt_cv_path_LD+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -z "$LD"; then
5495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5496 for ac_dir in $PATH; do
5498 test -z "$ac_dir" && ac_dir=.
5499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500 lt_cv_path_LD="$ac_dir/$ac_prog"
5501 # Check to see if the program is GNU ld. I'd rather use --version,
5502 # but apparently some variants of GNU ld only accept -v.
5503 # Break only if it was the GNU/non-GNU ld that we prefer.
5504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505 *GNU* | *'with BFD'*)
5506 test "$with_gnu_ld" != no && break
5509 test "$with_gnu_ld" != yes && break
5516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5521 if test -n "$LD"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523 $as_echo "$LD" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531 if ${lt_cv_prog_gnu_ld+:} false; then :
5532 $as_echo_n "(cached) " >&6
5534 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535 case `$LD -v 2>&1 </dev/null` in
5536 *GNU* | *'with BFD'*)
5537 lt_cv_prog_gnu_ld=yes
5540 lt_cv_prog_gnu_ld=no
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546 with_gnu_ld=$lt_cv_prog_gnu_ld
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558 if ${lt_cv_path_NM+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -n "$NM"; then
5562 # Let the user override the test.
5565 lt_nm_to_check="${ac_tool_prefix}nm"
5566 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567 lt_nm_to_check="$lt_nm_to_check nm"
5569 for lt_tmp_nm in $lt_nm_to_check; do
5570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5571 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5573 test -z "$ac_dir" && ac_dir=.
5574 tmp_nm="$ac_dir/$lt_tmp_nm"
5575 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5576 # Check to see if the nm accepts a BSD-compat flag.
5577 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5578 # nm: unknown option "B" ignored
5579 # Tru64's nm complains that /dev/null is an invalid object file
5580 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5581 */dev/null* | *'Invalid file or object type'*)
5582 lt_cv_path_NM="$tmp_nm -B"
5586 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5588 lt_cv_path_NM="$tmp_nm -p"
5592 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5593 continue # so that we can try to find one that supports BSD flags
5602 : ${lt_cv_path_NM=no}
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5606 $as_echo "$lt_cv_path_NM" >&6; }
5607 if test "$lt_cv_path_NM" != "no"; then
5610 # Didn't find any BSD compatible name lister, look for dumpbin.
5611 if test -n "$DUMPBIN"; then :
5612 # Let the user override the test.
5614 if test -n "$ac_tool_prefix"; then
5615 for ac_prog in dumpbin "link -dump"
5617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_DUMPBIN+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$DUMPBIN"; then
5625 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 DUMPBIN=$ac_cv_prog_DUMPBIN
5645 if test -n "$DUMPBIN"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5647 $as_echo "$DUMPBIN" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5654 test -n "$DUMPBIN" && break
5657 if test -z "$DUMPBIN"; then
5658 ac_ct_DUMPBIN=$DUMPBIN
5659 for ac_prog in dumpbin "link -dump"
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5666 $as_echo_n "(cached) " >&6
5668 if test -n "$ac_ct_DUMPBIN"; then
5669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689 if test -n "$ac_ct_DUMPBIN"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5691 $as_echo "$ac_ct_DUMPBIN" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5698 test -n "$ac_ct_DUMPBIN" && break
5701 if test "x$ac_ct_DUMPBIN" = x; then
5704 case $cross_compiling:$ac_tool_warned in
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5710 DUMPBIN=$ac_ct_DUMPBIN
5714 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5716 DUMPBIN="$DUMPBIN -symbols"
5724 if test "$DUMPBIN" != ":"; then
5728 test -z "$NM" && NM=nm
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5736 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5737 if ${lt_cv_nm_interface+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 lt_cv_nm_interface="BSD nm"
5741 echo "int some_variable = 0;" > conftest.$ac_ext
5742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5743 (eval "$ac_compile" 2>conftest.err)
5744 cat conftest.err >&5
5745 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5747 cat conftest.err >&5
5748 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5749 cat conftest.out >&5
5750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5751 lt_cv_nm_interface="MS dumpbin"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5756 $as_echo "$lt_cv_nm_interface" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5759 $as_echo_n "checking whether ln -s works... " >&6; }
5761 if test "$LN_S" = "ln -s"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 $as_echo "yes" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5766 $as_echo "no, using $LN_S" >&6; }
5769 # find the maximum length of command line arguments
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5771 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5772 if ${lt_cv_sys_max_cmd_len+:} false; then :
5773 $as_echo_n "(cached) " >&6
5780 # On DJGPP, this test can blow up pretty badly due to problems in libc
5781 # (any single argument exceeding 2000 bytes causes a buffer overrun
5782 # during glob expansion). Even if it were fixed, the result of this
5783 # check would be larger than it should be.
5784 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5788 # Under GNU Hurd, this test is not required because there is
5789 # no limit to the length of command line arguments.
5790 # Libtool will interpret -1 as no limit whatsoever
5791 lt_cv_sys_max_cmd_len=-1;
5794 cygwin* | mingw* | cegcc*)
5795 # On Win9x/ME, this test blows up -- it succeeds, but takes
5796 # about 5 minutes as the teststring grows exponentially.
5797 # Worse, since 9x/ME are not pre-emptively multitasking,
5798 # you end up with a "frozen" computer, even though with patience
5799 # the test eventually succeeds (with a max line length of 256k).
5800 # Instead, let's just punt: use the minimum linelength reported by
5801 # all of the supported platforms: 8192 (on NT/2K/XP).
5802 lt_cv_sys_max_cmd_len=8192;
5806 # On MiNT this can take a long time and run out of memory.
5807 lt_cv_sys_max_cmd_len=8192;
5811 # On AmigaOS with pdksh, this test takes hours, literally.
5812 # So we just punt and use a minimum line length of 8192.
5813 lt_cv_sys_max_cmd_len=8192;
5816 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5817 # This has been around since 386BSD, at least. Likely further.
5818 if test -x /sbin/sysctl; then
5819 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5820 elif test -x /usr/sbin/sysctl; then
5821 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5823 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5825 # And add a safety zone
5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5831 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5832 lt_cv_sys_max_cmd_len=196608
5836 # The test takes a long time on OS/2.
5837 lt_cv_sys_max_cmd_len=8192
5841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5843 # nice to cause kernel panics so lets avoid the loop below.
5844 # First set a reasonable default.
5845 lt_cv_sys_max_cmd_len=16384
5847 if test -x /sbin/sysconfig; then
5848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5849 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5854 lt_cv_sys_max_cmd_len=102400
5856 sysv5* | sco5v6* | sysv4.2uw2*)
5857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5858 if test -n "$kargmax"; then
5859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5861 lt_cv_sys_max_cmd_len=32768
5865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5866 if test -n "$lt_cv_sys_max_cmd_len" && \
5867 test undefined != "$lt_cv_sys_max_cmd_len"; then
5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5871 # Make teststring a little bigger before we do anything with it.
5872 # a 1K string should be a reasonable start.
5873 for i in 1 2 3 4 5 6 7 8 ; do
5874 teststring=$teststring$teststring
5876 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5877 # If test is not a shell built-in, we'll probably end up computing a
5878 # maximum length that is only half of the actual maximum length, but
5880 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5881 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5882 test $i != 17 # 1/2 MB should be enough
5885 teststring=$teststring$teststring
5887 # Only check the string length outside the loop.
5888 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5890 # Add a significant safety factor because C++ compilers can tack on
5891 # massive amounts of additional arguments before passing them to the
5892 # linker. It appears as though 1/2 is a usable value.
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5900 if test -n $lt_cv_sys_max_cmd_len ; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5902 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5905 $as_echo "none" >&6; }
5907 max_cmd_len=$lt_cv_sys_max_cmd_len
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5919 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5920 # Try some XSI features
5923 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5925 && eval 'test $(( 1 + 1 )) -eq 2 \
5926 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5929 $as_echo "$xsi_shell" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5933 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5935 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5937 && lt_shell_append=yes
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5939 $as_echo "$lt_shell_append" >&6; }
5942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5952 # test EBCDIC or ASCII
5953 case `echo X|tr X '\101'` in
5954 A) # ASCII based system
5955 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5956 lt_SP2NL='tr \040 \012'
5957 lt_NL2SP='tr \015\012 \040\040'
5959 *) # EBCDIC based system
5960 lt_SP2NL='tr \100 \n'
5961 lt_NL2SP='tr \r\n \100\100'
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5974 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5975 if ${lt_cv_to_host_file_cmd+:} false; then :
5976 $as_echo_n "(cached) " >&6
5981 *-*-mingw* ) # actually msys
5982 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5985 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5987 * ) # otherwise, assume *nix
5988 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5994 *-*-mingw* ) # actually msys
5995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5998 lt_cv_to_host_file_cmd=func_convert_file_noop
6000 * ) # otherwise, assume *nix
6001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6005 * ) # unhandled hosts (and "normal" native builds)
6006 lt_cv_to_host_file_cmd=func_convert_file_noop
6012 to_host_file_cmd=$lt_cv_to_host_file_cmd
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6014 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6021 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6022 if ${lt_cv_to_tool_file_cmd+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 #assume ordinary cross tools, or native build.
6026 lt_cv_to_tool_file_cmd=func_convert_file_noop
6030 *-*-mingw* ) # actually msys
6031 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6041 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6048 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6049 if ${lt_cv_ld_reload_flag+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 lt_cv_ld_reload_flag='-r'
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6055 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6056 reload_flag=$lt_cv_ld_reload_flag
6057 case $reload_flag in
6059 *) reload_flag=" $reload_flag" ;;
6061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6063 cygwin* | mingw* | pw32* | cegcc*)
6064 if test "$GCC" != yes; then
6069 if test "$GCC" = yes; then
6070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_OBJDUMP+:} false; then :
6091 $as_echo_n "(cached) " >&6
6093 if test -n "$OBJDUMP"; then
6094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 OBJDUMP=$ac_cv_prog_OBJDUMP
6114 if test -n "$OBJDUMP"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6116 $as_echo "$OBJDUMP" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6124 if test -z "$ac_cv_prog_OBJDUMP"; then
6125 ac_ct_OBJDUMP=$OBJDUMP
6126 # Extract the first word of "objdump", so it can be a program name with args.
6127 set dummy objdump; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6131 $as_echo_n "(cached) " >&6
6133 if test -n "$ac_ct_OBJDUMP"; then
6134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6154 if test -n "$ac_ct_OBJDUMP"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6156 $as_echo "$ac_ct_OBJDUMP" >&6; }
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6162 if test "x$ac_ct_OBJDUMP" = x; then
6165 case $cross_compiling:$ac_tool_warned in
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6171 OBJDUMP=$ac_ct_OBJDUMP
6174 OBJDUMP="$ac_cv_prog_OBJDUMP"
6177 test -z "$OBJDUMP" && OBJDUMP=objdump
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6188 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6189 if ${lt_cv_deplibs_check_method+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 lt_cv_file_magic_cmd='$MAGIC_CMD'
6193 lt_cv_file_magic_test_file=
6194 lt_cv_deplibs_check_method='unknown'
6195 # Need to set the preceding variable on all platforms that support
6196 # interlibrary dependencies.
6197 # 'none' -- dependencies not supported.
6198 # `unknown' -- same as none, but documents that we really don't know.
6199 # 'pass_all' -- all dependencies passed with no checks.
6200 # 'test_compile' -- check by making test program.
6201 # 'file_magic [[regex]]' -- check by looking for files in library path
6202 # which responds to the $file_magic_cmd with a given extended regex.
6203 # If you have `file' or equivalent on your system and you're not sure
6204 # whether `pass_all' will *always* work, you probably want this one.
6208 lt_cv_deplibs_check_method=pass_all
6212 lt_cv_deplibs_check_method=pass_all
6216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6217 lt_cv_file_magic_cmd='/usr/bin/file -L'
6218 lt_cv_file_magic_test_file=/shlib/libc.so
6222 # func_win32_libid is a shell function defined in ltmain.sh
6223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224 lt_cv_file_magic_cmd='func_win32_libid'
6228 # Base MSYS/MinGW do not provide the 'file' command needed by
6229 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6230 # unless we find 'file', for example because we are cross-compiling.
6231 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6232 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234 lt_cv_file_magic_cmd='func_win32_libid'
6236 # Keep this pattern in sync with the one in func_win32_libid.
6237 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6238 lt_cv_file_magic_cmd='$OBJDUMP -f'
6243 # use the weaker test based on 'objdump'. See mingw*.
6244 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6245 lt_cv_file_magic_cmd='$OBJDUMP -f'
6248 darwin* | rhapsody*)
6249 lt_cv_deplibs_check_method=pass_all
6252 freebsd* | dragonfly*)
6253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6256 # Not sure whether the presence of OpenBSD here was a mistake.
6257 # Let's accept both of them until this is cleared up.
6258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6259 lt_cv_file_magic_cmd=/usr/bin/file
6260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6264 lt_cv_deplibs_check_method=pass_all
6269 lt_cv_deplibs_check_method=pass_all
6272 hpux10.20* | hpux11*)
6273 lt_cv_file_magic_cmd=/usr/bin/file
6276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6280 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]'
6281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6295 irix5* | irix6* | nonstopux*)
6297 *-32|*"-32 ") libmagic=32-bit;;
6298 *-n32|*"-n32 ") libmagic=N32;;
6299 *-64|*"-64 ") libmagic=64-bit;;
6300 *) libmagic=never-match;;
6302 lt_cv_deplibs_check_method=pass_all
6305 # This must be glibc/ELF.
6306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6307 lt_cv_deplibs_check_method=pass_all
6310 netbsd* | netbsdelf*-gnu)
6311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6320 lt_cv_file_magic_cmd=/usr/bin/file
6321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325 lt_cv_deplibs_check_method=pass_all
6329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336 osf3* | osf4* | osf5*)
6337 lt_cv_deplibs_check_method=pass_all
6341 lt_cv_deplibs_check_method=pass_all
6345 lt_cv_deplibs_check_method=pass_all
6348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6349 lt_cv_deplibs_check_method=pass_all
6353 case $host_vendor in
6355 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]'
6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6359 lt_cv_deplibs_check_method=pass_all
6362 lt_cv_file_magic_cmd='/bin/file'
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6366 lt_cv_file_magic_cmd='/bin/file'
6367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6368 lt_cv_file_magic_test_file=/lib/libc.so
6371 lt_cv_deplibs_check_method=pass_all
6374 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method=pass_all
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6386 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6390 if test "$build" = "$host"; then
6393 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6396 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6402 file_magic_cmd=$lt_cv_file_magic_cmd
6403 deplibs_check_method=$lt_cv_deplibs_check_method
6404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_DLLTOOL+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$DLLTOOL"; then
6436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 DLLTOOL=$ac_cv_prog_DLLTOOL
6456 if test -n "$DLLTOOL"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6458 $as_echo "$DLLTOOL" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6466 if test -z "$ac_cv_prog_DLLTOOL"; then
6467 ac_ct_DLLTOOL=$DLLTOOL
6468 # Extract the first word of "dlltool", so it can be a program name with args.
6469 set dummy dlltool; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_DLLTOOL"; then
6476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6496 if test -n "$ac_ct_DLLTOOL"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6498 $as_echo "$ac_ct_DLLTOOL" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6504 if test "x$ac_ct_DLLTOOL" = x; then
6507 case $cross_compiling:$ac_tool_warned in
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6513 DLLTOOL=$ac_ct_DLLTOOL
6516 DLLTOOL="$ac_cv_prog_DLLTOOL"
6519 test -z "$DLLTOOL" && DLLTOOL=dlltool
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6531 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6532 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 lt_cv_sharedlib_from_linklib_cmd='unknown'
6538 cygwin* | mingw* | pw32* | cegcc*)
6539 # two different shell functions defined in ltmain.sh
6540 # decide which to use based on capabilities of $DLLTOOL
6541 case `$DLLTOOL --help 2>&1` in
6542 *--identify-strict*)
6543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6546 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6551 # fallback: assume linklib IS sharedlib
6552 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6558 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6559 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6560 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6568 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_AR+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$AR"; then
6579 ac_cv_prog_AR="$AR" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 if test -n "$AR"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6601 $as_echo "$AR" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6608 test -n "$AR" && break
6611 if test -z "$AR"; then
6615 # Extract the first word of "$ac_prog", so it can be a program name with args.
6616 set dummy $ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 if test -n "$ac_ct_AR"; then
6623 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_ac_ct_AR="$ac_prog"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6643 if test -n "$ac_ct_AR"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6645 $as_echo "$ac_ct_AR" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6652 test -n "$ac_ct_AR" && break
6655 if test "x$ac_ct_AR" = x; then
6658 case $cross_compiling:$ac_tool_warned in
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6682 $as_echo_n "checking for archiver @FILE support... " >&6; }
6683 if ${lt_cv_ar_at_file+:} false; then :
6684 $as_echo_n "(cached) " >&6
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699 echo conftest.$ac_objext > conftest.lst
6700 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6702 (eval $lt_ar_try) 2>&5
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }
6706 if test "$ac_status" -eq 0; then
6707 # Ensure the archiver fails upon bogus file names.
6708 rm -f conftest.$ac_objext libconftest.a
6709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6710 (eval $lt_ar_try) 2>&5
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; }
6714 if test "$ac_status" -ne 0; then
6718 rm -f conftest.* libconftest.a
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6725 $as_echo "$lt_cv_ar_at_file" >&6; }
6727 if test "x$lt_cv_ar_at_file" = xno; then
6730 archiver_list_spec=$lt_cv_ar_at_file
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}strip; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_STRIP+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$STRIP"; then
6748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 STRIP=$ac_cv_prog_STRIP
6768 if test -n "$STRIP"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6770 $as_echo "$STRIP" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_STRIP"; then
6780 # Extract the first word of "strip", so it can be a program name with args.
6781 set dummy strip; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$ac_ct_STRIP"; then
6788 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_ac_ct_STRIP="strip"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6808 if test -n "$ac_ct_STRIP"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6810 $as_echo "$ac_ct_STRIP" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_STRIP" = x; then
6819 case $cross_compiling:$ac_tool_warned in
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6828 STRIP="$ac_cv_prog_STRIP"
6831 test -z "$STRIP" && STRIP=:
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_RANLIB+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 if test -n "$RANLIB"; then
6847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 RANLIB=$ac_cv_prog_RANLIB
6867 if test -n "$RANLIB"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6869 $as_echo "$RANLIB" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6877 if test -z "$ac_cv_prog_RANLIB"; then
6878 ac_ct_RANLIB=$RANLIB
6879 # Extract the first word of "ranlib", so it can be a program name with args.
6880 set dummy ranlib; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6884 $as_echo_n "(cached) " >&6
6886 if test -n "$ac_ct_RANLIB"; then
6887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_RANLIB="ranlib"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6907 if test -n "$ac_ct_RANLIB"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6909 $as_echo "$ac_ct_RANLIB" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6915 if test "x$ac_ct_RANLIB" = x; then
6918 case $cross_compiling:$ac_tool_warned in
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6924 RANLIB=$ac_ct_RANLIB
6927 RANLIB="$ac_cv_prog_RANLIB"
6930 test -z "$RANLIB" && RANLIB=:
6937 # Determine commands to create old-style static archives.
6938 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6939 old_postinstall_cmds='chmod 644 $oldlib'
6940 old_postuninstall_cmds=
6942 if test -n "$RANLIB"; then
6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6951 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6956 lock_old_archive_extraction=yes ;;
6958 lock_old_archive_extraction=no ;;
6999 # If no C compiler was specified, use CC.
7002 # If no C compiler flags were specified, use CFLAGS.
7003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7005 # Allow CC to be a program name with arguments.
7009 # Check for command to grab the raw symbol name followed by C symbol from nm.
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7011 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7012 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7013 $as_echo_n "(cached) " >&6
7016 # These are sane defaults that work on at least a few old systems.
7017 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7019 # Character class describing NM global symbol codes.
7020 symcode='[BCDEGRST]'
7022 # Regexp to match symbols that can be accessed directly from C.
7023 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7025 # Define system-specific variables.
7030 cygwin* | mingw* | pw32* | cegcc*)
7031 symcode='[ABCDGISTW]'
7034 if test "$host_cpu" = ia64; then
7035 symcode='[ABCDEGRST]'
7039 symcode='[BCDEGRST]'
7042 symcode='[BCDEGQRST]'
7053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7061 # If we're using GNU nm, then use its standard symbol codes.
7062 case `$NM -V 2>&1` in
7063 *GNU* | *'with BFD'*)
7064 symcode='[ABCDGIRSTW]' ;;
7067 # Transform an extracted symbol line into a proper C declaration.
7068 # Some systems (esp. on ia64) link data and code symbols differently,
7069 # so use this general approach.
7070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7072 # Transform an extracted symbol line into symbol name and symbol address
7073 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7074 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'"
7076 # Handle CRLF in mingw tool chain
7080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7084 # Try without a prefix underscore, then with it.
7085 for ac_symprfx in "" "_"; do
7087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7088 symxfrm="\\1 $ac_symprfx\\2 \\2"
7090 # Write the raw and C identifiers.
7091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7092 # Fake it for dumpbin and say T for any non-static function
7093 # and D for any global variable.
7094 # Also find C++ and __fastcall symbols from MSVC++,
7095 # which start with @ or ?.
7096 lt_cv_sys_global_symbol_pipe="$AWK '"\
7097 " {last_section=section; section=\$ 3};"\
7098 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7099 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7100 " \$ 0!~/External *\|/{next};"\
7101 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7102 " {if(hide[section]) next};"\
7103 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7104 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7105 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7106 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7107 " ' prfx=^$ac_symprfx"
7109 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7111 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7113 # Check to see that the pipe works correctly.
7117 cat > conftest.$ac_ext <<_LT_EOF
7122 void nm_test_func(void);
7123 void nm_test_func(void){}
7127 int main(){nm_test_var='a';nm_test_func();return(0);}
7130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7131 (eval $ac_compile) 2>&5
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 # Now try to grab the symbols.
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7138 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; } && test -s "$nlist"; then
7142 # Try sorting and uniquifying the output.
7143 if sort "$nlist" | uniq > "$nlist"T; then
7144 mv -f "$nlist"T "$nlist"
7149 # Make sure that we snagged all the symbols we need.
7150 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7151 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7152 cat <<_LT_EOF > conftest.$ac_ext
7153 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7154 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7155 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7156 relocations are performed -- see ld's documentation on pseudo-relocs. */
7157 # define LT_DLSYM_CONST
7158 #elif defined(__osf__)
7159 /* This system does not cope well with relocations in const data. */
7160 # define LT_DLSYM_CONST
7162 # define LT_DLSYM_CONST const
7170 # Now generate the symbol file.
7171 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7173 cat <<_LT_EOF >> conftest.$ac_ext
7175 /* The mapping between symbol names and symbols. */
7176 LT_DLSYM_CONST struct {
7180 lt__PROGRAM__LTX_preloaded_symbols[] =
7182 { "@PROGRAM@", (void *) 0 },
7184 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7185 cat <<\_LT_EOF >> conftest.$ac_ext
7189 /* This works around a problem in FreeBSD linker */
7190 #ifdef FREEBSD_WORKAROUND
7191 static const void *lt_preloaded_setup() {
7192 return lt__PROGRAM__LTX_preloaded_symbols;
7200 # Now try linking the two files.
7201 mv conftest.$ac_objext conftstm.$ac_objext
7202 lt_globsym_save_LIBS=$LIBS
7203 lt_globsym_save_CFLAGS=$CFLAGS
7204 LIBS="conftstm.$ac_objext"
7205 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7207 (eval $ac_link) 2>&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7213 LIBS=$lt_globsym_save_LIBS
7214 CFLAGS=$lt_globsym_save_CFLAGS
7216 echo "cannot find nm_test_func in $nlist" >&5
7219 echo "cannot find nm_test_var in $nlist" >&5
7222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7225 echo "$progname: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 rm -rf conftest* conftst*
7230 # Do not use the global_symbol_pipe unless it works.
7231 if test "$pipe_works" = yes; then
7234 lt_cv_sys_global_symbol_pipe=
7240 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241 lt_cv_sys_global_symbol_to_cdecl=
7243 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7245 $as_echo "failed" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7248 $as_echo "ok" >&6; }
7251 # Response file support.
7252 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7253 nm_file_list_spec='@'
7254 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7255 nm_file_list_spec='@'
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7285 $as_echo_n "checking for sysroot... " >&6; }
7287 # Check whether --with-sysroot was given.
7288 if test "${with_sysroot+set}" = set; then :
7289 withval=$with_sysroot;
7296 case ${with_sysroot} in #(
7298 if test "$GCC" = yes; then
7299 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7303 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7309 $as_echo "${with_sysroot}" >&6; }
7310 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7315 $as_echo "${lt_sysroot:-no}" >&6; }
7321 # Check whether --enable-libtool-lock was given.
7322 if test "${enable_libtool_lock+set}" = set; then :
7323 enableval=$enable_libtool_lock;
7326 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7328 # Some flags need to be propagated to the compiler or linker for good
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.$ac_objext` in
7351 # Find out which ABI we are using.
7352 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 if test "$lt_cv_prog_gnu_ld" = yes; then
7359 case `/usr/bin/file conftest.$ac_objext` in
7361 LD="${LD-ld} -melf32bsmip"
7364 LD="${LD-ld} -melf32bmipn32"
7367 LD="${LD-ld} -melf64bmip"
7371 case `/usr/bin/file conftest.$ac_objext` in
7387 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7388 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7389 # Find out which ABI we are using.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 case `/usr/bin/file conftest.o` in
7399 x86_64-*kfreebsd*-gnu)
7400 LD="${LD-ld} -m elf_i386_fbsd"
7403 case `/usr/bin/file conftest.o` in
7405 LD="${LD-ld} -m elf32_x86_64"
7408 LD="${LD-ld} -m elf_i386"
7413 LD="${LD-ld} -m elf32lppclinux"
7416 LD="${LD-ld} -m elf32ppclinux"
7419 LD="${LD-ld} -m elf_s390"
7422 LD="${LD-ld} -m elf32_sparc"
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_x86_64_fbsd"
7432 LD="${LD-ld} -m elf_x86_64"
7435 LD="${LD-ld} -m elf64lppc"
7438 LD="${LD-ld} -m elf64ppc"
7440 s390*-*linux*|s390*-*tpf*)
7441 LD="${LD-ld} -m elf64_s390"
7444 LD="${LD-ld} -m elf64_sparc"
7454 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7455 SAVE_CFLAGS="$CFLAGS"
7456 CFLAGS="$CFLAGS -belf"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7458 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7459 if ${lt_cv_cc_needs_belf+:} false; then :
7460 $as_echo_n "(cached) " >&6
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7479 if ac_fn_c_try_link "$LINENO"; then :
7480 lt_cv_cc_needs_belf=yes
7482 lt_cv_cc_needs_belf=no
7484 rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7494 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7497 CFLAGS="$SAVE_CFLAGS"
7501 # Find out which ABI we are using.
7502 echo 'int i;' > conftest.$ac_ext
7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 case `/usr/bin/file conftest.o` in
7510 case $lt_cv_prog_gnu_ld in
7514 LD="${LD-ld} -m elf_x86_64"
7517 LD="${LD-ld} -m elf64_sparc"
7520 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7521 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7526 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7538 need_locks="$enable_libtool_lock"
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}mt; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7546 $as_echo_n "(cached) " >&6
7548 if test -n "$MANIFEST_TOOL"; then
7549 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7569 if test -n "$MANIFEST_TOOL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7571 $as_echo "$MANIFEST_TOOL" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7579 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7580 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7581 # Extract the first word of "mt", so it can be a program name with args.
7582 set dummy mt; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -n "$ac_ct_MANIFEST_TOOL"; then
7589 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7609 if test -n "$ac_ct_MANIFEST_TOOL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7611 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7617 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7620 case $cross_compiling:$ac_tool_warned in
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7626 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7629 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7632 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7634 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7635 if ${lt_cv_path_mainfest_tool+:} false; then :
7636 $as_echo_n "(cached) " >&6
7638 lt_cv_path_mainfest_tool=no
7639 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7640 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7641 cat conftest.err >&5
7642 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7643 lt_cv_path_mainfest_tool=yes
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7648 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7649 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7659 rhapsody* | darwin*)
7660 if test -n "$ac_tool_prefix"; then
7661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$DSYMUTIL"; then
7669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7689 if test -n "$DSYMUTIL"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7691 $as_echo "$DSYMUTIL" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7699 if test -z "$ac_cv_prog_DSYMUTIL"; then
7700 ac_ct_DSYMUTIL=$DSYMUTIL
7701 # Extract the first word of "dsymutil", so it can be a program name with args.
7702 set dummy dsymutil; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 if test -n "$ac_ct_DSYMUTIL"; then
7709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7729 if test -n "$ac_ct_DSYMUTIL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7737 if test "x$ac_ct_DSYMUTIL" = x; then
7740 case $cross_compiling:$ac_tool_warned in
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7746 DSYMUTIL=$ac_ct_DSYMUTIL
7749 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7752 if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_NMEDIT+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$NMEDIT"; then
7761 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 NMEDIT=$ac_cv_prog_NMEDIT
7781 if test -n "$NMEDIT"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7783 $as_echo "$NMEDIT" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7791 if test -z "$ac_cv_prog_NMEDIT"; then
7792 ac_ct_NMEDIT=$NMEDIT
7793 # Extract the first word of "nmedit", so it can be a program name with args.
7794 set dummy nmedit; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7798 $as_echo_n "(cached) " >&6
7800 if test -n "$ac_ct_NMEDIT"; then
7801 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7821 if test -n "$ac_ct_NMEDIT"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7823 $as_echo "$ac_ct_NMEDIT" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7829 if test "x$ac_ct_NMEDIT" = x; then
7832 case $cross_compiling:$ac_tool_warned in
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836 ac_tool_warned=yes ;;
7838 NMEDIT=$ac_ct_NMEDIT
7841 NMEDIT="$ac_cv_prog_NMEDIT"
7844 if test -n "$ac_tool_prefix"; then
7845 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_LIPO+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$LIPO"; then
7853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 LIPO=$ac_cv_prog_LIPO
7873 if test -n "$LIPO"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7875 $as_echo "$LIPO" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7883 if test -z "$ac_cv_prog_LIPO"; then
7885 # Extract the first word of "lipo", so it can be a program name with args.
7886 set dummy lipo; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 if test -n "$ac_ct_LIPO"; then
7893 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_ac_ct_LIPO="lipo"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7913 if test -n "$ac_ct_LIPO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7915 $as_echo "$ac_ct_LIPO" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7921 if test "x$ac_ct_LIPO" = x; then
7924 case $cross_compiling:$ac_tool_warned in
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928 ac_tool_warned=yes ;;
7933 LIPO="$ac_cv_prog_LIPO"
7936 if test -n "$ac_tool_prefix"; then
7937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7938 set dummy ${ac_tool_prefix}otool; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_OTOOL+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$OTOOL"; then
7945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 OTOOL=$ac_cv_prog_OTOOL
7965 if test -n "$OTOOL"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7967 $as_echo "$OTOOL" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7975 if test -z "$ac_cv_prog_OTOOL"; then
7977 # Extract the first word of "otool", so it can be a program name with args.
7978 set dummy otool; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 if test -n "$ac_ct_OTOOL"; then
7985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_OTOOL="otool"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8005 if test -n "$ac_ct_OTOOL"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8007 $as_echo "$ac_ct_OTOOL" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8013 if test "x$ac_ct_OTOOL" = x; then
8016 case $cross_compiling:$ac_tool_warned in
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8025 OTOOL="$ac_cv_prog_OTOOL"
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_OTOOL64+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$OTOOL64"; then
8037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 OTOOL64=$ac_cv_prog_OTOOL64
8057 if test -n "$OTOOL64"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8059 $as_echo "$OTOOL64" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8067 if test -z "$ac_cv_prog_OTOOL64"; then
8068 ac_ct_OTOOL64=$OTOOL64
8069 # Extract the first word of "otool64", so it can be a program name with args.
8070 set dummy otool64; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8074 $as_echo_n "(cached) " >&6
8076 if test -n "$ac_ct_OTOOL64"; then
8077 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_ac_ct_OTOOL64="otool64"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8097 if test -n "$ac_ct_OTOOL64"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8099 $as_echo "$ac_ct_OTOOL64" >&6; }
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8105 if test "x$ac_ct_OTOOL64" = x; then
8108 case $cross_compiling:$ac_tool_warned in
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112 ac_tool_warned=yes ;;
8114 OTOOL64=$ac_ct_OTOOL64
8117 OTOOL64="$ac_cv_prog_OTOOL64"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8147 $as_echo_n "checking for -single_module linker flag... " >&6; }
8148 if ${lt_cv_apple_cc_single_mod+:} false; then :
8149 $as_echo_n "(cached) " >&6
8151 lt_cv_apple_cc_single_mod=no
8152 if test -z "${LT_MULTI_MODULE}"; then
8153 # By default we will add the -single_module flag. You can override
8154 # by either setting the environment variable LT_MULTI_MODULE
8155 # non-empty at configure time, or by adding -multi_module to the
8157 rm -rf libconftest.dylib*
8158 echo "int foo(void){return 1;}" > conftest.c
8159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8160 -dynamiclib -Wl,-single_module conftest.c" >&5
8161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8164 # If there is a non-empty error log, and "single_module"
8165 # appears in it, assume the flag caused a linker warning
8166 if test -s conftest.err && $GREP single_module conftest.err; then
8167 cat conftest.err >&5
8168 # Otherwise, if the output was created with a 0 exit code from
8169 # the compiler, it worked.
8170 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8171 lt_cv_apple_cc_single_mod=yes
8173 cat conftest.err >&5
8175 rm -rf libconftest.dylib*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8183 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8184 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 lt_cv_ld_exported_symbols_list=no
8188 save_LDFLAGS=$LDFLAGS
8189 echo "_main" > conftest.sym
8190 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8202 if ac_fn_c_try_link "$LINENO"; then :
8203 lt_cv_ld_exported_symbols_list=yes
8205 lt_cv_ld_exported_symbols_list=no
8207 rm -f core conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LDFLAGS="$save_LDFLAGS"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8213 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8216 $as_echo_n "checking for -force_load linker flag... " >&6; }
8217 if ${lt_cv_ld_force_load+:} false; then :
8218 $as_echo_n "(cached) " >&6
8220 lt_cv_ld_force_load=no
8221 cat > conftest.c << _LT_EOF
8222 int forced_loaded() { return 2;}
8224 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8225 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8226 echo "$AR cru libconftest.a conftest.o" >&5
8227 $AR cru libconftest.a conftest.o 2>&5
8228 echo "$RANLIB libconftest.a" >&5
8229 $RANLIB libconftest.a 2>&5
8230 cat > conftest.c << _LT_EOF
8231 int main() { return 0;}
8233 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8234 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8236 if test -s conftest.err && $GREP force_load conftest.err; then
8237 cat conftest.err >&5
8238 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8239 lt_cv_ld_force_load=yes
8241 cat conftest.err >&5
8243 rm -f conftest.err libconftest.a conftest conftest.c
8244 rm -rf conftest.dSYM
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8248 $as_echo "$lt_cv_ld_force_load" >&6; }
8250 rhapsody* | darwin1.[012])
8251 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8253 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8254 darwin*) # darwin 5.x on
8255 # if running on 10.5 or later, the deployment target defaults
8256 # to the OS version, if on x86, and 10.4, the deployment
8257 # target defaults to 10.4. Don't you love it?
8258 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8259 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8260 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8262 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8268 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8269 _lt_dar_single_mod='$single_module'
8271 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8272 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8274 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8276 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8277 _lt_dsymutil='~$DSYMUTIL $lib || :'
8284 for ac_header in dlfcn.h
8286 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8288 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8289 cat >>confdefs.h <<_ACEOF
8290 #define HAVE_DLFCN_H 1
8311 # Check whether --enable-shared was given.
8312 if test "${enable_shared+set}" = set; then :
8313 enableval=$enable_shared; p=${PACKAGE-default}
8315 yes) enable_shared=yes ;;
8316 no) enable_shared=no ;;
8319 # Look at the argument we got. We use all the common list separators.
8320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8321 for pkg in $enableval; do
8323 if test "X$pkg" = "X$p"; then
8342 # Check whether --enable-static was given.
8343 if test "${enable_static+set}" = set; then :
8344 enableval=$enable_static; p=${PACKAGE-default}
8346 yes) enable_static=yes ;;
8347 no) enable_static=no ;;
8350 # Look at the argument we got. We use all the common list separators.
8351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8352 for pkg in $enableval; do
8354 if test "X$pkg" = "X$p"; then
8374 # Check whether --with-pic was given.
8375 if test "${with_pic+set}" = set; then :
8376 withval=$with_pic; lt_p=${PACKAGE-default}
8378 yes|no) pic_mode=$withval ;;
8381 # Look at the argument we got. We use all the common list separators.
8382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8383 for lt_pkg in $withval; do
8385 if test "X$lt_pkg" = "X$lt_p"; then
8397 test -z "$pic_mode" && pic_mode=default
8405 # Check whether --enable-fast-install was given.
8406 if test "${enable_fast_install+set}" = set; then :
8407 enableval=$enable_fast_install; p=${PACKAGE-default}
8409 yes) enable_fast_install=yes ;;
8410 no) enable_fast_install=no ;;
8412 enable_fast_install=no
8413 # Look at the argument we got. We use all the common list separators.
8414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8415 for pkg in $enableval; do
8417 if test "X$pkg" = "X$p"; then
8418 enable_fast_install=yes
8425 enable_fast_install=yes
8438 # This can be used to rebuild libtool when needed
8439 LIBTOOL_DEPS="$ltmain"
8441 # Always use our own libtool.
8442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8473 test -z "$LN_S" && LN_S="ln -s"
8488 if test -n "${ZSH_VERSION+set}" ; then
8489 setopt NO_GLOB_SUBST
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8493 $as_echo_n "checking for objdir... " >&6; }
8494 if ${lt_cv_objdir+:} false; then :
8495 $as_echo_n "(cached) " >&6
8497 rm -f .libs 2>/dev/null
8498 mkdir .libs 2>/dev/null
8499 if test -d .libs; then
8502 # MS-DOS does not allow filenames that begin with a dot.
8505 rmdir .libs 2>/dev/null
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8508 $as_echo "$lt_cv_objdir" >&6; }
8509 objdir=$lt_cv_objdir
8515 cat >>confdefs.h <<_ACEOF
8516 #define LT_OBJDIR "$lt_cv_objdir/"
8524 # AIX sometimes has problems with the GCC collect2 program. For some
8525 # reason, if we set the COLLECT_NAMES environment variable, the problems
8526 # vanish in a puff of smoke.
8527 if test "X${COLLECT_NAMES+set}" != Xset; then
8529 export COLLECT_NAMES
8536 can_build_shared=yes
8538 # All known linkers require a `.a' archive for static linking (except MSVC,
8539 # which needs '.lib').
8542 with_gnu_ld="$lt_cv_prog_gnu_ld"
8545 old_CFLAGS="$CFLAGS"
8547 # Set sane defaults for various variables
8548 test -z "$CC" && CC=cc
8549 test -z "$LTCC" && LTCC=$CC
8550 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8551 test -z "$LD" && LD=ld
8552 test -z "$ac_objext" && ac_objext=o
8554 for cc_temp in $compiler""; do
8556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8562 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8565 # Only perform the check for file, if the check method requires it
8566 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8567 case $deplibs_check_method in
8569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8571 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8573 $as_echo_n "(cached) " >&6
8577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8580 lt_save_MAGIC_CMD="$MAGIC_CMD"
8581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8583 for ac_dir in $ac_dummy; do
8585 test -z "$ac_dir" && ac_dir=.
8586 if test -f $ac_dir/${ac_tool_prefix}file; then
8587 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8588 if test -n "$file_magic_test_file"; then
8589 case $deplibs_check_method in
8591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8594 $EGREP "$file_magic_regex" > /dev/null; then
8599 *** Warning: the command libtool uses to detect shared libraries,
8600 *** $file_magic_cmd, produces output that libtool cannot recognize.
8601 *** The result is that libtool may fail to recognize shared libraries
8602 *** as such. This will affect the creation of libtool libraries that
8603 *** depend on shared libraries, but programs linked with such libtool
8604 *** libraries will work regardless of this problem. Nevertheless, you
8605 *** may want to report the problem to your system manager and/or to
8606 *** bug-libtool@gnu.org
8616 MAGIC_CMD="$lt_save_MAGIC_CMD"
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if test -n "$MAGIC_CMD"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8624 $as_echo "$MAGIC_CMD" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8634 if test -z "$lt_cv_path_MAGIC_CMD"; then
8635 if test -n "$ac_tool_prefix"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8637 $as_echo_n "checking for file... " >&6; }
8638 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8639 $as_echo_n "(cached) " >&6
8643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8646 lt_save_MAGIC_CMD="$MAGIC_CMD"
8647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8649 for ac_dir in $ac_dummy; do
8651 test -z "$ac_dir" && ac_dir=.
8652 if test -f $ac_dir/file; then
8653 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8654 if test -n "$file_magic_test_file"; then
8655 case $deplibs_check_method in
8657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8660 $EGREP "$file_magic_regex" > /dev/null; then
8665 *** Warning: the command libtool uses to detect shared libraries,
8666 *** $file_magic_cmd, produces output that libtool cannot recognize.
8667 *** The result is that libtool may fail to recognize shared libraries
8668 *** as such. This will affect the creation of libtool libraries that
8669 *** depend on shared libraries, but programs linked with such libtool
8670 *** libraries will work regardless of this problem. Nevertheless, you
8671 *** may want to report the problem to your system manager and/or to
8672 *** bug-libtool@gnu.org
8682 MAGIC_CMD="$lt_save_MAGIC_CMD"
8687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8688 if test -n "$MAGIC_CMD"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8690 $as_echo "$MAGIC_CMD" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8706 # Use C for the default configuration in the libtool script
8710 ac_cpp='$CPP $CPPFLAGS'
8711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716 # Source file extension for C test sources.
8719 # Object file extension for compiled C test sources.
8723 # Code to be used in simple compile tests
8724 lt_simple_compile_test_code="int some_variable = 0;"
8726 # Code to be used in simple link tests
8727 lt_simple_link_test_code='int main(){return(0);}'
8735 # If no C compiler was specified, use CC.
8738 # If no C compiler flags were specified, use CFLAGS.
8739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8741 # Allow CC to be a program name with arguments.
8744 # Save the default compiler, since it gets overwritten when the other
8745 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8746 compiler_DEFAULT=$CC
8748 # save warnings/boilerplate of simple test code
8749 ac_outfile=conftest.$ac_objext
8750 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8752 _lt_compiler_boilerplate=`cat conftest.err`
8755 ac_outfile=conftest.$ac_objext
8756 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8758 _lt_linker_boilerplate=`cat conftest.err`
8762 if test -n "$compiler"; then
8764 lt_prog_compiler_no_builtin_flag=
8766 if test "$GCC" = yes; then
8767 case $cc_basename in
8769 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8771 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8775 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8776 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 lt_cv_prog_compiler_rtti_exceptions=no
8780 ac_outfile=conftest.$ac_objext
8781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8782 lt_compiler_flag="-fno-rtti -fno-exceptions"
8783 # Insert the option either (1) after the last *FLAGS variable, or
8784 # (2) before a word containing "conftest.", or (3) at the end.
8785 # Note that $ac_compile itself does not contain backslashes and begins
8786 # with a dollar sign (not a hyphen), so the echo should work correctly.
8787 # The option is referenced via a variable to avoid confusing sed.
8788 lt_compile=`echo "$ac_compile" | $SED \
8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791 -e 's:$: $lt_compiler_flag:'`
8792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8793 (eval "$lt_compile" 2>conftest.err)
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 if (exit $ac_status) && test -s "$ac_outfile"; then
8798 # The compiler can only warn and ignore the option if not recognized
8799 # So say no if there are warnings other than the usual output.
8800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8803 lt_cv_prog_compiler_rtti_exceptions=yes
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8810 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8812 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8813 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8825 lt_prog_compiler_wl=
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_static=
8830 if test "$GCC" = yes; then
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_static='-static'
8836 # All AIX code is PIC.
8837 if test "$host_cpu" = ia64; then
8838 # AIX 5 now supports IA64 processor
8839 lt_prog_compiler_static='-Bstatic'
8846 # see comment about AmigaOS4 .so support
8847 lt_prog_compiler_pic='-fPIC'
8850 # FIXME: we need at least 68020 code to build shared libraries, but
8851 # adding the `-m68020' flag to GCC prevents building anything better,
8853 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8858 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8859 # PIC is the default for these OSes.
8862 mingw* | cygwin* | pw32* | os2* | cegcc*)
8863 # This hack is so that the source file can tell whether it is being
8864 # built for inclusion in a dll (and should export symbols for example).
8865 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8866 # (--disable-auto-import) libraries
8867 lt_prog_compiler_pic='-DDLL_EXPORT'
8870 darwin* | rhapsody*)
8871 # PIC is the default on this platform
8872 # Common symbols not allowed in MH_DYLIB files
8873 lt_prog_compiler_pic='-fno-common'
8877 # PIC is the default for Haiku.
8878 # The "-static" flag exists, but is broken.
8879 lt_prog_compiler_static=
8883 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8884 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8885 # sets the default TLS model and affects inlining.
8891 lt_prog_compiler_pic='-fPIC'
8897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8898 # Instead, we relocate shared libraries at runtime.
8902 # Just because we use GCC doesn't mean we suddenly get shared libraries
8903 # on systems that don't support them.
8904 lt_prog_compiler_can_build_shared=no
8909 # QNX uses GNU C++, but need to define -shared option too, otherwise
8911 lt_prog_compiler_pic='-fPIC -shared'
8915 if test -d /usr/nec; then
8916 lt_prog_compiler_pic=-Kconform_pic
8921 lt_prog_compiler_pic='-fPIC'
8925 case $cc_basename in
8926 nvcc*) # Cuda Compiler Driver 2.2
8927 lt_prog_compiler_wl='-Xlinker '
8928 if test -n "$lt_prog_compiler_pic"; then
8929 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8934 # PORTME Check for flag to pass linker flags through the system compiler.
8937 lt_prog_compiler_wl='-Wl,'
8938 if test "$host_cpu" = ia64; then
8939 # AIX 5 now supports IA64 processor
8940 lt_prog_compiler_static='-Bstatic'
8942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8946 mingw* | cygwin* | pw32* | os2* | cegcc*)
8947 # This hack is so that the source file can tell whether it is being
8948 # built for inclusion in a dll (and should export symbols for example).
8949 lt_prog_compiler_pic='-DDLL_EXPORT'
8952 hpux9* | hpux10* | hpux11*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8961 lt_prog_compiler_pic='+Z'
8964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8965 lt_prog_compiler_static='${wl}-a ${wl}archive'
8968 irix5* | irix6* | nonstopux*)
8969 lt_prog_compiler_wl='-Wl,'
8970 # PIC (with -KPIC) is the default.
8971 lt_prog_compiler_static='-non_shared'
8974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8975 case $cc_basename in
8976 # old Intel for x86_64 which still supported -KPIC.
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-static'
8982 # icc used to be incompatible with GCC.
8983 # ICC 10 doesn't accept -KPIC any more.
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_pic='-fPIC'
8987 lt_prog_compiler_static='-static'
8989 # Lahey Fortran 8.1.
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='--shared'
8993 lt_prog_compiler_static='--static'
8996 # NAG Fortran compiler
8997 lt_prog_compiler_wl='-Wl,-Wl,,'
8998 lt_prog_compiler_pic='-PIC'
8999 lt_prog_compiler_static='-Bstatic'
9001 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9002 # Portland Group compilers (*not* the Pentium gcc compiler,
9003 # which looks to be a dead project)
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='-fpic'
9006 lt_prog_compiler_static='-Bstatic'
9009 lt_prog_compiler_wl='-Wl,'
9010 # All Alpha code is PIC.
9011 lt_prog_compiler_static='-non_shared'
9013 xl* | bgxl* | bgf* | mpixl*)
9014 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-qpic'
9017 lt_prog_compiler_static='-qstaticlink'
9020 case `$CC -V 2>&1 | sed 5q` in
9021 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9023 lt_prog_compiler_pic='-KPIC'
9024 lt_prog_compiler_static='-Bstatic'
9025 lt_prog_compiler_wl=''
9027 *Sun\ F* | *Sun*Fortran*)
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_wl='-Qoption ld '
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl='-Wl,'
9038 *Intel*\ [CF]*Compiler*)
9039 lt_prog_compiler_wl='-Wl,'
9040 lt_prog_compiler_pic='-fPIC'
9041 lt_prog_compiler_static='-static'
9044 lt_prog_compiler_wl='-Wl,'
9045 lt_prog_compiler_pic='-fpic'
9046 lt_prog_compiler_static='-Bstatic'
9054 lt_prog_compiler_pic='-KPIC'
9055 lt_prog_compiler_static='-Bstatic'
9059 # QNX uses GNU C++, but need to define -shared option too, otherwise
9061 lt_prog_compiler_pic='-fPIC -shared'
9064 osf3* | osf4* | osf5*)
9065 lt_prog_compiler_wl='-Wl,'
9066 # All OSF/1 code is PIC.
9067 lt_prog_compiler_static='-non_shared'
9071 lt_prog_compiler_static='-non_shared'
9075 lt_prog_compiler_pic='-KPIC'
9076 lt_prog_compiler_static='-Bstatic'
9077 case $cc_basename in
9078 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9079 lt_prog_compiler_wl='-Qoption ld ';;
9081 lt_prog_compiler_wl='-Wl,';;
9086 lt_prog_compiler_wl='-Qoption ld '
9087 lt_prog_compiler_pic='-PIC'
9088 lt_prog_compiler_static='-Bstatic'
9091 sysv4 | sysv4.2uw2* | sysv4.3*)
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-KPIC'
9094 lt_prog_compiler_static='-Bstatic'
9098 if test -d /usr/nec ;then
9099 lt_prog_compiler_pic='-Kconform_pic'
9100 lt_prog_compiler_static='-Bstatic'
9104 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='-KPIC'
9107 lt_prog_compiler_static='-Bstatic'
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_can_build_shared=no
9116 lt_prog_compiler_pic='-pic'
9117 lt_prog_compiler_static='-Bstatic'
9121 lt_prog_compiler_can_build_shared=no
9127 # For platforms which do not support PIC, -DPIC is meaningless:
9129 lt_prog_compiler_pic=
9132 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9137 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9138 if ${lt_cv_prog_compiler_pic+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9144 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9145 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9148 # Check to make sure the PIC flag actually works.
9150 if test -n "$lt_prog_compiler_pic"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9153 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 lt_cv_prog_compiler_pic_works=no
9157 ac_outfile=conftest.$ac_objext
9158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9160 # Insert the option either (1) after the last *FLAGS variable, or
9161 # (2) before a word containing "conftest.", or (3) at the end.
9162 # Note that $ac_compile itself does not contain backslashes and begins
9163 # with a dollar sign (not a hyphen), so the echo should work correctly.
9164 # The option is referenced via a variable to avoid confusing sed.
9165 lt_compile=`echo "$ac_compile" | $SED \
9166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9168 -e 's:$: $lt_compiler_flag:'`
9169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9170 (eval "$lt_compile" 2>conftest.err)
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 if (exit $ac_status) && test -s "$ac_outfile"; then
9175 # The compiler can only warn and ignore the option if not recognized
9176 # So say no if there are warnings other than the usual output.
9177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9180 lt_cv_prog_compiler_pic_works=yes
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9187 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9189 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9190 case $lt_prog_compiler_pic in
9192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9195 lt_prog_compiler_pic=
9196 lt_prog_compiler_can_build_shared=no
9212 # Check to make sure the static flag actually works.
9214 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9217 if ${lt_cv_prog_compiler_static_works+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 lt_cv_prog_compiler_static_works=no
9221 save_LDFLAGS="$LDFLAGS"
9222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9225 # The linker can only warn and ignore the option if not recognized
9226 # So say no if there are warnings
9227 if test -s conftest.err; then
9228 # Append any errors to the config.log.
9229 cat conftest.err 1>&5
9230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler_static_works=yes
9236 lt_cv_prog_compiler_static_works=yes
9240 LDFLAGS="$save_LDFLAGS"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9244 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9246 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9249 lt_prog_compiler_static=
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9260 if ${lt_cv_prog_compiler_c_o+:} false; then :
9261 $as_echo_n "(cached) " >&6
9263 lt_cv_prog_compiler_c_o=no
9264 $RM -r conftest 2>/dev/null
9268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9270 lt_compiler_flag="-o out/conftest2.$ac_objext"
9271 # Insert the option either (1) after the last *FLAGS variable, or
9272 # (2) before a word containing "conftest.", or (3) at the end.
9273 # Note that $ac_compile itself does not contain backslashes and begins
9274 # with a dollar sign (not a hyphen), so the echo should work correctly.
9275 lt_compile=`echo "$ac_compile" | $SED \
9276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9278 -e 's:$: $lt_compiler_flag:'`
9279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9280 (eval "$lt_compile" 2>out/conftest.err)
9282 cat out/conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9286 # The compiler can only warn and ignore the option if not recognized
9287 # So say no if there are warnings
9288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9291 lt_cv_prog_compiler_c_o=yes
9296 # SGI C++ compiler will create directory out/ii_files/ for
9297 # template instantiation
9298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9299 $RM out/* && rmdir out
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9315 if ${lt_cv_prog_compiler_c_o+:} false; then :
9316 $as_echo_n "(cached) " >&6
9318 lt_cv_prog_compiler_c_o=no
9319 $RM -r conftest 2>/dev/null
9323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9325 lt_compiler_flag="-o out/conftest2.$ac_objext"
9326 # Insert the option either (1) after the last *FLAGS variable, or
9327 # (2) before a word containing "conftest.", or (3) at the end.
9328 # Note that $ac_compile itself does not contain backslashes and begins
9329 # with a dollar sign (not a hyphen), so the echo should work correctly.
9330 lt_compile=`echo "$ac_compile" | $SED \
9331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333 -e 's:$: $lt_compiler_flag:'`
9334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335 (eval "$lt_compile" 2>out/conftest.err)
9337 cat out/conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9341 # The compiler can only warn and ignore the option if not recognized
9342 # So say no if there are warnings
9343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9346 lt_cv_prog_compiler_c_o=yes
9351 # SGI C++ compiler will create directory out/ii_files/ for
9352 # template instantiation
9353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9354 $RM out/* && rmdir out
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9366 hard_links="nottested"
9367 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9368 # do not overwrite the value of need_locks provided by the user
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9370 $as_echo_n "checking if we can lock with hard links... " >&6; }
9373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9375 ln conftest.a conftest.b 2>&5 || hard_links=no
9376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9378 $as_echo "$hard_links" >&6; }
9379 if test "$hard_links" = no; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9381 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9397 allow_undefined_flag=
9398 always_export_symbols=no
9400 archive_expsym_cmds=
9401 compiler_needs_object=no
9402 enable_shared_with_static_runtimes=no
9403 export_dynamic_flag_spec=
9404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9405 hardcode_automatic=no
9407 hardcode_direct_absolute=no
9408 hardcode_libdir_flag_spec=
9409 hardcode_libdir_separator=
9411 hardcode_shlibpath_var=unsupported
9413 link_all_deplibs=unknown
9416 old_archive_from_new_cmds=
9417 old_archive_from_expsyms_cmds=
9418 thread_safe_flag_spec=
9419 whole_archive_flag_spec=
9420 # include_expsyms should be a list of space-separated symbols to be *always*
9421 # included in the symbol list
9423 # exclude_expsyms can be an extended regexp of symbols to exclude
9424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9426 # as well as any symbol that contains `d'.
9427 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9429 # platforms (ab)use it in PIC code, but their linkers get confused if
9430 # the symbol is explicitly referenced. Since portable code cannot
9431 # rely on this symbol name, it's probably fine to never include it in
9432 # preloaded symbol tables.
9433 # Exclude shared library initialization/finalization symbols.
9434 extract_expsyms_cmds=
9437 cygwin* | mingw* | pw32* | cegcc*)
9438 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9439 # When not using gcc, we currently assume that we are using
9440 # Microsoft Visual C++.
9441 if test "$GCC" != yes; then
9446 # we just hope/assume this is gcc and not c89 (= MSVC++)
9452 linux* | k*bsd*-gnu | gnu*)
9459 # On some targets, GNU ld is compatible enough with the native linker
9460 # that we're better off using the native interface for both.
9461 lt_use_gnu_ld_interface=no
9462 if test "$with_gnu_ld" = yes; then
9465 # The AIX port of GNU ld has always aspired to compatibility
9466 # with the native linker. However, as the warning in the GNU ld
9467 # block says, versions before 2.19.5* couldn't really create working
9468 # shared libraries, regardless of the interface used.
9469 case `$LD -v 2>&1` in
9470 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9471 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9472 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9474 lt_use_gnu_ld_interface=yes
9479 lt_use_gnu_ld_interface=yes
9484 if test "$lt_use_gnu_ld_interface" = yes; then
9485 # If archive_cmds runs LD, not CC, wlarc should be empty
9488 # Set some defaults for GNU ld with shared library support. These
9489 # are reset later if shared libraries are not supported. Putting them
9490 # here allows them to be overridden if necessary.
9491 runpath_var=LD_RUN_PATH
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 export_dynamic_flag_spec='${wl}--export-dynamic'
9494 # ancient GNU ld didn't support --whole-archive et. al.
9495 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9496 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9498 whole_archive_flag_spec=
9500 supports_anon_versioning=no
9501 case `$LD -v 2>&1` in
9502 *GNU\ gold*) supports_anon_versioning=yes ;;
9503 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9504 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9505 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9506 *\ 2.11.*) ;; # other 2.11 versions
9507 *) supports_anon_versioning=yes ;;
9510 # See if GNU ld supports shared libraries.
9513 # On AIX/PPC, the GNU linker is very broken
9514 if test "$host_cpu" != ia64; then
9518 *** Warning: the GNU linker, at least up to release 2.19, is reported
9519 *** to be unable to reliably create shared libraries on AIX.
9520 *** Therefore, libtool is disabling shared libraries support. If you
9521 *** really care for shared libraries, you may want to install binutils
9522 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9523 *** You will then need to restart the configuration process.
9532 # see comment about AmigaOS4 .so support
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 archive_expsym_cmds=''
9537 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)'
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_minus_L=yes
9545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 allow_undefined_flag=unsupported
9547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9548 # support --undefined. This deserves some investigation. FIXME
9549 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555 cygwin* | mingw* | pw32* | cegcc*)
9556 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9557 # as there is no search path for DLLs.
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 export_dynamic_flag_spec='${wl}--export-all-symbols'
9560 allow_undefined_flag=unsupported
9561 always_export_symbols=no
9562 enable_shared_with_static_runtimes=yes
9563 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'
9564 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9566 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568 # If the export-symbols file already is a .def file (1st line
9569 # is EXPORTS), use it as is; otherwise, prepend...
9570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9571 cp $export_symbols $output_objdir/$soname.def;
9573 echo EXPORTS > $output_objdir/$soname.def;
9574 cat $export_symbols >> $output_objdir/$soname.def;
9576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 link_all_deplibs=yes
9589 hardcode_shlibpath_var=no
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 export_dynamic_flag_spec='${wl}-E'
9592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9593 # Instead, shared libraries are loaded at an image base (0x10000000 by
9594 # default) and relocated if they conflict, which is a slow very memory
9595 # consuming and fragmenting process. To avoid this, we pick a random,
9596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9599 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'
9602 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9604 if test "$host_os" = linux-dietlibc; then
9605 case $cc_basename in
9606 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9609 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9610 && test "$tmp_diet" = no
9612 tmp_addflag=' $pic_flag'
9613 tmp_sharedflag='-shared'
9614 case $cc_basename,$host_cpu in
9615 pgcc*) # Portland Group C compiler
9616 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'
9617 tmp_addflag=' $pic_flag'
9619 pgf77* | pgf90* | pgf95* | pgfortran*)
9620 # Portland Group f77 and f90 compilers
9621 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'
9622 tmp_addflag=' $pic_flag -Mnomain' ;;
9623 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9624 tmp_addflag=' -i_dynamic' ;;
9625 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9626 tmp_addflag=' -i_dynamic -nofor_main' ;;
9627 ifc* | ifort*) # Intel Fortran compiler
9628 tmp_addflag=' -nofor_main' ;;
9629 lf95*) # Lahey Fortran 8.1
9630 whole_archive_flag_spec=
9631 tmp_sharedflag='--shared' ;;
9632 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9633 tmp_sharedflag='-qmkshrobj'
9635 nvcc*) # Cuda Compiler Driver 2.2
9636 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'
9637 compiler_needs_object=yes
9640 case `$CC -V 2>&1 | sed 5q` in
9641 *Sun\ C*) # Sun C 5.9
9642 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'
9643 compiler_needs_object=yes
9644 tmp_sharedflag='-G' ;;
9645 *Sun\ F*) # Sun Fortran 8.3
9646 tmp_sharedflag='-G' ;;
9648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 if test "x$supports_anon_versioning" = xyes; then
9651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653 echo "local: *; };" >> $output_objdir/$libname.ver~
9654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9657 case $cc_basename in
9658 xlf* | bgf* | bgxlf* | mpixlf*)
9659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9663 if test "x$supports_anon_versioning" = xyes; then
9664 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9666 echo "local: *; };" >> $output_objdir/$libname.ver~
9667 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9676 netbsd* | netbsdelf*-gnu)
9677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9687 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9692 *** create shared libraries on Solaris systems. Therefore, libtool
9693 *** is disabling shared libraries support. We urge you to upgrade GNU
9694 *** binutils to release 2.9.1 or newer. Another option is to modify
9695 *** your PATH or compiler configuration so that the native linker is
9696 *** used, and then restart.
9699 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9708 case `$LD -v 2>&1` in
9709 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9713 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9714 *** reliably create shared libraries on SCO systems. Therefore, libtool
9715 *** is disabling shared libraries support. We urge you to upgrade GNU
9716 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9717 *** your PATH or compiler configuration so that the native linker is
9718 *** used, and then restart.
9723 # For security reasons, it is highly recommended that you always
9724 # use absolute paths for naming shared libraries, and exclude the
9725 # DT_RUNPATH tag from executables and libraries. But doing so
9726 # requires that you compile everything twice, which is a pain.
9727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9739 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_shlibpath_var=no
9746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9755 if test "$ld_shlibs" = no; then
9757 hardcode_libdir_flag_spec=
9758 export_dynamic_flag_spec=
9759 whole_archive_flag_spec=
9762 # PORTME fill in a description of your system's linker (not GNU ld)
9765 allow_undefined_flag=unsupported
9766 always_export_symbols=yes
9767 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'
9768 # Note: this linker hardcodes the directories in LIBPATH if there
9769 # are no directories specified by -L.
9770 hardcode_minus_L=yes
9771 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9772 # Neither direct hardcoding nor static linking is supported with a
9774 hardcode_direct=unsupported
9779 if test "$host_cpu" = ia64; then
9780 # On IA64, the linker does run time linking by default, so we don't
9781 # have to do anything special.
9782 aix_use_runtimelinking=no
9783 exp_sym_flag='-Bexport'
9786 # If we're using GNU nm, then we don't want the "-C" option.
9787 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9788 # Also, AIX nm treats weak defined symbols like other global
9789 # defined symbols, whereas GNU nm marks them as "W".
9790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9791 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'
9793 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'
9795 aix_use_runtimelinking=no
9797 # Test if we are trying to use run time linking or normal
9798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9799 # need to do runtime linking.
9800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9801 for ld_flag in $LDFLAGS; do
9802 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9803 aix_use_runtimelinking=yes
9810 exp_sym_flag='-bexport'
9811 no_entry_flag='-bnoentry'
9814 # When large executables or shared objects are built, AIX ld can
9815 # have problems creating the table of contents. If linking a library
9816 # or program results in "error TOC overflow" add -mminimal-toc to
9817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9822 hardcode_direct_absolute=yes
9823 hardcode_libdir_separator=':'
9824 link_all_deplibs=yes
9825 file_list_spec='${wl}-f,'
9827 if test "$GCC" = yes; then
9828 case $host_os in aix4.[012]|aix4.[012].*)
9829 # We only want to do this on AIX 4.2 and lower, the check
9830 # below for broken collect2 doesn't work under 4.3+
9831 collect2name=`${CC} -print-prog-name=collect2`
9832 if test -f "$collect2name" &&
9833 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9835 # We have reworked collect2
9838 # We have old collect2
9839 hardcode_direct=unsupported
9840 # It fails to find uninstalled libraries when the uninstalled
9841 # path is not listed in the libpath. Setting hardcode_minus_L
9842 # to unsupported forces relinking
9843 hardcode_minus_L=yes
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_libdir_separator=
9849 shared_flag='-shared'
9850 if test "$aix_use_runtimelinking" = yes; then
9851 shared_flag="$shared_flag "'${wl}-G'
9856 if test "$host_cpu" = ia64; then
9857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9858 # chokes on -Wl,-G. The following line is correct:
9861 if test "$aix_use_runtimelinking" = yes; then
9862 shared_flag='${wl}-G'
9864 shared_flag='${wl}-bM:SRE'
9869 export_dynamic_flag_spec='${wl}-bexpall'
9870 # It seems that -bexpall does not export symbols beginning with
9871 # underscore (_), so it is better to generate a list of symbols to export.
9872 always_export_symbols=yes
9873 if test "$aix_use_runtimelinking" = yes; then
9874 # Warning - without using the other runtime loading flags (-brtl),
9875 # -berok will link without error, but may produce a broken library.
9876 allow_undefined_flag='-berok'
9877 # Determine the default libpath from the value encoded in an
9879 if test "${lt_cv_aix_libpath+set}" = set; then
9880 aix_libpath=$lt_cv_aix_libpath
9882 if ${lt_cv_aix_libpath_+:} false; then :
9883 $as_echo_n "(cached) " >&6
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9896 if ac_fn_c_try_link "$LINENO"; then :
9898 lt_aix_libpath_sed='
9899 /Import File Strings/,/^$/ {
9901 s/^0 *\([^ ]*\) *$/\1/
9905 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9906 # Check for a 64-bit object if we didn't find anything.
9907 if test -z "$lt_cv_aix_libpath_"; then
9908 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 if test -z "$lt_cv_aix_libpath_"; then
9914 lt_cv_aix_libpath_="/usr/lib:/lib"
9919 aix_libpath=$lt_cv_aix_libpath_
9922 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9923 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"
9925 if test "$host_cpu" = ia64; then
9926 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9927 allow_undefined_flag="-z nodefs"
9928 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"
9930 # Determine the default libpath from the value encoded in an
9932 if test "${lt_cv_aix_libpath+set}" = set; then
9933 aix_libpath=$lt_cv_aix_libpath
9935 if ${lt_cv_aix_libpath_+:} false; then :
9936 $as_echo_n "(cached) " >&6
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9949 if ac_fn_c_try_link "$LINENO"; then :
9951 lt_aix_libpath_sed='
9952 /Import File Strings/,/^$/ {
9954 s/^0 *\([^ ]*\) *$/\1/
9958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9959 # Check for a 64-bit object if we didn't find anything.
9960 if test -z "$lt_cv_aix_libpath_"; then
9961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 if test -z "$lt_cv_aix_libpath_"; then
9967 lt_cv_aix_libpath_="/usr/lib:/lib"
9972 aix_libpath=$lt_cv_aix_libpath_
9975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9976 # Warning - without using the other run time loading flags,
9977 # -berok will link without error, but may produce a broken library.
9978 no_undefined_flag=' ${wl}-bernotok'
9979 allow_undefined_flag=' ${wl}-berok'
9980 if test "$with_gnu_ld" = yes; then
9981 # We only use this code for GNU lds that support --whole-archive.
9982 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9984 # Exported symbols can be pulled into shared objects from archives
9985 whole_archive_flag_spec='$convenience'
9987 archive_cmds_need_lc=yes
9988 # This is similar to how AIX traditionally builds its shared libraries.
9989 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'
9997 # see comment about AmigaOS4 .so support
9998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999 archive_expsym_cmds=''
10002 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)'
10003 hardcode_libdir_flag_spec='-L$libdir'
10004 hardcode_minus_L=yes
10010 export_dynamic_flag_spec=-rdynamic
10013 cygwin* | mingw* | pw32* | cegcc*)
10014 # When not using gcc, we currently assume that we are using
10015 # Microsoft Visual C++.
10016 # hardcode_libdir_flag_spec is actually meaningless, as there is
10017 # no search path for DLLs.
10018 case $cc_basename in
10021 hardcode_libdir_flag_spec=' '
10022 allow_undefined_flag=unsupported
10023 always_export_symbols=yes
10025 # Tell ltmain to make .lib files, not .a files.
10027 # Tell ltmain to make .dll files, not .so files.
10029 # FIXME: Setting linknames here is a bad hack.
10030 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10031 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10032 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10034 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10036 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10038 # The linker will not automatically build a static lib if we build a DLL.
10039 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10040 enable_shared_with_static_runtimes=yes
10041 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10044 old_postinstall_cmds='chmod 644 $oldlib'
10045 postlink_cmds='lt_outputfile="@OUTPUT@"~
10046 lt_tool_outputfile="@TOOL_OUTPUT@"~
10047 case $lt_outputfile in
10050 lt_outputfile="$lt_outputfile.exe"
10051 lt_tool_outputfile="$lt_tool_outputfile.exe"
10054 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10055 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10056 $RM "$lt_outputfile.manifest";
10060 # Assume MSVC wrapper
10061 hardcode_libdir_flag_spec=' '
10062 allow_undefined_flag=unsupported
10063 # Tell ltmain to make .lib files, not .a files.
10065 # Tell ltmain to make .dll files, not .so files.
10067 # FIXME: Setting linknames here is a bad hack.
10068 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10069 # The linker will automatically build a .lib file if we build a DLL.
10070 old_archive_from_new_cmds='true'
10071 # FIXME: Should let the user specify the lib program.
10072 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10073 enable_shared_with_static_runtimes=yes
10078 darwin* | rhapsody*)
10081 archive_cmds_need_lc=no
10083 hardcode_automatic=yes
10084 hardcode_shlibpath_var=unsupported
10085 if test "$lt_cv_ld_force_load" = "yes"; then
10086 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\"`'
10089 whole_archive_flag_spec=''
10091 link_all_deplibs=yes
10092 allow_undefined_flag="$_lt_dar_allow_undefined"
10093 case $cc_basename in
10094 ifort*) _lt_dar_can_shared=yes ;;
10095 *) _lt_dar_can_shared=$GCC ;;
10097 if test "$_lt_dar_can_shared" = "yes"; then
10098 output_verbose_link_cmd=func_echo_all
10099 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10100 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10101 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}"
10102 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}"
10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_shlibpath_var=no
10116 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10117 # support. Future versions do this automatically, but an explicit c++rt0.o
10118 # does not break anything, and helps significantly (at the cost of a little
10121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10122 hardcode_libdir_flag_spec='-R$libdir'
10123 hardcode_direct=yes
10124 hardcode_shlibpath_var=no
10127 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_direct=yes
10131 hardcode_minus_L=yes
10132 hardcode_shlibpath_var=no
10135 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10136 freebsd* | dragonfly*)
10137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_direct=yes
10140 hardcode_shlibpath_var=no
10144 if test "$GCC" = yes; then
10145 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'
10147 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'
10149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator=:
10151 hardcode_direct=yes
10153 # hardcode_minus_L: Not really in the search PATH,
10154 # but as the default location of the library.
10155 hardcode_minus_L=yes
10156 export_dynamic_flag_spec='${wl}-E'
10160 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10161 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10165 if test "$with_gnu_ld" = no; then
10166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10167 hardcode_libdir_separator=:
10168 hardcode_direct=yes
10169 hardcode_direct_absolute=yes
10170 export_dynamic_flag_spec='${wl}-E'
10171 # hardcode_minus_L: Not really in the search PATH,
10172 # but as the default location of the library.
10173 hardcode_minus_L=yes
10178 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200 # Older versions of the 11.00 compiler do not understand -b yet
10201 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10203 $as_echo_n "checking if $CC understands -b... " >&6; }
10204 if ${lt_cv_prog_compiler__b+:} false; then :
10205 $as_echo_n "(cached) " >&6
10207 lt_cv_prog_compiler__b=no
10208 save_LDFLAGS="$LDFLAGS"
10209 LDFLAGS="$LDFLAGS -b"
10210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10212 # The linker can only warn and ignore the option if not recognized
10213 # So say no if there are warnings
10214 if test -s conftest.err; then
10215 # Append any errors to the config.log.
10216 cat conftest.err 1>&5
10217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10219 if diff conftest.exp conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler__b=yes
10223 lt_cv_prog_compiler__b=yes
10227 LDFLAGS="$save_LDFLAGS"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10231 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10233 if test x"$lt_cv_prog_compiler__b" = xyes; then
10234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10242 if test "$with_gnu_ld" = no; then
10243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244 hardcode_libdir_separator=:
10249 hardcode_shlibpath_var=no
10252 hardcode_direct=yes
10253 hardcode_direct_absolute=yes
10254 export_dynamic_flag_spec='${wl}-E'
10256 # hardcode_minus_L: Not really in the search PATH,
10257 # but as the default location of the library.
10258 hardcode_minus_L=yes
10264 irix5* | irix6* | nonstopux*)
10265 if test "$GCC" = yes; then
10266 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'
10267 # Try to use the -exported_symbol ld option, if it does not
10268 # work, assume that -exports_file does not work either and
10269 # implicitly export all symbols.
10270 # This should be the same for all languages, so no per-tag cache variable.
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10272 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10273 if ${lt_cv_irix_exported_symbol+:} false; then :
10274 $as_echo_n "(cached) " >&6
10276 save_LDFLAGS="$LDFLAGS"
10277 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int foo (void) { return 0; }
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 lt_cv_irix_exported_symbol=yes
10285 lt_cv_irix_exported_symbol=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LDFLAGS="$save_LDFLAGS"
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10292 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10293 if test "$lt_cv_irix_exported_symbol" = yes; then
10294 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'
10297 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'
10298 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'
10300 archive_cmds_need_lc='no'
10301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10302 hardcode_libdir_separator=:
10304 link_all_deplibs=yes
10307 netbsd* | netbsdelf*-gnu)
10308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_direct=yes
10315 hardcode_shlibpath_var=no
10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_direct=yes
10321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323 hardcode_shlibpath_var=no
10330 if test -f /usr/libexec/ld.so; then
10331 hardcode_direct=yes
10332 hardcode_shlibpath_var=no
10333 hardcode_direct_absolute=yes
10334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10338 export_dynamic_flag_spec='${wl}-E'
10341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_libdir_flag_spec='-R$libdir'
10346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10357 hardcode_libdir_flag_spec='-L$libdir'
10358 hardcode_minus_L=yes
10359 allow_undefined_flag=unsupported
10360 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'
10361 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10365 if test "$GCC" = yes; then
10366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10367 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'
10369 allow_undefined_flag=' -expect_unresolved \*'
10370 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'
10372 archive_cmds_need_lc='no'
10373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 hardcode_libdir_separator=:
10377 osf4* | osf5*) # as osf3* with the addition of -msym flag
10378 if test "$GCC" = yes; then
10379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10380 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'
10381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383 allow_undefined_flag=' -expect_unresolved \*'
10384 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'
10385 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~
10386 $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'
10388 # Both c and cxx compiler support -rpath directly
10389 hardcode_libdir_flag_spec='-rpath $libdir'
10391 archive_cmds_need_lc='no'
10392 hardcode_libdir_separator=:
10396 no_undefined_flag=' -z defs'
10397 if test "$GCC" = yes; then
10399 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10401 $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'
10403 case `$CC -V 2>&1` in
10406 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10408 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10412 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10414 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_shlibpath_var=no
10421 solaris2.[0-5] | solaris2.[0-5].*) ;;
10423 # The compiler driver will combine and reorder linker options,
10424 # but understands `-z linker_flag'. GCC discards it without `$wl',
10425 # but is careful enough not to reorder.
10426 # Supported since Solaris 2.6 (maybe 2.5.1?)
10427 if test "$GCC" = yes; then
10428 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10434 link_all_deplibs=yes
10438 if test "x$host_vendor" = xsequent; then
10439 # Use $CC to link under sequent, because it throws in some extra .o
10440 # files that make .init and .fini sections work.
10441 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10445 hardcode_libdir_flag_spec='-L$libdir'
10446 hardcode_direct=yes
10447 hardcode_minus_L=yes
10448 hardcode_shlibpath_var=no
10452 case $host_vendor in
10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455 hardcode_direct=yes # is this really true???
10458 ## LD is ld it makes a PLAMLIB
10459 ## CC just makes a GrossModule.
10460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10461 reload_cmds='$CC -r -o $output$reload_objs'
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10469 runpath_var='LD_RUN_PATH'
10470 hardcode_shlibpath_var=no
10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 hardcode_shlibpath_var=no
10476 export_dynamic_flag_spec='-Bexport'
10480 if test -d /usr/nec; then
10481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482 hardcode_shlibpath_var=no
10483 runpath_var=LD_RUN_PATH
10484 hardcode_runpath_var=yes
10489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10490 no_undefined_flag='${wl}-z,text'
10491 archive_cmds_need_lc=no
10492 hardcode_shlibpath_var=no
10493 runpath_var='LD_RUN_PATH'
10495 if test "$GCC" = yes; then
10496 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 sysv5* | sco3.2v5* | sco5v6*)
10505 # Note: We can NOT use -z defs as we might desire, because we do not
10506 # link with -lc, and that would cause any symbols used from libc to
10507 # always be unresolved, which means just about no library would
10508 # ever link correctly. If we're not using GNU ld we use -z text
10509 # though, which does catch some bad symbols but isn't as heavy-handed
10511 no_undefined_flag='${wl}-z,text'
10512 allow_undefined_flag='${wl}-z,nodefs'
10513 archive_cmds_need_lc=no
10514 hardcode_shlibpath_var=no
10515 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10516 hardcode_libdir_separator=':'
10517 link_all_deplibs=yes
10518 export_dynamic_flag_spec='${wl}-Bexport'
10519 runpath_var='LD_RUN_PATH'
10521 if test "$GCC" = yes; then
10522 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10523 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_shlibpath_var=no
10541 if test x$host_vendor = xsni; then
10543 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10544 export_dynamic_flag_spec='${wl}-Blargedynsym'
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10551 $as_echo "$ld_shlibs" >&6; }
10552 test "$ld_shlibs" = no && can_build_shared=no
10554 with_gnu_ld=$with_gnu_ld
10571 # Do we need to explicitly link libc?
10573 case "x$archive_cmds_need_lc" in
10575 # Assume -lc should be added
10576 archive_cmds_need_lc=yes
10578 if test "$enable_shared" = yes && test "$GCC" = yes; then
10579 case $archive_cmds in
10581 # FIXME: we may have to deal with multi-command sequences.
10584 # Test whether the compiler implicitly links with -lc since on some
10585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10586 # to ld, don't add -lc before -lgcc.
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10589 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10590 $as_echo_n "(cached) " >&6
10593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10596 (eval $ac_compile) 2>&5
10598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10599 test $ac_status = 0; } 2>conftest.err; then
10602 libobjs=conftest.$ac_objext
10604 wl=$lt_prog_compiler_wl
10605 pic_flag=$lt_prog_compiler_pic
10611 lt_save_allow_undefined_flag=$allow_undefined_flag
10612 allow_undefined_flag=
10613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617 test $ac_status = 0; }
10619 lt_cv_archive_cmds_need_lc=no
10621 lt_cv_archive_cmds_need_lc=yes
10623 allow_undefined_flag=$lt_save_allow_undefined_flag
10625 cat conftest.err 1>&5
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10631 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10632 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10791 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10793 if test "$GCC" = yes; then
10795 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10796 *) lt_awk_arg="/^libraries:/" ;;
10799 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10800 *) lt_sed_strip_eq="s,=/,/,g" ;;
10802 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10803 case $lt_search_path_spec in
10805 # if the path contains ";" then we assume it to be the separator
10806 # otherwise default to the standard path separator (i.e. ":") - it is
10807 # assumed that no part of a normal pathname contains ";" but that should
10808 # okay in the real world where ";" in dirpaths is itself problematic.
10809 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10815 # Ok, now we have the path, separated by spaces, we can step through it
10816 # and add multilib dir if necessary.
10817 lt_tmp_lt_search_path_spec=
10818 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10819 for lt_sys_path in $lt_search_path_spec; do
10820 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10823 test -d "$lt_sys_path" && \
10824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10827 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10828 BEGIN {RS=" "; FS="/|\n";} {
10831 for (lt_i = NF; lt_i > 0; lt_i--) {
10832 if ($lt_i != "" && $lt_i != ".") {
10833 if ($lt_i == "..") {
10836 if (lt_count == 0) {
10837 lt_foo="/" $lt_i lt_foo;
10844 if (lt_foo != "") { lt_freq[lt_foo]++; }
10845 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10847 # AWK program above erroneously prepends '/' to C:/dos/paths
10850 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10851 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10853 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10857 library_names_spec=
10858 libname_spec='lib$name'
10862 postuninstall_cmds=
10866 shlibpath_overrides_runpath=unknown
10868 dynamic_linker="$host_os ld.so"
10869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10870 need_lib_prefix=unknown
10871 hardcode_into_libs=no
10873 # when you set need_version to no, make sure it does not cause -set_version
10874 # flags to be left without arguments
10875 need_version=unknown
10879 version_type=linux # correct to gnu/linux during the next big refactor
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10881 shlibpath_var=LIBPATH
10883 # AIX 3 has no versioning support, so we append a major version to the name.
10884 soname_spec='${libname}${release}${shared_ext}$major'
10888 version_type=linux # correct to gnu/linux during the next big refactor
10891 hardcode_into_libs=yes
10892 if test "$host_cpu" = ia64; then
10893 # AIX 5 supports IA64
10894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10895 shlibpath_var=LD_LIBRARY_PATH
10897 # With GCC up to 2.95.x, collect2 would create an import file
10898 # for dependence libraries. The import file would start with
10899 # the line `#! .'. This would cause the generated library to
10900 # depend on `.', always an invalid library. This was fixed in
10901 # development snapshots of GCC prior to 3.0.
10903 aix4 | aix4.[01] | aix4.[01].*)
10904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10909 can_build_shared=no
10913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10914 # soname into executable. Probably we can add versioning support to
10915 # collect2, so additional links can be useful in future.
10916 if test "$aix_use_runtimelinking" = yes; then
10917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10918 # instead of lib<name>.a to let people know that these are not
10919 # typical AIX shared libraries.
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 # We preserve .a as extension for shared libraries through AIX4.2
10923 # and later when we are not doing run time linking.
10924 library_names_spec='${libname}${release}.a $libname.a'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LIBPATH
10934 # Since July 2007 AmigaOS4 officially supports .so libraries.
10935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 library_names_spec='$libname.ixlibrary $libname.a'
10940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10941 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'
10947 library_names_spec='${libname}${shared_ext}'
10948 dynamic_linker="$host_os ld.so"
10949 shlibpath_var=LIBRARY_PATH
10953 version_type=linux # correct to gnu/linux during the next big refactor
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10961 # the default ld.so.conf also contains /usr/contrib/lib and
10962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10963 # libtool to hard-code these into programs
10966 cygwin* | mingw* | pw32* | cegcc*)
10967 version_type=windows
10972 case $GCC,$cc_basename in
10975 library_names_spec='$libname.dll.a'
10976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10977 postinstall_cmds='base_file=`basename \${file}`~
10978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10979 dldir=$destdir/`dirname \$dlpath`~
10980 test -d \$dldir || mkdir -p \$dldir~
10981 $install_prog $dir/$dlname \$dldir/$dlname~
10982 chmod a+x \$dldir/$dlname~
10983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10987 dlpath=$dir/\$dldll~
10989 shlibpath_overrides_runpath=yes
10993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10999 # MinGW DLLs use traditional 'lib' prefix
11000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11003 # pw32 DLLs use 'pw' prefix rather than 'lib'
11004 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11007 dynamic_linker='Win32 ld.exe'
11012 libname_spec='$name'
11013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11014 library_names_spec='${libname}.dll.lib'
11018 sys_lib_search_path_spec=
11021 for lt_path in $LIB
11024 # Let DOS variable expansion print the short 8.3 style file name.
11025 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11026 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11029 # Convert to MSYS style.
11030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11033 # Convert to unix form, then to dos form, then back to unix form
11034 # but this time dos style (no spaces!) so that the unix form looks
11035 # like /cygdrive/c/PROGRA~1:/cygdr...
11036 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11037 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11038 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11041 sys_lib_search_path_spec="$LIB"
11042 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11043 # It is most probably a Windows format PATH.
11044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11048 # FIXME: find the short name or the path components, as spaces are
11049 # common. (e.g. "Program Files" -> "PROGRA~1")
11053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11054 postinstall_cmds='base_file=`basename \${file}`~
11055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11056 dldir=$destdir/`dirname \$dlpath`~
11057 test -d \$dldir || mkdir -p \$dldir~
11058 $install_prog $dir/$dlname \$dldir/$dlname'
11059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11060 dlpath=$dir/\$dldll~
11062 shlibpath_overrides_runpath=yes
11063 dynamic_linker='Win32 link.exe'
11067 # Assume MSVC wrapper
11068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11069 dynamic_linker='Win32 ld.exe'
11072 # FIXME: first we should search . and the directory the executable is in
11076 darwin* | rhapsody*)
11077 dynamic_linker="$host_os dyld"
11078 version_type=darwin
11081 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11082 soname_spec='${libname}${release}${major}$shared_ext'
11083 shlibpath_overrides_runpath=yes
11084 shlibpath_var=DYLD_LIBRARY_PATH
11085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11092 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11100 freebsd* | dragonfly*)
11101 # DragonFly does not have aout. When/if they implement a new
11102 # versioning mechanism, adjust this.
11103 if test -x /usr/bin/objformat; then
11104 objformat=`/usr/bin/objformat`
11107 freebsd[23].*) objformat=aout ;;
11108 *) objformat=elf ;;
11111 version_type=freebsd-$objformat
11112 case $version_type in
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11123 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11128 freebsd3.[01]* | freebsdelf3.[01]*)
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11137 *) # from 4.6 on, and DragonFly
11138 shlibpath_overrides_runpath=yes
11139 hardcode_into_libs=yes
11145 version_type=linux # correct to gnu/linux during the next big refactor
11148 dynamic_linker="$host_os runtime_loader"
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 shlibpath_var=LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11154 hardcode_into_libs=yes
11157 hpux9* | hpux10* | hpux11*)
11158 # Give a soname corresponding to the major version so that dld.sl refuses to
11159 # link against other versions.
11166 hardcode_into_libs=yes
11167 dynamic_linker="$host_os dld.so"
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 if test "X$HPUX_IA64_MODE" = X32; then
11173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 hardcode_into_libs=yes
11182 dynamic_linker="$host_os dld.sl"
11183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192 dynamic_linker="$host_os dld.sl"
11193 shlibpath_var=SHLIB_PATH
11194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11200 postinstall_cmds='chmod 555 $lib'
11201 # or fails outright, so override atomically:
11202 install_override_mode=555
11206 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11217 irix5* | irix6* | nonstopux*)
11219 nonstopux*) version_type=nonstopux ;;
11221 if test "$lt_cv_prog_gnu_ld" = yes; then
11222 version_type=linux # correct to gnu/linux during the next big refactor
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11232 irix5* | nonstopux*)
11233 libsuff= shlibsuff=
11236 case $LD in # libtool.m4 will add one of these switches to LD
11237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11238 libsuff= shlibsuff= libmagic=32-bit;;
11239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11240 libsuff=32 shlibsuff=N32 libmagic=N32;;
11241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11243 *) libsuff= shlibsuff= libmagic=never-match;;
11247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11248 shlibpath_overrides_runpath=no
11249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11251 hardcode_into_libs=yes
11254 # No shared lib support for Linux oldld, aout, or coff.
11255 linux*oldld* | linux*aout* | linux*coff*)
11259 # This must be glibc/ELF.
11260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11261 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=no
11270 # Some binutils ld are patched to set DT_RUNPATH
11271 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11272 $as_echo_n "(cached) " >&6
11274 lt_cv_shlibpath_overrides_runpath=no
11275 save_LDFLAGS=$LDFLAGS
11276 save_libdir=$libdir
11277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11290 if ac_fn_c_try_link "$LINENO"; then :
11291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11292 lt_cv_shlibpath_overrides_runpath=yes
11295 rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297 LDFLAGS=$save_LDFLAGS
11298 libdir=$save_libdir
11302 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11304 # This implies no fast_install, which is unacceptable.
11305 # Some rework will be needed to allow for fast_install
11306 # before this can be enabled.
11307 hardcode_into_libs=yes
11309 # Append ld.so.conf contents to the search path
11310 if test -f /etc/ld.so.conf; then
11311 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' ' '`
11312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11315 # We used to test for /lib/ld.so.1 and disable shared libraries on
11316 # powerpc, because MkLinux only supported shared libraries with the
11317 # GNU dynamic linker. Since this was broken with cross compilers,
11318 # most powerpc-linux boxes support dynamic linking these days and
11319 # people can always --disable-shared, the test was removed, and we
11320 # assume the GNU/Linux dynamic linker is in use.
11321 dynamic_linker='GNU/Linux ld.so'
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=no
11332 hardcode_into_libs=yes
11333 dynamic_linker='NetBSD ld.elf_so'
11340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343 dynamic_linker='NetBSD (a.out) ld.so'
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 dynamic_linker='NetBSD ld.elf_so'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 hardcode_into_libs=yes
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=no
11369 hardcode_into_libs=yes
11370 dynamic_linker='ldqnx.so'
11375 sys_lib_dlsearch_path_spec="/usr/lib"
11377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11380 *) need_version=no ;;
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11387 openbsd2.[89] | openbsd2.[89].*)
11388 shlibpath_overrides_runpath=no
11391 shlibpath_overrides_runpath=yes
11395 shlibpath_overrides_runpath=yes
11400 libname_spec='$name'
11403 library_names_spec='$libname${shared_ext} $libname.a'
11404 dynamic_linker='OS/2 ld.exe'
11405 shlibpath_var=LIBPATH
11408 osf3* | osf4* | osf5*)
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11424 version_type=linux # correct to gnu/linux during the next big refactor
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11432 # ldd complains unless libraries are executable
11433 postinstall_cmds='chmod +x $lib'
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes
11442 if test "$with_gnu_ld" = yes; then
11449 version_type=linux # correct to gnu/linux during the next big refactor
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 case $host_vendor in
11455 shlibpath_overrides_runpath=no
11457 runpath_var=LD_RUN_PATH
11465 shlibpath_overrides_runpath=no
11466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11472 if test -d /usr/nec ;then
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11475 soname_spec='$libname${shared_ext}.$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11481 version_type=freebsd-elf
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=yes
11488 hardcode_into_libs=yes
11489 if test "$with_gnu_ld" = yes; then
11490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11499 sys_lib_dlsearch_path_spec='/usr/lib'
11503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11504 version_type=linux # correct to gnu/linux during the next big refactor
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11525 $as_echo "$dynamic_linker" >&6; }
11526 test "$dynamic_linker" = no && can_build_shared=no
11528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11529 if test "$GCC" = yes; then
11530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11634 if test -n "$hardcode_libdir_flag_spec" ||
11635 test -n "$runpath_var" ||
11636 test "X$hardcode_automatic" = "Xyes" ; then
11638 # We can hardcode non-existent directories.
11639 if test "$hardcode_direct" != no &&
11640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641 # have to relink, otherwise we might link with an installed library
11642 # when we should be linking with a yet-to-be-installed one
11643 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11644 test "$hardcode_minus_L" != no; then
11645 # Linking always hardcodes the temporary library directory.
11646 hardcode_action=relink
11648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649 hardcode_action=immediate
11652 # We cannot hardcode anything, or else we can only hardcode existing
11654 hardcode_action=unsupported
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11657 $as_echo "$hardcode_action" >&6; }
11659 if test "$hardcode_action" = relink ||
11660 test "$inherit_rpath" = yes; then
11661 # Fast installation is not supported
11662 enable_fast_install=no
11663 elif test "$shlibpath_overrides_runpath" = yes ||
11664 test "$enable_shared" = no; then
11665 # Fast installation is not necessary
11666 enable_fast_install=needless
11674 if test "x$enable_dlopen" != xyes; then
11675 enable_dlopen=unknown
11676 enable_dlopen_self=unknown
11677 enable_dlopen_self_static=unknown
11684 lt_cv_dlopen="load_add_on"
11686 lt_cv_dlopen_self=yes
11689 mingw* | pw32* | cegcc*)
11690 lt_cv_dlopen="LoadLibrary"
11695 lt_cv_dlopen="dlopen"
11700 # if libdl is installed we need to link against it
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11702 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11703 if ${ac_cv_lib_dl_dlopen+:} false; then :
11704 $as_echo_n "(cached) " >&6
11706 ac_check_lib_save_LIBS=$LIBS
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11726 if ac_fn_c_try_link "$LINENO"; then :
11727 ac_cv_lib_dl_dlopen=yes
11729 ac_cv_lib_dl_dlopen=no
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11741 lt_cv_dlopen="dyld"
11743 lt_cv_dlopen_self=yes
11750 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11751 if test "x$ac_cv_func_shl_load" = xyes; then :
11752 lt_cv_dlopen="shl_load"
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11755 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11756 if ${ac_cv_lib_dld_shl_load+:} false; then :
11757 $as_echo_n "(cached) " >&6
11759 ac_check_lib_save_LIBS=$LIBS
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11774 return shl_load ();
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_dld_shl_load=yes
11782 ac_cv_lib_dld_shl_load=no
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11789 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11790 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11791 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11793 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11794 if test "x$ac_cv_func_dlopen" = xyes; then :
11795 lt_cv_dlopen="dlopen"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if ${ac_cv_lib_dl_dlopen+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 ac_check_lib_save_LIBS=$LIBS
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dl_dlopen=yes
11825 ac_cv_lib_dl_dlopen=no
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11837 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11838 if ${ac_cv_lib_svld_dlopen+:} false; then :
11839 $as_echo_n "(cached) " >&6
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lsvld $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_svld_dlopen=yes
11864 ac_cv_lib_svld_dlopen=no
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11872 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11877 if ${ac_cv_lib_dld_dld_link+:} false; then :
11878 $as_echo_n "(cached) " >&6
11880 ac_check_lib_save_LIBS=$LIBS
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11895 return dld_link ();
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_lib_dld_dld_link=yes
11903 ac_cv_lib_dld_dld_link=no
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11910 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11911 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11933 if test "x$lt_cv_dlopen" != xno; then
11939 case $lt_cv_dlopen in
11941 save_CPPFLAGS="$CPPFLAGS"
11942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11944 save_LDFLAGS="$LDFLAGS"
11945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11948 LIBS="$lt_cv_dlopen_libs $LIBS"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11951 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11952 if ${lt_cv_dlopen_self+:} false; then :
11953 $as_echo_n "(cached) " >&6
11955 if test "$cross_compiling" = yes; then :
11956 lt_cv_dlopen_self=cross
11958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11959 lt_status=$lt_dlunknown
11960 cat > conftest.$ac_ext <<_LT_EOF
11961 #line $LINENO "configure"
11962 #include "confdefs.h"
11971 # define LT_DLGLOBAL RTLD_GLOBAL
11974 # define LT_DLGLOBAL DL_GLOBAL
11976 # define LT_DLGLOBAL 0
11980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11981 find out it does not work in some platform. */
11982 #ifndef LT_DLLAZY_OR_NOW
11984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11987 # define LT_DLLAZY_OR_NOW DL_LAZY
11990 # define LT_DLLAZY_OR_NOW RTLD_NOW
11993 # define LT_DLLAZY_OR_NOW DL_NOW
11995 # define LT_DLLAZY_OR_NOW 0
12002 /* When -fvisbility=hidden is used, assume the code has been annotated
12003 correspondingly for the symbols needed. */
12004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12005 int fnord () __attribute__((visibility("default")));
12008 int fnord () { return 42; }
12011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12012 int status = $lt_dlunknown;
12016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12019 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12020 else puts (dlerror ());
12022 /* dlclose (self); */
12030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12031 (eval $ac_link) 2>&5
12033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12035 (./conftest; exit; ) >&5 2>/dev/null
12037 case x$lt_status in
12038 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12039 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12040 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12043 # compilation failed
12044 lt_cv_dlopen_self=no
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12052 $as_echo "$lt_cv_dlopen_self" >&6; }
12054 if test "x$lt_cv_dlopen_self" = xyes; then
12055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12057 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12058 if ${lt_cv_dlopen_self_static+:} false; then :
12059 $as_echo_n "(cached) " >&6
12061 if test "$cross_compiling" = yes; then :
12062 lt_cv_dlopen_self_static=cross
12064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12065 lt_status=$lt_dlunknown
12066 cat > conftest.$ac_ext <<_LT_EOF
12067 #line $LINENO "configure"
12068 #include "confdefs.h"
12077 # define LT_DLGLOBAL RTLD_GLOBAL
12080 # define LT_DLGLOBAL DL_GLOBAL
12082 # define LT_DLGLOBAL 0
12086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12087 find out it does not work in some platform. */
12088 #ifndef LT_DLLAZY_OR_NOW
12090 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12093 # define LT_DLLAZY_OR_NOW DL_LAZY
12096 # define LT_DLLAZY_OR_NOW RTLD_NOW
12099 # define LT_DLLAZY_OR_NOW DL_NOW
12101 # define LT_DLLAZY_OR_NOW 0
12108 /* When -fvisbility=hidden is used, assume the code has been annotated
12109 correspondingly for the symbols needed. */
12110 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12111 int fnord () __attribute__((visibility("default")));
12114 int fnord () { return 42; }
12117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118 int status = $lt_dlunknown;
12122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12125 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12126 else puts (dlerror ());
12128 /* dlclose (self); */
12136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12137 (eval $ac_link) 2>&5
12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12141 (./conftest; exit; ) >&5 2>/dev/null
12143 case x$lt_status in
12144 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12145 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12146 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12149 # compilation failed
12150 lt_cv_dlopen_self_static=no
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12158 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12161 CPPFLAGS="$save_CPPFLAGS"
12162 LDFLAGS="$save_LDFLAGS"
12167 case $lt_cv_dlopen_self in
12168 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12169 *) enable_dlopen_self=unknown ;;
12172 case $lt_cv_dlopen_self_static in
12173 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12174 *) enable_dlopen_self_static=unknown ;;
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12197 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12198 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12199 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12200 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12202 $as_echo "yes" >&6; }
12204 # FIXME - insert some real tests, host_os isn't really good enough
12207 if test -n "$STRIP" ; then
12208 striplib="$STRIP -x"
12209 old_striplib="$STRIP -S"
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211 $as_echo "yes" >&6; }
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12235 # Report which library types will actually be built
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12237 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12239 $as_echo "$can_build_shared" >&6; }
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12242 $as_echo_n "checking whether to build shared libraries... " >&6; }
12243 test "$can_build_shared" = "no" && enable_shared=no
12245 # On AIX, shared libraries and static libraries use the same namespace, and
12246 # are all built from PIC.
12249 test "$enable_shared" = yes && enable_static=no
12250 if test -n "$RANLIB"; then
12251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12252 postinstall_cmds='$RANLIB $lib'
12257 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12258 test "$enable_shared" = yes && enable_static=no
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12263 $as_echo "$enable_shared" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12266 $as_echo_n "checking whether to build static libraries... " >&6; }
12267 # Make sure either enable_shared or enable_static is yes.
12268 test "$enable_shared" = yes || enable_static=yes
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12270 $as_echo "$enable_static" >&6; }
12277 ac_cpp='$CPP $CPPFLAGS'
12278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 ac_config_commands="$ac_config_commands libtool"
12303 # Only expand once:
12307 # Check for the -Bsymbolic-functions linker flag
12308 # Check whether --enable-Bsymbolic was given.
12309 if test "${enable_Bsymbolic+set}" = set; then :
12310 enableval=$enable_Bsymbolic;
12312 enable_Bsymbolic=check
12316 if test "x$enable_Bsymbolic" = "xcheck"; then :
12318 saved_LDFLAGS="${LDFLAGS}"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
12320 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
12321 LDFLAGS=-Wl,-Bsymbolic-functions
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12328 int main (void) { return 0; }
12333 if ac_fn_c_try_link "$LINENO"; then :
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336 $as_echo "yes" >&6; }
12337 enable_Bsymbolic=yes
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 enable_Bsymbolic=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LDFLAGS="${saved_LDFLAGS}"
12352 if test "x$enable_Bsymbolic" = "xyes"; then :
12353 JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
12361 for flag in -Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations; do
12362 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12364 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12365 if eval \${$as_CACHEVAR+:} false; then :
12366 $as_echo_n "(cached) " >&6
12369 ax_check_save_flags=$CFLAGS
12370 CFLAGS="$CFLAGS $flag"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 eval "$as_CACHEVAR=yes"
12385 eval "$as_CACHEVAR=no"
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 CFLAGS=$ax_check_save_flags
12390 eval ac_res=\$$as_CACHEVAR
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12392 $as_echo "$ac_res" >&6; }
12393 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12395 if ${CFLAGS+:} false; then :
12397 case " $CFLAGS " in #(
12399 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12400 (: CFLAGS already contains $flag) 2>&5
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; } ;; #(
12406 as_fn_append CFLAGS " $flag"
12407 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12408 (: CFLAGS="$CFLAGS") 2>&5
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }
12418 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12419 (: CFLAGS="$CFLAGS") 2>&5
12421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; }
12436 for flag in -Wextra -Wwrite-string -Wno-unused-parameter; do
12437 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12439 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12440 if eval \${$as_CACHEVAR+:} false; then :
12441 $as_echo_n "(cached) " >&6
12444 ax_check_save_flags=$CFLAGS
12445 CFLAGS="$CFLAGS $flag"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12457 if ac_fn_c_try_compile "$LINENO"; then :
12458 eval "$as_CACHEVAR=yes"
12460 eval "$as_CACHEVAR=no"
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463 CFLAGS=$ax_check_save_flags
12465 eval ac_res=\$$as_CACHEVAR
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12467 $as_echo "$ac_res" >&6; }
12468 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12470 if ${CFLAGS+:} false; then :
12472 case " $CFLAGS " in #(
12474 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12475 (: CFLAGS already contains $flag) 2>&5
12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478 test $ac_status = 0; } ;; #(
12481 as_fn_append CFLAGS " $flag"
12482 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12483 (: CFLAGS="$CFLAGS") 2>&5
12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486 test $ac_status = 0; }
12493 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12494 (: CFLAGS="$CFLAGS") 2>&5
12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497 test $ac_status = 0; }
12511 for flag in -D_GNU_SOURCE; do
12512 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12514 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12515 if eval \${$as_CACHEVAR+:} false; then :
12516 $as_echo_n "(cached) " >&6
12519 ax_check_save_flags=$CFLAGS
12520 CFLAGS="$CFLAGS $flag"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533 eval "$as_CACHEVAR=yes"
12535 eval "$as_CACHEVAR=no"
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 CFLAGS=$ax_check_save_flags
12540 eval ac_res=\$$as_CACHEVAR
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12542 $as_echo "$ac_res" >&6; }
12543 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12545 if ${CFLAGS+:} false; then :
12547 case " $CFLAGS " in #(
12549 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12550 (: CFLAGS already contains $flag) 2>&5
12552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553 test $ac_status = 0; } ;; #(
12556 as_fn_append CFLAGS " $flag"
12557 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12558 (: CFLAGS="$CFLAGS") 2>&5
12560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561 test $ac_status = 0; }
12568 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12569 (: CFLAGS="$CFLAGS") 2>&5
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; }
12584 ac_cpp='$CPP $CPPFLAGS'
12585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatibility with _REENTRANT and toolchain headers" >&5
12590 $as_echo_n "checking for compatibility with _REENTRANT and toolchain headers... " >&6; }
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12595 /* uClibc toolchains without threading barf when _REENTRANT is defined */
12596 #define _REENTRANT 1
12597 #include <sys/types.h>
12604 if ac_fn_c_try_link "$LINENO"; then :
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607 $as_echo "yes" >&6; }
12612 for flag in -D_REENTRANT; do
12613 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12615 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12616 if eval \${$as_CACHEVAR+:} false; then :
12617 $as_echo_n "(cached) " >&6
12620 ax_check_save_flags=$CFLAGS
12621 CFLAGS="$CFLAGS $flag"
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12633 if ac_fn_c_try_compile "$LINENO"; then :
12634 eval "$as_CACHEVAR=yes"
12636 eval "$as_CACHEVAR=no"
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 CFLAGS=$ax_check_save_flags
12641 eval ac_res=\$$as_CACHEVAR
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12643 $as_echo "$ac_res" >&6; }
12644 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12646 if ${CFLAGS+:} false; then :
12648 case " $CFLAGS " in #(
12650 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12651 (: CFLAGS already contains $flag) 2>&5
12653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654 test $ac_status = 0; } ;; #(
12657 as_fn_append CFLAGS " $flag"
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12659 (: CFLAGS="$CFLAGS") 2>&5
12661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662 test $ac_status = 0; }
12669 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12670 (: CFLAGS="$CFLAGS") 2>&5
12672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673 test $ac_status = 0; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12690 rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12693 ac_cpp='$CPP $CPPFLAGS'
12694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12701 $as_echo_n "checking size of int... " >&6; }
12702 if ${ac_cv_sizeof_int+:} false; then :
12703 $as_echo_n "(cached) " >&6
12705 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 #include "confdefs.h"
12709 #include <sys/types.h>
12715 switch (0) case 0: case (sizeof (int) == $ac_size):;
12720 if ac_fn_c_try_compile "$LINENO"; then :
12721 ac_cv_sizeof_int=$ac_size
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 if test x$ac_cv_sizeof_int != x ; then break; fi
12729 if test x$ac_cv_sizeof_int = x ; then
12730 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12733 $as_echo "$ac_cv_sizeof_int" >&6; }
12735 cat >>confdefs.h <<_ACEOF
12736 #define SIZEOF_INT $ac_cv_sizeof_int
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12741 $as_echo_n "checking size of long... " >&6; }
12742 if ${ac_cv_sizeof_long+:} false; then :
12743 $as_echo_n "(cached) " >&6
12745 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 #include "confdefs.h"
12749 #include <sys/types.h>
12755 switch (0) case 0: case (sizeof (long) == $ac_size):;
12760 if ac_fn_c_try_compile "$LINENO"; then :
12761 ac_cv_sizeof_long=$ac_size
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 if test x$ac_cv_sizeof_long != x ; then break; fi
12769 if test x$ac_cv_sizeof_long = x ; then
12770 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12773 $as_echo "$ac_cv_sizeof_long" >&6; }
12775 cat >>confdefs.h <<_ACEOF
12776 #define SIZEOF_LONG $ac_cv_sizeof_long
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12781 $as_echo_n "checking size of long long... " >&6; }
12782 if ${ac_cv_sizeof_long_long+:} false; then :
12783 $as_echo_n "(cached) " >&6
12785 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include "confdefs.h"
12789 #include <sys/types.h>
12795 switch (0) case 0: case (sizeof (long long) == $ac_size):;
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 ac_cv_sizeof_long_long=$ac_size
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 if test x$ac_cv_sizeof_long_long != x ; then break; fi
12809 if test x$ac_cv_sizeof_long_long = x ; then
12810 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12813 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12815 cat >>confdefs.h <<_ACEOF
12816 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12821 $as_echo_n "checking size of size_t... " >&6; }
12822 if ${ac_cv_sizeof_size_t+:} false; then :
12823 $as_echo_n "(cached) " >&6
12825 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #include "confdefs.h"
12829 #include <sys/types.h>
12830 #include <stdint.h>
12835 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841 ac_cv_sizeof_size_t=$ac_size
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 if test x$ac_cv_sizeof_size_t != x ; then break; fi
12849 if test x$ac_cv_sizeof_size_t = x ; then
12850 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12853 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12855 cat >>confdefs.h <<_ACEOF
12856 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12861 $as_echo_n "checking size of int64_t... " >&6; }
12862 if ${ac_cv_sizeof_int64_t+:} false; then :
12863 $as_echo_n "(cached) " >&6
12865 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include "confdefs.h"
12869 #include <sys/types.h>
12870 #include <stdint.h>
12875 switch (0) case 0: case (sizeof (int64_t) == $ac_size):;
12880 if ac_fn_c_try_compile "$LINENO"; then :
12881 ac_cv_sizeof_int64_t=$ac_size
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 if test x$ac_cv_sizeof_int64_t != x ; then break; fi
12889 if test x$ac_cv_sizeof_int64_t = x ; then
12890 as_fn_error $? "cannot determine a size for int64_t" "$LINENO" 5
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12893 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12895 cat >>confdefs.h <<_ACEOF
12896 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12901 ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
12904 cat >confcache <<\_ACEOF
12905 # This file is a shell script that caches the results of configure
12906 # tests run on this system so they can be shared between configure
12907 # scripts and configure runs, see configure's option --config-cache.
12908 # It is not useful on other systems. If it contains results you don't
12909 # want to keep, you may remove or edit it.
12911 # config.status only pays attention to the cache file if you give it
12912 # the --recheck option to rerun configure.
12914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12916 # following values.
12920 # The following way of writing the cache mishandles newlines in values,
12921 # but we know of no workaround that is simple, portable, and efficient.
12922 # So, we kill variables containing newlines.
12923 # Ultrix sh set writes to stderr and can't be redirected directly,
12924 # and sets the high bit in the cache file unless we assign to the vars.
12926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12927 eval ac_val=\$$ac_var
12931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12935 _ | IFS | as_nl) ;; #(
12936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12937 *) { eval $ac_var=; unset $ac_var;} ;;
12943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12944 *${as_nl}ac_space=\ *)
12945 # `set' does not quote correctly, so add quotes: double-quote
12946 # substitution turns \\\\ into \\, and sed turns \\ into \.
12949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12952 # `set' quotes correctly as required by POSIX, so do not add quotes.
12953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12967 if test -w "$cache_file"; then
12968 if test "x$cache_file" != "x/dev/null"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12970 $as_echo "$as_me: updating cache $cache_file" >&6;}
12971 if test ! -f "$cache_file" || test -h "$cache_file"; then
12972 cat confcache >"$cache_file"
12974 case $cache_file in #(
12976 mv -f confcache "$cache_file"$$ &&
12977 mv -f "$cache_file"$$ "$cache_file" ;; #(
12979 mv -f confcache "$cache_file" ;;
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12985 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12991 # Let make expand exec_prefix.
12992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12994 DEFS=-DHAVE_CONFIG_H
12999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13000 # 1. Remove the extension, and $U if already installed.
13001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13002 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13004 # will be set to the directory where LIBOBJS objects are built.
13005 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13006 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13008 LIBOBJS=$ac_libobjs
13010 LTLIBOBJS=$ac_ltlibobjs
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13014 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13015 if test -n "$am_sleep_pid"; then
13016 # Hide warnings about reused PIDs.
13017 wait $am_sleep_pid 2>/dev/null
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13020 $as_echo "done" >&6; }
13021 if test -n "$EXEEXT"; then
13023 am__EXEEXT_FALSE='#'
13025 am__EXEEXT_TRUE='#'
13029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13030 as_fn_error $? "conditional \"AMDEP\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13034 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13038 : "${CONFIG_STATUS=./config.status}"
13040 ac_clean_files_save=$ac_clean_files
13041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13047 # Generated by $as_me.
13048 # Run this file to recreate the current configuration.
13049 # Compiler output produced by configure, useful for debugging
13050 # configure, is in config.log if it exists.
13053 ac_cs_recheck=false
13056 SHELL=\${CONFIG_SHELL-$SHELL}
13059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13060 ## -------------------- ##
13061 ## M4sh Initialization. ##
13062 ## -------------------- ##
13064 # Be more Bourne compatible
13065 DUALCASE=1; export DUALCASE # for MKS sh
13066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13070 # is contrary to our usage. Disable this feature.
13071 alias -g '${1+"$@"}'='"$@"'
13072 setopt NO_GLOB_SUBST
13074 case `(set -o) 2>/dev/null` in #(
13086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13087 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13090 # Prefer a ksh shell builtin over an external printf program on Solaris,
13091 # but without wasting forks for bash or zsh.
13092 if test -z "$BASH_VERSION$ZSH_VERSION" \
13093 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13094 as_echo='print -r --'
13095 as_echo_n='print -rn --'
13096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13097 as_echo='printf %s\n'
13098 as_echo_n='printf %s'
13100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13102 as_echo_n='/usr/ucb/echo -n'
13104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13105 as_echo_n_body='eval
13109 expr "X$arg" : "X\\(.*\\)$as_nl";
13110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13114 export as_echo_n_body
13115 as_echo_n='sh -c $as_echo_n_body as_echo'
13117 export as_echo_body
13118 as_echo='sh -c $as_echo_body as_echo'
13121 # The user is always right.
13122 if test "${PATH_SEPARATOR+set}" != set; then
13124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13132 # We need space, tab and new line, in precisely that order. Quoting is
13133 # there to prevent editors from complaining about space-tab.
13134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13135 # splitting by setting IFS to empty value.)
13138 # Find who we are. Look in the path if we contain no directory separator.
13141 *[\\/]* ) as_myself=$0 ;;
13142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13146 test -z "$as_dir" && as_dir=.
13147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13153 # We did not find ourselves, most probably we were run as `sh COMMAND'
13154 # in which case we are not to be found in the path.
13155 if test "x$as_myself" = x; then
13158 if test ! -f "$as_myself"; then
13159 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13163 # Unset variables that we do not need and which cause bugs (e.g. in
13164 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13165 # suppresses any "Segmentation fault" message there. '((' could
13166 # trigger a bug in pdksh 5.2.14.
13167 for as_var in BASH_ENV ENV MAIL MAILPATH
13168 do eval test x\${$as_var+set} = xset \
13169 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13185 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13186 # ----------------------------------------
13187 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13188 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13189 # script with STATUS, using 1 if that was 0.
13192 as_status=$1; test $as_status -eq 0 && as_status=1
13194 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13195 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13197 $as_echo "$as_me: error: $2" >&2
13198 as_fn_exit $as_status
13202 # as_fn_set_status STATUS
13203 # -----------------------
13204 # Set $? to STATUS, without forking.
13205 as_fn_set_status ()
13208 } # as_fn_set_status
13210 # as_fn_exit STATUS
13211 # -----------------
13212 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13216 as_fn_set_status $1
13222 # Portably unset VAR.
13225 { eval $1=; unset $1;}
13227 as_unset=as_fn_unset
13228 # as_fn_append VAR VALUE
13229 # ----------------------
13230 # Append the text in VALUE to the end of the definition contained in VAR. Take
13231 # advantage of any shell optimizations that allow amortized linear growth over
13232 # repeated appends, instead of the typical quadratic growth present in naive
13234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13235 eval 'as_fn_append ()
13246 # as_fn_arith ARG...
13247 # ------------------
13248 # Perform arithmetic evaluation on the ARGs, and store the result in the
13249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13250 # must be portable across $(()) and expr.
13251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13252 eval 'as_fn_arith ()
13259 as_val=`expr "$@" || test $? -eq 1`
13264 if expr a : '\(a\)' >/dev/null 2>&1 &&
13265 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13271 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13272 as_basename=basename
13277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13283 as_me=`$as_basename -- "$0" ||
13284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13285 X"$0" : 'X\(//\)$' \| \
13286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13288 sed '/^.*\/\([^/][^/]*\)\/*$/{
13302 # Avoid depending upon Character Ranges.
13303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13306 as_cr_digits='0123456789'
13307 as_cr_alnum=$as_cr_Letters$as_cr_digits
13309 ECHO_C= ECHO_N= ECHO_T=
13310 case `echo -n x` in #(((((
13312 case `echo 'xy\c'` in
13313 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13315 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13322 rm -f conf$$ conf$$.exe conf$$.file
13323 if test -d conf$$.dir; then
13324 rm -f conf$$.dir/conf$$.file
13327 mkdir conf$$.dir 2>/dev/null
13329 if (echo >conf$$.file) 2>/dev/null; then
13330 if ln -s conf$$.file conf$$ 2>/dev/null; then
13332 # ... but there are two gotchas:
13333 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13334 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13335 # In both cases, we have to default to `cp -pR'.
13336 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13338 elif ln conf$$.file conf$$ 2>/dev/null; then
13346 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13347 rmdir conf$$.dir 2>/dev/null
13352 # Create "$as_dir" as a directory, including parents if necessary.
13357 -*) as_dir=./$as_dir;;
13359 test -d "$as_dir" || eval $as_mkdir_p || {
13363 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13364 *) as_qdir=$as_dir;;
13366 as_dirs="'$as_qdir' $as_dirs"
13367 as_dir=`$as_dirname -- "$as_dir" ||
13368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13369 X"$as_dir" : 'X\(//\)[^/]' \| \
13370 X"$as_dir" : 'X\(//\)$' \| \
13371 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13372 $as_echo X"$as_dir" |
13373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13377 /^X\(\/\/\)[^/].*/{
13390 test -d "$as_dir" && break
13392 test -z "$as_dirs" || eval "mkdir $as_dirs"
13393 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13397 if mkdir -p . 2>/dev/null; then
13398 as_mkdir_p='mkdir -p "$as_dir"'
13400 test -d ./-p && rmdir ./-p
13405 # as_fn_executable_p FILE
13406 # -----------------------
13407 # Test if FILE is an executable regular file.
13408 as_fn_executable_p ()
13410 test -f "$1" && test -x "$1"
13411 } # as_fn_executable_p
13412 as_test_x='test -x'
13413 as_executable_p=as_fn_executable_p
13415 # Sed expression to map a string onto a valid CPP name.
13416 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13418 # Sed expression to map a string onto a valid variable name.
13419 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13423 ## ----------------------------------- ##
13424 ## Main body of $CONFIG_STATUS script. ##
13425 ## ----------------------------------- ##
13427 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430 # Save the log message, to keep $0 and so on meaningful, and to
13431 # report actual input values of CONFIG_FILES etc. instead of their
13432 # values after options handling.
13434 This file was extended by json-c $as_me 0.13.1, which was
13435 generated by GNU Autoconf 2.69. Invocation command line was
13437 CONFIG_FILES = $CONFIG_FILES
13438 CONFIG_HEADERS = $CONFIG_HEADERS
13439 CONFIG_LINKS = $CONFIG_LINKS
13440 CONFIG_COMMANDS = $CONFIG_COMMANDS
13443 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13448 case $ac_config_files in *"
13449 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13452 case $ac_config_headers in *"
13453 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13458 # Files that config.status was made for.
13459 config_files="$ac_config_files"
13460 config_headers="$ac_config_headers"
13461 config_commands="$ac_config_commands"
13465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13467 \`$as_me' instantiates files and other configuration actions
13468 from templates according to the current configuration. Unless the files
13469 and actions are specified as TAGs, all are instantiated by default.
13471 Usage: $0 [OPTION]... [TAG]...
13473 -h, --help print this help, then exit
13474 -V, --version print version number and configuration settings, then exit
13475 --config print configuration, then exit
13476 -q, --quiet, --silent
13477 do not print progress messages
13478 -d, --debug don't remove temporary files
13479 --recheck update $as_me by reconfiguring in the same conditions
13480 --file=FILE[:TEMPLATE]
13481 instantiate the configuration file FILE
13482 --header=FILE[:TEMPLATE]
13483 instantiate the configuration header FILE
13485 Configuration files:
13488 Configuration headers:
13491 Configuration commands:
13494 Report bugs to <json-c@googlegroups.com>."
13497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13498 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13500 json-c config.status 0.13.1
13501 configured by $0, generated by GNU Autoconf 2.69,
13502 with options \\"\$ac_cs_config\\"
13504 Copyright (C) 2012 Free Software Foundation, Inc.
13505 This config.status script is free software; the Free Software Foundation
13506 gives unlimited permission to copy, distribute and modify it."
13513 test -n "\$AWK" || AWK=awk
13516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13517 # The default lists apply if the user does not specify any file.
13523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13540 # Handling of the options.
13541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13544 $as_echo "$ac_cs_version"; exit ;;
13545 --config | --confi | --conf | --con | --co | --c )
13546 $as_echo "$ac_cs_config"; exit ;;
13547 --debug | --debu | --deb | --de | --d | -d )
13549 --file | --fil | --fi | --f )
13552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13553 '') as_fn_error $? "missing file argument" ;;
13555 as_fn_append CONFIG_FILES " '$ac_optarg'"
13556 ac_need_defaults=false;;
13557 --header | --heade | --head | --hea )
13560 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13562 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13563 ac_need_defaults=false;;
13565 # Conflict between --help and --header
13566 as_fn_error $? "ambiguous option: \`$1'
13567 Try \`$0 --help' for more information.";;
13568 --help | --hel | -h )
13569 $as_echo "$ac_cs_usage"; exit ;;
13570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13574 # This is an error.
13575 -*) as_fn_error $? "unrecognized option: \`$1'
13576 Try \`$0 --help' for more information." ;;
13578 *) as_fn_append ac_config_targets " $1"
13579 ac_need_defaults=false ;;
13585 ac_configure_extra_args=
13587 if $ac_cs_silent; then
13589 ac_configure_extra_args="$ac_configure_extra_args --silent"
13593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13594 if \$ac_cs_recheck; then
13595 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13598 CONFIG_SHELL='$SHELL'
13599 export CONFIG_SHELL
13604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13609 ## Running $as_me. ##
13615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13619 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13622 # The HP-UX ksh and POSIX shell print the target directory to stdout
13623 # if CDPATH is set.
13624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13626 sed_quote_subst='$sed_quote_subst'
13627 double_quote_subst='$double_quote_subst'
13628 delay_variable_subst='$delay_variable_subst'
13629 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13630 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13631 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13632 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13633 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13634 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13635 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13636 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13637 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13638 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13639 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13640 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13641 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13642 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13643 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13649 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13650 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13651 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13652 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13653 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13654 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13655 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13656 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13657 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13658 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13659 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13660 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13661 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13662 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13663 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13664 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13665 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13666 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13667 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13668 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13669 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13670 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13671 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13672 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13673 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13674 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13675 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13676 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13677 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13678 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13679 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13680 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13681 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13682 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13684 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13685 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"`'
13686 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13687 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13688 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13689 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13690 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13691 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13692 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13693 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13694 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13695 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13696 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13697 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13698 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13699 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13700 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13701 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13702 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13703 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13704 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13705 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13706 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13707 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13708 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13709 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13710 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13711 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13712 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13713 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13714 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13715 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13716 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13717 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13718 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13719 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13720 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13721 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13722 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13723 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13724 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13725 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13726 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13727 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13728 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13729 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13730 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13731 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13732 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13733 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13734 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13735 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13736 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13737 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13738 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13739 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13740 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13741 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13742 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13743 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13744 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13745 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13746 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13747 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13748 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13749 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13750 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13751 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13752 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13753 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13754 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13755 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13756 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13757 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13758 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13761 LTCFLAGS='$LTCFLAGS'
13762 compiler='$compiler_DEFAULT'
13764 # A function that is used when there is no print builtin or printf.
13765 func_fallback_echo ()
13767 eval 'cat <<_LTECHO_EOF
13772 # Quote evaled strings.
13787 deplibs_check_method \
13792 sharedlib_from_linklib_cmd \
13795 archiver_list_spec \
13801 lt_cv_sys_global_symbol_pipe \
13802 lt_cv_sys_global_symbol_to_cdecl \
13803 lt_cv_sys_global_symbol_to_c_name_address \
13804 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13805 nm_file_list_spec \
13806 lt_prog_compiler_no_builtin_flag \
13807 lt_prog_compiler_pic \
13808 lt_prog_compiler_wl \
13809 lt_prog_compiler_static \
13810 lt_cv_prog_compiler_c_o \
13819 export_dynamic_flag_spec \
13820 whole_archive_flag_spec \
13821 compiler_needs_object \
13823 allow_undefined_flag \
13824 no_undefined_flag \
13825 hardcode_libdir_flag_spec \
13826 hardcode_libdir_separator \
13830 variables_saved_for_relink \
13832 library_names_spec \
13834 install_override_mode \
13838 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13839 *[\\\\\\\`\\"\\\$]*)
13840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13848 # Double-quote double-evaled strings.
13849 for var in reload_cmds \
13850 old_postinstall_cmds \
13851 old_postuninstall_cmds \
13853 extract_expsyms_cmds \
13854 old_archive_from_new_cmds \
13855 old_archive_from_expsyms_cmds \
13857 archive_expsym_cmds \
13859 module_expsym_cmds \
13860 export_symbols_cmds \
13864 postuninstall_cmds \
13866 sys_lib_search_path_spec \
13867 sys_lib_dlsearch_path_spec; do
13868 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13869 *[\\\\\\\`\\"\\\$]*)
13870 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13873 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13878 ac_aux_dir='$ac_aux_dir'
13879 xsi_shell='$xsi_shell'
13880 lt_shell_append='$lt_shell_append'
13882 # See if we are running on zsh, and set the options which allow our
13883 # commands through without removal of \ escapes INIT.
13884 if test -n "\${ZSH_VERSION+set}" ; then
13885 setopt NO_GLOB_SUBST
13891 TIMESTAMP='$TIMESTAMP'
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13902 # Handling of arguments.
13903 for ac_config_target in $ac_config_targets
13905 case $ac_config_target in
13906 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13907 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13908 "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
13909 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13911 "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
13912 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13913 "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
13915 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13920 # If the user did not use the arguments to specify the items to instantiate,
13921 # then the envvar interface is used. Set only those that are not.
13922 # We use the long form for the default assignment because of an extremely
13923 # bizarre bug on SunOS 4.1.3.
13924 if $ac_need_defaults; then
13925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13930 # Have a temporary directory for convenience. Make it in the build tree
13931 # simply because there is no reason against having it here, and in addition,
13932 # creating and moving files from /tmp can sometimes cause problems.
13933 # Hook for its removal unless debugging.
13934 # Note that there is a small window in which the directory will not be cleaned:
13935 # after its creation but before its name has been assigned to `$tmp'.
13939 trap 'exit_status=$?
13940 : "${ac_tmp:=$tmp}"
13941 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13943 trap 'as_fn_exit 1' 1 2 13 15
13945 # Create a (secure) tmp directory for tmp files.
13948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13952 tmp=./conf$$-$RANDOM
13953 (umask 077 && mkdir "$tmp")
13954 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13957 # Set up the scripts for CONFIG_FILES section.
13958 # No need to generate them if there are no CONFIG_FILES.
13959 # This happens for instance with `./config.status config.h'.
13960 if test -n "$CONFIG_FILES"; then
13963 ac_cr=`echo X | tr X '\015'`
13964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13965 # But we know of no other shell where ac_cr would be empty at this
13966 # point, so we can use a bashism as a fallback.
13967 if test "x$ac_cr" = x; then
13968 eval ac_cr=\$\'\\r\'
13970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13974 ac_cs_awk_cr=$ac_cr
13977 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13982 echo "cat >conf$$subs.awk <<_ACEOF" &&
13983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13985 } >conf$$subs.sh ||
13986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13989 for ac_last_try in false false false false false :; do
13990 . ./conf$$subs.sh ||
13991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13994 if test $ac_delim_n = $ac_delim_num; then
13996 elif $ac_last_try; then
13997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14002 rm -f conf$$subs.sh
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14009 s/^/S["/; s/!.*/"]=/
14019 s/\(.\{148\}\)..*/\1/
14021 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14033 s/\(.\{148\}\)..*/\1/
14035 s/["\\]/\\&/g; s/^/"/; s/$/"/
14039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14044 ' <conf$$subs.awk | sed '
14049 ' >>$CONFIG_STATUS || ac_write_fail=1
14050 rm -f conf$$subs.awk
14051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14054 for (key in S) S_is_set[key] = 1
14060 nfields = split(line, field, "@")
14062 len = length(field[1])
14063 for (i = 2; i < nfields; i++) {
14065 keylen = length(key)
14066 if (S_is_set[key]) {
14068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14069 len += length(value) + length(field[++i])
14080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14091 # trailing colons and then remove the whole line if VPATH becomes empty
14092 # (actually we leave an empty line to preserve line numbers).
14093 if test "x$srcdir" = x.; then
14094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113 fi # test -n "$CONFIG_FILES"
14115 # Set up the scripts for CONFIG_HEADERS section.
14116 # No need to generate them if there are no CONFIG_HEADERS.
14117 # This happens for instance with `./config.status Makefile'.
14118 if test -n "$CONFIG_HEADERS"; then
14119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14123 # Transform confdefs.h into an awk script `defines.awk', embedded as
14124 # here-document in config.status, that substitutes the proper values into
14125 # config.h.in to produce config.h.
14127 # Create a delimiter string that does not exist in confdefs.h, to ease
14128 # handling of long lines.
14130 for ac_last_try in false false :; do
14131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14132 if test -z "$ac_tt"; then
14134 elif $ac_last_try; then
14135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14141 # For the awk script, D is an array of macro values keyed by name,
14142 # likewise P contains macro parameters if any. Preserve backslash
14143 # newline sequences.
14145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14147 s/.\{148\}/&'"$ac_delim"'/g
14150 s/^[ ]*#[ ]*define[ ][ ]*/ /
14157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14164 D["\1"]=" \3\\\\\\n"\\/p
14166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14171 s/.\{148\}/&'"$ac_delim"'/g
14176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14181 ' <confdefs.h | sed '
14182 s/'"$ac_delim"'/"\\\
14183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 for (key in D) D_is_set[key] = 1
14189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14191 split(line, arg, " ")
14192 if (arg[1] == "#") {
14196 defundef = substr(arg[1], 2)
14199 split(mac1, mac2, "(") #)
14201 prefix = substr(line, 1, index(line, defundef) - 1)
14202 if (D_is_set[macro]) {
14203 # Preserve the white space surrounding the "#".
14204 print prefix "define", macro P[macro] D[macro]
14207 # Replace #undef with comments. This is necessary, for example,
14208 # in the case of _POSIX_SOURCE, which is predefined and required
14209 # on some systems where configure will not decide to define it.
14210 if (defundef == "undef") {
14211 print "/*", prefix defundef, macro, "*/"
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14221 fi # test -n "$CONFIG_HEADERS"
14224 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14229 :[FHLC]) ac_mode=$ac_tag; continue;;
14231 case $ac_mode$ac_tag in
14233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14234 :[FH]-) ac_tag=-:-;;
14235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14252 -) ac_f="$ac_tmp/stdin";;
14253 *) # Look for the file first in the build tree, then in the source tree
14254 # (if the path is not absolute). The absolute path cannot be DOS-style,
14255 # because $ac_f cannot contain `:'.
14259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14264 as_fn_append ac_file_inputs " '$ac_f'"
14267 # Let's still pretend it is `configure' which instantiates (i.e., don't
14268 # use $as_me), people would be surprised to read:
14269 # /* config.h. Generated by config.status. */
14270 configure_input='Generated from '`
14271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14273 if test x"$ac_file" != x-; then
14274 configure_input="$ac_file. $configure_input"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14276 $as_echo "$as_me: creating $ac_file" >&6;}
14278 # Neutralize special characters interpreted by sed in replacement strings.
14279 case $configure_input in #(
14280 *\&* | *\|* | *\\* )
14281 ac_sed_conf_input=`$as_echo "$configure_input" |
14282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14283 *) ac_sed_conf_input=$configure_input;;
14287 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14293 ac_dir=`$as_dirname -- "$ac_file" ||
14294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295 X"$ac_file" : 'X\(//\)[^/]' \| \
14296 X"$ac_file" : 'X\(//\)$' \| \
14297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14298 $as_echo X"$ac_file" |
14299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14303 /^X\(\/\/\)[^/].*/{
14316 as_dir="$ac_dir"; as_fn_mkdir_p
14320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14323 # A ".." for each directory in $ac_dir_suffix.
14324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14325 case $ac_top_builddir_sub in
14326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14330 ac_abs_top_builddir=$ac_pwd
14331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14332 # for backward compatibility:
14333 ac_top_builddir=$ac_top_build_prefix
14336 .) # We are building in place.
14338 ac_top_srcdir=$ac_top_builddir_sub
14339 ac_abs_top_srcdir=$ac_pwd ;;
14340 [\\/]* | ?:[\\/]* ) # Absolute name.
14341 ac_srcdir=$srcdir$ac_dir_suffix;
14342 ac_top_srcdir=$srcdir
14343 ac_abs_top_srcdir=$srcdir ;;
14344 *) # Relative name.
14345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14346 ac_top_srcdir=$ac_top_build_prefix$srcdir
14347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14362 ac_MKDIR_P=$MKDIR_P
14364 [\\/$]* | ?:[\\/]* ) ;;
14365 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14370 # If the template does not know about datarootdir, expand it.
14371 # FIXME: This hack should be removed a few years after 2.60.
14372 ac_datarootdir_hack=; ac_datarootdir_seen=
14383 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14384 *datarootdir*) ac_datarootdir_seen=yes;;
14385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14387 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14390 ac_datarootdir_hack='
14391 s&@datadir@&$datadir&g
14392 s&@docdir@&$docdir&g
14393 s&@infodir@&$infodir&g
14394 s&@localedir@&$localedir&g
14395 s&@mandir@&$mandir&g
14396 s&\\\${datarootdir}&$datarootdir&g' ;;
14400 # Neutralize VPATH when `$srcdir' = `.'.
14401 # Shell code in configure.ac might set extrasub.
14402 # FIXME: do we really want to maintain this feature?
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 ac_sed_extra="$ac_vpsub
14407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14410 s|@configure_input@|$ac_sed_conf_input|;t t
14411 s&@top_builddir@&$ac_top_builddir_sub&;t t
14412 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14413 s&@srcdir@&$ac_srcdir&;t t
14414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14415 s&@top_srcdir@&$ac_top_srcdir&;t t
14416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14417 s&@builddir@&$ac_builddir&;t t
14418 s&@abs_builddir@&$ac_abs_builddir&;t t
14419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14420 s&@INSTALL@&$ac_INSTALL&;t t
14421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14422 $ac_datarootdir_hack
14424 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14425 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14428 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14430 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14432 which seems to be undefined. Please make sure it is defined" >&5
14433 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14434 which seems to be undefined. Please make sure it is defined" >&2;}
14436 rm -f "$ac_tmp/stdin"
14438 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14439 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14447 if test x"$ac_file" != x-; then
14449 $as_echo "/* $configure_input */" \
14450 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14451 } >"$ac_tmp/config.h" \
14452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14453 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14455 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14458 mv "$ac_tmp/config.h" "$ac_file" \
14459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14462 $as_echo "/* $configure_input */" \
14463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14464 || as_fn_error $? "could not create -" "$LINENO" 5
14466 # Compute "$ac_file"'s index in $config_headers.
14469 for _am_header in $config_headers :; do
14470 case $_am_header in
14471 $_am_arg | $_am_arg:* )
14474 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14477 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14478 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14479 X"$_am_arg" : 'X\(//\)[^/]' \| \
14480 X"$_am_arg" : 'X\(//\)$' \| \
14481 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14482 $as_echo X"$_am_arg" |
14483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14487 /^X\(\/\/\)[^/].*/{
14499 s/.*/./; q'`/stamp-h$_am_stamp_count
14502 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14503 $as_echo "$as_me: executing $ac_file commands" >&6;}
14508 case $ac_file$ac_mode in
14509 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14510 # Older Autoconf quotes --file arguments for eval, but not when files
14511 # are listed without --file. Let's play safe and only enable the eval
14512 # if we detect the quoting.
14513 case $CONFIG_FILES in
14514 *\'*) eval set x "$CONFIG_FILES" ;;
14515 *) set x $CONFIG_FILES ;;
14520 # Strip MF so we end up with the name of the file.
14521 mf=`echo "$mf" | sed -e 's/:.*$//'`
14522 # Check whether this is an Automake generated Makefile or not.
14523 # We used to match only the files named 'Makefile.in', but
14524 # some people rename them; so instead we look at the file content.
14525 # Grep'ing the first line is not enough: some people post-process
14526 # each Makefile.in and add a new line on top of each file to say so.
14527 # Grep'ing the whole file is not good either: AIX grep has a line
14528 # limit of 2048, but all sed's we know have understand at least 4000.
14529 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14530 dirpart=`$as_dirname -- "$mf" ||
14531 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$mf" : 'X\(//\)[^/]' \| \
14533 X"$mf" : 'X\(//\)$' \| \
14534 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14540 /^X\(\/\/\)[^/].*/{
14556 # Extract the definition of DEPDIR, am__include, and am__quote
14557 # from the Makefile without running 'make'.
14558 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14559 test -z "$DEPDIR" && continue
14560 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14561 test -z "$am__include" && continue
14562 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14563 # Find all dependency output files, they are included files with
14564 # $(DEPDIR) in their names. We invoke sed twice because it is the
14565 # simplest approach to changing $(DEPDIR) to its actual value in the
14567 for file in `sed -n "
14568 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14569 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14570 # Make sure the directory exists.
14571 test -f "$dirpart/$file" && continue
14572 fdir=`$as_dirname -- "$file" ||
14573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574 X"$file" : 'X\(//\)[^/]' \| \
14575 X"$file" : 'X\(//\)$' \| \
14576 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"$file" |
14578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 /^X\(\/\/\)[^/].*/{
14595 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14596 # echo "creating $dirpart/$file"
14597 echo '# dummy' > "$dirpart/$file"
14604 # See if we are running on zsh, and set the options which allow our
14605 # commands through without removal of \ escapes.
14606 if test -n "${ZSH_VERSION+set}" ; then
14607 setopt NO_GLOB_SUBST
14610 cfgfile="${ofile}T"
14611 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14614 cat <<_LT_EOF >> "$cfgfile"
14617 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14618 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14623 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14625 # Written by Gordon Matzigkeit, 1996
14627 # This file is part of GNU Libtool.
14629 # GNU Libtool is free software; you can redistribute it and/or
14630 # modify it under the terms of the GNU General Public License as
14631 # published by the Free Software Foundation; either version 2 of
14632 # the License, or (at your option) any later version.
14634 # As a special exception to the GNU General Public License,
14635 # if you distribute this file as part of a program or library that
14636 # is built using GNU Libtool, you may include this file under the
14637 # same distribution terms that you use for the rest of that program.
14639 # GNU Libtool is distributed in the hope that it will be useful,
14640 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14642 # GNU General Public License for more details.
14644 # You should have received a copy of the GNU General Public License
14645 # along with GNU Libtool; see the file COPYING. If not, a copy
14646 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14647 # obtained by writing to the Free Software Foundation, Inc.,
14648 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14651 # The names of the tagged configurations supported by this script.
14654 # ### BEGIN LIBTOOL CONFIG
14656 # Which release of libtool.m4 was used?
14657 macro_version=$macro_version
14658 macro_revision=$macro_revision
14660 # Whether or not to build shared libraries.
14661 build_libtool_libs=$enable_shared
14663 # Whether or not to build static libraries.
14664 build_old_libs=$enable_static
14666 # What type of objects to build.
14669 # Whether or not to optimize for fast installation.
14670 fast_install=$enable_fast_install
14672 # Shell to use when invoking shell scripts.
14675 # An echo program that protects backslashes.
14678 # The PATH separator for the build system.
14679 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14682 host_alias=$host_alias
14686 # The build system.
14687 build_alias=$build_alias
14691 # A sed program that does not truncate output.
14694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14695 Xsed="\$SED -e 1s/^X//"
14697 # A grep program that handles long lines.
14703 # A literal string matcher.
14706 # A BSD- or MS-compatible name lister.
14709 # Whether we need soft or hard links.
14712 # What is the maximum length of a command?
14713 max_cmd_len=$max_cmd_len
14715 # Object file suffix (normally "o").
14718 # Executable file suffix (normally "").
14721 # whether the shell understands "unset".
14724 # turn spaces into newlines.
14727 # turn newlines into spaces.
14730 # convert \$build file names to \$host format.
14731 to_host_file_cmd=$lt_cv_to_host_file_cmd
14733 # convert \$build files to toolchain format.
14734 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14736 # An object symbol dumper.
14737 OBJDUMP=$lt_OBJDUMP
14739 # Method to check whether dependent libraries are shared objects.
14740 deplibs_check_method=$lt_deplibs_check_method
14742 # Command to use when deplibs_check_method = "file_magic".
14743 file_magic_cmd=$lt_file_magic_cmd
14745 # How to find potential files when deplibs_check_method = "file_magic".
14746 file_magic_glob=$lt_file_magic_glob
14748 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14749 want_nocaseglob=$lt_want_nocaseglob
14751 # DLL creation program.
14752 DLLTOOL=$lt_DLLTOOL
14754 # Command to associate shared and link libraries.
14755 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14760 # Flags to create an archive.
14761 AR_FLAGS=$lt_AR_FLAGS
14763 # How to feed a file listing to the archiver.
14764 archiver_list_spec=$lt_archiver_list_spec
14766 # A symbol stripping program.
14769 # Commands used to install an old-style archive.
14771 old_postinstall_cmds=$lt_old_postinstall_cmds
14772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14774 # Whether to use a lock for old archive extraction.
14775 lock_old_archive_extraction=$lock_old_archive_extraction
14780 # LTCC compiler flags.
14781 LTCFLAGS=$lt_CFLAGS
14783 # Take the output of nm and produce a listing of raw symbols and C names.
14784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14786 # Transform the output of nm in a proper C declaration.
14787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14789 # Transform the output of nm in a C name address pair.
14790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14792 # Transform the output of nm in a C name address pair when lib prefix is needed.
14793 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14795 # Specify filename containing input files for \$NM.
14796 nm_file_list_spec=$lt_nm_file_list_spec
14798 # The root where to search for dependent libraries,and in which our libraries should be installed.
14799 lt_sysroot=$lt_sysroot
14801 # The name of the directory that contains temporary libtool files.
14804 # Used to examine libraries when file_magic_cmd begins with "file".
14805 MAGIC_CMD=$MAGIC_CMD
14807 # Must we lock files when doing compilation?
14808 need_locks=$lt_need_locks
14811 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14813 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14814 DSYMUTIL=$lt_DSYMUTIL
14816 # Tool to change global to local symbols on Mac OS X.
14819 # Tool to manipulate fat objects and archives on Mac OS X.
14822 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14825 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14826 OTOOL64=$lt_OTOOL64
14828 # Old archive suffix (normally "a").
14831 # Shared library suffix (normally ".so").
14832 shrext_cmds=$lt_shrext_cmds
14834 # The commands to extract the exported symbol list from a shared archive.
14835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14837 # Variables whose values should be saved in libtool wrapper scripts and
14838 # restored at link time.
14839 variables_saved_for_relink=$lt_variables_saved_for_relink
14841 # Do we need the "lib" prefix for modules?
14842 need_lib_prefix=$need_lib_prefix
14844 # Do we need a version for libraries?
14845 need_version=$need_version
14847 # Library versioning type.
14848 version_type=$version_type
14850 # Shared library runtime path variable.
14851 runpath_var=$runpath_var
14853 # Shared library path variable.
14854 shlibpath_var=$shlibpath_var
14856 # Is shlibpath searched before the hard-coded library search path?
14857 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14859 # Format of library name prefix.
14860 libname_spec=$lt_libname_spec
14862 # List of archive names. First name is the real one, the rest are links.
14863 # The last name is the one that the linker finds with -lNAME
14864 library_names_spec=$lt_library_names_spec
14866 # The coded name of the library, if different from the real name.
14867 soname_spec=$lt_soname_spec
14869 # Permission mode override for installation of shared libraries.
14870 install_override_mode=$lt_install_override_mode
14872 # Command to use after installation of a shared archive.
14873 postinstall_cmds=$lt_postinstall_cmds
14875 # Command to use after uninstallation of a shared archive.
14876 postuninstall_cmds=$lt_postuninstall_cmds
14878 # Commands used to finish a libtool library installation in a directory.
14879 finish_cmds=$lt_finish_cmds
14881 # As "finish_cmds", except a single script fragment to be evaled but
14883 finish_eval=$lt_finish_eval
14885 # Whether we should hardcode library paths into libraries.
14886 hardcode_into_libs=$hardcode_into_libs
14888 # Compile-time system search path for libraries.
14889 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14891 # Run-time system search path for libraries.
14892 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14894 # Whether dlopen is supported.
14895 dlopen_support=$enable_dlopen
14897 # Whether dlopen of programs is supported.
14898 dlopen_self=$enable_dlopen_self
14900 # Whether dlopen of statically linked programs is supported.
14901 dlopen_self_static=$enable_dlopen_self_static
14903 # Commands to strip libraries.
14904 old_striplib=$lt_old_striplib
14905 striplib=$lt_striplib
14908 # The linker used to build libraries.
14911 # How to create reloadable object files.
14912 reload_flag=$lt_reload_flag
14913 reload_cmds=$lt_reload_cmds
14915 # Commands used to build an old-style archive.
14916 old_archive_cmds=$lt_old_archive_cmds
14918 # A language specific compiler.
14921 # Is the compiler the GNU compiler?
14924 # Compiler flag to turn off builtin functions.
14925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14927 # Additional compiler flags for building library objects.
14928 pic_flag=$lt_lt_prog_compiler_pic
14930 # How to pass a linker flag through the compiler.
14931 wl=$lt_lt_prog_compiler_wl
14933 # Compiler flag to prevent dynamic linking.
14934 link_static_flag=$lt_lt_prog_compiler_static
14936 # Does compiler simultaneously support -c and -o options?
14937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14939 # Whether or not to add -lc for building shared libraries.
14940 build_libtool_need_lc=$archive_cmds_need_lc
14942 # Whether or not to disallow shared libs when runtime libs are static.
14943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14945 # Compiler flag to allow reflexive dlopens.
14946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14948 # Compiler flag to generate shared objects directly from archives.
14949 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14951 # Whether the compiler copes with passing no objects directly.
14952 compiler_needs_object=$lt_compiler_needs_object
14954 # Create an old-style archive from a shared archive.
14955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14957 # Create a temporary old-style archive to link instead of a shared archive.
14958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14960 # Commands used to build a shared archive.
14961 archive_cmds=$lt_archive_cmds
14962 archive_expsym_cmds=$lt_archive_expsym_cmds
14964 # Commands used to build a loadable module if different from building
14965 # a shared archive.
14966 module_cmds=$lt_module_cmds
14967 module_expsym_cmds=$lt_module_expsym_cmds
14969 # Whether we are building with GNU ld or not.
14970 with_gnu_ld=$lt_with_gnu_ld
14972 # Flag that allows shared libraries with undefined symbols to be built.
14973 allow_undefined_flag=$lt_allow_undefined_flag
14975 # Flag that enforces no undefined symbols.
14976 no_undefined_flag=$lt_no_undefined_flag
14978 # Flag to hardcode \$libdir into a binary during linking.
14979 # This must work even if \$libdir does not exist
14980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14982 # Whether we need a single "-rpath" flag with a separated argument.
14983 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14986 # DIR into the resulting binary.
14987 hardcode_direct=$hardcode_direct
14989 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14990 # DIR into the resulting binary and the resulting library dependency is
14991 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14992 # library is relocated.
14993 hardcode_direct_absolute=$hardcode_direct_absolute
14995 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14996 # into the resulting binary.
14997 hardcode_minus_L=$hardcode_minus_L
14999 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15000 # into the resulting binary.
15001 hardcode_shlibpath_var=$hardcode_shlibpath_var
15003 # Set to "yes" if building a shared library automatically hardcodes DIR
15004 # into the library and all subsequent libraries and executables linked
15006 hardcode_automatic=$hardcode_automatic
15008 # Set to yes if linker adds runtime paths of dependent libraries
15009 # to runtime path list.
15010 inherit_rpath=$inherit_rpath
15012 # Whether libtool must link a program against all its dependency libraries.
15013 link_all_deplibs=$link_all_deplibs
15015 # Set to "yes" if exported symbols are required.
15016 always_export_symbols=$always_export_symbols
15018 # The commands to list exported symbols.
15019 export_symbols_cmds=$lt_export_symbols_cmds
15021 # Symbols that should not be listed in the preloaded symbols.
15022 exclude_expsyms=$lt_exclude_expsyms
15024 # Symbols that must always be exported.
15025 include_expsyms=$lt_include_expsyms
15027 # Commands necessary for linking programs (against libraries) with templates.
15028 prelink_cmds=$lt_prelink_cmds
15030 # Commands necessary for finishing linking programs.
15031 postlink_cmds=$lt_postlink_cmds
15033 # Specify filename containing input files.
15034 file_list_spec=$lt_file_list_spec
15036 # How to hardcode a shared library path into an executable.
15037 hardcode_action=$hardcode_action
15039 # ### END LIBTOOL CONFIG
15045 cat <<\_LT_EOF >> "$cfgfile"
15046 # AIX sometimes has problems with the GCC collect2 program. For some
15047 # reason, if we set the COLLECT_NAMES environment variable, the problems
15048 # vanish in a puff of smoke.
15049 if test "X${COLLECT_NAMES+set}" != Xset; then
15051 export COLLECT_NAMES
15058 ltmain="$ac_aux_dir/ltmain.sh"
15061 # We use sed instead of cat because bash on DJGPP gets confused if
15062 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15063 # text mode, it properly converts lines to CR/LF. This bash problem
15064 # is reportedly fixed, but why not run on old versions too?
15065 sed '$q' "$ltmain" >> "$cfgfile" \
15066 || (rm -f "$cfgfile"; exit 1)
15068 if test x"$xsi_shell" = xyes; then
15069 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15073 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15074 \ * ) func_dirname_result="${3}" ;;\
15076 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15077 && mv -f "$cfgfile.tmp" "$cfgfile" \
15078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15079 test 0 -eq $? || _lt_function_replace_fail=:
15082 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15085 \ func_basename_result="${1##*/}"\
15086 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15087 && mv -f "$cfgfile.tmp" "$cfgfile" \
15088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15089 test 0 -eq $? || _lt_function_replace_fail=:
15092 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15093 func_dirname_and_basename ()\
15096 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15097 \ * ) func_dirname_result="${3}" ;;\
15099 \ func_basename_result="${1##*/}"\
15100 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15101 && mv -f "$cfgfile.tmp" "$cfgfile" \
15102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15103 test 0 -eq $? || _lt_function_replace_fail=:
15106 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15109 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15110 \ # positional parameters, so assign one to ordinary parameter first.\
15111 \ func_stripname_result=${3}\
15112 \ func_stripname_result=${func_stripname_result#"${1}"}\
15113 \ func_stripname_result=${func_stripname_result%"${2}"}\
15114 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15115 && mv -f "$cfgfile.tmp" "$cfgfile" \
15116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15117 test 0 -eq $? || _lt_function_replace_fail=:
15120 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15121 func_split_long_opt ()\
15123 \ func_split_long_opt_name=${1%%=*}\
15124 \ func_split_long_opt_arg=${1#*=}\
15125 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15126 && mv -f "$cfgfile.tmp" "$cfgfile" \
15127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15128 test 0 -eq $? || _lt_function_replace_fail=:
15131 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15132 func_split_short_opt ()\
15134 \ func_split_short_opt_arg=${1#??}\
15135 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15136 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15137 && mv -f "$cfgfile.tmp" "$cfgfile" \
15138 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15139 test 0 -eq $? || _lt_function_replace_fail=:
15142 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15146 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15147 \ *) func_lo2o_result=${1} ;;\
15149 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15150 && mv -f "$cfgfile.tmp" "$cfgfile" \
15151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152 test 0 -eq $? || _lt_function_replace_fail=:
15155 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15158 func_xform_result=${1%.*}.lo\
15159 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15160 && mv -f "$cfgfile.tmp" "$cfgfile" \
15161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15162 test 0 -eq $? || _lt_function_replace_fail=:
15165 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15168 func_arith_result=$(( $* ))\
15169 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15170 && mv -f "$cfgfile.tmp" "$cfgfile" \
15171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15172 test 0 -eq $? || _lt_function_replace_fail=:
15175 sed -e '/^func_len ()$/,/^} # func_len /c\
15178 func_len_result=${#1}\
15179 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15180 && mv -f "$cfgfile.tmp" "$cfgfile" \
15181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15182 test 0 -eq $? || _lt_function_replace_fail=:
15186 if test x"$lt_shell_append" = xyes; then
15187 sed -e '/^func_append ()$/,/^} # func_append /c\
15190 eval "${1}+=\\${2}"\
15191 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15192 && mv -f "$cfgfile.tmp" "$cfgfile" \
15193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15194 test 0 -eq $? || _lt_function_replace_fail=:
15197 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15198 func_append_quoted ()\
15200 \ func_quote_for_eval "${2}"\
15201 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15202 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15203 && mv -f "$cfgfile.tmp" "$cfgfile" \
15204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15205 test 0 -eq $? || _lt_function_replace_fail=:
15208 # Save a `func_append' function call where possible by direct use of '+='
15209 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15210 && mv -f "$cfgfile.tmp" "$cfgfile" \
15211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15212 test 0 -eq $? || _lt_function_replace_fail=:
15214 # Save a `func_append' function call even when '+=' is not available
15215 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15216 && mv -f "$cfgfile.tmp" "$cfgfile" \
15217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15218 test 0 -eq $? || _lt_function_replace_fail=:
15221 if test x"$_lt_function_replace_fail" = x":"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15223 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15227 mv -f "$cfgfile" "$ofile" ||
15228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15239 ac_clean_files=$ac_clean_files_save
15241 test $ac_write_fail = 0 ||
15242 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15245 # configure is writing to config.log, and then calls config.status.
15246 # config.status does its own redirection, appending to config.log.
15247 # Unfortunately, on DOS this fails, as config.log is still kept open
15248 # by configure, so config.status won't be able to write to it; its
15249 # output is simply discarded. So we exec the FD to /dev/null,
15250 # effectively closing config.log, so it can be properly (re)opened and
15251 # appended to by config.status. When coming back to configure, we
15252 # need to make the FD available again.
15253 if test "$no_create" != yes; then
15255 ac_config_status_args=
15256 test "$silent" = yes &&
15257 ac_config_status_args="$ac_config_status_args --quiet"
15259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15262 # would make configure fail if this is the last instruction.
15263 $ac_cs_success || as_fn_exit 1
15265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}