2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.0.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
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: png-mng-implement@lists.sourceforge.net about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libpng'
592 PACKAGE_TARNAME='libpng'
593 PACKAGE_VERSION='1.6.0'
594 PACKAGE_STRING='libpng 1.6.0'
595 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
598 ac_unique_file="pngget.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
651 HAVE_LD_VERSION_SCRIPT_FALSE
652 HAVE_LD_VERSION_SCRIPT_TRUE
653 HAVE_SOLARIS_LD_FALSE
690 am__fastdepCCAS_FALSE
713 MAINTAINER_MODE_FALSE
727 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
784 enable_maintainer_mode
785 enable_dependency_tracking
800 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=no ;;
1180 # Obsolete; use --with-x.
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1248 # Be sure to have absolute directory names.
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1352 \`configure' configures libpng 1.6.0 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libpng 1.6.0:";;
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-maintainer-mode
1433 enable make rules and dependencies not useful (and
1434 sometimes confusing) to the casual installer
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1446 --enable-arm-neon Enable ARM NEON optimizations
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454 --with-sysroot=DIR Search for dependent libraries within DIR
1455 (or the compiler's sysroot if not specified).
1456 --with-zlib-prefix prefix that may have been used in installed zlib
1457 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1459 --with-binconfigs Generate shell libpng-config scripts as well as
1460 pkg-config data [default=yes]
1461 --with-libpng-prefix prefix libpng exported function (API) names with the
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CCAS assembler compiler command (defaults to CC)
1473 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1475 PNG_COPTS additional flags for the C compiler, use this for options that
1476 would cause configure itself to fail
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 libpng configure 1.6.0
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_link
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1696 if ac_fn_c_try_compile "$LINENO"; then :
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 } # ac_fn_c_check_header_compile
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=$ac_status
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (); below.
1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772 <limits.h> exists even on freestanding compilers. */
1775 # include <limits.h>
1777 # include <assert.h>
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1804 if ac_fn_c_try_link "$LINENO"; then :
1809 rm -f core conftest.err conftest.$ac_objext \
1810 conftest$ac_exeext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_func
1819 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1822 # the include files in INCLUDES and setting the cache variable VAR
1824 ac_fn_c_check_header_mongrel ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if eval \${$3+:} false; then :
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 # Is the header compilable?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1839 $as_echo_n "checking $2 usability... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 ac_header_compiler=yes
1848 ac_header_compiler=no
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1852 $as_echo "$ac_header_compiler" >&6; }
1854 # Is the header present?
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1856 $as_echo_n "checking $2 presence... " >&6; }
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1861 if ac_fn_c_try_cpp "$LINENO"; then :
1862 ac_header_preproc=yes
1864 ac_header_preproc=no
1866 rm -f conftest.err conftest.i conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1868 $as_echo "$ac_header_preproc" >&6; }
1870 # So? What about this header?
1871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1874 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1880 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1882 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1884 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1886 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 ( $as_echo "## ------------------------------------------------------ ##
1890 ## Report this to png-mng-implement@lists.sourceforge.net ##
1891 ## ------------------------------------------------------ ##"
1892 ) | sed "s/^/$as_me: WARNING: /" >&2
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 eval "$3=\$ac_header_compiler"
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_header_mongrel
1910 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911 # -------------------------------------------
1912 # Tests whether TYPE exists after having included INCLUDES, setting cache
1913 # variable VAR accordingly.
1914 ac_fn_c_check_type ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_check_type
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1967 It was created by libpng $as_me 1.6.0, which was
1968 generated by GNU Autoconf 2.69. Invocation command line was
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_must_keep_next=false
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 -* ) ac_must_keep_next=true ;;
2060 as_fn_append ac_configure_args " '$ac_arg'"
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log. We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2078 $as_echo "## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##"
2082 # The following way of writing the cache mishandles newlines in values,
2084 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085 eval ac_val=\$$ac_var
2089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 _ | IFS | as_nl) ;; #(
2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095 *) { eval $ac_var=; unset $ac_var;} ;;
2100 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101 *${as_nl}ac_space=\ *)
2103 "s/'\''/'\''\\\\'\'''\''/g;
2104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114 $as_echo "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2118 for ac_var in $ac_subst_vars
2120 eval ac_val=\$$ac_var
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 $as_echo "$ac_var='\''$ac_val'\''"
2128 if test -n "$ac_subst_files"; then
2129 $as_echo "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2133 for ac_var in $ac_subst_files
2135 eval ac_val=\$$ac_var
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 $as_echo "$ac_var='\''$ac_val'\''"
2144 if test -s confdefs.h; then
2145 $as_echo "## ----------- ##
2152 test "$ac_signal" != 0 &&
2153 $as_echo "$as_me: caught signal $ac_signal"
2154 $as_echo "$as_me: exit $exit_status"
2156 rm -f core *.core core.conftest.* &&
2157 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 for ac_signal in 1 2 13 15; do
2161 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2166 rm -f -r conftest* confdefs.h
2168 $as_echo "/* confdefs.h */" > confdefs.h
2170 # Predefined preprocessor variables.
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_URL "$PACKAGE_URL"
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2201 if test -n "$CONFIG_SITE"; then
2202 # We do not want a PATH search for config.site.
2203 case $CONFIG_SITE in #((
2204 -*) ac_site_file1=./$CONFIG_SITE;;
2205 */*) ac_site_file1=$CONFIG_SITE;;
2206 *) ac_site_file1=./$CONFIG_SITE;;
2208 elif test "x$prefix" != xNONE; then
2209 ac_site_file1=$prefix/share/config.site
2210 ac_site_file2=$prefix/etc/config.site
2212 ac_site_file1=$ac_default_prefix/share/config.site
2213 ac_site_file2=$ac_default_prefix/etc/config.site
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 test "x$ac_site_file" = xNONE && continue
2218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221 sed 's/^/| /' "$ac_site_file" >&5
2223 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 as_fn_error $? "failed to load site script $ac_site_file
2226 See \`config.log' for more details" "$LINENO" 5; }
2230 if test -r "$cache_file"; then
2231 # Some versions of bash will fail to source /dev/null (special files
2232 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2233 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235 $as_echo "$as_me: loading cache $cache_file" >&6;}
2237 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238 *) . "./$cache_file";;
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243 $as_echo "$as_me: creating cache $cache_file" >&6;}
2247 # Check that the precious variables saved in the cache have kept the same
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252 eval ac_new_set=\$ac_env_${ac_var}_set
2253 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254 eval ac_new_val=\$ac_env_${ac_var}_value
2255 case $ac_old_set,$ac_new_set in
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263 ac_cache_corrupted=: ;;
2266 if test "x$ac_old_val" != "x$ac_new_val"; then
2267 # differences in whitespace do not lead to failure.
2268 ac_old_val_w=`echo x $ac_old_val`
2269 ac_new_val_w=`echo x $ac_new_val`
2270 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273 ac_cache_corrupted=:
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277 eval $ac_var=\$ac_old_val
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2280 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 # Pass precious variables to config.status.
2286 if test "$ac_new_set" = set; then
2288 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289 *) ac_arg=$ac_var=$ac_new_val ;;
2291 case " $ac_configure_args " in
2292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2293 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 if $ac_cache_corrupted; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 # libpng does not follow GNU file name conventions (hence 'foreign')
2318 # color-tests requires automake 1.11 or later
2319 # silent-rules requires automake 1.11 or later
2320 # dist-xz requires automake 1.11 or later
2321 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2322 am__api_version='1.13'
2325 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2326 if test -f "$ac_dir/install-sh"; then
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 elif test -f "$ac_dir/install.sh"; then
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 elif test -f "$ac_dir/shtool"; then
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2340 if test -z "$ac_aux_dir"; then
2341 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353 # Find a good install program. We prefer a C program (faster),
2354 # so one script is as good as another. But avoid the broken or
2355 # incompatible versions:
2356 # SysV /etc/install, /usr/sbin/install
2357 # SunOS /usr/etc/install
2358 # IRIX /sbin/install
2360 # AmigaOS /C/install, which installs bootblocks on floppy discs
2361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2364 # OS/2's system install, which has a completely different semantic
2365 # ./install, which can be erroneously created by make from ./install.sh.
2366 # Reject install programs that cannot install multiple files.
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2368 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2369 if test -z "$INSTALL"; then
2370 if ${ac_cv_path_install+:} false; then :
2371 $as_echo_n "(cached) " >&6
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 # Account for people who put trailing slashes in PATH elements.
2379 case $as_dir/ in #((
2380 ./ | .// | /[cC]/* | \
2381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2382 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385 # OSF1 and SCO ODT 3.0 have their own names for install.
2386 # Don't use installbsd from OSF since it installs stuff as root
2388 for ac_prog in ginstall scoinst install; do
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2391 if test $ac_prog = install &&
2392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393 # AIX install. It has an incompatible calling convention.
2395 elif test $ac_prog = install &&
2396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # program-specific install script used by HP pwplus--don't use.
2400 rm -rf conftest.one conftest.two conftest.dir
2401 echo one > conftest.one
2402 echo two > conftest.two
2404 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2405 test -s conftest.one && test -s conftest.two &&
2406 test -s conftest.dir/conftest.one &&
2407 test -s conftest.dir/conftest.two
2409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2422 rm -rf conftest.one conftest.two conftest.dir
2425 if test "${ac_cv_path_install+set}" = set; then
2426 INSTALL=$ac_cv_path_install
2428 # As a last resort, use the slow shell script. Don't cache a
2429 # value for INSTALL within a source directory, because that will
2430 # break other packages using the cache if that directory is
2431 # removed, or if the value is a relative name.
2432 INSTALL=$ac_install_sh
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2436 $as_echo "$INSTALL" >&6; }
2438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2439 # It thinks the first close brace ends the variable substitution.
2440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2447 $as_echo_n "checking whether build environment is sane... " >&6; }
2448 # Reject unsafe characters in $srcdir or the absolute working directory
2449 # name. Accept space and tab only in the latter.
2453 *[\\\"\#\$\&\'\`$am_lf]*)
2454 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2457 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2458 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2461 # Do 'set' in a subshell so we don't clobber the current shell's
2462 # arguments. Must try -L first in case configure is actually a
2463 # symlink; some systems play weird games with the mod time of symlinks
2464 # (eg FreeBSD returns the mod time of the symlink's containing
2468 for am_try in 1 2; do
2469 echo "timestamp, slept: $am_has_slept" > conftest.file
2470 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2471 if test "$*" = "X"; then
2473 set X `ls -t "$srcdir/configure" conftest.file`
2475 if test "$*" != "X $srcdir/configure conftest.file" \
2476 && test "$*" != "X conftest.file $srcdir/configure"; then
2478 # If neither matched, then we have a broken ls. This can happen
2479 # if, for instance, CONFIG_SHELL is bash and it inherits a
2480 # broken ls alias from the environment. This has actually
2481 # happened. Such a system could not be considered "sane".
2482 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2483 alias in your environment" "$LINENO" 5
2485 if test "$2" = conftest.file || test $am_try -eq 2; then
2492 test "$2" = conftest.file
2498 as_fn_error $? "newly created file is older than distributed files!
2499 Check your system clock" "$LINENO" 5
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502 $as_echo "yes" >&6; }
2503 # If we didn't sleep, we still need to ensure time stamps of config.status and
2504 # generated files are strictly newer.
2506 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2513 test "$program_prefix" != NONE &&
2514 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2515 # Use a double $ so make ignores it.
2516 test "$program_suffix" != NONE &&
2517 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2518 # Double any \ or $.
2519 # By default was `s,x,x', remove it if useless.
2520 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2521 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523 # expand $ac_aux_dir to an absolute path
2524 am_aux_dir=`cd $ac_aux_dir && pwd`
2526 if test x"${MISSING+set}" != xset; then
2529 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2531 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534 # Use eval to expand $SHELL
2535 if eval "$MISSING --is-lightweight"; then
2536 am_missing_run="$MISSING "
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2540 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2543 if test x"${install_sh}" != xset; then
2546 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2548 install_sh="\${SHELL} $am_aux_dir/install-sh"
2552 # Installed binaries are usually stripped using 'strip' when the user
2553 # run "make install-strip". However 'strip' might not be the right
2554 # tool to use in cross-compilation environments, therefore Automake
2555 # will honor the 'STRIP' environment variable to overrule this program.
2556 if test "$cross_compiling" != no; then
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}strip; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_STRIP+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$STRIP"; then
2566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 STRIP=$ac_cv_prog_STRIP
2586 if test -n "$STRIP"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2588 $as_echo "$STRIP" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_STRIP"; then
2598 # Extract the first word of "strip", so it can be a program name with args.
2599 set dummy strip; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$ac_ct_STRIP"; then
2606 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_ac_ct_STRIP="strip"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2626 if test -n "$ac_ct_STRIP"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2628 $as_echo "$ac_ct_STRIP" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_STRIP" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2646 STRIP="$ac_cv_prog_STRIP"
2650 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2653 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2654 if test -z "$MKDIR_P"; then
2655 if ${ac_cv_path_mkdir+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 test -z "$as_dir" && as_dir=.
2663 for ac_prog in mkdir gmkdir; do
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2666 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2667 'mkdir (GNU coreutils) '* | \
2668 'mkdir (coreutils) '* | \
2669 'mkdir (fileutils) '4.1*)
2670 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2680 test -d ./--version && rmdir ./--version
2681 if test "${ac_cv_path_mkdir+set}" = set; then
2682 MKDIR_P="$ac_cv_path_mkdir -p"
2684 # As a last resort, use the slow shell script. Don't cache a
2685 # value for MKDIR_P within a source directory, because that will
2686 # break other packages using the cache if that directory is
2687 # removed, or if the value is a relative name.
2688 MKDIR_P="$ac_install_sh -d"
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2692 $as_echo "$MKDIR_P" >&6; }
2694 for ac_prog in gawk mawk nawk awk
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_AWK+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$AWK"; then
2704 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_AWK="$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test -n "$AWK"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726 $as_echo "$AWK" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2733 test -n "$AWK" && break
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2741 $as_echo_n "(cached) " >&6
2743 cat >conftest.make <<\_ACEOF
2746 @echo '@@@%%%=$(MAKE)=@@@%%%'
2748 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2751 eval ac_cv_prog_make_${ac_make}_set=yes;;
2753 eval ac_cv_prog_make_${ac_make}_set=no;;
2757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 SET_MAKE="MAKE=${MAKE-make}"
2767 rm -rf .tst 2>/dev/null
2768 mkdir .tst 2>/dev/null
2769 if test -d .tst; then
2774 rmdir .tst 2>/dev/null
2776 # Check whether --enable-silent-rules was given.
2777 if test "${enable_silent_rules+set}" = set; then :
2778 enableval=$enable_silent_rules;
2781 case $enable_silent_rules in # (((
2782 yes) AM_DEFAULT_VERBOSITY=0;;
2783 no) AM_DEFAULT_VERBOSITY=1;;
2784 *) AM_DEFAULT_VERBOSITY=1;;
2786 am_make=${MAKE-make}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2788 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2789 if ${am_cv_make_support_nested_variables+:} false; then :
2790 $as_echo_n "(cached) " >&6
2792 if $as_echo 'TRUE=$(BAR$(V))
2798 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2799 am_cv_make_support_nested_variables=yes
2801 am_cv_make_support_nested_variables=no
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2805 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2806 if test $am_cv_make_support_nested_variables = yes; then
2808 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2810 AM_V=$AM_DEFAULT_VERBOSITY
2811 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817 # is not polluted with repeated "-I."
2818 am__isrc=' -I$(srcdir)'
2819 # test to see if srcdir already configured
2820 if test -f $srcdir/config.status; then
2821 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2835 # Define the identity of the package.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2849 # Some tools Automake needs.
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865 # For better backward compatibility. To be removed once Automake 1.9.x
2866 # dies out for good. For more background, see:
2867 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2868 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2869 mkdir_p='$(MKDIR_P)'
2871 # We need awk for the "check" target. The system "awk" is bad on
2873 # Always define AMTAR for backward compatibility. Yes, it's still used
2874 # in the wild :-( We should find a proper way to deprecate it ...
2877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2887 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2888 # Check whether --enable-maintainer-mode was given.
2889 if test "${enable_maintainer_mode+set}" = set; then :
2890 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2892 USE_MAINTAINER_MODE=no
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2896 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2897 if test $USE_MAINTAINER_MODE = yes; then
2898 MAINTAINER_MODE_TRUE=
2899 MAINTAINER_MODE_FALSE='#'
2901 MAINTAINER_MODE_TRUE='#'
2902 MAINTAINER_MODE_FALSE=
2905 MAINT=$MAINTAINER_MODE_TRUE
2910 PNGLIB_VERSION=1.6.0
2917 ac_config_headers="$ac_config_headers config.h"
2920 # Checks for programs.
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$ac_cv_prog_CC"; then
2973 # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="gcc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3009 if test "x$ac_ct_CC" = x; then
3012 case $cross_compiling:$ac_tool_warned in
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}cc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3065 if test -z "$CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 if test $ac_prog_rejected = yes; then
3097 # We found a bogon in the path, so make sure we never use it.
3098 set dummy $ac_cv_prog_CC
3100 if test $# != 0; then
3101 # We chose a different compiler from the bogus one.
3102 # However, it has the same basename, so the bogon will be chosen
3103 # first if we set CC to just the basename; use the full file name.
3105 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3121 if test -z "$CC"; then
3122 if test -n "$ac_tool_prefix"; then
3123 for ac_prog in cl.exe
3125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 if test -n "$CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3162 test -n "$CC" && break
3165 if test -z "$CC"; then
3167 for ac_prog in cl.exe
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3176 if test -n "$ac_ct_CC"; then
3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_CC="$ac_prog"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3206 test -n "$ac_ct_CC" && break
3209 if test "x$ac_ct_CC" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3225 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details" "$LINENO" 5; }
3230 # Provide some information about the compiler.
3231 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3234 for ac_option in --version -v -V -qversion; do
3235 { { ac_try="$ac_compiler $ac_option >&5"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244 if test -s conftest.err; then
3246 ... rest of stderr output deleted ...
3247 10q' conftest.err >conftest.er1
3248 cat conftest.er1 >&5
3250 rm -f conftest.er1 conftest.err
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 ac_clean_files_save=$ac_clean_files
3267 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3268 # Try to create an executable without -o first, disregard a.out.
3269 # It will help us diagnose broken compilers, and finding out an intuition
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3272 $as_echo_n "checking whether the C compiler works... " >&6; }
3273 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275 # The possible output files:
3276 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279 for ac_file in $ac_files
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 if { { ac_try="$ac_link_default"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link_default") 2>&5
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3300 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3301 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3302 # so that the user can short-circuit this test for compilers unknown to
3304 for ac_file in $ac_files ''
3306 test -f "$ac_file" || continue
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311 # We found the default executable, but exeext='' is most
3315 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 # We set ac_cv_exeext here because the later test for it is not
3320 # safe: cross compilers may not add the suffix if given an `-o'
3321 # argument, so we may need to know it at that point already.
3322 # Even if this section looks crufty: it has the advantage of
3329 test "$ac_cv_exeext" = no && ac_cv_exeext=
3334 if test -z "$ac_file"; then :
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error 77 "C compiler cannot create executables
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3349 $as_echo_n "checking for C compiler default output file name... " >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 ac_exeext=$ac_cv_exeext
3354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355 ac_clean_files=$ac_clean_files_save
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3357 $as_echo_n "checking for suffix of executables... " >&6; }
3358 if { { ac_try="$ac_link"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link") 2>&5
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
3369 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3370 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3371 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 for ac_file in conftest.exe conftest conftest.*; do
3374 test -f "$ac_file" || continue
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details" "$LINENO" 5; }
3388 rm -f conftest conftest$ac_cv_exeext
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3390 $as_echo "$ac_cv_exeext" >&6; }
3392 rm -f conftest.$ac_ext
3393 EXEEXT=$ac_cv_exeext
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3401 FILE *f = fopen ("conftest.out", "w");
3402 return ferror (f) || fclose (f) != 0;
3408 ac_clean_files="$ac_clean_files conftest.out"
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 $as_echo_n "checking whether we are cross compiling... " >&6; }
3413 if test "$cross_compiling" != yes; then
3414 { { ac_try="$ac_link"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_link") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }
3425 if { ac_try='./conftest$ac_cv_exeext'
3426 { { case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_try") 2>&5
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; }; then
3438 if test "$cross_compiling" = maybe; then
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot run C compiled programs.
3444 If you meant to cross compile, use \`--host'.
3445 See \`config.log' for more details" "$LINENO" 5; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450 $as_echo "$cross_compiling" >&6; }
3452 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3453 ac_clean_files=$ac_clean_files_save
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if ${ac_cv_objext+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 rm -f conftest.o conftest.obj
3471 if { { ac_try="$ac_compile"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compile") 2>&5
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 for ac_file in conftest.o conftest.obj conftest.*; do
3483 test -f "$ac_file" || continue;
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3486 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot compute suffix of object files: cannot compile
3497 See \`config.log' for more details" "$LINENO" 5; }
3499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3502 $as_echo "$ac_cv_objext" >&6; }
3503 OBJEXT=$ac_cv_objext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3506 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3507 if ${ac_cv_c_compiler_gnu+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3524 if ac_fn_c_try_compile "$LINENO"; then :
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if ${ac_cv_prog_cc_g+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3577 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_c_werror_flag=$ac_save_c_werror_flag
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"; then :
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_c_werror_flag=$ac_save_c_werror_flag
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3604 $as_echo "$ac_cv_prog_cc_g" >&6; }
3605 if test "$ac_test_CFLAGS" = set; then
3606 CFLAGS=$ac_save_CFLAGS
3607 elif test $ac_cv_prog_cc_g = yes; then
3608 if test "$GCC" = yes; then
3614 if test "$GCC" = yes; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3621 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3622 if ${ac_cv_prog_cc_c89+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 ac_cv_prog_cc_c89=no
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3646 s = g (p, va_arg (v,int));
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661 inside strings and character constants. */
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 CC="$ac_save_CC $ac_arg"
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_c89=$ac_arg
3686 rm -f core conftest.err conftest.$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3689 rm -f conftest.$ac_ext
3694 case "x$ac_cv_prog_cc_c89" in
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3697 $as_echo "none needed" >&6; } ;;
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3700 $as_echo "unsupported" >&6; } ;;
3702 CC="$CC $ac_cv_prog_cc_c89"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3704 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3706 if test "x$ac_cv_prog_cc_c89" != xno; then :
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 DEPDIR="${am__leading_dot}deps"
3717 ac_config_commands="$ac_config_commands depfiles"
3720 am_make=${MAKE-make}
3721 cat > confinc << 'END'
3723 @echo this is the am__doit target
3726 # If we don't find an include directive, just comment out the code.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3728 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3732 # First try GNU make style include.
3733 echo "include confinc" > confmf
3734 # Ignore all kinds of additional output from 'make'.
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3742 # Now try BSD make style include.
3743 if test "$am__include" = "#"; then
3744 echo '.include "confinc"' > confmf
3745 case `$am_make -s -f confmf 2> /dev/null` in #(
3746 *the\ am__doit\ target*)
3747 am__include=.include
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3756 $as_echo "$_am_result" >&6; }
3757 rm -f confinc confmf
3759 # Check whether --enable-dependency-tracking was given.
3760 if test "${enable_dependency_tracking+set}" = set; then :
3761 enableval=$enable_dependency_tracking;
3764 if test "x$enable_dependency_tracking" != xno; then
3765 am_depcomp="$ac_aux_dir/depcomp"
3769 if test "x$enable_dependency_tracking" != xno; then
3779 depcc="$CC" am_compiler_list=
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named 'D' -- because '-MD' means "put the output
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3806 am_cv_CC_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811 case " $depcc " in #(
3812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3827 # Solaris 10 /bin/sh.
3828 echo '/* dummy */' > sub/conftst$i.h
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3832 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle '-M -o', and we need to detect this. Also, some Intel
3835 # versions had trouble with output in subdirs.
3836 am__obj=sub/conftest.${OBJEXT-o}
3837 am__minus_obj="-o $am__obj"
3840 # This depmode causes a compiler race in universal mode.
3841 test "$am__universal" = false || continue
3844 # After this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested.
3846 if test "x$enable_dependency_tracking" = xyes; then
3852 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3853 # This compiler won't grok '-c -o', but also, the minuso test has
3854 # not run yet. These depmodes are late enough in the game, and
3855 # so weak that their functioning should not be impacted.
3856 am__obj=conftest.${OBJEXT-o}
3861 if depmode=$depmode \
3862 source=sub/conftest.c object=$am__obj \
3863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865 >/dev/null 2>conftest.err &&
3866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879 am_cv_CC_dependencies_compiler_type=$depmode
3888 am_cv_CC_dependencies_compiler_type=none
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897 test "x$enable_dependency_tracking" != xno \
3898 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3900 am__fastdepCC_FALSE='#'
3902 am__fastdepCC_TRUE='#'
3903 am__fastdepCC_FALSE=
3907 # By default we simply use the C compiler to build assembly code.
3909 test "${CCAS+set}" = set || CCAS=$CC
3910 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3914 depcc="$CCAS" am_compiler_list=
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3917 $as_echo_n "checking dependency style of $depcc... " >&6; }
3918 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3922 # We make a subdir and do the tests there. Otherwise we can end up
3923 # making bogus files that we don't know about and never remove. For
3924 # instance it was reported that on HP-UX the gcc test will end up
3925 # making a dummy file named 'D' -- because '-MD' means "put the output
3929 # Copy depcomp to subdir because otherwise we won't find it if we're
3930 # using a relative directory.
3931 cp "$am_depcomp" conftest.dir
3933 # We will build objects and dependencies in a subdirectory because
3934 # it helps to detect inapplicable dependency modes. For instance
3935 # both Tru64's cc and ICC support -MD to output dependencies as a
3936 # side effect of compilation, but ICC will put the dependencies in
3937 # the current directory while Tru64 will put them in the object
3941 am_cv_CCAS_dependencies_compiler_type=none
3942 if test "$am_compiler_list" = ""; then
3943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948 for depmode in $am_compiler_list; do
3949 # Setup a source with many dependencies, because some compilers
3950 # like to wrap large dependency lists on column 80 (with \), and
3951 # we should not choose a depcomp mode which is confused by this.
3953 # We need to recreate these files for each test, as the compiler may
3954 # overwrite some of them when testing with obscure command lines.
3955 # This happens at least with the AIX C compiler.
3957 for i in 1 2 3 4 5 6; do
3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3960 # Solaris 10 /bin/sh.
3961 echo '/* dummy */' > sub/conftst$i.h
3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3965 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3966 # mode. It turns out that the SunPro C++ compiler does not properly
3967 # handle '-M -o', and we need to detect this. Also, some Intel
3968 # versions had trouble with output in subdirs.
3969 am__obj=sub/conftest.${OBJEXT-o}
3970 am__minus_obj="-o $am__obj"
3973 # This depmode causes a compiler race in universal mode.
3974 test "$am__universal" = false || continue
3977 # After this tag, mechanisms are not by side-effect, so they'll
3978 # only be used when explicitly requested.
3979 if test "x$enable_dependency_tracking" = xyes; then
3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986 # This compiler won't grok '-c -o', but also, the minuso test has
3987 # not run yet. These depmodes are late enough in the game, and
3988 # so weak that their functioning should not be impacted.
3989 am__obj=conftest.${OBJEXT-o}
3994 if depmode=$depmode \
3995 source=sub/conftest.c object=$am__obj \
3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998 >/dev/null 2>conftest.err &&
3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003 # icc doesn't choke on unknown options, it will just issue warnings
4004 # or remarks (even with -Werror). So we grep stderr for any message
4005 # that says an option was ignored or not supported.
4006 # When given -MP, icc 7.0 and 7.1 complain thusly:
4007 # icc: Command line warning: ignoring option '-M'; no argument required
4008 # The diagnosis changed in icc 8.0:
4009 # icc: Command line remark: option '-MP' not supported
4010 if (grep 'ignoring option' conftest.err ||
4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012 am_cv_CCAS_dependencies_compiler_type=$depmode
4021 am_cv_CCAS_dependencies_compiler_type=none
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4026 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4027 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4030 test "x$enable_dependency_tracking" != xno \
4031 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4032 am__fastdepCCAS_TRUE=
4033 am__fastdepCCAS_FALSE='#'
4035 am__fastdepCCAS_TRUE='#'
4036 am__fastdepCCAS_FALSE=
4040 # Make sure we can run config.sub.
4041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4042 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4045 $as_echo_n "checking build system type... " >&6; }
4046 if ${ac_cv_build+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 ac_build_alias=$build_alias
4050 test "x$ac_build_alias" = x &&
4051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4052 test "x$ac_build_alias" = x &&
4053 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4055 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4059 $as_echo "$ac_cv_build" >&6; }
4060 case $ac_cv_build in
4062 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4065 ac_save_IFS=$IFS; IFS='-'
4071 # Remember, the first character of IFS is used to create $*,
4072 # except with old shells:
4075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4079 $as_echo_n "checking host system type... " >&6; }
4080 if ${ac_cv_host+:} false; then :
4081 $as_echo_n "(cached) " >&6
4083 if test "x$host_alias" = x; then
4084 ac_cv_host=$ac_cv_build
4086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4087 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4092 $as_echo "$ac_cv_host" >&6; }
4095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4098 ac_save_IFS=$IFS; IFS='-'
4104 # Remember, the first character of IFS is used to create $*,
4105 # except with old shells:
4108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4113 if ${ac_cv_path_SED+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4117 for ac_i in 1 2 3 4 5 6 7; do
4118 ac_script="$ac_script$as_nl$ac_script"
4120 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4121 { ac_script=; unset ac_script;}
4122 if test -z "$SED"; then
4123 ac_path_SED_found=false
4124 # Loop through the user's path and test for each of PROGNAME-LIST
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_prog in sed gsed; do
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4133 as_fn_executable_p "$ac_path_SED" || continue
4134 # Check for GNU ac_path_SED and select it if it is found.
4135 # Check for GNU $ac_path_SED
4136 case `"$ac_path_SED" --version 2>&1` in
4138 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4141 $as_echo_n 0123456789 >"conftest.in"
4144 cat "conftest.in" "conftest.in" >"conftest.tmp"
4145 mv "conftest.tmp" "conftest.in"
4146 cp "conftest.in" "conftest.nl"
4147 $as_echo '' >> "conftest.nl"
4148 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4150 as_fn_arith $ac_count + 1 && ac_count=$as_val
4151 if test $ac_count -gt ${ac_path_SED_max-0}; then
4152 # Best one so far, save it but keep looking for a better one
4153 ac_cv_path_SED="$ac_path_SED"
4154 ac_path_SED_max=$ac_count
4156 # 10*(2^10) chars as input seems more than enough
4157 test $ac_count -gt 10 && break
4159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162 $ac_path_SED_found && break 3
4167 if test -z "$ac_cv_path_SED"; then
4168 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4176 $as_echo "$ac_cv_path_SED" >&6; }
4177 SED="$ac_cv_path_SED"
4180 test -z "$SED" && SED=sed
4181 Xsed="$SED -e 1s/^X//"
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4195 if ${ac_cv_path_GREP+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -z "$GREP"; then
4199 ac_path_GREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in grep ggrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209 as_fn_executable_p "$ac_path_GREP" || continue
4210 # Check for GNU ac_path_GREP and select it if it is found.
4211 # Check for GNU $ac_path_GREP
4212 case `"$ac_path_GREP" --version 2>&1` in
4214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4217 $as_echo_n 0123456789 >"conftest.in"
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'GREP' >> "conftest.nl"
4224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_GREP="$ac_path_GREP"
4230 ac_path_GREP_max=$ac_count
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 $ac_path_GREP_found && break 3
4243 if test -z "$ac_cv_path_GREP"; then
4244 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 ac_cv_path_GREP=$GREP
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4252 $as_echo "$ac_cv_path_GREP" >&6; }
4253 GREP="$ac_cv_path_GREP"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4257 $as_echo_n "checking for egrep... " >&6; }
4258 if ${ac_cv_path_EGREP+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262 then ac_cv_path_EGREP="$GREP -E"
4264 if test -z "$EGREP"; then
4265 ac_path_EGREP_found=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in egrep; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4275 as_fn_executable_p "$ac_path_EGREP" || continue
4276 # Check for GNU ac_path_EGREP and select it if it is found.
4277 # Check for GNU $ac_path_EGREP
4278 case `"$ac_path_EGREP" --version 2>&1` in
4280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4283 $as_echo_n 0123456789 >"conftest.in"
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo 'EGREP' >> "conftest.nl"
4290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292 as_fn_arith $ac_count + 1 && ac_count=$as_val
4293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_EGREP="$ac_path_EGREP"
4296 ac_path_EGREP_max=$ac_count
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304 $ac_path_EGREP_found && break 3
4309 if test -z "$ac_cv_path_EGREP"; then
4310 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4313 ac_cv_path_EGREP=$EGREP
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4319 $as_echo "$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4324 $as_echo_n "checking for fgrep... " >&6; }
4325 if ${ac_cv_path_FGREP+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4329 then ac_cv_path_FGREP="$GREP -F"
4331 if test -z "$FGREP"; then
4332 ac_path_FGREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in fgrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4342 as_fn_executable_p "$ac_path_FGREP" || continue
4343 # Check for GNU ac_path_FGREP and select it if it is found.
4344 # Check for GNU $ac_path_FGREP
4345 case `"$ac_path_FGREP" --version 2>&1` in
4347 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4350 $as_echo_n 0123456789 >"conftest.in"
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'FGREP' >> "conftest.nl"
4357 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_FGREP="$ac_path_FGREP"
4363 ac_path_FGREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371 $ac_path_FGREP_found && break 3
4376 if test -z "$ac_cv_path_FGREP"; then
4377 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 ac_cv_path_FGREP=$FGREP
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4386 $as_echo "$ac_cv_path_FGREP" >&6; }
4387 FGREP="$ac_cv_path_FGREP"
4390 test -z "$GREP" && GREP=grep
4408 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4409 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4413 $as_echo_n "checking how to print strings... " >&6; }
4414 # Test print first, because it will be a builtin if present.
4415 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4416 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4418 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4421 # Use this function as a fallback that always works.
4422 func_fallback_echo ()
4424 eval 'cat <<_LTECHO_EOF
4428 ECHO='func_fallback_echo'
4431 # func_echo_all arg...
4432 # Invoke $ECHO with all args, space-separated.
4439 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4440 $as_echo "printf" >&6; } ;;
4441 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4442 $as_echo "print -r" >&6; } ;;
4443 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4444 $as_echo "cat" >&6; } ;;
4462 # Check whether --with-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then :
4464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4470 if test "$GCC" = yes; then
4471 # Check if gcc -print-prog-name=ld gives a path.
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4473 $as_echo_n "checking for ld used by $CC... " >&6; }
4476 # gcc leaves a trailing carriage return which upsets mingw
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 # Accept absolute paths.
4484 re_direlt='/[^/][^/]*/\.\./'
4485 # Canonicalize the pathname of ld
4486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4490 test -z "$LD" && LD="$ac_prog"
4493 # If it fails, then pretend we aren't using GCC.
4497 # If it is relative, then search for the first ld in PATH.
4501 elif test "$with_gnu_ld" = yes; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4503 $as_echo_n "checking for GNU ld... " >&6; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4506 $as_echo_n "checking for non-GNU ld... " >&6; }
4508 if ${lt_cv_path_LD+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 if test -z "$LD"; then
4512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4513 for ac_dir in $PATH; do
4515 test -z "$ac_dir" && ac_dir=.
4516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517 lt_cv_path_LD="$ac_dir/$ac_prog"
4518 # Check to see if the program is GNU ld. I'd rather use --version,
4519 # but apparently some variants of GNU ld only accept -v.
4520 # Break only if it was the GNU/non-GNU ld that we prefer.
4521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4522 *GNU* | *'with BFD'*)
4523 test "$with_gnu_ld" != no && break
4526 test "$with_gnu_ld" != yes && break
4533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4538 if test -n "$LD"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4540 $as_echo "$LD" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4548 if ${lt_cv_prog_gnu_ld+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4552 case `$LD -v 2>&1 </dev/null` in
4553 *GNU* | *'with BFD'*)
4554 lt_cv_prog_gnu_ld=yes
4557 lt_cv_prog_gnu_ld=no
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4563 with_gnu_ld=$lt_cv_prog_gnu_ld
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4579 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4580 # On Suns, sometimes $CPP names a directory.
4581 if test -n "$CPP" && test -d "$CPP"; then
4584 if test -z "$CPP"; then
4585 if ${ac_cv_prog_CPP+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 # Double quotes because CPP needs to be expanded
4589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4592 for ac_c_preproc_warn_flag in '' yes
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4603 # include <limits.h>
4605 # include <assert.h>
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4612 # Broken: fails on valid input.
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4617 # OK, works on sane cases. Now check whether nonexistent headers
4618 # can be detected and how.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ac_nonexistent.h>
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624 # Broken: success on invalid input.
4627 # Passes both tests.
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then :
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4649 $as_echo "$CPP" >&6; }
4651 for ac_c_preproc_warn_flag in '' yes
4653 # Use a header file that comes with gcc, so configuring glibc
4654 # with a fresh cross-compiler works.
4655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4656 # <limits.h> exists even on freestanding compilers.
4657 # On the NeXT, cc -E runs the code through the compiler's parser,
4658 # not just through cpp. "Syntax error" is here to catch this case.
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4662 # include <limits.h>
4664 # include <assert.h>
4668 if ac_fn_c_try_cpp "$LINENO"; then :
4671 # Broken: fails on valid input.
4674 rm -f conftest.err conftest.i conftest.$ac_ext
4676 # OK, works on sane cases. Now check whether nonexistent headers
4677 # can be detected and how.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <ac_nonexistent.h>
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683 # Broken: success on invalid input.
4686 # Passes both tests.
4690 rm -f conftest.err conftest.i conftest.$ac_ext
4693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4694 rm -f conftest.i conftest.err conftest.$ac_ext
4695 if $ac_preproc_ok; then :
4698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4701 See \`config.log' for more details" "$LINENO" 5; }
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}sed; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_SED+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$SED"; then
4719 ac_cv_prog_SED="$SED" # Let the user override the test.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_SED="${ac_tool_prefix}sed"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 if test -n "$SED"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4741 $as_echo "$SED" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4749 if test -z "$ac_cv_prog_SED"; then
4751 # Extract the first word of "sed", so it can be a program name with args.
4752 set dummy sed; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$ac_ct_SED"; then
4759 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_SED="sed"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4779 if test -n "$ac_ct_SED"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4781 $as_echo "$ac_ct_SED" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4787 if test "x$ac_ct_SED" = x; then
4790 case $cross_compiling:$ac_tool_warned in
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4799 SED="$ac_cv_prog_SED"
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}awk; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_AWK+:} false; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$AWK"; then
4811 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_AWK="${ac_tool_prefix}awk"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 if test -n "$AWK"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4833 $as_echo "$AWK" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4841 if test -z "$ac_cv_prog_AWK"; then
4843 # Extract the first word of "awk", so it can be a program name with args.
4844 set dummy awk; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 if test -n "$ac_ct_AWK"; then
4851 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_AWK="awk"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4871 if test -n "$ac_ct_AWK"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4873 $as_echo "$ac_ct_AWK" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4879 if test "x$ac_ct_AWK" = x; then
4882 case $cross_compiling:$ac_tool_warned in
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4891 AWK="$ac_cv_prog_AWK"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4896 $as_echo_n "checking whether ln -s works... " >&6; }
4898 if test "$LN_S" = "ln -s"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4903 $as_echo "no, using $LN_S" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4910 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4911 $as_echo_n "(cached) " >&6
4913 cat >conftest.make <<\_ACEOF
4916 @echo '@@@%%%=$(MAKE)=@@@%%%'
4918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4921 eval ac_cv_prog_make_${ac_make}_set=yes;;
4923 eval ac_cv_prog_make_${ac_make}_set=no;;
4927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929 $as_echo "yes" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 SET_MAKE="MAKE=${MAKE-make}"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4946 macro_version='2.4.2'
4947 macro_revision='1.3337'
4961 ltmain="$ac_aux_dir/ltmain.sh"
4963 # Backslashify metacharacters that are still active within
4964 # double-quoted strings.
4965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4967 # Same as above, but do not quote variable references.
4968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4970 # Sed substitution to delay expansion of an escaped shell variable in a
4971 # double_quote_subst'ed string.
4972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4974 # Sed substitution to delay expansion of an escaped single quote.
4975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4977 # Sed substitution to avoid accidental globbing in evaled expressions
4978 no_glob_subst='s/\*/\\\*/g'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4981 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4982 if ${lt_cv_path_NM+:} false; then :
4983 $as_echo_n "(cached) " >&6
4985 if test -n "$NM"; then
4986 # Let the user override the test.
4989 lt_nm_to_check="${ac_tool_prefix}nm"
4990 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4991 lt_nm_to_check="$lt_nm_to_check nm"
4993 for lt_tmp_nm in $lt_nm_to_check; do
4994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4995 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4997 test -z "$ac_dir" && ac_dir=.
4998 tmp_nm="$ac_dir/$lt_tmp_nm"
4999 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5000 # Check to see if the nm accepts a BSD-compat flag.
5001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002 # nm: unknown option "B" ignored
5003 # Tru64's nm complains that /dev/null is an invalid object file
5004 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5005 */dev/null* | *'Invalid file or object type'*)
5006 lt_cv_path_NM="$tmp_nm -B"
5010 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5012 lt_cv_path_NM="$tmp_nm -p"
5016 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5017 continue # so that we can try to find one that supports BSD flags
5026 : ${lt_cv_path_NM=no}
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5030 $as_echo "$lt_cv_path_NM" >&6; }
5031 if test "$lt_cv_path_NM" != "no"; then
5034 # Didn't find any BSD compatible name lister, look for dumpbin.
5035 if test -n "$DUMPBIN"; then :
5036 # Let the user override the test.
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in dumpbin "link -dump"
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_DUMPBIN+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$DUMPBIN"; then
5049 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 DUMPBIN=$ac_cv_prog_DUMPBIN
5069 if test -n "$DUMPBIN"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5071 $as_echo "$DUMPBIN" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$DUMPBIN" && break
5081 if test -z "$DUMPBIN"; then
5082 ac_ct_DUMPBIN=$DUMPBIN
5083 for ac_prog in dumpbin "link -dump"
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$ac_ct_DUMPBIN"; then
5093 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5113 if test -n "$ac_ct_DUMPBIN"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5115 $as_echo "$ac_ct_DUMPBIN" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$ac_ct_DUMPBIN" && break
5125 if test "x$ac_ct_DUMPBIN" = x; then
5128 case $cross_compiling:$ac_tool_warned in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5134 DUMPBIN=$ac_ct_DUMPBIN
5138 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5140 DUMPBIN="$DUMPBIN -symbols"
5148 if test "$DUMPBIN" != ":"; then
5152 test -z "$NM" && NM=nm
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5160 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5161 if ${lt_cv_nm_interface+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 lt_cv_nm_interface="BSD nm"
5165 echo "int some_variable = 0;" > conftest.$ac_ext
5166 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5167 (eval "$ac_compile" 2>conftest.err)
5168 cat conftest.err >&5
5169 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5170 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5171 cat conftest.err >&5
5172 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5173 cat conftest.out >&5
5174 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5175 lt_cv_nm_interface="MS dumpbin"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5180 $as_echo "$lt_cv_nm_interface" >&6; }
5182 # find the maximum length of command line arguments
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5184 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5185 if ${lt_cv_sys_max_cmd_len+:} false; then :
5186 $as_echo_n "(cached) " >&6
5193 # On DJGPP, this test can blow up pretty badly due to problems in libc
5194 # (any single argument exceeding 2000 bytes causes a buffer overrun
5195 # during glob expansion). Even if it were fixed, the result of this
5196 # check would be larger than it should be.
5197 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5201 # Under GNU Hurd, this test is not required because there is
5202 # no limit to the length of command line arguments.
5203 # Libtool will interpret -1 as no limit whatsoever
5204 lt_cv_sys_max_cmd_len=-1;
5207 cygwin* | mingw* | cegcc*)
5208 # On Win9x/ME, this test blows up -- it succeeds, but takes
5209 # about 5 minutes as the teststring grows exponentially.
5210 # Worse, since 9x/ME are not pre-emptively multitasking,
5211 # you end up with a "frozen" computer, even though with patience
5212 # the test eventually succeeds (with a max line length of 256k).
5213 # Instead, let's just punt: use the minimum linelength reported by
5214 # all of the supported platforms: 8192 (on NT/2K/XP).
5215 lt_cv_sys_max_cmd_len=8192;
5219 # On MiNT this can take a long time and run out of memory.
5220 lt_cv_sys_max_cmd_len=8192;
5224 # On AmigaOS with pdksh, this test takes hours, literally.
5225 # So we just punt and use a minimum line length of 8192.
5226 lt_cv_sys_max_cmd_len=8192;
5229 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5230 # This has been around since 386BSD, at least. Likely further.
5231 if test -x /sbin/sysctl; then
5232 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5233 elif test -x /usr/sbin/sysctl; then
5234 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5236 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5238 # And add a safety zone
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5245 lt_cv_sys_max_cmd_len=196608
5249 # The test takes a long time on OS/2.
5250 lt_cv_sys_max_cmd_len=8192
5254 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5255 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5256 # nice to cause kernel panics so lets avoid the loop below.
5257 # First set a reasonable default.
5258 lt_cv_sys_max_cmd_len=16384
5260 if test -x /sbin/sysconfig; then
5261 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5262 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5267 lt_cv_sys_max_cmd_len=102400
5269 sysv5* | sco5v6* | sysv4.2uw2*)
5270 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5271 if test -n "$kargmax"; then
5272 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5274 lt_cv_sys_max_cmd_len=32768
5278 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5279 if test -n "$lt_cv_sys_max_cmd_len"; then
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5283 # Make teststring a little bigger before we do anything with it.
5284 # a 1K string should be a reasonable start.
5285 for i in 1 2 3 4 5 6 7 8 ; do
5286 teststring=$teststring$teststring
5288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5289 # If test is not a shell built-in, we'll probably end up computing a
5290 # maximum length that is only half of the actual maximum length, but
5292 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5293 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5294 test $i != 17 # 1/2 MB should be enough
5297 teststring=$teststring$teststring
5299 # Only check the string length outside the loop.
5300 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5302 # Add a significant safety factor because C++ compilers can tack on
5303 # massive amounts of additional arguments before passing them to the
5304 # linker. It appears as though 1/2 is a usable value.
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5312 if test -n $lt_cv_sys_max_cmd_len ; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5317 $as_echo "none" >&6; }
5319 max_cmd_len=$lt_cv_sys_max_cmd_len
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5332 # Try some XSI features
5335 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5337 && eval 'test $(( 1 + 1 )) -eq 2 \
5338 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5341 $as_echo "$xsi_shell" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5345 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5347 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5349 && lt_shell_append=yes
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5351 $as_echo "$lt_shell_append" >&6; }
5354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5364 # test EBCDIC or ASCII
5365 case `echo X|tr X '\101'` in
5366 A) # ASCII based system
5367 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5368 lt_SP2NL='tr \040 \012'
5369 lt_NL2SP='tr \015\012 \040\040'
5371 *) # EBCDIC based system
5372 lt_SP2NL='tr \100 \n'
5373 lt_NL2SP='tr \r\n \100\100'
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5386 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5387 if ${lt_cv_to_host_file_cmd+:} false; then :
5388 $as_echo_n "(cached) " >&6
5393 *-*-mingw* ) # actually msys
5394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5397 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5399 * ) # otherwise, assume *nix
5400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5406 *-*-mingw* ) # actually msys
5407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5410 lt_cv_to_host_file_cmd=func_convert_file_noop
5412 * ) # otherwise, assume *nix
5413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5417 * ) # unhandled hosts (and "normal" native builds)
5418 lt_cv_to_host_file_cmd=func_convert_file_noop
5424 to_host_file_cmd=$lt_cv_to_host_file_cmd
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5426 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5433 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5434 if ${lt_cv_to_tool_file_cmd+:} false; then :
5435 $as_echo_n "(cached) " >&6
5437 #assume ordinary cross tools, or native build.
5438 lt_cv_to_tool_file_cmd=func_convert_file_noop
5442 *-*-mingw* ) # actually msys
5443 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5453 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5460 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5461 if ${lt_cv_ld_reload_flag+:} false; then :
5462 $as_echo_n "(cached) " >&6
5464 lt_cv_ld_reload_flag='-r'
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5468 reload_flag=$lt_cv_ld_reload_flag
5469 case $reload_flag in
5471 *) reload_flag=" $reload_flag" ;;
5473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475 cygwin* | mingw* | pw32* | cegcc*)
5476 if test "$GCC" != yes; then
5481 if test "$GCC" = yes; then
5482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$OBJDUMP"; then
5506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537 ac_ct_OBJDUMP=$OBJDUMP
5538 # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$ac_ct_OBJDUMP"; then
5546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5574 if test "x$ac_ct_OBJDUMP" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5583 OBJDUMP=$ac_ct_OBJDUMP
5586 OBJDUMP="$ac_cv_prog_OBJDUMP"
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5597 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5598 if ${lt_cv_deplibs_check_method+:} false; then :
5599 $as_echo_n "(cached) " >&6
5601 lt_cv_file_magic_cmd='$MAGIC_CMD'
5602 lt_cv_file_magic_test_file=
5603 lt_cv_deplibs_check_method='unknown'
5604 # Need to set the preceding variable on all platforms that support
5605 # interlibrary dependencies.
5606 # 'none' -- dependencies not supported.
5607 # `unknown' -- same as none, but documents that we really don't know.
5608 # 'pass_all' -- all dependencies passed with no checks.
5609 # 'test_compile' -- check by making test program.
5610 # 'file_magic [[regex]]' -- check by looking for files in library path
5611 # which responds to the $file_magic_cmd with a given extended regex.
5612 # If you have `file' or equivalent on your system and you're not sure
5613 # whether `pass_all' will *always* work, you probably want this one.
5617 lt_cv_deplibs_check_method=pass_all
5621 lt_cv_deplibs_check_method=pass_all
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5626 lt_cv_file_magic_cmd='/usr/bin/file -L'
5627 lt_cv_file_magic_test_file=/shlib/libc.so
5631 # func_win32_libid is a shell function defined in ltmain.sh
5632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5633 lt_cv_file_magic_cmd='func_win32_libid'
5637 # Base MSYS/MinGW do not provide the 'file' command needed by
5638 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5639 # unless we find 'file', for example because we are cross-compiling.
5640 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5641 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5643 lt_cv_file_magic_cmd='func_win32_libid'
5645 # Keep this pattern in sync with the one in func_win32_libid.
5646 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5647 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 # use the weaker test based on 'objdump'. See mingw*.
5653 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5654 lt_cv_file_magic_cmd='$OBJDUMP -f'
5657 darwin* | rhapsody*)
5658 lt_cv_deplibs_check_method=pass_all
5661 freebsd* | dragonfly*)
5662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5665 # Not sure whether the presence of OpenBSD here was a mistake.
5666 # Let's accept both of them until this is cleared up.
5667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5668 lt_cv_file_magic_cmd=/usr/bin/file
5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5673 lt_cv_deplibs_check_method=pass_all
5678 lt_cv_deplibs_check_method=pass_all
5682 lt_cv_deplibs_check_method=pass_all
5685 hpux10.20* | hpux11*)
5686 lt_cv_file_magic_cmd=/usr/bin/file
5689 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5690 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5693 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]'
5694 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5698 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5704 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5708 irix5* | irix6* | nonstopux*)
5710 *-32|*"-32 ") libmagic=32-bit;;
5711 *-n32|*"-n32 ") libmagic=N32;;
5712 *-64|*"-64 ") libmagic=64-bit;;
5713 *) libmagic=never-match;;
5715 lt_cv_deplibs_check_method=pass_all
5718 # This must be glibc/ELF.
5719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5720 lt_cv_deplibs_check_method=pass_all
5724 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5733 lt_cv_file_magic_cmd=/usr/bin/file
5734 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5738 lt_cv_deplibs_check_method=pass_all
5742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749 osf3* | osf4* | osf5*)
5750 lt_cv_deplibs_check_method=pass_all
5754 lt_cv_deplibs_check_method=pass_all
5758 lt_cv_deplibs_check_method=pass_all
5761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5762 lt_cv_deplibs_check_method=pass_all
5766 case $host_vendor in
5768 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]'
5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5772 lt_cv_deplibs_check_method=pass_all
5775 lt_cv_file_magic_cmd='/bin/file'
5776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5779 lt_cv_file_magic_cmd='/bin/file'
5780 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5781 lt_cv_file_magic_test_file=/lib/libc.so
5784 lt_cv_deplibs_check_method=pass_all
5787 lt_cv_deplibs_check_method=pass_all
5793 lt_cv_deplibs_check_method=pass_all
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5799 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5803 if test "$build" = "$host"; then
5806 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5809 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5815 file_magic_cmd=$lt_cv_file_magic_cmd
5816 deplibs_check_method=$lt_cv_deplibs_check_method
5817 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_DLLTOOL+:} false; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$DLLTOOL"; then
5849 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 DLLTOOL=$ac_cv_prog_DLLTOOL
5869 if test -n "$DLLTOOL"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5871 $as_echo "$DLLTOOL" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5879 if test -z "$ac_cv_prog_DLLTOOL"; then
5880 ac_ct_DLLTOOL=$DLLTOOL
5881 # Extract the first word of "dlltool", so it can be a program name with args.
5882 set dummy dlltool; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$ac_ct_DLLTOOL"; then
5889 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5909 if test -n "$ac_ct_DLLTOOL"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5911 $as_echo "$ac_ct_DLLTOOL" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5917 if test "x$ac_ct_DLLTOOL" = x; then
5920 case $cross_compiling:$ac_tool_warned in
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5926 DLLTOOL=$ac_ct_DLLTOOL
5929 DLLTOOL="$ac_cv_prog_DLLTOOL"
5932 test -z "$DLLTOOL" && DLLTOOL=dlltool
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5941 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5942 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5943 $as_echo_n "(cached) " >&6
5945 lt_cv_sharedlib_from_linklib_cmd='unknown'
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 # two different shell functions defined in ltmain.sh
5950 # decide which to use based on capabilities of $DLLTOOL
5951 case `$DLLTOOL --help 2>&1` in
5952 *--identify-strict*)
5953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5961 # fallback: assume linklib IS sharedlib
5962 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5968 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5969 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5970 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5979 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_AR+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$AR"; then
5990 ac_cv_prog_AR="$AR" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 if test -n "$AR"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012 $as_echo "$AR" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6019 test -n "$AR" && break
6022 if test -z "$AR"; then
6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
6027 set dummy $ac_prog; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6031 $as_echo_n "(cached) " >&6
6033 if test -n "$ac_ct_AR"; then
6034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_AR="$ac_prog"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6054 if test -n "$ac_ct_AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6056 $as_echo "$ac_ct_AR" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6063 test -n "$ac_ct_AR" && break
6066 if test "x$ac_ct_AR" = x; then
6069 case $cross_compiling:$ac_tool_warned in
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6093 $as_echo_n "checking for archiver @FILE support... " >&6; }
6094 if ${lt_cv_ar_at_file+:} false; then :
6095 $as_echo_n "(cached) " >&6
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110 echo conftest.$ac_objext > conftest.lst
6111 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6113 (eval $lt_ar_try) 2>&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }
6117 if test "$ac_status" -eq 0; then
6118 # Ensure the archiver fails upon bogus file names.
6119 rm -f conftest.$ac_objext libconftest.a
6120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6121 (eval $lt_ar_try) 2>&5
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; }
6125 if test "$ac_status" -ne 0; then
6129 rm -f conftest.* libconftest.a
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6136 $as_echo "$lt_cv_ar_at_file" >&6; }
6138 if test "x$lt_cv_ar_at_file" = xno; then
6141 archiver_list_spec=$lt_cv_ar_at_file
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_STRIP+:} false; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6189 if test -z "$ac_cv_prog_STRIP"; then
6191 # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6227 if test "x$ac_ct_STRIP" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6239 STRIP="$ac_cv_prog_STRIP"
6242 test -z "$STRIP" && STRIP=:
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_RANLIB+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6326 if test "x$ac_ct_RANLIB" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6335 RANLIB=$ac_ct_RANLIB
6338 RANLIB="$ac_cv_prog_RANLIB"
6341 test -z "$RANLIB" && RANLIB=:
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6353 if test -n "$RANLIB"; then
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6367 lock_old_archive_extraction=yes ;;
6369 lock_old_archive_extraction=no ;;
6410 # If no C compiler was specified, use CC.
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6416 # Allow CC to be a program name with arguments.
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6424 $as_echo_n "(cached) " >&6
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6436 # Define system-specific variables.
6441 cygwin* | mingw* | pw32* | cegcc*)
6442 symcode='[ABCDGISTW]'
6445 if test "$host_cpu" = ia64; then
6446 symcode='[ABCDEGRST]'
6450 symcode='[BCDEGRST]'
6453 symcode='[BCDEGQRST]'
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6478 # Transform an extracted symbol line into a proper C declaration.
6479 # Some systems (esp. on ia64) link data and code symbols differently,
6480 # so use this general approach.
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6485 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'"
6487 # Handle CRLF in mingw tool chain
6491 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6495 # Try without a prefix underscore, then with it.
6496 for ac_symprfx in "" "_"; do
6498 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499 symxfrm="\\1 $ac_symprfx\\2 \\2"
6501 # Write the raw and C identifiers.
6502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503 # Fake it for dumpbin and say T for any non-static function
6504 # and D for any global variable.
6505 # Also find C++ and __fastcall symbols from MSVC++,
6506 # which start with @ or ?.
6507 lt_cv_sys_global_symbol_pipe="$AWK '"\
6508 " {last_section=section; section=\$ 3};"\
6509 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6510 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6511 " \$ 0!~/External *\|/{next};"\
6512 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6513 " {if(hide[section]) next};"\
6514 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6515 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6516 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6517 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6518 " ' prfx=^$ac_symprfx"
6520 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6522 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6524 # Check to see that the pipe works correctly.
6528 cat > conftest.$ac_ext <<_LT_EOF
6533 void nm_test_func(void);
6534 void nm_test_func(void){}
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 # Now try to grab the symbols.
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6549 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; } && test -s "$nlist"; then
6553 # Try sorting and uniquifying the output.
6554 if sort "$nlist" | uniq > "$nlist"T; then
6555 mv -f "$nlist"T "$nlist"
6560 # Make sure that we snagged all the symbols we need.
6561 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6562 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6563 cat <<_LT_EOF > conftest.$ac_ext
6564 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6565 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6566 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6567 relocations are performed -- see ld's documentation on pseudo-relocs. */
6568 # define LT_DLSYM_CONST
6569 #elif defined(__osf__)
6570 /* This system does not cope well with relocations in const data. */
6571 # define LT_DLSYM_CONST
6573 # define LT_DLSYM_CONST const
6581 # Now generate the symbol file.
6582 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6584 cat <<_LT_EOF >> conftest.$ac_ext
6586 /* The mapping between symbol names and symbols. */
6587 LT_DLSYM_CONST struct {
6591 lt__PROGRAM__LTX_preloaded_symbols[] =
6593 { "@PROGRAM@", (void *) 0 },
6595 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6596 cat <<\_LT_EOF >> conftest.$ac_ext
6600 /* This works around a problem in FreeBSD linker */
6601 #ifdef FREEBSD_WORKAROUND
6602 static const void *lt_preloaded_setup() {
6603 return lt__PROGRAM__LTX_preloaded_symbols;
6611 # Now try linking the two files.
6612 mv conftest.$ac_objext conftstm.$ac_objext
6613 lt_globsym_save_LIBS=$LIBS
6614 lt_globsym_save_CFLAGS=$CFLAGS
6615 LIBS="conftstm.$ac_objext"
6616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6618 (eval $ac_link) 2>&5
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6624 LIBS=$lt_globsym_save_LIBS
6625 CFLAGS=$lt_globsym_save_CFLAGS
6627 echo "cannot find nm_test_func in $nlist" >&5
6630 echo "cannot find nm_test_var in $nlist" >&5
6633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6636 echo "$progname: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 rm -rf conftest* conftst*
6641 # Do not use the global_symbol_pipe unless it works.
6642 if test "$pipe_works" = yes; then
6645 lt_cv_sys_global_symbol_pipe=
6651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6652 lt_cv_sys_global_symbol_to_cdecl=
6654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6656 $as_echo "failed" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6659 $as_echo "ok" >&6; }
6662 # Response file support.
6663 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6664 nm_file_list_spec='@'
6665 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6666 nm_file_list_spec='@'
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6696 $as_echo_n "checking for sysroot... " >&6; }
6698 # Check whether --with-sysroot was given.
6699 if test "${with_sysroot+set}" = set; then :
6700 withval=$with_sysroot;
6707 case ${with_sysroot} in #(
6709 if test "$GCC" = yes; then
6710 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6714 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6720 $as_echo "${with_sysroot}" >&6; }
6721 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6726 $as_echo "${lt_sysroot:-no}" >&6; }
6732 # Check whether --enable-libtool-lock was given.
6733 if test "${enable_libtool_lock+set}" = set; then :
6734 enableval=$enable_libtool_lock;
6737 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6739 # Some flags need to be propagated to the compiler or linker for good
6743 # Find out which ABI we are using.
6744 echo 'int i;' > conftest.$ac_ext
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746 (eval $ac_compile) 2>&5
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }; then
6750 case `/usr/bin/file conftest.$ac_objext` in
6762 # Find out which ABI we are using.
6763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6765 (eval $ac_compile) 2>&5
6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768 test $ac_status = 0; }; then
6769 if test "$lt_cv_prog_gnu_ld" = yes; then
6770 case `/usr/bin/file conftest.$ac_objext` in
6772 LD="${LD-ld} -melf32bsmip"
6775 LD="${LD-ld} -melf32bmipn32"
6778 LD="${LD-ld} -melf64bmip"
6782 case `/usr/bin/file conftest.$ac_objext` in
6798 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6799 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6800 # Find out which ABI we are using.
6801 echo 'int i;' > conftest.$ac_ext
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803 (eval $ac_compile) 2>&5
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }; then
6807 case `/usr/bin/file conftest.o` in
6810 x86_64-*kfreebsd*-gnu)
6811 LD="${LD-ld} -m elf_i386_fbsd"
6814 LD="${LD-ld} -m elf_i386"
6816 ppc64-*linux*|powerpc64-*linux*)
6817 LD="${LD-ld} -m elf32ppclinux"
6820 LD="${LD-ld} -m elf_s390"
6823 LD="${LD-ld} -m elf32_sparc"
6829 x86_64-*kfreebsd*-gnu)
6830 LD="${LD-ld} -m elf_x86_64_fbsd"
6833 LD="${LD-ld} -m elf_x86_64"
6835 ppc*-*linux*|powerpc*-*linux*)
6836 LD="${LD-ld} -m elf64ppc"
6838 s390*-*linux*|s390*-*tpf*)
6839 LD="${LD-ld} -m elf64_s390"
6842 LD="${LD-ld} -m elf64_sparc"
6852 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6853 SAVE_CFLAGS="$CFLAGS"
6854 CFLAGS="$CFLAGS -belf"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6856 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6857 if ${lt_cv_cc_needs_belf+:} false; then :
6858 $as_echo_n "(cached) " >&6
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6877 if ac_fn_c_try_link "$LINENO"; then :
6878 lt_cv_cc_needs_belf=yes
6880 lt_cv_cc_needs_belf=no
6882 rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6892 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6895 CFLAGS="$SAVE_CFLAGS"
6899 # Find out which ABI we are using.
6900 echo 'int i;' > conftest.$ac_ext
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 case `/usr/bin/file conftest.o` in
6908 case $lt_cv_prog_gnu_ld in
6912 LD="${LD-ld} -m elf_x86_64"
6915 LD="${LD-ld} -m elf64_sparc"
6918 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6919 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6924 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6936 need_locks="$enable_libtool_lock"
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}mt; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 if test -n "$MANIFEST_TOOL"; then
6947 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6967 if test -n "$MANIFEST_TOOL"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6969 $as_echo "$MANIFEST_TOOL" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6978 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6979 # Extract the first word of "mt", so it can be a program name with args.
6980 set dummy mt; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6984 $as_echo_n "(cached) " >&6
6986 if test -n "$ac_ct_MANIFEST_TOOL"; then
6987 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7007 if test -n "$ac_ct_MANIFEST_TOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7009 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7018 case $cross_compiling:$ac_tool_warned in
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7024 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7027 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7030 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7032 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7033 if ${lt_cv_path_mainfest_tool+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 lt_cv_path_mainfest_tool=no
7037 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7038 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7039 cat conftest.err >&5
7040 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7041 lt_cv_path_mainfest_tool=yes
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7046 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7047 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7057 rhapsody* | darwin*)
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7064 $as_echo_n "(cached) " >&6
7066 if test -n "$DSYMUTIL"; then
7067 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7087 if test -n "$DSYMUTIL"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7089 $as_echo "$DSYMUTIL" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7097 if test -z "$ac_cv_prog_DSYMUTIL"; then
7098 ac_ct_DSYMUTIL=$DSYMUTIL
7099 # Extract the first word of "dsymutil", so it can be a program name with args.
7100 set dummy dsymutil; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7104 $as_echo_n "(cached) " >&6
7106 if test -n "$ac_ct_DSYMUTIL"; then
7107 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7127 if test -n "$ac_ct_DSYMUTIL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7129 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7135 if test "x$ac_ct_DSYMUTIL" = x; then
7138 case $cross_compiling:$ac_tool_warned in
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7144 DSYMUTIL=$ac_ct_DSYMUTIL
7147 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_NMEDIT+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 if test -n "$NMEDIT"; then
7159 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 NMEDIT=$ac_cv_prog_NMEDIT
7179 if test -n "$NMEDIT"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7181 $as_echo "$NMEDIT" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7189 if test -z "$ac_cv_prog_NMEDIT"; then
7190 ac_ct_NMEDIT=$NMEDIT
7191 # Extract the first word of "nmedit", so it can be a program name with args.
7192 set dummy nmedit; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$ac_ct_NMEDIT"; then
7199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7219 if test -n "$ac_ct_NMEDIT"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7221 $as_echo "$ac_ct_NMEDIT" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7227 if test "x$ac_ct_NMEDIT" = x; then
7230 case $cross_compiling:$ac_tool_warned in
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7236 NMEDIT=$ac_ct_NMEDIT
7239 NMEDIT="$ac_cv_prog_NMEDIT"
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_LIPO+:} false; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$LIPO"; then
7251 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 LIPO=$ac_cv_prog_LIPO
7271 if test -n "$LIPO"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7273 $as_echo "$LIPO" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7281 if test -z "$ac_cv_prog_LIPO"; then
7283 # Extract the first word of "lipo", so it can be a program name with args.
7284 set dummy lipo; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 if test -n "$ac_ct_LIPO"; then
7291 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_ac_ct_LIPO="lipo"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7311 if test -n "$ac_ct_LIPO"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7313 $as_echo "$ac_ct_LIPO" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$ac_ct_LIPO" = x; then
7322 case $cross_compiling:$ac_tool_warned in
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7331 LIPO="$ac_cv_prog_LIPO"
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}otool; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_OTOOL+:} false; then :
7340 $as_echo_n "(cached) " >&6
7342 if test -n "$OTOOL"; then
7343 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 OTOOL=$ac_cv_prog_OTOOL
7363 if test -n "$OTOOL"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7365 $as_echo "$OTOOL" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7373 if test -z "$ac_cv_prog_OTOOL"; then
7375 # Extract the first word of "otool", so it can be a program name with args.
7376 set dummy otool; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7382 if test -n "$ac_ct_OTOOL"; then
7383 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_ac_ct_OTOOL="otool"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7403 if test -n "$ac_ct_OTOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7405 $as_echo "$ac_ct_OTOOL" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7411 if test "x$ac_ct_OTOOL" = x; then
7414 case $cross_compiling:$ac_tool_warned in
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7423 OTOOL="$ac_cv_prog_OTOOL"
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_OTOOL64+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$OTOOL64"; then
7435 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 OTOOL64=$ac_cv_prog_OTOOL64
7455 if test -n "$OTOOL64"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7457 $as_echo "$OTOOL64" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7465 if test -z "$ac_cv_prog_OTOOL64"; then
7466 ac_ct_OTOOL64=$OTOOL64
7467 # Extract the first word of "otool64", so it can be a program name with args.
7468 set dummy otool64; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$ac_ct_OTOOL64"; then
7475 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_ac_ct_OTOOL64="otool64"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7495 if test -n "$ac_ct_OTOOL64"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7497 $as_echo "$ac_ct_OTOOL64" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7503 if test "x$ac_ct_OTOOL64" = x; then
7506 case $cross_compiling:$ac_tool_warned in
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7512 OTOOL64=$ac_ct_OTOOL64
7515 OTOOL64="$ac_cv_prog_OTOOL64"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7545 $as_echo_n "checking for -single_module linker flag... " >&6; }
7546 if ${lt_cv_apple_cc_single_mod+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 lt_cv_apple_cc_single_mod=no
7550 if test -z "${LT_MULTI_MODULE}"; then
7551 # By default we will add the -single_module flag. You can override
7552 # by either setting the environment variable LT_MULTI_MODULE
7553 # non-empty at configure time, or by adding -multi_module to the
7555 rm -rf libconftest.dylib*
7556 echo "int foo(void){return 1;}" > conftest.c
7557 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7558 -dynamiclib -Wl,-single_module conftest.c" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7562 # If there is a non-empty error log, and "single_module"
7563 # appears in it, assume the flag caused a linker warning
7564 if test -s conftest.err && $GREP single_module conftest.err; then
7565 cat conftest.err >&5
7566 # Otherwise, if the output was created with a 0 exit code from
7567 # the compiler, it worked.
7568 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7569 lt_cv_apple_cc_single_mod=yes
7571 cat conftest.err >&5
7573 rm -rf libconftest.dylib*
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7581 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7582 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7583 $as_echo_n "(cached) " >&6
7585 lt_cv_ld_exported_symbols_list=no
7586 save_LDFLAGS=$LDFLAGS
7587 echo "_main" > conftest.sym
7588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7600 if ac_fn_c_try_link "$LINENO"; then :
7601 lt_cv_ld_exported_symbols_list=yes
7603 lt_cv_ld_exported_symbols_list=no
7605 rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LDFLAGS="$save_LDFLAGS"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7611 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7614 $as_echo_n "checking for -force_load linker flag... " >&6; }
7615 if ${lt_cv_ld_force_load+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 lt_cv_ld_force_load=no
7619 cat > conftest.c << _LT_EOF
7620 int forced_loaded() { return 2;}
7622 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7623 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7624 echo "$AR cru libconftest.a conftest.o" >&5
7625 $AR cru libconftest.a conftest.o 2>&5
7626 echo "$RANLIB libconftest.a" >&5
7627 $RANLIB libconftest.a 2>&5
7628 cat > conftest.c << _LT_EOF
7629 int main() { return 0;}
7631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7634 if test -s conftest.err && $GREP force_load conftest.err; then
7635 cat conftest.err >&5
7636 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7637 lt_cv_ld_force_load=yes
7639 cat conftest.err >&5
7641 rm -f conftest.err libconftest.a conftest conftest.c
7642 rm -rf conftest.dSYM
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7646 $as_echo "$lt_cv_ld_force_load" >&6; }
7648 rhapsody* | darwin1.[012])
7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652 darwin*) # darwin 5.x on
7653 # if running on 10.5 or later, the deployment target defaults
7654 # to the OS version, if on x86, and 10.4, the deployment
7655 # target defaults to 10.4. Don't you love it?
7656 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7657 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7660 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7666 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667 _lt_dar_single_mod='$single_module'
7669 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7674 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7675 _lt_dsymutil='~$DSYMUTIL $lib || :'
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7684 $as_echo_n "checking for ANSI C header files... " >&6; }
7685 if ${ac_cv_header_stdc+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 ac_cv_header_stdc=yes
7706 ac_cv_header_stdc=no
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 if test $ac_cv_header_stdc = yes; then
7711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718 $EGREP "memchr" >/dev/null 2>&1; then :
7721 ac_cv_header_stdc=no
7727 if test $ac_cv_header_stdc = yes; then
7728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7735 $EGREP "free" >/dev/null 2>&1; then :
7738 ac_cv_header_stdc=no
7744 if test $ac_cv_header_stdc = yes; then
7745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7746 if test "$cross_compiling" = yes; then :
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7753 #if ((' ' & 0x0FF) == 0x020)
7754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7757 # define ISLOWER(c) \
7758 (('a' <= (c) && (c) <= 'i') \
7759 || ('j' <= (c) && (c) <= 'r') \
7760 || ('s' <= (c) && (c) <= 'z'))
7761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7769 for (i = 0; i < 256; i++)
7770 if (XOR (islower (i), ISLOWER (i))
7771 || toupper (i) != TOUPPER (i))
7776 if ac_fn_c_try_run "$LINENO"; then :
7779 ac_cv_header_stdc=no
7781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7782 conftest.$ac_objext conftest.beam conftest.$ac_ext
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7788 $as_echo "$ac_cv_header_stdc" >&6; }
7789 if test $ac_cv_header_stdc = yes; then
7791 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7797 inttypes.h stdint.h unistd.h
7799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7803 cat >>confdefs.h <<_ACEOF
7804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812 for ac_header in dlfcn.h
7814 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7816 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7817 cat >>confdefs.h <<_ACEOF
7818 #define HAVE_DLFCN_H 1
7830 enable_win32_dll=yes
7833 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}as; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_AS+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 if test -n "$AS"; then
7843 ac_cv_prog_AS="$AS" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_AS="${ac_tool_prefix}as"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 if test -n "$AS"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7865 $as_echo "$AS" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test -z "$ac_cv_prog_AS"; then
7875 # Extract the first word of "as", so it can be a program name with args.
7876 set dummy as; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 if test -n "$ac_ct_AS"; then
7883 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_AS="as"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7903 if test -n "$ac_ct_AS"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7905 $as_echo "$ac_ct_AS" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 if test "x$ac_ct_AS" = x; then
7914 case $cross_compiling:$ac_tool_warned in
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_DLLTOOL+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 if test -n "$DLLTOOL"; then
7935 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 DLLTOOL=$ac_cv_prog_DLLTOOL
7955 if test -n "$DLLTOOL"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7957 $as_echo "$DLLTOOL" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7965 if test -z "$ac_cv_prog_DLLTOOL"; then
7966 ac_ct_DLLTOOL=$DLLTOOL
7967 # Extract the first word of "dlltool", so it can be a program name with args.
7968 set dummy dlltool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7972 $as_echo_n "(cached) " >&6
7974 if test -n "$ac_ct_DLLTOOL"; then
7975 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7995 if test -n "$ac_ct_DLLTOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7997 $as_echo "$ac_ct_DLLTOOL" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8003 if test "x$ac_ct_DLLTOOL" = x; then
8006 case $cross_compiling:$ac_tool_warned in
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8012 DLLTOOL=$ac_ct_DLLTOOL
8015 DLLTOOL="$ac_cv_prog_DLLTOOL"
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_OBJDUMP+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$OBJDUMP"; then
8027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 OBJDUMP=$ac_cv_prog_OBJDUMP
8047 if test -n "$OBJDUMP"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8049 $as_echo "$OBJDUMP" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8057 if test -z "$ac_cv_prog_OBJDUMP"; then
8058 ac_ct_OBJDUMP=$OBJDUMP
8059 # Extract the first word of "objdump", so it can be a program name with args.
8060 set dummy objdump; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -n "$ac_ct_OBJDUMP"; then
8067 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8087 if test -n "$ac_ct_OBJDUMP"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8089 $as_echo "$ac_ct_OBJDUMP" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8095 if test "x$ac_ct_OBJDUMP" = x; then
8098 case $cross_compiling:$ac_tool_warned in
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8104 OBJDUMP=$ac_ct_OBJDUMP
8107 OBJDUMP="$ac_cv_prog_OBJDUMP"
8113 test -z "$AS" && AS=as
8119 test -z "$DLLTOOL" && DLLTOOL=dlltool
8125 test -z "$OBJDUMP" && OBJDUMP=objdump
8137 # Check whether --enable-shared was given.
8138 if test "${enable_shared+set}" = set; then :
8139 enableval=$enable_shared; p=${PACKAGE-default}
8141 yes) enable_shared=yes ;;
8142 no) enable_shared=no ;;
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for pkg in $enableval; do
8149 if test "X$pkg" = "X$p"; then
8168 # Check whether --enable-static was given.
8169 if test "${enable_static+set}" = set; then :
8170 enableval=$enable_static; p=${PACKAGE-default}
8172 yes) enable_static=yes ;;
8173 no) enable_static=no ;;
8176 # Look at the argument we got. We use all the common list separators.
8177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178 for pkg in $enableval; do
8180 if test "X$pkg" = "X$p"; then
8200 # Check whether --with-pic was given.
8201 if test "${with_pic+set}" = set; then :
8202 withval=$with_pic; lt_p=${PACKAGE-default}
8204 yes|no) pic_mode=$withval ;;
8207 # Look at the argument we got. We use all the common list separators.
8208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8209 for lt_pkg in $withval; do
8211 if test "X$lt_pkg" = "X$lt_p"; then
8223 test -z "$pic_mode" && pic_mode=default
8231 # Check whether --enable-fast-install was given.
8232 if test "${enable_fast_install+set}" = set; then :
8233 enableval=$enable_fast_install; p=${PACKAGE-default}
8235 yes) enable_fast_install=yes ;;
8236 no) enable_fast_install=no ;;
8238 enable_fast_install=no
8239 # Look at the argument we got. We use all the common list separators.
8240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8241 for pkg in $enableval; do
8243 if test "X$pkg" = "X$p"; then
8244 enable_fast_install=yes
8251 enable_fast_install=yes
8264 # This can be used to rebuild libtool when needed
8265 LIBTOOL_DEPS="$ltmain"
8267 # Always use our own libtool.
8268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8299 test -z "$LN_S" && LN_S="ln -s"
8314 if test -n "${ZSH_VERSION+set}" ; then
8315 setopt NO_GLOB_SUBST
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8319 $as_echo_n "checking for objdir... " >&6; }
8320 if ${lt_cv_objdir+:} false; then :
8321 $as_echo_n "(cached) " >&6
8323 rm -f .libs 2>/dev/null
8324 mkdir .libs 2>/dev/null
8325 if test -d .libs; then
8328 # MS-DOS does not allow filenames that begin with a dot.
8331 rmdir .libs 2>/dev/null
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8334 $as_echo "$lt_cv_objdir" >&6; }
8335 objdir=$lt_cv_objdir
8341 cat >>confdefs.h <<_ACEOF
8342 #define LT_OBJDIR "$lt_cv_objdir/"
8350 # AIX sometimes has problems with the GCC collect2 program. For some
8351 # reason, if we set the COLLECT_NAMES environment variable, the problems
8352 # vanish in a puff of smoke.
8353 if test "X${COLLECT_NAMES+set}" != Xset; then
8355 export COLLECT_NAMES
8362 can_build_shared=yes
8364 # All known linkers require a `.a' archive for static linking (except MSVC,
8365 # which needs '.lib').
8368 with_gnu_ld="$lt_cv_prog_gnu_ld"
8371 old_CFLAGS="$CFLAGS"
8373 # Set sane defaults for various variables
8374 test -z "$CC" && CC=cc
8375 test -z "$LTCC" && LTCC=$CC
8376 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8377 test -z "$LD" && LD=ld
8378 test -z "$ac_objext" && ac_objext=o
8380 for cc_temp in $compiler""; do
8382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8388 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8391 # Only perform the check for file, if the check method requires it
8392 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8393 case $deplibs_check_method in
8395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8399 $as_echo_n "(cached) " >&6
8403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406 lt_save_MAGIC_CMD="$MAGIC_CMD"
8407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8409 for ac_dir in $ac_dummy; do
8411 test -z "$ac_dir" && ac_dir=.
8412 if test -f $ac_dir/${ac_tool_prefix}file; then
8413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8414 if test -n "$file_magic_test_file"; then
8415 case $deplibs_check_method in
8417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8420 $EGREP "$file_magic_regex" > /dev/null; then
8425 *** Warning: the command libtool uses to detect shared libraries,
8426 *** $file_magic_cmd, produces output that libtool cannot recognize.
8427 *** The result is that libtool may fail to recognize shared libraries
8428 *** as such. This will affect the creation of libtool libraries that
8429 *** depend on shared libraries, but programs linked with such libtool
8430 *** libraries will work regardless of this problem. Nevertheless, you
8431 *** may want to report the problem to your system manager and/or to
8432 *** bug-libtool@gnu.org
8442 MAGIC_CMD="$lt_save_MAGIC_CMD"
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if test -n "$MAGIC_CMD"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450 $as_echo "$MAGIC_CMD" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8460 if test -z "$lt_cv_path_MAGIC_CMD"; then
8461 if test -n "$ac_tool_prefix"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8463 $as_echo_n "checking for file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465 $as_echo_n "(cached) " >&6
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such. This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem. Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8532 # Use C for the default configuration in the libtool script
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542 # Source file extension for C test sources.
8545 # Object file extension for compiled C test sources.
8549 # Code to be used in simple compile tests
8550 lt_simple_compile_test_code="int some_variable = 0;"
8552 # Code to be used in simple link tests
8553 lt_simple_link_test_code='int main(){return(0);}'
8561 # If no C compiler was specified, use CC.
8564 # If no C compiler flags were specified, use CFLAGS.
8565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8567 # Allow CC to be a program name with arguments.
8570 # Save the default compiler, since it gets overwritten when the other
8571 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8572 compiler_DEFAULT=$CC
8574 # save warnings/boilerplate of simple test code
8575 ac_outfile=conftest.$ac_objext
8576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8578 _lt_compiler_boilerplate=`cat conftest.err`
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_linker_boilerplate=`cat conftest.err`
8589 ## There is no encapsulation within the following macros, do not change
8590 ## the running order or otherwise move them around unless you know exactly
8591 ## what you are doing...
8592 if test -n "$compiler"; then
8594 lt_prog_compiler_no_builtin_flag=
8596 if test "$GCC" = yes; then
8597 case $cc_basename in
8599 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8601 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8605 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8606 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 lt_cv_prog_compiler_rtti_exceptions=no
8610 ac_outfile=conftest.$ac_objext
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612 lt_compiler_flag="-fno-rtti -fno-exceptions"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 # The option is referenced via a variable to avoid confusing sed.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>conftest.err)
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s "$ac_outfile"; then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings other than the usual output.
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_rtti_exceptions=yes
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8640 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8642 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8643 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8655 lt_prog_compiler_wl=
8656 lt_prog_compiler_pic=
8657 lt_prog_compiler_static=
8660 if test "$GCC" = yes; then
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_static='-static'
8666 # All AIX code is PIC.
8667 if test "$host_cpu" = ia64; then
8668 # AIX 5 now supports IA64 processor
8669 lt_prog_compiler_static='-Bstatic'
8676 # see comment about AmigaOS4 .so support
8677 lt_prog_compiler_pic='-fPIC'
8680 # FIXME: we need at least 68020 code to build shared libraries, but
8681 # adding the `-m68020' flag to GCC prevents building anything better,
8683 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8688 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8689 # PIC is the default for these OSes.
8692 mingw* | cygwin* | pw32* | os2* | cegcc*)
8693 # This hack is so that the source file can tell whether it is being
8694 # built for inclusion in a dll (and should export symbols for example).
8695 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8696 # (--disable-auto-import) libraries
8697 lt_prog_compiler_pic='-DDLL_EXPORT'
8700 darwin* | rhapsody*)
8701 # PIC is the default on this platform
8702 # Common symbols not allowed in MH_DYLIB files
8703 lt_prog_compiler_pic='-fno-common'
8707 # PIC is the default for Haiku.
8708 # The "-static" flag exists, but is broken.
8709 lt_prog_compiler_static=
8713 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8714 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8715 # sets the default TLS model and affects inlining.
8721 lt_prog_compiler_pic='-fPIC'
8727 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8728 # Instead, we relocate shared libraries at runtime.
8732 # Just because we use GCC doesn't mean we suddenly get shared libraries
8733 # on systems that don't support them.
8734 lt_prog_compiler_can_build_shared=no
8739 # QNX uses GNU C++, but need to define -shared option too, otherwise
8741 lt_prog_compiler_pic='-fPIC -shared'
8745 if test -d /usr/nec; then
8746 lt_prog_compiler_pic=-Kconform_pic
8751 lt_prog_compiler_pic='-fPIC'
8755 case $cc_basename in
8756 nvcc*) # Cuda Compiler Driver 2.2
8757 lt_prog_compiler_wl='-Xlinker '
8758 if test -n "$lt_prog_compiler_pic"; then
8759 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8764 # PORTME Check for flag to pass linker flags through the system compiler.
8767 lt_prog_compiler_wl='-Wl,'
8768 if test "$host_cpu" = ia64; then
8769 # AIX 5 now supports IA64 processor
8770 lt_prog_compiler_static='-Bstatic'
8772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8776 mingw* | cygwin* | pw32* | os2* | cegcc*)
8777 # This hack is so that the source file can tell whether it is being
8778 # built for inclusion in a dll (and should export symbols for example).
8779 lt_prog_compiler_pic='-DDLL_EXPORT'
8782 hpux9* | hpux10* | hpux11*)
8783 lt_prog_compiler_wl='-Wl,'
8784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8791 lt_prog_compiler_pic='+Z'
8794 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8795 lt_prog_compiler_static='${wl}-a ${wl}archive'
8798 irix5* | irix6* | nonstopux*)
8799 lt_prog_compiler_wl='-Wl,'
8800 # PIC (with -KPIC) is the default.
8801 lt_prog_compiler_static='-non_shared'
8804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8805 case $cc_basename in
8806 # old Intel for x86_64 which still supported -KPIC.
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_pic='-KPIC'
8810 lt_prog_compiler_static='-static'
8812 # icc used to be incompatible with GCC.
8813 # ICC 10 doesn't accept -KPIC any more.
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-fPIC'
8817 lt_prog_compiler_static='-static'
8819 # Lahey Fortran 8.1.
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='--shared'
8823 lt_prog_compiler_static='--static'
8826 # NAG Fortran compiler
8827 lt_prog_compiler_wl='-Wl,-Wl,,'
8828 lt_prog_compiler_pic='-PIC'
8829 lt_prog_compiler_static='-Bstatic'
8831 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8832 # Portland Group compilers (*not* the Pentium gcc compiler,
8833 # which looks to be a dead project)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fpic'
8836 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 # All Alpha code is PIC.
8841 lt_prog_compiler_static='-non_shared'
8843 xl* | bgxl* | bgf* | mpixl*)
8844 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-qpic'
8847 lt_prog_compiler_static='-qstaticlink'
8850 case `$CC -V 2>&1 | sed 5q` in
8851 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 lt_prog_compiler_wl=''
8857 *Sun\ F* | *Sun*Fortran*)
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_wl='-Qoption ld '
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8868 *Intel*\ [CF]*Compiler*)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='-fPIC'
8871 lt_prog_compiler_static='-static'
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='-fpic'
8876 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_pic='-KPIC'
8885 lt_prog_compiler_static='-Bstatic'
8889 # QNX uses GNU C++, but need to define -shared option too, otherwise
8891 lt_prog_compiler_pic='-fPIC -shared'
8894 osf3* | osf4* | osf5*)
8895 lt_prog_compiler_wl='-Wl,'
8896 # All OSF/1 code is PIC.
8897 lt_prog_compiler_static='-non_shared'
8901 lt_prog_compiler_static='-non_shared'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 case $cc_basename in
8908 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8909 lt_prog_compiler_wl='-Qoption ld ';;
8911 lt_prog_compiler_wl='-Wl,';;
8916 lt_prog_compiler_wl='-Qoption ld '
8917 lt_prog_compiler_pic='-PIC'
8918 lt_prog_compiler_static='-Bstatic'
8921 sysv4 | sysv4.2uw2* | sysv4.3*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8928 if test -d /usr/nec ;then
8929 lt_prog_compiler_pic='-Kconform_pic'
8930 lt_prog_compiler_static='-Bstatic'
8934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_can_build_shared=no
8946 lt_prog_compiler_pic='-pic'
8947 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_can_build_shared=no
8957 # For platforms which do not support PIC, -DPIC is meaningless:
8959 lt_prog_compiler_pic=
8962 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8967 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8968 if ${lt_cv_prog_compiler_pic+:} false; then :
8969 $as_echo_n "(cached) " >&6
8971 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8974 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8975 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8978 # Check to make sure the PIC flag actually works.
8980 if test -n "$lt_prog_compiler_pic"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8982 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8983 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 lt_cv_prog_compiler_pic_works=no
8987 ac_outfile=conftest.$ac_objext
8988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 # The option is referenced via a variable to avoid confusing sed.
8995 lt_compile=`echo "$ac_compile" | $SED \
8996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998 -e 's:$: $lt_compiler_flag:'`
8999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9000 (eval "$lt_compile" 2>conftest.err)
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 if (exit $ac_status) && test -s "$ac_outfile"; then
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings other than the usual output.
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_pic_works=yes
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9017 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9019 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9020 case $lt_prog_compiler_pic in
9022 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9025 lt_prog_compiler_pic=
9026 lt_prog_compiler_can_build_shared=no
9042 # Check to make sure the static flag actually works.
9044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9047 if ${lt_cv_prog_compiler_static_works+:} false; then :
9048 $as_echo_n "(cached) " >&6
9050 lt_cv_prog_compiler_static_works=no
9051 save_LDFLAGS="$LDFLAGS"
9052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9055 # The linker can only warn and ignore the option if not recognized
9056 # So say no if there are warnings
9057 if test -s conftest.err; then
9058 # Append any errors to the config.log.
9059 cat conftest.err 1>&5
9060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062 if diff conftest.exp conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler_static_works=yes
9066 lt_cv_prog_compiler_static_works=yes
9070 LDFLAGS="$save_LDFLAGS"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9079 lt_prog_compiler_static=
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090 if ${lt_cv_prog_compiler_c_o+:} false; then :
9091 $as_echo_n "(cached) " >&6
9093 lt_cv_prog_compiler_c_o=no
9094 $RM -r conftest 2>/dev/null
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9100 lt_compiler_flag="-o out/conftest2.$ac_objext"
9101 # Insert the option either (1) after the last *FLAGS variable, or
9102 # (2) before a word containing "conftest.", or (3) at the end.
9103 # Note that $ac_compile itself does not contain backslashes and begins
9104 # with a dollar sign (not a hyphen), so the echo should work correctly.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
9109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9110 (eval "$lt_compile" 2>out/conftest.err)
9112 cat out/conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9116 # The compiler can only warn and ignore the option if not recognized
9117 # So say no if there are warnings
9118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121 lt_cv_prog_compiler_c_o=yes
9126 # SGI C++ compiler will create directory out/ii_files/ for
9127 # template instantiation
9128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129 $RM out/* && rmdir out
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145 if ${lt_cv_prog_compiler_c_o+:} false; then :
9146 $as_echo_n "(cached) " >&6
9148 lt_cv_prog_compiler_c_o=no
9149 $RM -r conftest 2>/dev/null
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9155 lt_compiler_flag="-o out/conftest2.$ac_objext"
9156 # Insert the option either (1) after the last *FLAGS variable, or
9157 # (2) before a word containing "conftest.", or (3) at the end.
9158 # Note that $ac_compile itself does not contain backslashes and begins
9159 # with a dollar sign (not a hyphen), so the echo should work correctly.
9160 lt_compile=`echo "$ac_compile" | $SED \
9161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163 -e 's:$: $lt_compiler_flag:'`
9164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165 (eval "$lt_compile" 2>out/conftest.err)
9167 cat out/conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9171 # The compiler can only warn and ignore the option if not recognized
9172 # So say no if there are warnings
9173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176 lt_cv_prog_compiler_c_o=yes
9181 # SGI C++ compiler will create directory out/ii_files/ for
9182 # template instantiation
9183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184 $RM out/* && rmdir out
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9196 hard_links="nottested"
9197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9198 # do not overwrite the value of need_locks provided by the user
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9200 $as_echo_n "checking if we can lock with hard links... " >&6; }
9203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205 ln conftest.a conftest.b 2>&5 || hard_links=no
9206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9208 $as_echo "$hard_links" >&6; }
9209 if test "$hard_links" = no; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9227 allow_undefined_flag=
9228 always_export_symbols=no
9230 archive_expsym_cmds=
9231 compiler_needs_object=no
9232 enable_shared_with_static_runtimes=no
9233 export_dynamic_flag_spec=
9234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9235 hardcode_automatic=no
9237 hardcode_direct_absolute=no
9238 hardcode_libdir_flag_spec=
9239 hardcode_libdir_separator=
9241 hardcode_shlibpath_var=unsupported
9243 link_all_deplibs=unknown
9246 old_archive_from_new_cmds=
9247 old_archive_from_expsyms_cmds=
9248 thread_safe_flag_spec=
9249 whole_archive_flag_spec=
9250 # include_expsyms should be a list of space-separated symbols to be *always*
9251 # included in the symbol list
9253 # exclude_expsyms can be an extended regexp of symbols to exclude
9254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256 # as well as any symbol that contains `d'.
9257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259 # platforms (ab)use it in PIC code, but their linkers get confused if
9260 # the symbol is explicitly referenced. Since portable code cannot
9261 # rely on this symbol name, it's probably fine to never include it in
9262 # preloaded symbol tables.
9263 # Exclude shared library initialization/finalization symbols.
9264 extract_expsyms_cmds=
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269 # When not using gcc, we currently assume that we are using
9270 # Microsoft Visual C++.
9271 if test "$GCC" != yes; then
9276 # we just hope/assume this is gcc and not c89 (= MSVC++)
9286 # On some targets, GNU ld is compatible enough with the native linker
9287 # that we're better off using the native interface for both.
9288 lt_use_gnu_ld_interface=no
9289 if test "$with_gnu_ld" = yes; then
9292 # The AIX port of GNU ld has always aspired to compatibility
9293 # with the native linker. However, as the warning in the GNU ld
9294 # block says, versions before 2.19.5* couldn't really create working
9295 # shared libraries, regardless of the interface used.
9296 case `$LD -v 2>&1` in
9297 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9298 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9299 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9301 lt_use_gnu_ld_interface=yes
9306 lt_use_gnu_ld_interface=yes
9311 if test "$lt_use_gnu_ld_interface" = yes; then
9312 # If archive_cmds runs LD, not CC, wlarc should be empty
9315 # Set some defaults for GNU ld with shared library support. These
9316 # are reset later if shared libraries are not supported. Putting them
9317 # here allows them to be overridden if necessary.
9318 runpath_var=LD_RUN_PATH
9319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320 export_dynamic_flag_spec='${wl}--export-dynamic'
9321 # ancient GNU ld didn't support --whole-archive et. al.
9322 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9323 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9325 whole_archive_flag_spec=
9327 supports_anon_versioning=no
9328 case `$LD -v 2>&1` in
9329 *GNU\ gold*) supports_anon_versioning=yes ;;
9330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9333 *\ 2.11.*) ;; # other 2.11 versions
9334 *) supports_anon_versioning=yes ;;
9337 # See if GNU ld supports shared libraries.
9340 # On AIX/PPC, the GNU linker is very broken
9341 if test "$host_cpu" != ia64; then
9345 *** Warning: the GNU linker, at least up to release 2.19, is reported
9346 *** to be unable to reliably create shared libraries on AIX.
9347 *** Therefore, libtool is disabling shared libraries support. If you
9348 *** really care for shared libraries, you may want to install binutils
9349 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9350 *** You will then need to restart the configuration process.
9359 # see comment about AmigaOS4 .so support
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 archive_expsym_cmds=''
9364 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)'
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_minus_L=yes
9372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373 allow_undefined_flag=unsupported
9374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9375 # support --undefined. This deserves some investigation. FIXME
9376 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 cygwin* | mingw* | pw32* | cegcc*)
9383 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9384 # as there is no search path for DLLs.
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 export_dynamic_flag_spec='${wl}--export-all-symbols'
9387 allow_undefined_flag=unsupported
9388 always_export_symbols=no
9389 enable_shared_with_static_runtimes=yes
9390 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'
9391 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9393 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9395 # If the export-symbols file already is a .def file (1st line
9396 # is EXPORTS), use it as is; otherwise, prepend...
9397 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9398 cp $export_symbols $output_objdir/$soname.def;
9400 echo EXPORTS > $output_objdir/$soname.def;
9401 cat $export_symbols >> $output_objdir/$soname.def;
9403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 link_all_deplibs=yes
9416 hardcode_shlibpath_var=no
9417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9418 export_dynamic_flag_spec='${wl}-E'
9419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9420 # Instead, shared libraries are loaded at an image base (0x10000000 by
9421 # default) and relocated if they conflict, which is a slow very memory
9422 # consuming and fragmenting process. To avoid this, we pick a random,
9423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9425 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9426 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'
9429 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9431 if test "$host_os" = linux-dietlibc; then
9432 case $cc_basename in
9433 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9436 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9437 && test "$tmp_diet" = no
9439 tmp_addflag=' $pic_flag'
9440 tmp_sharedflag='-shared'
9441 case $cc_basename,$host_cpu in
9442 pgcc*) # Portland Group C compiler
9443 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'
9444 tmp_addflag=' $pic_flag'
9446 pgf77* | pgf90* | pgf95* | pgfortran*)
9447 # Portland Group f77 and f90 compilers
9448 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'
9449 tmp_addflag=' $pic_flag -Mnomain' ;;
9450 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9451 tmp_addflag=' -i_dynamic' ;;
9452 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9453 tmp_addflag=' -i_dynamic -nofor_main' ;;
9454 ifc* | ifort*) # Intel Fortran compiler
9455 tmp_addflag=' -nofor_main' ;;
9456 lf95*) # Lahey Fortran 8.1
9457 whole_archive_flag_spec=
9458 tmp_sharedflag='--shared' ;;
9459 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9460 tmp_sharedflag='-qmkshrobj'
9462 nvcc*) # Cuda Compiler Driver 2.2
9463 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'
9464 compiler_needs_object=yes
9467 case `$CC -V 2>&1 | sed 5q` in
9468 *Sun\ C*) # Sun C 5.9
9469 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'
9470 compiler_needs_object=yes
9471 tmp_sharedflag='-G' ;;
9472 *Sun\ F*) # Sun Fortran 8.3
9473 tmp_sharedflag='-G' ;;
9475 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 if test "x$supports_anon_versioning" = xyes; then
9478 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9480 echo "local: *; };" >> $output_objdir/$libname.ver~
9481 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9484 case $cc_basename in
9485 xlf* | bgf* | bgxlf* | mpixlf*)
9486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9487 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9490 if test "x$supports_anon_versioning" = xyes; then
9491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9505 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9519 *** create shared libraries on Solaris systems. Therefore, libtool
9520 *** is disabling shared libraries support. We urge you to upgrade GNU
9521 *** binutils to release 2.9.1 or newer. Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9535 case `$LD -v 2>&1` in
9536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9541 *** reliably create shared libraries on SCO systems. Therefore, libtool
9542 *** is disabling shared libraries support. We urge you to upgrade GNU
9543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9550 # For security reasons, it is highly recommended that you always
9551 # use absolute paths for naming shared libraries, and exclude the
9552 # DT_RUNPATH tag from executables and libraries. But doing so
9553 # requires that you compile everything twice, which is a pain.
9554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_shlibpath_var=no
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 if test "$ld_shlibs" = no; then
9584 hardcode_libdir_flag_spec=
9585 export_dynamic_flag_spec=
9586 whole_archive_flag_spec=
9589 # PORTME fill in a description of your system's linker (not GNU ld)
9592 allow_undefined_flag=unsupported
9593 always_export_symbols=yes
9594 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'
9595 # Note: this linker hardcodes the directories in LIBPATH if there
9596 # are no directories specified by -L.
9597 hardcode_minus_L=yes
9598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9599 # Neither direct hardcoding nor static linking is supported with a
9601 hardcode_direct=unsupported
9606 if test "$host_cpu" = ia64; then
9607 # On IA64, the linker does run time linking by default, so we don't
9608 # have to do anything special.
9609 aix_use_runtimelinking=no
9610 exp_sym_flag='-Bexport'
9613 # If we're using GNU nm, then we don't want the "-C" option.
9614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9615 # Also, AIX nm treats weak defined symbols like other global
9616 # defined symbols, whereas GNU nm marks them as "W".
9617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9618 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'
9620 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'
9622 aix_use_runtimelinking=no
9624 # Test if we are trying to use run time linking or normal
9625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626 # need to do runtime linking.
9627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9628 for ld_flag in $LDFLAGS; do
9629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9630 aix_use_runtimelinking=yes
9637 exp_sym_flag='-bexport'
9638 no_entry_flag='-bnoentry'
9641 # When large executables or shared objects are built, AIX ld can
9642 # have problems creating the table of contents. If linking a library
9643 # or program results in "error TOC overflow" add -mminimal-toc to
9644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9649 hardcode_direct_absolute=yes
9650 hardcode_libdir_separator=':'
9651 link_all_deplibs=yes
9652 file_list_spec='${wl}-f,'
9654 if test "$GCC" = yes; then
9655 case $host_os in aix4.[012]|aix4.[012].*)
9656 # We only want to do this on AIX 4.2 and lower, the check
9657 # below for broken collect2 doesn't work under 4.3+
9658 collect2name=`${CC} -print-prog-name=collect2`
9659 if test -f "$collect2name" &&
9660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9662 # We have reworked collect2
9665 # We have old collect2
9666 hardcode_direct=unsupported
9667 # It fails to find uninstalled libraries when the uninstalled
9668 # path is not listed in the libpath. Setting hardcode_minus_L
9669 # to unsupported forces relinking
9670 hardcode_minus_L=yes
9671 hardcode_libdir_flag_spec='-L$libdir'
9672 hardcode_libdir_separator=
9676 shared_flag='-shared'
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag="$shared_flag "'${wl}-G'
9682 if test "$host_cpu" = ia64; then
9683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9684 # chokes on -Wl,-G. The following line is correct:
9687 if test "$aix_use_runtimelinking" = yes; then
9688 shared_flag='${wl}-G'
9690 shared_flag='${wl}-bM:SRE'
9695 export_dynamic_flag_spec='${wl}-bexpall'
9696 # It seems that -bexpall does not export symbols beginning with
9697 # underscore (_), so it is better to generate a list of symbols to export.
9698 always_export_symbols=yes
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # Warning - without using the other runtime loading flags (-brtl),
9701 # -berok will link without error, but may produce a broken library.
9702 allow_undefined_flag='-berok'
9703 # Determine the default libpath from the value encoded in an
9705 if test "${lt_cv_aix_libpath+set}" = set; then
9706 aix_libpath=$lt_cv_aix_libpath
9708 if ${lt_cv_aix_libpath_+:} false; then :
9709 $as_echo_n "(cached) " >&6
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9722 if ac_fn_c_try_link "$LINENO"; then :
9724 lt_aix_libpath_sed='
9725 /Import File Strings/,/^$/ {
9727 s/^0 *\([^ ]*\) *$/\1/
9731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732 # Check for a 64-bit object if we didn't find anything.
9733 if test -z "$lt_cv_aix_libpath_"; then
9734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 if test -z "$lt_cv_aix_libpath_"; then
9740 lt_cv_aix_libpath_="/usr/lib:/lib"
9745 aix_libpath=$lt_cv_aix_libpath_
9748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9749 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"
9751 if test "$host_cpu" = ia64; then
9752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9753 allow_undefined_flag="-z nodefs"
9754 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"
9756 # Determine the default libpath from the value encoded in an
9758 if test "${lt_cv_aix_libpath+set}" = set; then
9759 aix_libpath=$lt_cv_aix_libpath
9761 if ${lt_cv_aix_libpath_+:} false; then :
9762 $as_echo_n "(cached) " >&6
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9775 if ac_fn_c_try_link "$LINENO"; then :
9777 lt_aix_libpath_sed='
9778 /Import File Strings/,/^$/ {
9780 s/^0 *\([^ ]*\) *$/\1/
9784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 # Check for a 64-bit object if we didn't find anything.
9786 if test -z "$lt_cv_aix_libpath_"; then
9787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$lt_cv_aix_libpath_"; then
9793 lt_cv_aix_libpath_="/usr/lib:/lib"
9798 aix_libpath=$lt_cv_aix_libpath_
9801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802 # Warning - without using the other run time loading flags,
9803 # -berok will link without error, but may produce a broken library.
9804 no_undefined_flag=' ${wl}-bernotok'
9805 allow_undefined_flag=' ${wl}-berok'
9806 if test "$with_gnu_ld" = yes; then
9807 # We only use this code for GNU lds that support --whole-archive.
9808 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9810 # Exported symbols can be pulled into shared objects from archives
9811 whole_archive_flag_spec='$convenience'
9813 archive_cmds_need_lc=yes
9814 # This is similar to how AIX traditionally builds its shared libraries.
9815 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'
9823 # see comment about AmigaOS4 .so support
9824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9825 archive_expsym_cmds=''
9828 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)'
9829 hardcode_libdir_flag_spec='-L$libdir'
9830 hardcode_minus_L=yes
9836 export_dynamic_flag_spec=-rdynamic
9839 cygwin* | mingw* | pw32* | cegcc*)
9840 # When not using gcc, we currently assume that we are using
9841 # Microsoft Visual C++.
9842 # hardcode_libdir_flag_spec is actually meaningless, as there is
9843 # no search path for DLLs.
9844 case $cc_basename in
9847 hardcode_libdir_flag_spec=' '
9848 allow_undefined_flag=unsupported
9849 always_export_symbols=yes
9851 # Tell ltmain to make .lib files, not .a files.
9853 # Tell ltmain to make .dll files, not .so files.
9855 # FIXME: Setting linknames here is a bad hack.
9856 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9858 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9860 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9862 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9864 # The linker will not automatically build a static lib if we build a DLL.
9865 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9866 enable_shared_with_static_runtimes=yes
9867 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9870 old_postinstall_cmds='chmod 644 $oldlib'
9871 postlink_cmds='lt_outputfile="@OUTPUT@"~
9872 lt_tool_outputfile="@TOOL_OUTPUT@"~
9873 case $lt_outputfile in
9876 lt_outputfile="$lt_outputfile.exe"
9877 lt_tool_outputfile="$lt_tool_outputfile.exe"
9880 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9881 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9882 $RM "$lt_outputfile.manifest";
9886 # Assume MSVC wrapper
9887 hardcode_libdir_flag_spec=' '
9888 allow_undefined_flag=unsupported
9889 # Tell ltmain to make .lib files, not .a files.
9891 # Tell ltmain to make .dll files, not .so files.
9893 # FIXME: Setting linknames here is a bad hack.
9894 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9895 # The linker will automatically build a .lib file if we build a DLL.
9896 old_archive_from_new_cmds='true'
9897 # FIXME: Should let the user specify the lib program.
9898 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9899 enable_shared_with_static_runtimes=yes
9904 darwin* | rhapsody*)
9907 archive_cmds_need_lc=no
9909 hardcode_automatic=yes
9910 hardcode_shlibpath_var=unsupported
9911 if test "$lt_cv_ld_force_load" = "yes"; then
9912 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\"`'
9915 whole_archive_flag_spec=''
9917 link_all_deplibs=yes
9918 allow_undefined_flag="$_lt_dar_allow_undefined"
9919 case $cc_basename in
9920 ifort*) _lt_dar_can_shared=yes ;;
9921 *) _lt_dar_can_shared=$GCC ;;
9923 if test "$_lt_dar_can_shared" = "yes"; then
9924 output_verbose_link_cmd=func_echo_all
9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927 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}"
9928 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}"
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_shlibpath_var=no
9942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943 # support. Future versions do this automatically, but an explicit c++rt0.o
9944 # does not break anything, and helps significantly (at the cost of a little
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_shlibpath_var=no
9953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962 freebsd* | dragonfly*)
9963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_shlibpath_var=no
9970 if test "$GCC" = yes; then
9971 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'
9973 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'
9975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976 hardcode_libdir_separator=:
9979 # hardcode_minus_L: Not really in the search PATH,
9980 # but as the default location of the library.
9981 hardcode_minus_L=yes
9982 export_dynamic_flag_spec='${wl}-E'
9986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9987 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 if test "$with_gnu_ld" = no; then
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_separator=:
9995 hardcode_direct_absolute=yes
9996 export_dynamic_flag_spec='${wl}-E'
9997 # hardcode_minus_L: Not really in the search PATH,
9998 # but as the default location of the library.
9999 hardcode_minus_L=yes
10004 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10026 # Older versions of the 11.00 compiler do not understand -b yet
10027 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10029 $as_echo_n "checking if $CC understands -b... " >&6; }
10030 if ${lt_cv_prog_compiler__b+:} false; then :
10031 $as_echo_n "(cached) " >&6
10033 lt_cv_prog_compiler__b=no
10034 save_LDFLAGS="$LDFLAGS"
10035 LDFLAGS="$LDFLAGS -b"
10036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10038 # The linker can only warn and ignore the option if not recognized
10039 # So say no if there are warnings
10040 if test -s conftest.err; then
10041 # Append any errors to the config.log.
10042 cat conftest.err 1>&5
10043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10045 if diff conftest.exp conftest.er2 >/dev/null; then
10046 lt_cv_prog_compiler__b=yes
10049 lt_cv_prog_compiler__b=yes
10053 LDFLAGS="$save_LDFLAGS"
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10057 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10059 if test x"$lt_cv_prog_compiler__b" = xyes; then
10060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 if test "$with_gnu_ld" = no; then
10069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070 hardcode_libdir_separator=:
10075 hardcode_shlibpath_var=no
10078 hardcode_direct=yes
10079 hardcode_direct_absolute=yes
10080 export_dynamic_flag_spec='${wl}-E'
10082 # hardcode_minus_L: Not really in the search PATH,
10083 # but as the default location of the library.
10084 hardcode_minus_L=yes
10090 irix5* | irix6* | nonstopux*)
10091 if test "$GCC" = yes; then
10092 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'
10093 # Try to use the -exported_symbol ld option, if it does not
10094 # work, assume that -exports_file does not work either and
10095 # implicitly export all symbols.
10096 # This should be the same for all languages, so no per-tag cache variable.
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10098 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10099 if ${lt_cv_irix_exported_symbol+:} false; then :
10100 $as_echo_n "(cached) " >&6
10102 save_LDFLAGS="$LDFLAGS"
10103 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 int foo (void) { return 0; }
10108 if ac_fn_c_try_link "$LINENO"; then :
10109 lt_cv_irix_exported_symbol=yes
10111 lt_cv_irix_exported_symbol=no
10113 rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LDFLAGS="$save_LDFLAGS"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10118 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10119 if test "$lt_cv_irix_exported_symbol" = yes; then
10120 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'
10123 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'
10124 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'
10126 archive_cmds_need_lc='no'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 hardcode_libdir_separator=:
10130 link_all_deplibs=yes
10134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10137 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10139 hardcode_libdir_flag_spec='-R$libdir'
10140 hardcode_direct=yes
10141 hardcode_shlibpath_var=no
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_direct=yes
10147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148 hardcode_libdir_separator=:
10149 hardcode_shlibpath_var=no
10156 if test -f /usr/libexec/ld.so; then
10157 hardcode_direct=yes
10158 hardcode_shlibpath_var=no
10159 hardcode_direct_absolute=yes
10160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10164 export_dynamic_flag_spec='${wl}-E'
10167 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_libdir_flag_spec='-R$libdir'
10172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_minus_L=yes
10185 allow_undefined_flag=unsupported
10186 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'
10187 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10191 if test "$GCC" = yes; then
10192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10193 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'
10195 allow_undefined_flag=' -expect_unresolved \*'
10196 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'
10198 archive_cmds_need_lc='no'
10199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200 hardcode_libdir_separator=:
10203 osf4* | osf5*) # as osf3* with the addition of -msym flag
10204 if test "$GCC" = yes; then
10205 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10206 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'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10209 allow_undefined_flag=' -expect_unresolved \*'
10210 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'
10211 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~
10212 $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'
10214 # Both c and cxx compiler support -rpath directly
10215 hardcode_libdir_flag_spec='-rpath $libdir'
10217 archive_cmds_need_lc='no'
10218 hardcode_libdir_separator=:
10222 no_undefined_flag=' -z defs'
10223 if test "$GCC" = yes; then
10225 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10227 $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'
10229 case `$CC -V 2>&1` in
10232 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10234 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10238 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10240 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10244 hardcode_libdir_flag_spec='-R$libdir'
10245 hardcode_shlibpath_var=no
10247 solaris2.[0-5] | solaris2.[0-5].*) ;;
10249 # The compiler driver will combine and reorder linker options,
10250 # but understands `-z linker_flag'. GCC discards it without `$wl',
10251 # but is careful enough not to reorder.
10252 # Supported since Solaris 2.6 (maybe 2.5.1?)
10253 if test "$GCC" = yes; then
10254 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10256 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10260 link_all_deplibs=yes
10264 if test "x$host_vendor" = xsequent; then
10265 # Use $CC to link under sequent, because it throws in some extra .o
10266 # files that make .init and .fini sections work.
10267 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_direct=yes
10273 hardcode_minus_L=yes
10274 hardcode_shlibpath_var=no
10278 case $host_vendor in
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_direct=yes # is this really true???
10284 ## LD is ld it makes a PLAMLIB
10285 ## CC just makes a GrossModule.
10286 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10287 reload_cmds='$CC -r -o $output$reload_objs'
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10295 runpath_var='LD_RUN_PATH'
10296 hardcode_shlibpath_var=no
10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_shlibpath_var=no
10302 export_dynamic_flag_spec='-Bexport'
10306 if test -d /usr/nec; then
10307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_shlibpath_var=no
10309 runpath_var=LD_RUN_PATH
10310 hardcode_runpath_var=yes
10315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10316 no_undefined_flag='${wl}-z,text'
10317 archive_cmds_need_lc=no
10318 hardcode_shlibpath_var=no
10319 runpath_var='LD_RUN_PATH'
10321 if test "$GCC" = yes; then
10322 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 sysv5* | sco3.2v5* | sco5v6*)
10331 # Note: We can NOT use -z defs as we might desire, because we do not
10332 # link with -lc, and that would cause any symbols used from libc to
10333 # always be unresolved, which means just about no library would
10334 # ever link correctly. If we're not using GNU ld we use -z text
10335 # though, which does catch some bad symbols but isn't as heavy-handed
10337 no_undefined_flag='${wl}-z,text'
10338 allow_undefined_flag='${wl}-z,nodefs'
10339 archive_cmds_need_lc=no
10340 hardcode_shlibpath_var=no
10341 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10342 hardcode_libdir_separator=':'
10343 link_all_deplibs=yes
10344 export_dynamic_flag_spec='${wl}-Bexport'
10345 runpath_var='LD_RUN_PATH'
10347 if test "$GCC" = yes; then
10348 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358 hardcode_libdir_flag_spec='-L$libdir'
10359 hardcode_shlibpath_var=no
10367 if test x$host_vendor = xsni; then
10369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10370 export_dynamic_flag_spec='${wl}-Blargedynsym'
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10377 $as_echo "$ld_shlibs" >&6; }
10378 test "$ld_shlibs" = no && can_build_shared=no
10380 with_gnu_ld=$with_gnu_ld
10397 # Do we need to explicitly link libc?
10399 case "x$archive_cmds_need_lc" in
10401 # Assume -lc should be added
10402 archive_cmds_need_lc=yes
10404 if test "$enable_shared" = yes && test "$GCC" = yes; then
10405 case $archive_cmds in
10407 # FIXME: we may have to deal with multi-command sequences.
10410 # Test whether the compiler implicitly links with -lc since on some
10411 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10412 # to ld, don't add -lc before -lgcc.
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10414 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10415 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10416 $as_echo_n "(cached) " >&6
10419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10422 (eval $ac_compile) 2>&5
10424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10425 test $ac_status = 0; } 2>conftest.err; then
10428 libobjs=conftest.$ac_objext
10430 wl=$lt_prog_compiler_wl
10431 pic_flag=$lt_prog_compiler_pic
10437 lt_save_allow_undefined_flag=$allow_undefined_flag
10438 allow_undefined_flag=
10439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10440 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10443 test $ac_status = 0; }
10445 lt_cv_archive_cmds_need_lc=no
10447 lt_cv_archive_cmds_need_lc=yes
10449 allow_undefined_flag=$lt_save_allow_undefined_flag
10451 cat conftest.err 1>&5
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10457 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10458 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10619 if test "$GCC" = yes; then
10621 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622 *) lt_awk_arg="/^libraries:/" ;;
10625 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626 *) lt_sed_strip_eq="s,=/,/,g" ;;
10628 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629 case $lt_search_path_spec in
10631 # if the path contains ";" then we assume it to be the separator
10632 # otherwise default to the standard path separator (i.e. ":") - it is
10633 # assumed that no part of a normal pathname contains ";" but that should
10634 # okay in the real world where ";" in dirpaths is itself problematic.
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10641 # Ok, now we have the path, separated by spaces, we can step through it
10642 # and add multilib dir if necessary.
10643 lt_tmp_lt_search_path_spec=
10644 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645 for lt_sys_path in $lt_search_path_spec; do
10646 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10649 test -d "$lt_sys_path" && \
10650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10653 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10654 BEGIN {RS=" "; FS="/|\n";} {
10657 for (lt_i = NF; lt_i > 0; lt_i--) {
10658 if ($lt_i != "" && $lt_i != ".") {
10659 if ($lt_i == "..") {
10662 if (lt_count == 0) {
10663 lt_foo="/" $lt_i lt_foo;
10670 if (lt_foo != "") { lt_freq[lt_foo]++; }
10671 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10673 # AWK program above erroneously prepends '/' to C:/dos/paths
10676 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10679 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10683 library_names_spec=
10684 libname_spec='lib$name'
10688 postuninstall_cmds=
10692 shlibpath_overrides_runpath=unknown
10694 dynamic_linker="$host_os ld.so"
10695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696 need_lib_prefix=unknown
10697 hardcode_into_libs=no
10699 # when you set need_version to no, make sure it does not cause -set_version
10700 # flags to be left without arguments
10701 need_version=unknown
10705 version_type=linux # correct to gnu/linux during the next big refactor
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707 shlibpath_var=LIBPATH
10709 # AIX 3 has no versioning support, so we append a major version to the name.
10710 soname_spec='${libname}${release}${shared_ext}$major'
10714 version_type=linux # correct to gnu/linux during the next big refactor
10717 hardcode_into_libs=yes
10718 if test "$host_cpu" = ia64; then
10719 # AIX 5 supports IA64
10720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721 shlibpath_var=LD_LIBRARY_PATH
10723 # With GCC up to 2.95.x, collect2 would create an import file
10724 # for dependence libraries. The import file would start with
10725 # the line `#! .'. This would cause the generated library to
10726 # depend on `.', always an invalid library. This was fixed in
10727 # development snapshots of GCC prior to 3.0.
10729 aix4 | aix4.[01] | aix4.[01].*)
10730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10735 can_build_shared=no
10739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740 # soname into executable. Probably we can add versioning support to
10741 # collect2, so additional links can be useful in future.
10742 if test "$aix_use_runtimelinking" = yes; then
10743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744 # instead of lib<name>.a to let people know that these are not
10745 # typical AIX shared libraries.
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 # We preserve .a as extension for shared libraries through AIX4.2
10749 # and later when we are not doing run time linking.
10750 library_names_spec='${libname}${release}.a $libname.a'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LIBPATH
10760 # Since July 2007 AmigaOS4 officially supports .so libraries.
10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 library_names_spec='$libname.ixlibrary $libname.a'
10766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10767 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'
10773 library_names_spec='${libname}${shared_ext}'
10774 dynamic_linker="$host_os ld.so"
10775 shlibpath_var=LIBRARY_PATH
10779 version_type=linux # correct to gnu/linux during the next big refactor
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787 # the default ld.so.conf also contains /usr/contrib/lib and
10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789 # libtool to hard-code these into programs
10792 cygwin* | mingw* | pw32* | cegcc*)
10793 version_type=windows
10798 case $GCC,$cc_basename in
10801 library_names_spec='$libname.dll.a'
10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10803 postinstall_cmds='base_file=`basename \${file}`~
10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10805 dldir=$destdir/`dirname \$dlpath`~
10806 test -d \$dldir || mkdir -p \$dldir~
10807 $install_prog $dir/$dlname \$dldir/$dlname~
10808 chmod a+x \$dldir/$dlname~
10809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10813 dlpath=$dir/\$dldll~
10815 shlibpath_overrides_runpath=yes
10819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10825 # MinGW DLLs use traditional 'lib' prefix
10826 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829 # pw32 DLLs use 'pw' prefix rather than 'lib'
10830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833 dynamic_linker='Win32 ld.exe'
10838 libname_spec='$name'
10839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10840 library_names_spec='${libname}.dll.lib'
10844 sys_lib_search_path_spec=
10847 for lt_path in $LIB
10850 # Let DOS variable expansion print the short 8.3 style file name.
10851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10855 # Convert to MSYS style.
10856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10859 # Convert to unix form, then to dos form, then back to unix form
10860 # but this time dos style (no spaces!) so that the unix form looks
10861 # like /cygdrive/c/PROGRA~1:/cygdr...
10862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10867 sys_lib_search_path_spec="$LIB"
10868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10869 # It is most probably a Windows format PATH.
10870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10874 # FIXME: find the short name or the path components, as spaces are
10875 # common. (e.g. "Program Files" -> "PROGRA~1")
10879 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10880 postinstall_cmds='base_file=`basename \${file}`~
10881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10882 dldir=$destdir/`dirname \$dlpath`~
10883 test -d \$dldir || mkdir -p \$dldir~
10884 $install_prog $dir/$dlname \$dldir/$dlname'
10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10886 dlpath=$dir/\$dldll~
10888 shlibpath_overrides_runpath=yes
10889 dynamic_linker='Win32 link.exe'
10893 # Assume MSVC wrapper
10894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10895 dynamic_linker='Win32 ld.exe'
10898 # FIXME: first we should search . and the directory the executable is in
10902 darwin* | rhapsody*)
10903 dynamic_linker="$host_os dyld"
10904 version_type=darwin
10907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10908 soname_spec='${libname}${release}${major}$shared_ext'
10909 shlibpath_overrides_runpath=yes
10910 shlibpath_var=DYLD_LIBRARY_PATH
10911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10918 version_type=linux # correct to gnu/linux during the next big refactor
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10926 freebsd* | dragonfly*)
10927 # DragonFly does not have aout. When/if they implement a new
10928 # versioning mechanism, adjust this.
10929 if test -x /usr/bin/objformat; then
10930 objformat=`/usr/bin/objformat`
10933 freebsd[23].*) objformat=aout ;;
10934 *) objformat=elf ;;
10937 version_type=freebsd-$objformat
10938 case $version_type in
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10949 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10954 freebsd3.[01]* | freebsdelf3.[01]*)
10955 shlibpath_overrides_runpath=yes
10956 hardcode_into_libs=yes
10958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10960 shlibpath_overrides_runpath=no
10961 hardcode_into_libs=yes
10963 *) # from 4.6 on, and DragonFly
10964 shlibpath_overrides_runpath=yes
10965 hardcode_into_libs=yes
10971 version_type=linux # correct to gnu/linux during the next big refactor
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=no
10978 hardcode_into_libs=yes
10982 version_type=linux # correct to gnu/linux during the next big refactor
10985 dynamic_linker="$host_os runtime_loader"
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes
10990 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10991 hardcode_into_libs=yes
10994 hpux9* | hpux10* | hpux11*)
10995 # Give a soname corresponding to the major version so that dld.sl refuses to
10996 # link against other versions.
11003 hardcode_into_libs=yes
11004 dynamic_linker="$host_os dld.so"
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 if test "X$HPUX_IA64_MODE" = X32; then
11010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11018 hardcode_into_libs=yes
11019 dynamic_linker="$host_os dld.sl"
11020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11029 dynamic_linker="$host_os dld.sl"
11030 shlibpath_var=SHLIB_PATH
11031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11036 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11037 postinstall_cmds='chmod 555 $lib'
11038 # or fails outright, so override atomically:
11039 install_override_mode=555
11043 version_type=linux # correct to gnu/linux during the next big refactor
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11054 irix5* | irix6* | nonstopux*)
11056 nonstopux*) version_type=nonstopux ;;
11058 if test "$lt_cv_prog_gnu_ld" = yes; then
11059 version_type=linux # correct to gnu/linux during the next big refactor
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11069 irix5* | nonstopux*)
11070 libsuff= shlibsuff=
11073 case $LD in # libtool.m4 will add one of these switches to LD
11074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11075 libsuff= shlibsuff= libmagic=32-bit;;
11076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11077 libsuff=32 shlibsuff=N32 libmagic=N32;;
11078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11079 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11080 *) libsuff= shlibsuff= libmagic=never-match;;
11084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11085 shlibpath_overrides_runpath=no
11086 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11087 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11088 hardcode_into_libs=yes
11091 # No shared lib support for Linux oldld, aout, or coff.
11092 linux*oldld* | linux*aout* | linux*coff*)
11096 # This must be glibc/ELF.
11097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11098 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=no
11107 # Some binutils ld are patched to set DT_RUNPATH
11108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11109 $as_echo_n "(cached) " >&6
11111 lt_cv_shlibpath_overrides_runpath=no
11112 save_LDFLAGS=$LDFLAGS
11113 save_libdir=$libdir
11114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11129 lt_cv_shlibpath_overrides_runpath=yes
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 LDFLAGS=$save_LDFLAGS
11135 libdir=$save_libdir
11139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11141 # This implies no fast_install, which is unacceptable.
11142 # Some rework will be needed to allow for fast_install
11143 # before this can be enabled.
11144 hardcode_into_libs=yes
11146 # Append ld.so.conf contents to the search path
11147 if test -f /etc/ld.so.conf; then
11148 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' ' '`
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11152 # We used to test for /lib/ld.so.1 and disable shared libraries on
11153 # powerpc, because MkLinux only supported shared libraries with the
11154 # GNU dynamic linker. Since this was broken with cross compilers,
11155 # most powerpc-linux boxes support dynamic linking these days and
11156 # people can always --disable-shared, the test was removed, and we
11157 # assume the GNU/Linux dynamic linker is in use.
11158 dynamic_linker='GNU/Linux ld.so'
11165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11168 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 hardcode_into_libs=yes
11180 version_type=linux # correct to gnu/linux during the next big refactor
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=no
11194 hardcode_into_libs=yes
11195 dynamic_linker='ldqnx.so'
11200 sys_lib_dlsearch_path_spec="/usr/lib"
11202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11205 *) need_version=no ;;
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11212 openbsd2.[89] | openbsd2.[89].*)
11213 shlibpath_overrides_runpath=no
11216 shlibpath_overrides_runpath=yes
11220 shlibpath_overrides_runpath=yes
11225 libname_spec='$name'
11228 library_names_spec='$libname${shared_ext} $libname.a'
11229 dynamic_linker='OS/2 ld.exe'
11230 shlibpath_var=LIBPATH
11233 osf3* | osf4* | osf5*)
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11249 version_type=linux # correct to gnu/linux during the next big refactor
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes
11256 hardcode_into_libs=yes
11257 # ldd complains unless libraries are executable
11258 postinstall_cmds='chmod +x $lib'
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11267 if test "$with_gnu_ld" = yes; then
11274 version_type=linux # correct to gnu/linux during the next big refactor
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 case $host_vendor in
11280 shlibpath_overrides_runpath=no
11282 runpath_var=LD_RUN_PATH
11290 shlibpath_overrides_runpath=no
11291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11297 if test -d /usr/nec ;then
11298 version_type=linux # correct to gnu/linux during the next big refactor
11299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11300 soname_spec='$libname${shared_ext}.$major'
11301 shlibpath_var=LD_LIBRARY_PATH
11305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11306 version_type=freebsd-elf
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes
11313 hardcode_into_libs=yes
11314 if test "$with_gnu_ld" = yes; then
11315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11324 sys_lib_dlsearch_path_spec='/usr/lib'
11328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11329 version_type=linux # correct to gnu/linux during the next big refactor
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=no
11335 hardcode_into_libs=yes
11339 version_type=linux # correct to gnu/linux during the next big refactor
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 shlibpath_var=LD_LIBRARY_PATH
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11350 $as_echo "$dynamic_linker" >&6; }
11351 test "$dynamic_linker" = no && can_build_shared=no
11353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11354 if test "$GCC" = yes; then
11355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11457 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11459 if test -n "$hardcode_libdir_flag_spec" ||
11460 test -n "$runpath_var" ||
11461 test "X$hardcode_automatic" = "Xyes" ; then
11463 # We can hardcode non-existent directories.
11464 if test "$hardcode_direct" != no &&
11465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11466 # have to relink, otherwise we might link with an installed library
11467 # when we should be linking with a yet-to-be-installed one
11468 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11469 test "$hardcode_minus_L" != no; then
11470 # Linking always hardcodes the temporary library directory.
11471 hardcode_action=relink
11473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11474 hardcode_action=immediate
11477 # We cannot hardcode anything, or else we can only hardcode existing
11479 hardcode_action=unsupported
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11482 $as_echo "$hardcode_action" >&6; }
11484 if test "$hardcode_action" = relink ||
11485 test "$inherit_rpath" = yes; then
11486 # Fast installation is not supported
11487 enable_fast_install=no
11488 elif test "$shlibpath_overrides_runpath" = yes ||
11489 test "$enable_shared" = no; then
11490 # Fast installation is not necessary
11491 enable_fast_install=needless
11499 if test "x$enable_dlopen" != xyes; then
11500 enable_dlopen=unknown
11501 enable_dlopen_self=unknown
11502 enable_dlopen_self_static=unknown
11509 lt_cv_dlopen="load_add_on"
11511 lt_cv_dlopen_self=yes
11514 mingw* | pw32* | cegcc*)
11515 lt_cv_dlopen="LoadLibrary"
11520 lt_cv_dlopen="dlopen"
11525 # if libdl is installed we need to link against it
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11528 if ${ac_cv_lib_dl_dlopen+:} false; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_check_lib_save_LIBS=$LIBS
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_dl_dlopen=yes
11554 ac_cv_lib_dl_dlopen=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566 lt_cv_dlopen="dyld"
11568 lt_cv_dlopen_self=yes
11575 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11576 if test "x$ac_cv_func_shl_load" = xyes; then :
11577 lt_cv_dlopen="shl_load"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_shl_load+:} false; then :
11582 $as_echo_n "(cached) " >&6
11584 ac_check_lib_save_LIBS=$LIBS
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11599 return shl_load ();
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_dld_shl_load=yes
11607 ac_cv_lib_dld_shl_load=no
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11616 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11618 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11619 if test "x$ac_cv_func_dlopen" = xyes; then :
11620 lt_cv_dlopen="dlopen"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11624 if ${ac_cv_lib_dl_dlopen+:} false; then :
11625 $as_echo_n "(cached) " >&6
11627 ac_check_lib_save_LIBS=$LIBS
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_dl_dlopen=yes
11650 ac_cv_lib_dl_dlopen=no
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11663 if ${ac_cv_lib_svld_dlopen+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lsvld $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_svld_dlopen=yes
11689 ac_cv_lib_svld_dlopen=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_dld_link+:} false; then :
11703 $as_echo_n "(cached) " >&6
11705 ac_check_lib_save_LIBS=$LIBS
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11720 return dld_link ();
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_dld_dld_link=yes
11728 ac_cv_lib_dld_dld_link=no
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11758 if test "x$lt_cv_dlopen" != xno; then
11764 case $lt_cv_dlopen in
11766 save_CPPFLAGS="$CPPFLAGS"
11767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11769 save_LDFLAGS="$LDFLAGS"
11770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773 LIBS="$lt_cv_dlopen_libs $LIBS"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11777 if ${lt_cv_dlopen_self+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 if test "$cross_compiling" = yes; then :
11781 lt_cv_dlopen_self=cross
11783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784 lt_status=$lt_dlunknown
11785 cat > conftest.$ac_ext <<_LT_EOF
11786 #line $LINENO "configure"
11787 #include "confdefs.h"
11796 # define LT_DLGLOBAL RTLD_GLOBAL
11799 # define LT_DLGLOBAL DL_GLOBAL
11801 # define LT_DLGLOBAL 0
11805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806 find out it does not work in some platform. */
11807 #ifndef LT_DLLAZY_OR_NOW
11809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11812 # define LT_DLLAZY_OR_NOW DL_LAZY
11815 # define LT_DLLAZY_OR_NOW RTLD_NOW
11818 # define LT_DLLAZY_OR_NOW DL_NOW
11820 # define LT_DLLAZY_OR_NOW 0
11827 /* When -fvisbility=hidden is used, assume the code has been annotated
11828 correspondingly for the symbols needed. */
11829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11830 int fnord () __attribute__((visibility("default")));
11833 int fnord () { return 42; }
11836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11837 int status = $lt_dlunknown;
11841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11844 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11845 else puts (dlerror ());
11847 /* dlclose (self); */
11855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11856 (eval $ac_link) 2>&5
11858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11860 (./conftest; exit; ) >&5 2>/dev/null
11862 case x$lt_status in
11863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11865 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868 # compilation failed
11869 lt_cv_dlopen_self=no
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11877 $as_echo "$lt_cv_dlopen_self" >&6; }
11879 if test "x$lt_cv_dlopen_self" = xyes; then
11880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11882 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11883 if ${lt_cv_dlopen_self_static+:} false; then :
11884 $as_echo_n "(cached) " >&6
11886 if test "$cross_compiling" = yes; then :
11887 lt_cv_dlopen_self_static=cross
11889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11890 lt_status=$lt_dlunknown
11891 cat > conftest.$ac_ext <<_LT_EOF
11892 #line $LINENO "configure"
11893 #include "confdefs.h"
11902 # define LT_DLGLOBAL RTLD_GLOBAL
11905 # define LT_DLGLOBAL DL_GLOBAL
11907 # define LT_DLGLOBAL 0
11911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11912 find out it does not work in some platform. */
11913 #ifndef LT_DLLAZY_OR_NOW
11915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11918 # define LT_DLLAZY_OR_NOW DL_LAZY
11921 # define LT_DLLAZY_OR_NOW RTLD_NOW
11924 # define LT_DLLAZY_OR_NOW DL_NOW
11926 # define LT_DLLAZY_OR_NOW 0
11933 /* When -fvisbility=hidden is used, assume the code has been annotated
11934 correspondingly for the symbols needed. */
11935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11936 int fnord () __attribute__((visibility("default")));
11939 int fnord () { return 42; }
11942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11943 int status = $lt_dlunknown;
11947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951 else puts (dlerror ());
11953 /* dlclose (self); */
11961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11962 (eval $ac_link) 2>&5
11964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11966 (./conftest; exit; ) >&5 2>/dev/null
11968 case x$lt_status in
11969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11971 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11974 # compilation failed
11975 lt_cv_dlopen_self_static=no
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11986 CPPFLAGS="$save_CPPFLAGS"
11987 LDFLAGS="$save_LDFLAGS"
11992 case $lt_cv_dlopen_self in
11993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11994 *) enable_dlopen_self=unknown ;;
11997 case $lt_cv_dlopen_self_static in
11998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11999 *) enable_dlopen_self_static=unknown ;;
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12022 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12023 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12029 # FIXME - insert some real tests, host_os isn't really good enough
12032 if test -n "$STRIP" ; then
12033 striplib="$STRIP -x"
12034 old_striplib="$STRIP -S"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12060 # Report which library types will actually be built
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12062 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12064 $as_echo "$can_build_shared" >&6; }
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12067 $as_echo_n "checking whether to build shared libraries... " >&6; }
12068 test "$can_build_shared" = "no" && enable_shared=no
12070 # On AIX, shared libraries and static libraries use the same namespace, and
12071 # are all built from PIC.
12074 test "$enable_shared" = yes && enable_static=no
12075 if test -n "$RANLIB"; then
12076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12077 postinstall_cmds='$RANLIB $lib'
12082 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12083 test "$enable_shared" = yes && enable_static=no
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12088 $as_echo "$enable_shared" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12091 $as_echo_n "checking whether to build static libraries... " >&6; }
12092 # Make sure either enable_shared or enable_static is yes.
12093 test "$enable_shared" = yes || enable_static=yes
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12095 $as_echo "$enable_static" >&6; }
12102 ac_cpp='$CPP $CPPFLAGS'
12103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12123 ac_config_commands="$ac_config_commands libtool"
12128 # Only expand once:
12133 # On Solaris 10 and 12 CPP gets set to cc -E, however this still
12134 # does some input parsing. We need strict ANSI-C style tokenization,
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
12138 $as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12143 if ac_fn_c_try_cpp "$LINENO"; then :
12148 for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12154 if ac_fn_c_try_cpp "$LINENO"; then :
12158 rm -f conftest.err conftest.i conftest.$ac_ext
12163 rm -f conftest.err conftest.i conftest.$ac_ext
12164 if test -n "$DFNCPP"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
12166 $as_echo "$DFNCPP" >&6; }
12169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12171 as_fn_error 1 "not found
12172 See \`config.log' for more details" "$LINENO" 5; }
12175 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12176 # checks the compiler with a program that generates a warning), add the
12177 # following option to deal with this
12179 # Check whether --enable-werror was given.
12180 if test "${enable_werror+set}" = set; then :
12181 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12182 if test "$enable_werror" != "no"; then
12183 sav_CFLAGS="$CFLAGS"
12184 CFLAGS="$enable_werror $CFLAGS"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12186 $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12190 int main(int argc, char **argv){
12191 return argv[argc-1][0];
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12196 $as_echo "yes" >&6; }
12197 PNG_COPTS="$PNG_COPTS $enable_werror"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 CFLAGS="$sav_CFLAGS"
12208 # Checks for header files.
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12210 $as_echo_n "checking for ANSI C header files... " >&6; }
12211 if ${ac_cv_header_stdc+:} false; then :
12212 $as_echo_n "(cached) " >&6
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 #include <stdlib.h>
12217 #include <stdarg.h>
12218 #include <string.h>
12229 if ac_fn_c_try_compile "$LINENO"; then :
12230 ac_cv_header_stdc=yes
12232 ac_cv_header_stdc=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 if test $ac_cv_header_stdc = yes; then
12237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #include <string.h>
12243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12244 $EGREP "memchr" >/dev/null 2>&1; then :
12247 ac_cv_header_stdc=no
12253 if test $ac_cv_header_stdc = yes; then
12254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #include <stdlib.h>
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261 $EGREP "free" >/dev/null 2>&1; then :
12264 ac_cv_header_stdc=no
12270 if test $ac_cv_header_stdc = yes; then
12271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12272 if test "$cross_compiling" = yes; then :
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <stdlib.h>
12279 #if ((' ' & 0x0FF) == 0x020)
12280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12283 # define ISLOWER(c) \
12284 (('a' <= (c) && (c) <= 'i') \
12285 || ('j' <= (c) && (c) <= 'r') \
12286 || ('s' <= (c) && (c) <= 'z'))
12287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12295 for (i = 0; i < 256; i++)
12296 if (XOR (islower (i), ISLOWER (i))
12297 || toupper (i) != TOUPPER (i))
12302 if ac_fn_c_try_run "$LINENO"; then :
12305 ac_cv_header_stdc=no
12307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12308 conftest.$ac_objext conftest.beam conftest.$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12314 $as_echo "$ac_cv_header_stdc" >&6; }
12315 if test $ac_cv_header_stdc = yes; then
12317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12321 for ac_header in malloc.h stdlib.h string.h strings.h
12323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12335 # Checks for typedefs, structures, and compiler characteristics.
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12337 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12338 if ${ac_cv_c_const+:} false; then :
12339 $as_echo_n "(cached) " >&6
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12348 #ifndef __cplusplus
12349 /* Ultrix mips cc rejects this sort of thing. */
12350 typedef int charset[2];
12351 const charset cs = { 0, 0 };
12352 /* SunOS 4.1.1 cc rejects this. */
12353 char const *const *pcpcc;
12355 /* NEC SVR4.0.2 mips cc rejects this. */
12356 struct point {int x, y;};
12357 static struct point const zero = {0,0};
12358 /* AIX XL C 1.02.0.0 rejects this.
12359 It does not let you subtract one const X* pointer from another in
12360 an arm of an if-expression whose if-part is not a constant
12362 const char *g = "string";
12363 pcpcc = &g + (g ? g-g : 0);
12364 /* HPUX 7.0 cc rejects these. */
12366 ppc = (char**) pcpcc;
12367 pcpcc = (char const *const *) ppc;
12368 { /* SCO 3.2v4 cc rejects this sort of thing. */
12371 char const *s = 0 ? (char *) 0 : (char const *) 0;
12376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12377 int x[] = {25, 17};
12378 const int *foo = &x[0];
12381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12382 typedef const int *iptr;
12386 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12388 struct s { int j; const int *ap[3]; } bx;
12389 struct s *b = &bx; b->j = 5;
12391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12392 const int foo = 10;
12393 if (!foo) return 0;
12395 return !cs[0] && !zero.x;
12402 if ac_fn_c_try_compile "$LINENO"; then :
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12410 $as_echo "$ac_cv_c_const" >&6; }
12411 if test $ac_cv_c_const = no; then
12413 $as_echo "#define const /**/" >>confdefs.h
12417 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12418 if test "x$ac_cv_type_size_t" = xyes; then :
12422 cat >>confdefs.h <<_ACEOF
12423 #define size_t unsigned int
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12429 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12430 if ${ac_cv_struct_tm+:} false; then :
12431 $as_echo_n "(cached) " >&6
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435 #include <sys/types.h>
12442 int *p = &tm.tm_sec;
12448 if ac_fn_c_try_compile "$LINENO"; then :
12449 ac_cv_struct_tm=time.h
12451 ac_cv_struct_tm=sys/time.h
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12456 $as_echo "$ac_cv_struct_tm" >&6; }
12457 if test $ac_cv_struct_tm = sys/time.h; then
12459 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12464 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12465 if ${ac_cv_c_restrict+:} false; then :
12466 $as_echo_n "(cached) " >&6
12468 ac_cv_c_restrict=no
12469 # The order here caters to the fact that C++ does not require restrict.
12470 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 typedef int * int_ptr;
12474 int foo (int_ptr $ac_kw ip) {
12481 int * $ac_kw t = s;
12488 if ac_fn_c_try_compile "$LINENO"; then :
12489 ac_cv_c_restrict=$ac_kw
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 test "$ac_cv_c_restrict" != no && break
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12497 $as_echo "$ac_cv_c_restrict" >&6; }
12499 case $ac_cv_c_restrict in
12501 no) $as_echo "#define restrict /**/" >>confdefs.h
12503 *) cat >>confdefs.h <<_ACEOF
12504 #define restrict $ac_cv_c_restrict
12510 # Checks for library functions.
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12512 $as_echo_n "checking for working strtod... " >&6; }
12513 if ${ac_cv_func_strtod+:} false; then :
12514 $as_echo_n "(cached) " >&6
12516 if test "$cross_compiling" = yes; then :
12517 ac_cv_func_strtod=no
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12522 $ac_includes_default
12530 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12531 char *string = " +69";
12534 value = strtod (string, &term);
12535 if (value != 69 || term != (string + 4))
12540 /* Under Solaris 2.4, strtod returns the wrong value for the
12541 terminating character under some conditions. */
12542 char *string = "NaN";
12544 strtod (string, &term);
12545 if (term != string && *(term - 1) == 0)
12552 if ac_fn_c_try_run "$LINENO"; then :
12553 ac_cv_func_strtod=yes
12555 ac_cv_func_strtod=no
12557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12558 conftest.$ac_objext conftest.beam conftest.$ac_ext
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12563 $as_echo "$ac_cv_func_strtod" >&6; }
12564 if test $ac_cv_func_strtod = no; then
12565 case " $LIBOBJS " in
12566 *" strtod.$ac_objext "* ) ;;
12567 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12571 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12572 if test "x$ac_cv_func_pow" = xyes; then :
12576 if test $ac_cv_func_pow = no; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12578 $as_echo_n "checking for pow in -lm... " >&6; }
12579 if ${ac_cv_lib_m_pow+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 ac_check_lib_save_LIBS=$LIBS
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12602 if ac_fn_c_try_link "$LINENO"; then :
12603 ac_cv_lib_m_pow=yes
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12612 $as_echo "$ac_cv_lib_m_pow" >&6; }
12613 if test "x$ac_cv_lib_m_pow" = xyes; then :
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12617 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12624 for ac_func in memset
12626 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12627 if test "x$ac_cv_func_memset" = xyes; then :
12628 cat >>confdefs.h <<_ACEOF
12629 #define HAVE_MEMSET 1
12633 as_fn_error $? "memset not found in libc" "$LINENO" 5
12639 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12640 if test "x$ac_cv_func_pow" = xyes; then :
12641 cat >>confdefs.h <<_ACEOF
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12647 $as_echo_n "checking for pow in -lm... " >&6; }
12648 if ${ac_cv_lib_m_pow+:} false; then :
12649 $as_echo_n "(cached) " >&6
12651 ac_check_lib_save_LIBS=$LIBS
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_lib_m_pow=yes
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12681 $as_echo "$ac_cv_lib_m_pow" >&6; }
12682 if test "x$ac_cv_lib_m_pow" = xyes; then :
12683 cat >>confdefs.h <<_ACEOF
12684 #define HAVE_LIBM 1
12690 as_fn_error $? "cannot find pow" "$LINENO" 5
12697 # Check whether --with-zlib-prefix was given.
12698 if test "${with_zlib_prefix+set}" = set; then :
12699 withval=$with_zlib_prefix; ZPREFIX=${withval}
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12705 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12706 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 ac_check_lib_save_LIBS=$LIBS
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12720 char zlibVersion ();
12724 return zlibVersion ();
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 ac_cv_lib_z_zlibVersion=yes
12732 ac_cv_lib_z_zlibVersion=no
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12739 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12740 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12741 cat >>confdefs.h <<_ACEOF
12742 #define HAVE_LIBZ 1
12748 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12750 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12751 if eval \${$as_ac_Lib+:} false; then :
12752 $as_echo_n "(cached) " >&6
12754 ac_check_lib_save_LIBS=$LIBS
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char ${ZPREFIX}zlibVersion ();
12769 return ${ZPREFIX}zlibVersion ();
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 eval "$as_ac_Lib=yes"
12777 eval "$as_ac_Lib=no"
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 eval ac_res=\$$as_ac_Lib
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12785 $as_echo "$ac_res" >&6; }
12786 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBZ 1
12794 as_fn_error $? "zlib not installed" "$LINENO" 5
12800 # The following is for pngvalid, to ensure it catches FP errors even on
12801 # platforms that don't enable FP exceptions, the function appears in the math
12802 # library (typically), it's not an error if it is not found.
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12804 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12805 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12806 $as_echo_n "(cached) " >&6
12808 ac_check_lib_save_LIBS=$LIBS
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12819 char feenableexcept ();
12823 return feenableexcept ();
12828 if ac_fn_c_try_link "$LINENO"; then :
12829 ac_cv_lib_m_feenableexcept=yes
12831 ac_cv_lib_m_feenableexcept=no
12833 rm -f core conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12838 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12839 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_LIBM 1
12848 for ac_func in feenableexcept
12850 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12851 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_FEENABLEEXCEPT 1
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12861 $as_echo_n "checking if using Solaris linker... " >&6; }
12862 SLD=`$LD --version 2>&1 | grep Solaris`
12863 if test "$SLD"; then
12864 have_solaris_ld=yes
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12866 $as_echo "yes" >&6; }
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12872 if test "$have_solaris_ld" = "yes"; then
12873 HAVE_SOLARIS_LD_TRUE=
12874 HAVE_SOLARIS_LD_FALSE='#'
12876 HAVE_SOLARIS_LD_TRUE='#'
12877 HAVE_SOLARIS_LD_FALSE=
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12882 $as_echo_n "checking if libraries can be versioned... " >&6; }
12883 # Special case for PE/COFF platforms: ld reports
12884 # support for version-script, but doesn't actually
12885 # DO anything with it.
12887 *cygwin* | *mingw32* | *interix* )
12888 have_ld_version_script=no
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12894 if test "$have_solaris_ld" = "yes"; then
12895 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12897 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12900 if test "$GLD"; then
12901 have_ld_version_script=yes
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; }
12905 have_ld_version_script=no
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12909 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12914 if test "$have_ld_version_script" = "yes"; then
12915 HAVE_LD_VERSION_SCRIPT_TRUE=
12916 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12918 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12919 HAVE_LD_VERSION_SCRIPT_FALSE=
12923 if test "$have_ld_version_script" = "yes"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12925 $as_echo_n "checking for symbol prefix... " >&6; }
12926 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12927 | ${CPP-${CC-gcc} -E} - 2>&1 \
12928 | ${EGREP-grep} "^PREFIX=" \
12929 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12932 $as_echo "$SYMBOL_PREFIX" >&6; }
12935 # Substitutions for .in files
12941 # Additional arguments (and substitutions)
12942 # Allow the pkg-config directory to be set
12944 # Check whether --with-pkgconfigdir was given.
12945 if test "${with_pkgconfigdir+set}" = set; then :
12946 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12948 pkgconfigdir='${libdir}/pkgconfig'
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12954 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12956 # Make the *-config binary config scripts optional
12958 # Check whether --with-binconfigs was given.
12959 if test "${with_binconfigs+set}" = set; then :
12960 withval=$with_binconfigs; if test "${withval}" = no; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12963 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12965 binconfigs='${binconfigs}'
12968 binconfigs='${binconfigs}'
12973 # Support for prefixes to the API function names; this will generate defines
12974 # at the start of the build to rename exported library functions
12976 # Check whether --with-libpng-prefix was given.
12977 if test "${with_libpng_prefix+set}" = set; then :
12978 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
12979 PNG_PREFIX=${withval}
12984 if test "${with_libpng_prefix:-no}" != "no"; then
12985 DO_PNG_PREFIX_TRUE=
12986 DO_PNG_PREFIX_FALSE='#'
12988 DO_PNG_PREFIX_TRUE='#'
12989 DO_PNG_PREFIX_FALSE=
12993 # Because GCC by default assembles code with an executable stack, even though it
12994 # compiles C code with a non-executable stack, it is necessary to do a fixup
12995 # here (this may by GCC specific)
12996 AM_CCASFLAGS=-Wa,--noexecstack
12999 # Check whether --enable-arm-neon was given.
13000 if test "${enable_arm_neon+set}" = set; then :
13001 enableval=$enable_arm_neon; if test "${enableval}" = "yes"; then
13003 $as_echo "#define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_neon" >>confdefs.h
13006 $as_echo "#define PNG_ALIGNED_MEMORY_SUPPORTED 1" >>confdefs.h
13011 if test "${enable_arm_neon:-no}" = yes; then
13013 PNG_ARM_NEON_FALSE='#'
13015 PNG_ARM_NEON_TRUE='#'
13016 PNG_ARM_NEON_FALSE=
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
13021 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
13023 # Config files, substituting as above
13024 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
13026 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
13029 cat >confcache <<\_ACEOF
13030 # This file is a shell script that caches the results of configure
13031 # tests run on this system so they can be shared between configure
13032 # scripts and configure runs, see configure's option --config-cache.
13033 # It is not useful on other systems. If it contains results you don't
13034 # want to keep, you may remove or edit it.
13036 # config.status only pays attention to the cache file if you give it
13037 # the --recheck option to rerun configure.
13039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13041 # following values.
13045 # The following way of writing the cache mishandles newlines in values,
13046 # but we know of no workaround that is simple, portable, and efficient.
13047 # So, we kill variables containing newlines.
13048 # Ultrix sh set writes to stderr and can't be redirected directly,
13049 # and sets the high bit in the cache file unless we assign to the vars.
13051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13052 eval ac_val=\$$ac_var
13056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13060 _ | IFS | as_nl) ;; #(
13061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13062 *) { eval $ac_var=; unset $ac_var;} ;;
13068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13069 *${as_nl}ac_space=\ *)
13070 # `set' does not quote correctly, so add quotes: double-quote
13071 # substitution turns \\\\ into \\, and sed turns \\ into \.
13074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13077 # `set' quotes correctly as required by POSIX, so do not add quotes.
13078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13092 if test -w "$cache_file"; then
13093 if test "x$cache_file" != "x/dev/null"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13095 $as_echo "$as_me: updating cache $cache_file" >&6;}
13096 if test ! -f "$cache_file" || test -h "$cache_file"; then
13097 cat confcache >"$cache_file"
13099 case $cache_file in #(
13101 mv -f confcache "$cache_file"$$ &&
13102 mv -f "$cache_file"$$ "$cache_file" ;; #(
13104 mv -f confcache "$cache_file" ;;
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13116 # Let make expand exec_prefix.
13117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13119 DEFS=-DHAVE_CONFIG_H
13124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13125 # 1. Remove the extension, and $U if already installed.
13126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13129 # will be set to the directory where LIBOBJS objects are built.
13130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13133 LIBOBJS=$ac_libobjs
13135 LTLIBOBJS=$ac_ltlibobjs
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13139 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13140 if test -n "$am_sleep_pid"; then
13141 # Hide warnings about reused PIDs.
13142 wait $am_sleep_pid 2>/dev/null
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13145 $as_echo "done" >&6; }
13146 if test -n "$EXEEXT"; then
13148 am__EXEEXT_FALSE='#'
13150 am__EXEEXT_TRUE='#'
13154 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13155 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13158 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13159 as_fn_error $? "conditional \"AMDEP\" was never defined.
13160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13163 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13166 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13167 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13170 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13171 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13174 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13175 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13178 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13179 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13182 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13183 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13187 : "${CONFIG_STATUS=./config.status}"
13189 ac_clean_files_save=$ac_clean_files
13190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13192 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13194 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13196 # Generated by $as_me.
13197 # Run this file to recreate the current configuration.
13198 # Compiler output produced by configure, useful for debugging
13199 # configure, is in config.log if it exists.
13202 ac_cs_recheck=false
13205 SHELL=\${CONFIG_SHELL-$SHELL}
13208 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13209 ## -------------------- ##
13210 ## M4sh Initialization. ##
13211 ## -------------------- ##
13213 # Be more Bourne compatible
13214 DUALCASE=1; export DUALCASE # for MKS sh
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13218 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13219 # is contrary to our usage. Disable this feature.
13220 alias -g '${1+"$@"}'='"$@"'
13221 setopt NO_GLOB_SUBST
13223 case `(set -o) 2>/dev/null` in #(
13235 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13236 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13239 # Prefer a ksh shell builtin over an external printf program on Solaris,
13240 # but without wasting forks for bash or zsh.
13241 if test -z "$BASH_VERSION$ZSH_VERSION" \
13242 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13243 as_echo='print -r --'
13244 as_echo_n='print -rn --'
13245 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13246 as_echo='printf %s\n'
13247 as_echo_n='printf %s'
13249 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13250 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13251 as_echo_n='/usr/ucb/echo -n'
13253 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13254 as_echo_n_body='eval
13258 expr "X$arg" : "X\\(.*\\)$as_nl";
13259 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13261 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13263 export as_echo_n_body
13264 as_echo_n='sh -c $as_echo_n_body as_echo'
13266 export as_echo_body
13267 as_echo='sh -c $as_echo_body as_echo'
13270 # The user is always right.
13271 if test "${PATH_SEPARATOR+set}" != set; then
13273 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13274 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13281 # We need space, tab and new line, in precisely that order. Quoting is
13282 # there to prevent editors from complaining about space-tab.
13283 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13284 # splitting by setting IFS to empty value.)
13287 # Find who we are. Look in the path if we contain no directory separator.
13290 *[\\/]* ) as_myself=$0 ;;
13291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13295 test -z "$as_dir" && as_dir=.
13296 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13302 # We did not find ourselves, most probably we were run as `sh COMMAND'
13303 # in which case we are not to be found in the path.
13304 if test "x$as_myself" = x; then
13307 if test ! -f "$as_myself"; then
13308 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13312 # Unset variables that we do not need and which cause bugs (e.g. in
13313 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13314 # suppresses any "Segmentation fault" message there. '((' could
13315 # trigger a bug in pdksh 5.2.14.
13316 for as_var in BASH_ENV ENV MAIL MAILPATH
13317 do eval test x\${$as_var+set} = xset \
13318 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13334 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13335 # ----------------------------------------
13336 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13337 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13338 # script with STATUS, using 1 if that was 0.
13341 as_status=$1; test $as_status -eq 0 && as_status=1
13343 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13344 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13346 $as_echo "$as_me: error: $2" >&2
13347 as_fn_exit $as_status
13351 # as_fn_set_status STATUS
13352 # -----------------------
13353 # Set $? to STATUS, without forking.
13354 as_fn_set_status ()
13357 } # as_fn_set_status
13359 # as_fn_exit STATUS
13360 # -----------------
13361 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13365 as_fn_set_status $1
13371 # Portably unset VAR.
13374 { eval $1=; unset $1;}
13376 as_unset=as_fn_unset
13377 # as_fn_append VAR VALUE
13378 # ----------------------
13379 # Append the text in VALUE to the end of the definition contained in VAR. Take
13380 # advantage of any shell optimizations that allow amortized linear growth over
13381 # repeated appends, instead of the typical quadratic growth present in naive
13383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13384 eval 'as_fn_append ()
13395 # as_fn_arith ARG...
13396 # ------------------
13397 # Perform arithmetic evaluation on the ARGs, and store the result in the
13398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13399 # must be portable across $(()) and expr.
13400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13401 eval 'as_fn_arith ()
13408 as_val=`expr "$@" || test $? -eq 1`
13413 if expr a : '\(a\)' >/dev/null 2>&1 &&
13414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13421 as_basename=basename
13426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13432 as_me=`$as_basename -- "$0" ||
13433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13434 X"$0" : 'X\(//\)$' \| \
13435 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13437 sed '/^.*\/\([^/][^/]*\)\/*$/{
13451 # Avoid depending upon Character Ranges.
13452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13455 as_cr_digits='0123456789'
13456 as_cr_alnum=$as_cr_Letters$as_cr_digits
13458 ECHO_C= ECHO_N= ECHO_T=
13459 case `echo -n x` in #(((((
13461 case `echo 'xy\c'` in
13462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13471 rm -f conf$$ conf$$.exe conf$$.file
13472 if test -d conf$$.dir; then
13473 rm -f conf$$.dir/conf$$.file
13476 mkdir conf$$.dir 2>/dev/null
13478 if (echo >conf$$.file) 2>/dev/null; then
13479 if ln -s conf$$.file conf$$ 2>/dev/null; then
13481 # ... but there are two gotchas:
13482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13484 # In both cases, we have to default to `cp -pR'.
13485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13487 elif ln conf$$.file conf$$ 2>/dev/null; then
13495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13496 rmdir conf$$.dir 2>/dev/null
13501 # Create "$as_dir" as a directory, including parents if necessary.
13506 -*) as_dir=./$as_dir;;
13508 test -d "$as_dir" || eval $as_mkdir_p || {
13512 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13513 *) as_qdir=$as_dir;;
13515 as_dirs="'$as_qdir' $as_dirs"
13516 as_dir=`$as_dirname -- "$as_dir" ||
13517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13518 X"$as_dir" : 'X\(//\)[^/]' \| \
13519 X"$as_dir" : 'X\(//\)$' \| \
13520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13521 $as_echo X"$as_dir" |
13522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13526 /^X\(\/\/\)[^/].*/{
13539 test -d "$as_dir" && break
13541 test -z "$as_dirs" || eval "mkdir $as_dirs"
13542 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13546 if mkdir -p . 2>/dev/null; then
13547 as_mkdir_p='mkdir -p "$as_dir"'
13549 test -d ./-p && rmdir ./-p
13554 # as_fn_executable_p FILE
13555 # -----------------------
13556 # Test if FILE is an executable regular file.
13557 as_fn_executable_p ()
13559 test -f "$1" && test -x "$1"
13560 } # as_fn_executable_p
13561 as_test_x='test -x'
13562 as_executable_p=as_fn_executable_p
13564 # Sed expression to map a string onto a valid CPP name.
13565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13567 # Sed expression to map a string onto a valid variable name.
13568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13572 ## ----------------------------------- ##
13573 ## Main body of $CONFIG_STATUS script. ##
13574 ## ----------------------------------- ##
13576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13579 # Save the log message, to keep $0 and so on meaningful, and to
13580 # report actual input values of CONFIG_FILES etc. instead of their
13581 # values after options handling.
13583 This file was extended by libpng $as_me 1.6.0, which was
13584 generated by GNU Autoconf 2.69. Invocation command line was
13586 CONFIG_FILES = $CONFIG_FILES
13587 CONFIG_HEADERS = $CONFIG_HEADERS
13588 CONFIG_LINKS = $CONFIG_LINKS
13589 CONFIG_COMMANDS = $CONFIG_COMMANDS
13592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13597 case $ac_config_files in *"
13598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13601 case $ac_config_headers in *"
13602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13607 # Files that config.status was made for.
13608 config_files="$ac_config_files"
13609 config_headers="$ac_config_headers"
13610 config_commands="$ac_config_commands"
13614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13616 \`$as_me' instantiates files and other configuration actions
13617 from templates according to the current configuration. Unless the files
13618 and actions are specified as TAGs, all are instantiated by default.
13620 Usage: $0 [OPTION]... [TAG]...
13622 -h, --help print this help, then exit
13623 -V, --version print version number and configuration settings, then exit
13624 --config print configuration, then exit
13625 -q, --quiet, --silent
13626 do not print progress messages
13627 -d, --debug don't remove temporary files
13628 --recheck update $as_me by reconfiguring in the same conditions
13629 --file=FILE[:TEMPLATE]
13630 instantiate the configuration file FILE
13631 --header=FILE[:TEMPLATE]
13632 instantiate the configuration header FILE
13634 Configuration files:
13637 Configuration headers:
13640 Configuration commands:
13643 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13649 libpng config.status 1.6.0
13650 configured by $0, generated by GNU Autoconf 2.69,
13651 with options \\"\$ac_cs_config\\"
13653 Copyright (C) 2012 Free Software Foundation, Inc.
13654 This config.status script is free software; the Free Software Foundation
13655 gives unlimited permission to copy, distribute and modify it."
13662 test -n "\$AWK" || AWK=awk
13665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13666 # The default lists apply if the user does not specify any file.
13672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13689 # Handling of the options.
13690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13693 $as_echo "$ac_cs_version"; exit ;;
13694 --config | --confi | --conf | --con | --co | --c )
13695 $as_echo "$ac_cs_config"; exit ;;
13696 --debug | --debu | --deb | --de | --d | -d )
13698 --file | --fil | --fi | --f )
13701 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13702 '') as_fn_error $? "missing file argument" ;;
13704 as_fn_append CONFIG_FILES " '$ac_optarg'"
13705 ac_need_defaults=false;;
13706 --header | --heade | --head | --hea )
13709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13711 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13712 ac_need_defaults=false;;
13714 # Conflict between --help and --header
13715 as_fn_error $? "ambiguous option: \`$1'
13716 Try \`$0 --help' for more information.";;
13717 --help | --hel | -h )
13718 $as_echo "$ac_cs_usage"; exit ;;
13719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13723 # This is an error.
13724 -*) as_fn_error $? "unrecognized option: \`$1'
13725 Try \`$0 --help' for more information." ;;
13727 *) as_fn_append ac_config_targets " $1"
13728 ac_need_defaults=false ;;
13734 ac_configure_extra_args=
13736 if $ac_cs_silent; then
13738 ac_configure_extra_args="$ac_configure_extra_args --silent"
13742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 if \$ac_cs_recheck; then
13744 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13746 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13747 CONFIG_SHELL='$SHELL'
13748 export CONFIG_SHELL
13753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13758 ## Running $as_me. ##
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13768 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13771 # The HP-UX ksh and POSIX shell print the target directory to stdout
13772 # if CDPATH is set.
13773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13775 sed_quote_subst='$sed_quote_subst'
13776 double_quote_subst='$double_quote_subst'
13777 delay_variable_subst='$delay_variable_subst'
13778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13783 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13784 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13785 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13786 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13787 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13788 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13789 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13790 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13791 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13792 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13793 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13794 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13795 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13796 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13797 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13798 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13799 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13800 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13801 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13802 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13803 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13804 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13805 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13806 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13807 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13808 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13809 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13810 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13811 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13812 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13813 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13814 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13815 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13816 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13817 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13818 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13819 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13820 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13821 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13822 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13823 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13824 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13825 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13826 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13827 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13828 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13829 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13830 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13831 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13832 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13833 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13834 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13835 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"`'
13836 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13837 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13841 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13842 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13846 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13847 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13848 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13849 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13850 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13851 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13852 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13853 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13854 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13855 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13856 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13857 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13858 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13859 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13860 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13861 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13862 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13863 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13864 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13865 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13866 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13867 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13868 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13869 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13878 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13879 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13880 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13881 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13882 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13883 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13902 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13903 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13904 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13905 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13906 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13907 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13908 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13911 LTCFLAGS='$LTCFLAGS'
13912 compiler='$compiler_DEFAULT'
13914 # A function that is used when there is no print builtin or printf.
13915 func_fallback_echo ()
13917 eval 'cat <<_LTECHO_EOF
13922 # Quote evaled strings.
13939 deplibs_check_method \
13943 sharedlib_from_linklib_cmd \
13946 archiver_list_spec \
13952 lt_cv_sys_global_symbol_pipe \
13953 lt_cv_sys_global_symbol_to_cdecl \
13954 lt_cv_sys_global_symbol_to_c_name_address \
13955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13956 nm_file_list_spec \
13957 lt_prog_compiler_no_builtin_flag \
13958 lt_prog_compiler_pic \
13959 lt_prog_compiler_wl \
13960 lt_prog_compiler_static \
13961 lt_cv_prog_compiler_c_o \
13970 export_dynamic_flag_spec \
13971 whole_archive_flag_spec \
13972 compiler_needs_object \
13974 allow_undefined_flag \
13975 no_undefined_flag \
13976 hardcode_libdir_flag_spec \
13977 hardcode_libdir_separator \
13981 variables_saved_for_relink \
13983 library_names_spec \
13985 install_override_mode \
13989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13990 *[\\\\\\\`\\"\\\$]*)
13991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13999 # Double-quote double-evaled strings.
14000 for var in reload_cmds \
14001 old_postinstall_cmds \
14002 old_postuninstall_cmds \
14004 extract_expsyms_cmds \
14005 old_archive_from_new_cmds \
14006 old_archive_from_expsyms_cmds \
14008 archive_expsym_cmds \
14010 module_expsym_cmds \
14011 export_symbols_cmds \
14015 postuninstall_cmds \
14017 sys_lib_search_path_spec \
14018 sys_lib_dlsearch_path_spec; do
14019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14020 *[\\\\\\\`\\"\\\$]*)
14021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14029 ac_aux_dir='$ac_aux_dir'
14030 xsi_shell='$xsi_shell'
14031 lt_shell_append='$lt_shell_append'
14033 # See if we are running on zsh, and set the options which allow our
14034 # commands through without removal of \ escapes INIT.
14035 if test -n "\${ZSH_VERSION+set}" ; then
14036 setopt NO_GLOB_SUBST
14042 TIMESTAMP='$TIMESTAMP'
14051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053 # Handling of arguments.
14054 for ac_config_target in $ac_config_targets
14056 case $ac_config_target in
14057 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14058 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14061 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14062 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
14064 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14069 # If the user did not use the arguments to specify the items to instantiate,
14070 # then the envvar interface is used. Set only those that are not.
14071 # We use the long form for the default assignment because of an extremely
14072 # bizarre bug on SunOS 4.1.3.
14073 if $ac_need_defaults; then
14074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14079 # Have a temporary directory for convenience. Make it in the build tree
14080 # simply because there is no reason against having it here, and in addition,
14081 # creating and moving files from /tmp can sometimes cause problems.
14082 # Hook for its removal unless debugging.
14083 # Note that there is a small window in which the directory will not be cleaned:
14084 # after its creation but before its name has been assigned to `$tmp'.
14088 trap 'exit_status=$?
14089 : "${ac_tmp:=$tmp}"
14090 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14092 trap 'as_fn_exit 1' 1 2 13 15
14094 # Create a (secure) tmp directory for tmp files.
14097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14101 tmp=./conf$$-$RANDOM
14102 (umask 077 && mkdir "$tmp")
14103 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14106 # Set up the scripts for CONFIG_FILES section.
14107 # No need to generate them if there are no CONFIG_FILES.
14108 # This happens for instance with `./config.status config.h'.
14109 if test -n "$CONFIG_FILES"; then
14112 ac_cr=`echo X | tr X '\015'`
14113 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14114 # But we know of no other shell where ac_cr would be empty at this
14115 # point, so we can use a bashism as a fallback.
14116 if test "x$ac_cr" = x; then
14117 eval ac_cr=\$\'\\r\'
14119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14123 ac_cs_awk_cr=$ac_cr
14126 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14131 echo "cat >conf$$subs.awk <<_ACEOF" &&
14132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14134 } >conf$$subs.sh ||
14135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14136 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14138 for ac_last_try in false false false false false :; do
14139 . ./conf$$subs.sh ||
14140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14142 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14143 if test $ac_delim_n = $ac_delim_num; then
14145 elif $ac_last_try; then
14146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14151 rm -f conf$$subs.sh
14153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14158 s/^/S["/; s/!.*/"]=/
14168 s/\(.\{148\}\)..*/\1/
14170 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14182 s/\(.\{148\}\)..*/\1/
14184 s/["\\]/\\&/g; s/^/"/; s/$/"/
14188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14193 ' <conf$$subs.awk | sed '
14198 ' >>$CONFIG_STATUS || ac_write_fail=1
14199 rm -f conf$$subs.awk
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14202 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14203 for (key in S) S_is_set[key] = 1
14209 nfields = split(line, field, "@")
14211 len = length(field[1])
14212 for (i = 2; i < nfields; i++) {
14214 keylen = length(key)
14215 if (S_is_set[key]) {
14217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14218 len += length(value) + length(field[++i])
14229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14231 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14234 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14235 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14238 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14239 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14240 # trailing colons and then remove the whole line if VPATH becomes empty
14241 # (actually we leave an empty line to preserve line numbers).
14242 if test "x$srcdir" = x.; then
14243 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14262 fi # test -n "$CONFIG_FILES"
14264 # Set up the scripts for CONFIG_HEADERS section.
14265 # No need to generate them if there are no CONFIG_HEADERS.
14266 # This happens for instance with `./config.status Makefile'.
14267 if test -n "$CONFIG_HEADERS"; then
14268 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14272 # Transform confdefs.h into an awk script `defines.awk', embedded as
14273 # here-document in config.status, that substitutes the proper values into
14274 # config.h.in to produce config.h.
14276 # Create a delimiter string that does not exist in confdefs.h, to ease
14277 # handling of long lines.
14279 for ac_last_try in false false :; do
14280 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14281 if test -z "$ac_tt"; then
14283 elif $ac_last_try; then
14284 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14290 # For the awk script, D is an array of macro values keyed by name,
14291 # likewise P contains macro parameters if any. Preserve backslash
14292 # newline sequences.
14294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14296 s/.\{148\}/&'"$ac_delim"'/g
14299 s/^[ ]*#[ ]*define[ ][ ]*/ /
14306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14313 D["\1"]=" \3\\\\\\n"\\/p
14315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14320 s/.\{148\}/&'"$ac_delim"'/g
14325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14330 ' <confdefs.h | sed '
14331 s/'"$ac_delim"'/"\\\
14332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14335 for (key in D) D_is_set[key] = 1
14338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14340 split(line, arg, " ")
14341 if (arg[1] == "#") {
14345 defundef = substr(arg[1], 2)
14348 split(mac1, mac2, "(") #)
14350 prefix = substr(line, 1, index(line, defundef) - 1)
14351 if (D_is_set[macro]) {
14352 # Preserve the white space surrounding the "#".
14353 print prefix "define", macro P[macro] D[macro]
14356 # Replace #undef with comments. This is necessary, for example,
14357 # in the case of _POSIX_SOURCE, which is predefined and required
14358 # on some systems where configure will not decide to define it.
14359 if (defundef == "undef") {
14360 print "/*", prefix defundef, macro, "*/"
14368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14370 fi # test -n "$CONFIG_HEADERS"
14373 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14378 :[FHLC]) ac_mode=$ac_tag; continue;;
14380 case $ac_mode$ac_tag in
14382 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14383 :[FH]-) ac_tag=-:-;;
14384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14401 -) ac_f="$ac_tmp/stdin";;
14402 *) # Look for the file first in the build tree, then in the source tree
14403 # (if the path is not absolute). The absolute path cannot be DOS-style,
14404 # because $ac_f cannot contain `:'.
14408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14410 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14413 as_fn_append ac_file_inputs " '$ac_f'"
14416 # Let's still pretend it is `configure' which instantiates (i.e., don't
14417 # use $as_me), people would be surprised to read:
14418 # /* config.h. Generated by config.status. */
14419 configure_input='Generated from '`
14420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14422 if test x"$ac_file" != x-; then
14423 configure_input="$ac_file. $configure_input"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14425 $as_echo "$as_me: creating $ac_file" >&6;}
14427 # Neutralize special characters interpreted by sed in replacement strings.
14428 case $configure_input in #(
14429 *\&* | *\|* | *\\* )
14430 ac_sed_conf_input=`$as_echo "$configure_input" |
14431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14432 *) ac_sed_conf_input=$configure_input;;
14436 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14442 ac_dir=`$as_dirname -- "$ac_file" ||
14443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14444 X"$ac_file" : 'X\(//\)[^/]' \| \
14445 X"$ac_file" : 'X\(//\)$' \| \
14446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14447 $as_echo X"$ac_file" |
14448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14452 /^X\(\/\/\)[^/].*/{
14465 as_dir="$ac_dir"; as_fn_mkdir_p
14469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14472 # A ".." for each directory in $ac_dir_suffix.
14473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14474 case $ac_top_builddir_sub in
14475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14479 ac_abs_top_builddir=$ac_pwd
14480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14481 # for backward compatibility:
14482 ac_top_builddir=$ac_top_build_prefix
14485 .) # We are building in place.
14487 ac_top_srcdir=$ac_top_builddir_sub
14488 ac_abs_top_srcdir=$ac_pwd ;;
14489 [\\/]* | ?:[\\/]* ) # Absolute name.
14490 ac_srcdir=$srcdir$ac_dir_suffix;
14491 ac_top_srcdir=$srcdir
14492 ac_abs_top_srcdir=$srcdir ;;
14493 *) # Relative name.
14494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14495 ac_top_srcdir=$ac_top_build_prefix$srcdir
14496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14511 ac_MKDIR_P=$MKDIR_P
14513 [\\/$]* | ?:[\\/]* ) ;;
14514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 # If the template does not know about datarootdir, expand it.
14520 # FIXME: This hack should be removed a few years after 2.60.
14521 ac_datarootdir_hack=; ac_datarootdir_seen=
14532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14533 *datarootdir*) ac_datarootdir_seen=yes;;
14534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 ac_datarootdir_hack='
14540 s&@datadir@&$datadir&g
14541 s&@docdir@&$docdir&g
14542 s&@infodir@&$infodir&g
14543 s&@localedir@&$localedir&g
14544 s&@mandir@&$mandir&g
14545 s&\\\${datarootdir}&$datarootdir&g' ;;
14549 # Neutralize VPATH when `$srcdir' = `.'.
14550 # Shell code in configure.ac might set extrasub.
14551 # FIXME: do we really want to maintain this feature?
14552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14553 ac_sed_extra="$ac_vpsub
14556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14559 s|@configure_input@|$ac_sed_conf_input|;t t
14560 s&@top_builddir@&$ac_top_builddir_sub&;t t
14561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14562 s&@srcdir@&$ac_srcdir&;t t
14563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14564 s&@top_srcdir@&$ac_top_srcdir&;t t
14565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14566 s&@builddir@&$ac_builddir&;t t
14567 s&@abs_builddir@&$ac_abs_builddir&;t t
14568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14569 s&@INSTALL@&$ac_INSTALL&;t t
14570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14571 $ac_datarootdir_hack
14573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14574 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14577 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14579 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14581 which seems to be undefined. Please make sure it is defined" >&5
14582 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14583 which seems to be undefined. Please make sure it is defined" >&2;}
14585 rm -f "$ac_tmp/stdin"
14587 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14588 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14596 if test x"$ac_file" != x-; then
14598 $as_echo "/* $configure_input */" \
14599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14600 } >"$ac_tmp/config.h" \
14601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14602 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14607 mv "$ac_tmp/config.h" "$ac_file" \
14608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14611 $as_echo "/* $configure_input */" \
14612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14613 || as_fn_error $? "could not create -" "$LINENO" 5
14615 # Compute "$ac_file"'s index in $config_headers.
14618 for _am_header in $config_headers :; do
14619 case $_am_header in
14620 $_am_arg | $_am_arg:* )
14623 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14626 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14627 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14628 X"$_am_arg" : 'X\(//\)[^/]' \| \
14629 X"$_am_arg" : 'X\(//\)$' \| \
14630 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14631 $as_echo X"$_am_arg" |
14632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14636 /^X\(\/\/\)[^/].*/{
14648 s/.*/./; q'`/stamp-h$_am_stamp_count
14651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14652 $as_echo "$as_me: executing $ac_file commands" >&6;}
14657 case $ac_file$ac_mode in
14658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14659 # Older Autoconf quotes --file arguments for eval, but not when files
14660 # are listed without --file. Let's play safe and only enable the eval
14661 # if we detect the quoting.
14662 case $CONFIG_FILES in
14663 *\'*) eval set x "$CONFIG_FILES" ;;
14664 *) set x $CONFIG_FILES ;;
14669 # Strip MF so we end up with the name of the file.
14670 mf=`echo "$mf" | sed -e 's/:.*$//'`
14671 # Check whether this is an Automake generated Makefile or not.
14672 # We used to match only the files named 'Makefile.in', but
14673 # some people rename them; so instead we look at the file content.
14674 # Grep'ing the first line is not enough: some people post-process
14675 # each Makefile.in and add a new line on top of each file to say so.
14676 # Grep'ing the whole file is not good either: AIX grep has a line
14677 # limit of 2048, but all sed's we know have understand at least 4000.
14678 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14679 dirpart=`$as_dirname -- "$mf" ||
14680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681 X"$mf" : 'X\(//\)[^/]' \| \
14682 X"$mf" : 'X\(//\)$' \| \
14683 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14689 /^X\(\/\/\)[^/].*/{
14705 # Extract the definition of DEPDIR, am__include, and am__quote
14706 # from the Makefile without running 'make'.
14707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14708 test -z "$DEPDIR" && continue
14709 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14710 test -z "am__include" && continue
14711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14712 # Find all dependency output files, they are included files with
14713 # $(DEPDIR) in their names. We invoke sed twice because it is the
14714 # simplest approach to changing $(DEPDIR) to its actual value in the
14716 for file in `sed -n "
14717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14719 # Make sure the directory exists.
14720 test -f "$dirpart/$file" && continue
14721 fdir=`$as_dirname -- "$file" ||
14722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14723 X"$file" : 'X\(//\)[^/]' \| \
14724 X"$file" : 'X\(//\)$' \| \
14725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X"$file" |
14727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14731 /^X\(\/\/\)[^/].*/{
14744 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14745 # echo "creating $dirpart/$file"
14746 echo '# dummy' > "$dirpart/$file"
14753 # See if we are running on zsh, and set the options which allow our
14754 # commands through without removal of \ escapes.
14755 if test -n "${ZSH_VERSION+set}" ; then
14756 setopt NO_GLOB_SUBST
14759 cfgfile="${ofile}T"
14760 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14763 cat <<_LT_EOF >> "$cfgfile"
14766 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14767 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14771 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14772 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14774 # Written by Gordon Matzigkeit, 1996
14776 # This file is part of GNU Libtool.
14778 # GNU Libtool is free software; you can redistribute it and/or
14779 # modify it under the terms of the GNU General Public License as
14780 # published by the Free Software Foundation; either version 2 of
14781 # the License, or (at your option) any later version.
14783 # As a special exception to the GNU General Public License,
14784 # if you distribute this file as part of a program or library that
14785 # is built using GNU Libtool, you may include this file under the
14786 # same distribution terms that you use for the rest of that program.
14788 # GNU Libtool is distributed in the hope that it will be useful,
14789 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14791 # GNU General Public License for more details.
14793 # You should have received a copy of the GNU General Public License
14794 # along with GNU Libtool; see the file COPYING. If not, a copy
14795 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14796 # obtained by writing to the Free Software Foundation, Inc.,
14797 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14800 # The names of the tagged configurations supported by this script.
14803 # ### BEGIN LIBTOOL CONFIG
14805 # A sed program that does not truncate output.
14808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14809 Xsed="\$SED -e 1s/^X//"
14811 # A grep program that handles long lines.
14817 # A literal string matcher.
14820 # Shell to use when invoking shell scripts.
14823 # An echo program that protects backslashes.
14826 # Which release of libtool.m4 was used?
14827 macro_version=$macro_version
14828 macro_revision=$macro_revision
14830 # Assembler program.
14833 # DLL creation program.
14834 DLLTOOL=$lt_DLLTOOL
14836 # Object dumper program.
14837 OBJDUMP=$lt_OBJDUMP
14839 # Whether or not to build shared libraries.
14840 build_libtool_libs=$enable_shared
14842 # Whether or not to build static libraries.
14843 build_old_libs=$enable_static
14845 # What type of objects to build.
14848 # Whether or not to optimize for fast installation.
14849 fast_install=$enable_fast_install
14851 # The PATH separator for the build system.
14852 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14855 host_alias=$host_alias
14859 # The build system.
14860 build_alias=$build_alias
14864 # A BSD- or MS-compatible name lister.
14867 # Whether we need soft or hard links.
14870 # What is the maximum length of a command?
14871 max_cmd_len=$max_cmd_len
14873 # Object file suffix (normally "o").
14876 # Executable file suffix (normally "").
14879 # whether the shell understands "unset".
14882 # turn spaces into newlines.
14885 # turn newlines into spaces.
14888 # convert \$build file names to \$host format.
14889 to_host_file_cmd=$lt_cv_to_host_file_cmd
14891 # convert \$build files to toolchain format.
14892 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14894 # Method to check whether dependent libraries are shared objects.
14895 deplibs_check_method=$lt_deplibs_check_method
14897 # Command to use when deplibs_check_method = "file_magic".
14898 file_magic_cmd=$lt_file_magic_cmd
14900 # How to find potential files when deplibs_check_method = "file_magic".
14901 file_magic_glob=$lt_file_magic_glob
14903 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14904 want_nocaseglob=$lt_want_nocaseglob
14906 # Command to associate shared and link libraries.
14907 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14912 # Flags to create an archive.
14913 AR_FLAGS=$lt_AR_FLAGS
14915 # How to feed a file listing to the archiver.
14916 archiver_list_spec=$lt_archiver_list_spec
14918 # A symbol stripping program.
14921 # Commands used to install an old-style archive.
14923 old_postinstall_cmds=$lt_old_postinstall_cmds
14924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14926 # Whether to use a lock for old archive extraction.
14927 lock_old_archive_extraction=$lock_old_archive_extraction
14932 # LTCC compiler flags.
14933 LTCFLAGS=$lt_CFLAGS
14935 # Take the output of nm and produce a listing of raw symbols and C names.
14936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14938 # Transform the output of nm in a proper C declaration.
14939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14941 # Transform the output of nm in a C name address pair.
14942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14944 # Transform the output of nm in a C name address pair when lib prefix is needed.
14945 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14947 # Specify filename containing input files for \$NM.
14948 nm_file_list_spec=$lt_nm_file_list_spec
14950 # The root where to search for dependent libraries,and in which our libraries should be installed.
14951 lt_sysroot=$lt_sysroot
14953 # The name of the directory that contains temporary libtool files.
14956 # Used to examine libraries when file_magic_cmd begins with "file".
14957 MAGIC_CMD=$MAGIC_CMD
14959 # Must we lock files when doing compilation?
14960 need_locks=$lt_need_locks
14963 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14965 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14966 DSYMUTIL=$lt_DSYMUTIL
14968 # Tool to change global to local symbols on Mac OS X.
14971 # Tool to manipulate fat objects and archives on Mac OS X.
14974 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14977 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14978 OTOOL64=$lt_OTOOL64
14980 # Old archive suffix (normally "a").
14983 # Shared library suffix (normally ".so").
14984 shrext_cmds=$lt_shrext_cmds
14986 # The commands to extract the exported symbol list from a shared archive.
14987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14989 # Variables whose values should be saved in libtool wrapper scripts and
14990 # restored at link time.
14991 variables_saved_for_relink=$lt_variables_saved_for_relink
14993 # Do we need the "lib" prefix for modules?
14994 need_lib_prefix=$need_lib_prefix
14996 # Do we need a version for libraries?
14997 need_version=$need_version
14999 # Library versioning type.
15000 version_type=$version_type
15002 # Shared library runtime path variable.
15003 runpath_var=$runpath_var
15005 # Shared library path variable.
15006 shlibpath_var=$shlibpath_var
15008 # Is shlibpath searched before the hard-coded library search path?
15009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15011 # Format of library name prefix.
15012 libname_spec=$lt_libname_spec
15014 # List of archive names. First name is the real one, the rest are links.
15015 # The last name is the one that the linker finds with -lNAME
15016 library_names_spec=$lt_library_names_spec
15018 # The coded name of the library, if different from the real name.
15019 soname_spec=$lt_soname_spec
15021 # Permission mode override for installation of shared libraries.
15022 install_override_mode=$lt_install_override_mode
15024 # Command to use after installation of a shared archive.
15025 postinstall_cmds=$lt_postinstall_cmds
15027 # Command to use after uninstallation of a shared archive.
15028 postuninstall_cmds=$lt_postuninstall_cmds
15030 # Commands used to finish a libtool library installation in a directory.
15031 finish_cmds=$lt_finish_cmds
15033 # As "finish_cmds", except a single script fragment to be evaled but
15035 finish_eval=$lt_finish_eval
15037 # Whether we should hardcode library paths into libraries.
15038 hardcode_into_libs=$hardcode_into_libs
15040 # Compile-time system search path for libraries.
15041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15043 # Run-time system search path for libraries.
15044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15046 # Whether dlopen is supported.
15047 dlopen_support=$enable_dlopen
15049 # Whether dlopen of programs is supported.
15050 dlopen_self=$enable_dlopen_self
15052 # Whether dlopen of statically linked programs is supported.
15053 dlopen_self_static=$enable_dlopen_self_static
15055 # Commands to strip libraries.
15056 old_striplib=$lt_old_striplib
15057 striplib=$lt_striplib
15060 # The linker used to build libraries.
15063 # How to create reloadable object files.
15064 reload_flag=$lt_reload_flag
15065 reload_cmds=$lt_reload_cmds
15067 # Commands used to build an old-style archive.
15068 old_archive_cmds=$lt_old_archive_cmds
15070 # A language specific compiler.
15073 # Is the compiler the GNU compiler?
15076 # Compiler flag to turn off builtin functions.
15077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15079 # Additional compiler flags for building library objects.
15080 pic_flag=$lt_lt_prog_compiler_pic
15082 # How to pass a linker flag through the compiler.
15083 wl=$lt_lt_prog_compiler_wl
15085 # Compiler flag to prevent dynamic linking.
15086 link_static_flag=$lt_lt_prog_compiler_static
15088 # Does compiler simultaneously support -c and -o options?
15089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15091 # Whether or not to add -lc for building shared libraries.
15092 build_libtool_need_lc=$archive_cmds_need_lc
15094 # Whether or not to disallow shared libs when runtime libs are static.
15095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15097 # Compiler flag to allow reflexive dlopens.
15098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15100 # Compiler flag to generate shared objects directly from archives.
15101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15103 # Whether the compiler copes with passing no objects directly.
15104 compiler_needs_object=$lt_compiler_needs_object
15106 # Create an old-style archive from a shared archive.
15107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15109 # Create a temporary old-style archive to link instead of a shared archive.
15110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15112 # Commands used to build a shared archive.
15113 archive_cmds=$lt_archive_cmds
15114 archive_expsym_cmds=$lt_archive_expsym_cmds
15116 # Commands used to build a loadable module if different from building
15117 # a shared archive.
15118 module_cmds=$lt_module_cmds
15119 module_expsym_cmds=$lt_module_expsym_cmds
15121 # Whether we are building with GNU ld or not.
15122 with_gnu_ld=$lt_with_gnu_ld
15124 # Flag that allows shared libraries with undefined symbols to be built.
15125 allow_undefined_flag=$lt_allow_undefined_flag
15127 # Flag that enforces no undefined symbols.
15128 no_undefined_flag=$lt_no_undefined_flag
15130 # Flag to hardcode \$libdir into a binary during linking.
15131 # This must work even if \$libdir does not exist
15132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15134 # Whether we need a single "-rpath" flag with a separated argument.
15135 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15137 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15138 # DIR into the resulting binary.
15139 hardcode_direct=$hardcode_direct
15141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15142 # DIR into the resulting binary and the resulting library dependency is
15143 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15144 # library is relocated.
15145 hardcode_direct_absolute=$hardcode_direct_absolute
15147 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15148 # into the resulting binary.
15149 hardcode_minus_L=$hardcode_minus_L
15151 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15152 # into the resulting binary.
15153 hardcode_shlibpath_var=$hardcode_shlibpath_var
15155 # Set to "yes" if building a shared library automatically hardcodes DIR
15156 # into the library and all subsequent libraries and executables linked
15158 hardcode_automatic=$hardcode_automatic
15160 # Set to yes if linker adds runtime paths of dependent libraries
15161 # to runtime path list.
15162 inherit_rpath=$inherit_rpath
15164 # Whether libtool must link a program against all its dependency libraries.
15165 link_all_deplibs=$link_all_deplibs
15167 # Set to "yes" if exported symbols are required.
15168 always_export_symbols=$always_export_symbols
15170 # The commands to list exported symbols.
15171 export_symbols_cmds=$lt_export_symbols_cmds
15173 # Symbols that should not be listed in the preloaded symbols.
15174 exclude_expsyms=$lt_exclude_expsyms
15176 # Symbols that must always be exported.
15177 include_expsyms=$lt_include_expsyms
15179 # Commands necessary for linking programs (against libraries) with templates.
15180 prelink_cmds=$lt_prelink_cmds
15182 # Commands necessary for finishing linking programs.
15183 postlink_cmds=$lt_postlink_cmds
15185 # Specify filename containing input files.
15186 file_list_spec=$lt_file_list_spec
15188 # How to hardcode a shared library path into an executable.
15189 hardcode_action=$hardcode_action
15191 # ### END LIBTOOL CONFIG
15197 cat <<\_LT_EOF >> "$cfgfile"
15198 # AIX sometimes has problems with the GCC collect2 program. For some
15199 # reason, if we set the COLLECT_NAMES environment variable, the problems
15200 # vanish in a puff of smoke.
15201 if test "X${COLLECT_NAMES+set}" != Xset; then
15203 export COLLECT_NAMES
15210 ltmain="$ac_aux_dir/ltmain.sh"
15213 # We use sed instead of cat because bash on DJGPP gets confused if
15214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15215 # text mode, it properly converts lines to CR/LF. This bash problem
15216 # is reportedly fixed, but why not run on old versions too?
15217 sed '$q' "$ltmain" >> "$cfgfile" \
15218 || (rm -f "$cfgfile"; exit 1)
15220 if test x"$xsi_shell" = xyes; then
15221 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15225 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15226 \ * ) func_dirname_result="${3}" ;;\
15228 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15229 && mv -f "$cfgfile.tmp" "$cfgfile" \
15230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15231 test 0 -eq $? || _lt_function_replace_fail=:
15234 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15237 \ func_basename_result="${1##*/}"\
15238 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15239 && mv -f "$cfgfile.tmp" "$cfgfile" \
15240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15241 test 0 -eq $? || _lt_function_replace_fail=:
15244 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15245 func_dirname_and_basename ()\
15248 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15249 \ * ) func_dirname_result="${3}" ;;\
15251 \ func_basename_result="${1##*/}"\
15252 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15253 && mv -f "$cfgfile.tmp" "$cfgfile" \
15254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15255 test 0 -eq $? || _lt_function_replace_fail=:
15258 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15261 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15262 \ # positional parameters, so assign one to ordinary parameter first.\
15263 \ func_stripname_result=${3}\
15264 \ func_stripname_result=${func_stripname_result#"${1}"}\
15265 \ func_stripname_result=${func_stripname_result%"${2}"}\
15266 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15267 && mv -f "$cfgfile.tmp" "$cfgfile" \
15268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15269 test 0 -eq $? || _lt_function_replace_fail=:
15272 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15273 func_split_long_opt ()\
15275 \ func_split_long_opt_name=${1%%=*}\
15276 \ func_split_long_opt_arg=${1#*=}\
15277 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15278 && mv -f "$cfgfile.tmp" "$cfgfile" \
15279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15280 test 0 -eq $? || _lt_function_replace_fail=:
15283 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15284 func_split_short_opt ()\
15286 \ func_split_short_opt_arg=${1#??}\
15287 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15288 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15289 && mv -f "$cfgfile.tmp" "$cfgfile" \
15290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15291 test 0 -eq $? || _lt_function_replace_fail=:
15294 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15298 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15299 \ *) func_lo2o_result=${1} ;;\
15301 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15302 && mv -f "$cfgfile.tmp" "$cfgfile" \
15303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15304 test 0 -eq $? || _lt_function_replace_fail=:
15307 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15310 func_xform_result=${1%.*}.lo\
15311 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15312 && mv -f "$cfgfile.tmp" "$cfgfile" \
15313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15314 test 0 -eq $? || _lt_function_replace_fail=:
15317 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15320 func_arith_result=$(( $* ))\
15321 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15322 && mv -f "$cfgfile.tmp" "$cfgfile" \
15323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15324 test 0 -eq $? || _lt_function_replace_fail=:
15327 sed -e '/^func_len ()$/,/^} # func_len /c\
15330 func_len_result=${#1}\
15331 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15332 && mv -f "$cfgfile.tmp" "$cfgfile" \
15333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15334 test 0 -eq $? || _lt_function_replace_fail=:
15338 if test x"$lt_shell_append" = xyes; then
15339 sed -e '/^func_append ()$/,/^} # func_append /c\
15342 eval "${1}+=\\${2}"\
15343 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15344 && mv -f "$cfgfile.tmp" "$cfgfile" \
15345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15346 test 0 -eq $? || _lt_function_replace_fail=:
15349 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15350 func_append_quoted ()\
15352 \ func_quote_for_eval "${2}"\
15353 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15354 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15355 && mv -f "$cfgfile.tmp" "$cfgfile" \
15356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15357 test 0 -eq $? || _lt_function_replace_fail=:
15360 # Save a `func_append' function call where possible by direct use of '+='
15361 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15362 && mv -f "$cfgfile.tmp" "$cfgfile" \
15363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15364 test 0 -eq $? || _lt_function_replace_fail=:
15366 # Save a `func_append' function call even when '+=' is not available
15367 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15368 && mv -f "$cfgfile.tmp" "$cfgfile" \
15369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15370 test 0 -eq $? || _lt_function_replace_fail=:
15373 if test x"$_lt_function_replace_fail" = x":"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15375 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15379 mv -f "$cfgfile" "$ofile" ||
15380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15384 "libpng-config":F) chmod +x libpng-config ;;
15392 ac_clean_files=$ac_clean_files_save
15394 test $ac_write_fail = 0 ||
15395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15398 # configure is writing to config.log, and then calls config.status.
15399 # config.status does its own redirection, appending to config.log.
15400 # Unfortunately, on DOS this fails, as config.log is still kept open
15401 # by configure, so config.status won't be able to write to it; its
15402 # output is simply discarded. So we exec the FD to /dev/null,
15403 # effectively closing config.log, so it can be properly (re)opened and
15404 # appended to by config.status. When coming back to configure, we
15405 # need to make the FD available again.
15406 if test "$no_create" != yes; then
15408 ac_config_status_args=
15409 test "$silent" = yes &&
15410 ac_config_status_args="$ac_config_status_args --quiet"
15412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15415 # would make configure fail if this is the last instruction.
15416 $ac_cs_success || as_fn_exit 1
15418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}