2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.21.
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.21'
594 PACKAGE_STRING='libpng 1.6.21'
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
640 DO_INSTALL_LIBPNG_CONFIG_FALSE
641 DO_INSTALL_LIBPNG_CONFIG_TRUE
642 DO_INSTALL_LIBPNG_PC_FALSE
643 DO_INSTALL_LIBPNG_PC_TRUE
644 DO_INSTALL_LINKS_FALSE
645 DO_INSTALL_LINKS_TRUE
656 HAVE_LD_VERSION_SCRIPT_FALSE
657 HAVE_LD_VERSION_SCRIPT_TRUE
658 HAVE_SOLARIS_LD_FALSE
696 am__fastdepCCAS_FALSE
719 MAINTAINER_MODE_FALSE
733 INSTALL_STRIP_PROGRAM
775 program_transform_name
788 enable_option_checking
790 enable_maintainer_mode
791 enable_dependency_tracking
805 enable_unversioned_links
806 enable_unversioned_libpng_pc
807 enable_unversioned_libpng_config
810 ac_precious_vars='build_alias
825 # Initialize some variables set by options.
827 ac_init_version=false
828 ac_unrecognized_opts=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures libpng 1.6.21 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of libpng 1.6.21:";;
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-maintainer-mode
1444 enable make rules and dependencies not useful (and
1445 sometimes confusing) to the casual installer
1446 --enable-dependency-tracking
1447 do not reject slow dependency extractors
1448 --disable-dependency-tracking
1449 speeds up one-time build
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-static[=PKGS] build static libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1457 --enable-unversioned-links
1458 Installed libpng header files are placed in a
1459 versioned subdirectory and installed libpng library
1460 (including DLL) files are versioned. If this option
1461 is enabled unversioned links will be created
1462 pointing to the corresponding installed files. If
1463 you use libpng.pc or libpng-config for all builds
1464 you do not need these links, but if you compile
1465 programs directly they will typically #include
1466 <png.h> and link with -lpng; in that case you need
1467 the links. The links can be installed manually using
1468 'make install-header-links' and 'make
1469 install-library-links' and can be removed using the
1470 corresponding uninstall- targets. If you do enable
1471 this option every libpng 'make install' will
1472 recreate the links to point to the just installed
1473 version of libpng. The default is to create the
1474 links; use --disable-unversioned-links to change
1476 --enable-unversioned-libpng-pc
1477 Install the configuration file 'libpng.pc' as a link
1478 to the versioned version. This is done by default -
1479 use --disable-unversioned-libpng-pc to change this.
1480 --enable-unversioned-libpng-config
1481 Install the configuration file 'libpng-config' as a
1482 link to the versioned version. This is done by
1483 default - use --disable-unversioned-libpng-config to
1485 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1486 yes/on: no/off: disable the optimizations; check:
1487 use internal checking code (deprecated and poorly
1488 supported); api: disable by default, enable by a
1489 call to png_set_option; yes/on: turn on
1490 unconditionally. If not specified: determined by the
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1499 --with-aix-soname=aix|svr4|both
1500 shared library versioning (aka "SONAME") variant to
1501 provide on AIX, [default=aix].
1502 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1503 compiler's sysroot if not specified).
1504 --with-zlib-prefix prefix that may have been used in installed zlib
1505 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1507 --with-binconfigs Generate shell libpng-config scripts as well as
1508 pkg-config data [default=yes]
1509 --with-libpng-prefix prefix libpng exported function (API) names with the
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1524 User-defined run-time library search path.
1525 PNG_COPTS additional flags for the C compiler, use this for options that
1526 would cause configure itself to fail
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1561 .) # We are building in place.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1594 libpng configure 1.6.21
1595 generated by GNU Autoconf 2.69
1597 Copyright (C) 2012 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1644 } # ac_fn_c_try_compile
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 } # ac_fn_c_check_header_compile
1760 # ac_fn_c_try_run LINENO
1761 # ----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1763 # that executables *can* be run.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_link"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>&5
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1778 { { case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_try") 2>&5
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; }; }; then :
1790 $as_echo "$as_me: program exited with status $ac_status" >&5
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=$ac_status
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1825 # include <limits.h>
1827 # include <assert.h>
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1854 if ac_fn_c_try_link "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_func
1869 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1870 # -------------------------------------------
1871 # Tests whether TYPE exists after having included INCLUDES, setting cache
1872 # variable VAR accordingly.
1873 ac_fn_c_check_type ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_type
1922 cat >config.log <<_ACEOF
1923 This file contains any messages produced by compilers while
1924 running configure, to aid debugging if configure makes a mistake.
1926 It was created by libpng $as_me 1.6.21, which was
1927 generated by GNU Autoconf 2.69. Invocation command line was
1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 $as_echo "PATH: $as_dir"
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_must_keep_next=false
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 -* ) ac_must_keep_next=true ;;
2019 as_fn_append ac_configure_args " '$ac_arg'"
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log. We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2033 # Save into config.log some information that might help in debugging.
2037 $as_echo "## ---------------- ##
2038 ## Cache variables. ##
2039 ## ---------------- ##"
2041 # The following way of writing the cache mishandles newlines in values,
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044 eval ac_val=\$$ac_var
2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 _ | IFS | as_nl) ;; #(
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054 *) { eval $ac_var=; unset $ac_var;} ;;
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060 *${as_nl}ac_space=\ *)
2062 "s/'\''/'\''\\\\'\'''\''/g;
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 $as_echo "## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##"
2077 for ac_var in $ac_subst_vars
2079 eval ac_val=\$$ac_var
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 $as_echo "$ac_var='\''$ac_val'\''"
2087 if test -n "$ac_subst_files"; then
2088 $as_echo "## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##"
2092 for ac_var in $ac_subst_files
2094 eval ac_val=\$$ac_var
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 $as_echo "$ac_var='\''$ac_val'\''"
2103 if test -s confdefs.h; then
2104 $as_echo "## ----------- ##
2111 test "$ac_signal" != 0 &&
2112 $as_echo "$as_me: caught signal $ac_signal"
2113 $as_echo "$as_me: exit $exit_status"
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2127 $as_echo "/* confdefs.h */" > confdefs.h
2129 # Predefined preprocessor variables.
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_NAME "$PACKAGE_NAME"
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_STRING "$PACKAGE_STRING"
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_URL "$PACKAGE_URL"
2156 # Let the site file select an alternate cache file if it wants to.
2157 # Prefer an explicitly selected file to automatically selected ones.
2160 if test -n "$CONFIG_SITE"; then
2161 # We do not want a PATH search for config.site.
2162 case $CONFIG_SITE in #((
2163 -*) ac_site_file1=./$CONFIG_SITE;;
2164 */*) ac_site_file1=$CONFIG_SITE;;
2165 *) ac_site_file1=./$CONFIG_SITE;;
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 test "x$ac_site_file" = xNONE && continue
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 as_fn_error $? "failed to load site script $ac_site_file
2185 See \`config.log' for more details" "$LINENO" 5; }
2189 if test -r "$cache_file"; then
2190 # Some versions of bash will fail to source /dev/null (special files
2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194 $as_echo "$as_me: loading cache $cache_file" >&6;}
2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197 *) . "./$cache_file";;
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202 $as_echo "$as_me: creating cache $cache_file" >&6;}
2206 # Check that the precious variables saved in the cache have kept the same
2208 ac_cache_corrupted=false
2209 for ac_var in $ac_precious_vars; do
2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2211 eval ac_new_set=\$ac_env_${ac_var}_set
2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2213 eval ac_new_val=\$ac_env_${ac_var}_value
2214 case $ac_old_set,$ac_new_set in
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2225 if test "x$ac_old_val" != "x$ac_new_val"; then
2226 # differences in whitespace do not lead to failure.
2227 ac_old_val_w=`echo x $ac_old_val`
2228 ac_new_val_w=`echo x $ac_new_val`
2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2231 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2232 ac_cache_corrupted=:
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2235 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2236 eval $ac_var=\$ac_old_val
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2239 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2241 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 # Pass precious variables to config.status.
2245 if test "$ac_new_set" = set; then
2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 *) ac_arg=$ac_var=$ac_new_val ;;
2250 case " $ac_configure_args " in
2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2256 if $ac_cache_corrupted; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2260 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2263 ## -------------------- ##
2264 ## Main body of script. ##
2265 ## -------------------- ##
2268 ac_cpp='$CPP $CPPFLAGS'
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276 # libpng does not follow GNU file name conventions (hence 'foreign')
2277 # color-tests requires automake 1.11 or later
2278 # silent-rules requires automake 1.11 or later
2279 # dist-xz requires automake 1.11 or later
2280 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2281 # 1.13 is required for parallel tests
2282 am__api_version='1.15'
2285 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2286 if test -f "$ac_dir/install-sh"; then
2288 ac_install_sh="$ac_aux_dir/install-sh -c"
2290 elif test -f "$ac_dir/install.sh"; then
2292 ac_install_sh="$ac_aux_dir/install.sh -c"
2294 elif test -f "$ac_dir/shtool"; then
2296 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 if test -z "$ac_aux_dir"; then
2301 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2304 # These three variables are undocumented and unsupported,
2305 # and are intended to be withdrawn in a future Autoconf release.
2306 # They can cause serious problems if a builder's source tree is in a directory
2307 # whose full name contains unusual characters.
2308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2313 # Find a good install program. We prefer a C program (faster),
2314 # so one script is as good as another. But avoid the broken or
2315 # incompatible versions:
2316 # SysV /etc/install, /usr/sbin/install
2317 # SunOS /usr/etc/install
2318 # IRIX /sbin/install
2320 # AmigaOS /C/install, which installs bootblocks on floppy discs
2321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2324 # OS/2's system install, which has a completely different semantic
2325 # ./install, which can be erroneously created by make from ./install.sh.
2326 # Reject install programs that cannot install multiple files.
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2328 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2329 if test -z "$INSTALL"; then
2330 if ${ac_cv_path_install+:} false; then :
2331 $as_echo_n "(cached) " >&6
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 # Account for people who put trailing slashes in PATH elements.
2339 case $as_dir/ in #((
2340 ./ | .// | /[cC]/* | \
2341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2342 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2345 # OSF1 and SCO ODT 3.0 have their own names for install.
2346 # Don't use installbsd from OSF since it installs stuff as root
2348 for ac_prog in ginstall scoinst install; do
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2351 if test $ac_prog = install &&
2352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 # AIX install. It has an incompatible calling convention.
2355 elif test $ac_prog = install &&
2356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357 # program-specific install script used by HP pwplus--don't use.
2360 rm -rf conftest.one conftest.two conftest.dir
2361 echo one > conftest.one
2362 echo two > conftest.two
2364 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2365 test -s conftest.one && test -s conftest.two &&
2366 test -s conftest.dir/conftest.one &&
2367 test -s conftest.dir/conftest.two
2369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382 rm -rf conftest.one conftest.two conftest.dir
2385 if test "${ac_cv_path_install+set}" = set; then
2386 INSTALL=$ac_cv_path_install
2388 # As a last resort, use the slow shell script. Don't cache a
2389 # value for INSTALL within a source directory, because that will
2390 # break other packages using the cache if that directory is
2391 # removed, or if the value is a relative name.
2392 INSTALL=$ac_install_sh
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2396 $as_echo "$INSTALL" >&6; }
2398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399 # It thinks the first close brace ends the variable substitution.
2400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2407 $as_echo_n "checking whether build environment is sane... " >&6; }
2408 # Reject unsafe characters in $srcdir or the absolute working directory
2409 # name. Accept space and tab only in the latter.
2413 *[\\\"\#\$\&\'\`$am_lf]*)
2414 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2417 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2418 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2421 # Do 'set' in a subshell so we don't clobber the current shell's
2422 # arguments. Must try -L first in case configure is actually a
2423 # symlink; some systems play weird games with the mod time of symlinks
2424 # (eg FreeBSD returns the mod time of the symlink's containing
2428 for am_try in 1 2; do
2429 echo "timestamp, slept: $am_has_slept" > conftest.file
2430 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2431 if test "$*" = "X"; then
2433 set X `ls -t "$srcdir/configure" conftest.file`
2435 if test "$*" != "X $srcdir/configure conftest.file" \
2436 && test "$*" != "X conftest.file $srcdir/configure"; then
2438 # If neither matched, then we have a broken ls. This can happen
2439 # if, for instance, CONFIG_SHELL is bash and it inherits a
2440 # broken ls alias from the environment. This has actually
2441 # happened. Such a system could not be considered "sane".
2442 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2443 alias in your environment" "$LINENO" 5
2445 if test "$2" = conftest.file || test $am_try -eq 2; then
2452 test "$2" = conftest.file
2458 as_fn_error $? "newly created file is older than distributed files!
2459 Check your system clock" "$LINENO" 5
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462 $as_echo "yes" >&6; }
2463 # If we didn't sleep, we still need to ensure time stamps of config.status and
2464 # generated files are strictly newer.
2466 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2473 test "$program_prefix" != NONE &&
2474 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2475 # Use a double $ so make ignores it.
2476 test "$program_suffix" != NONE &&
2477 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2478 # Double any \ or $.
2479 # By default was `s,x,x', remove it if useless.
2480 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2481 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2483 # Expand $ac_aux_dir to an absolute path.
2484 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2486 if test x"${MISSING+set}" != xset; then
2489 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2491 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2494 # Use eval to expand $SHELL
2495 if eval "$MISSING --is-lightweight"; then
2496 am_missing_run="$MISSING "
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2500 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2503 if test x"${install_sh+set}" != xset; then
2506 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2508 install_sh="\${SHELL} $am_aux_dir/install-sh"
2512 # Installed binaries are usually stripped using 'strip' when the user
2513 # run "make install-strip". However 'strip' might not be the right
2514 # tool to use in cross-compilation environments, therefore Automake
2515 # will honor the 'STRIP' environment variable to overrule this program.
2516 if test "$cross_compiling" != no; then
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}strip; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_STRIP+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$STRIP"; then
2526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 STRIP=$ac_cv_prog_STRIP
2546 if test -n "$STRIP"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2548 $as_echo "$STRIP" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2556 if test -z "$ac_cv_prog_STRIP"; then
2558 # Extract the first word of "strip", so it can be a program name with args.
2559 set dummy 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_ac_ct_STRIP+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$ac_ct_STRIP"; then
2566 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2586 if test -n "$ac_ct_STRIP"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2588 $as_echo "$ac_ct_STRIP" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2594 if test "x$ac_ct_STRIP" = x; then
2597 case $cross_compiling:$ac_tool_warned in
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601 ac_tool_warned=yes ;;
2606 STRIP="$ac_cv_prog_STRIP"
2610 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2613 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2614 if test -z "$MKDIR_P"; then
2615 if ${ac_cv_path_mkdir+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2622 test -z "$as_dir" && as_dir=.
2623 for ac_prog in mkdir gmkdir; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2626 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2627 'mkdir (GNU coreutils) '* | \
2628 'mkdir (coreutils) '* | \
2629 'mkdir (fileutils) '4.1*)
2630 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 test -d ./--version && rmdir ./--version
2641 if test "${ac_cv_path_mkdir+set}" = set; then
2642 MKDIR_P="$ac_cv_path_mkdir -p"
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for MKDIR_P within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 MKDIR_P="$ac_install_sh -d"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2652 $as_echo "$MKDIR_P" >&6; }
2654 for ac_prog in gawk mawk nawk awk
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_AWK+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$AWK"; then
2664 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_AWK="$ac_prog"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$AWK"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2686 $as_echo "$AWK" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2693 test -n "$AWK" && break
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2697 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2699 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2700 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 cat >conftest.make <<\_ACEOF
2706 @echo '@@@%%%=$(MAKE)=@@@%%%'
2708 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2709 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2711 eval ac_cv_prog_make_${ac_make}_set=yes;;
2713 eval ac_cv_prog_make_${ac_make}_set=no;;
2717 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2719 $as_echo "yes" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 SET_MAKE="MAKE=${MAKE-make}"
2727 rm -rf .tst 2>/dev/null
2728 mkdir .tst 2>/dev/null
2729 if test -d .tst; then
2734 rmdir .tst 2>/dev/null
2736 # Check whether --enable-silent-rules was given.
2737 if test "${enable_silent_rules+set}" = set; then :
2738 enableval=$enable_silent_rules;
2741 case $enable_silent_rules in # (((
2742 yes) AM_DEFAULT_VERBOSITY=0;;
2743 no) AM_DEFAULT_VERBOSITY=1;;
2744 *) AM_DEFAULT_VERBOSITY=1;;
2746 am_make=${MAKE-make}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2748 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2749 if ${am_cv_make_support_nested_variables+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if $as_echo 'TRUE=$(BAR$(V))
2758 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2759 am_cv_make_support_nested_variables=yes
2761 am_cv_make_support_nested_variables=no
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2765 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2766 if test $am_cv_make_support_nested_variables = yes; then
2768 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2770 AM_V=$AM_DEFAULT_VERBOSITY
2771 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2776 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2777 # is not polluted with repeated "-I."
2778 am__isrc=' -I$(srcdir)'
2779 # test to see if srcdir already configured
2780 if test -f $srcdir/config.status; then
2781 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785 # test whether we have cygpath
2786 if test -z "$CYGPATH_W"; then
2787 if (cygpath --version) >/dev/null 2>/dev/null; then
2788 CYGPATH_W='cygpath -w'
2795 # Define the identity of the package.
2800 cat >>confdefs.h <<_ACEOF
2801 #define PACKAGE "$PACKAGE"
2805 cat >>confdefs.h <<_ACEOF
2806 #define VERSION "$VERSION"
2809 # Some tools Automake needs.
2811 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2814 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2817 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2820 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2823 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2825 # For better backward compatibility. To be removed once Automake 1.9.x
2826 # dies out for good. For more background, see:
2827 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2828 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2829 mkdir_p='$(MKDIR_P)'
2831 # We need awk for the "check" target (and possibly the TAP driver). The
2832 # system "awk" is bad on some platforms.
2833 # Always define AMTAR for backward compatibility. Yes, it's still used
2834 # in the wild :-( We should find a proper way to deprecate it ...
2838 # We'll loop over all known methods to create a tar archive until one works.
2839 _am_tools='gnutar pax cpio none'
2841 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2848 # POSIX will say in a future version that running "rm -f" with no argument
2849 # is OK; and we want to be able to make that assumption in our Makefile
2850 # recipes. So use an aggressive probe to check that the usage we want is
2851 # actually supported "in the wild" to an acceptable degree.
2852 # See automake bug#10828.
2853 # To make any issue more visible, cause the running configure to be aborted
2854 # by default if the 'rm' program in use doesn't match our expectations; the
2855 # user can still override this though.
2856 if rm -f && rm -fr && rm -rf; then : OK; else
2860 Your 'rm' program seems unable to run without file operands specified
2861 on the command line, even when the '-f' option is present. This is contrary
2862 to the behaviour of most rm programs out there, and not conforming with
2863 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2865 Please tell bug-automake@gnu.org about your system, including the value
2866 of your $PATH and any error possibly output before this message. This
2867 can help us improve future automake versions.
2870 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2871 echo 'Configuration will proceed anyway, since you have set the' >&2
2872 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2876 Aborting the configuration process, to ensure you take notice of the issue.
2878 You can download and install GNU coreutils to get an 'rm' implementation
2879 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2881 If you want to complete the configuration process using your problematic
2882 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2883 to "yes", and re-run configure.
2886 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2890 # The following line causes --disable-maintainer-mode to be the default to
2891 # configure, this is necessary because libpng distributions cannot rely on the
2892 # time stamps of the autotools generated files being correct
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2896 # Check whether --enable-maintainer-mode was given.
2897 if test "${enable_maintainer_mode+set}" = set; then :
2898 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2900 USE_MAINTAINER_MODE=no
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2905 if test $USE_MAINTAINER_MODE = yes; then
2906 MAINTAINER_MODE_TRUE=
2907 MAINTAINER_MODE_FALSE='#'
2909 MAINTAINER_MODE_TRUE='#'
2910 MAINTAINER_MODE_FALSE=
2913 MAINT=$MAINTAINER_MODE_TRUE
2918 PNGLIB_VERSION=1.6.21
2925 ac_config_headers="$ac_config_headers config.h"
2928 # Checks for programs.
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2979 if test -z "$ac_cv_prog_CC"; then
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982 set dummy gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011 $as_echo "$ac_ct_CC" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3017 if test "x$ac_ct_CC" = x; then
3020 case $cross_compiling:$ac_tool_warned in
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024 ac_tool_warned=yes ;;
3032 if test -z "$CC"; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}cc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_CC="${ac_tool_prefix}cc"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3073 if test -z "$CC"; then
3074 # Extract the first word of "cc", so it can be a program name with args.
3075 set dummy cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093 ac_prog_rejected=yes
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test $ac_prog_rejected = yes; then
3105 # We found a bogon in the path, so make sure we never use it.
3106 set dummy $ac_cv_prog_CC
3108 if test $# != 0; then
3109 # We chose a different compiler from the bogus one.
3110 # However, it has the same basename, so the bogon will be chosen
3111 # first if we set CC to just the basename; use the full file name.
3113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$CC" && break
3173 if test -z "$CC"; then
3175 for ac_prog in cl.exe
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$ac_ct_CC" && break
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3233 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 # Provide some information about the compiler.
3239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3242 for ac_option in --version -v -V -qversion; do
3243 { { ac_try="$ac_compiler $ac_option >&5"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3252 if test -s conftest.err; then
3254 ... rest of stderr output deleted ...
3255 10q' conftest.err >conftest.er1
3256 cat conftest.er1 >&5
3258 rm -f conftest.er1 conftest.err
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 ac_clean_files_save=$ac_clean_files
3275 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3276 # Try to create an executable without -o first, disregard a.out.
3277 # It will help us diagnose broken compilers, and finding out an intuition
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3280 $as_echo_n "checking whether the C compiler works... " >&6; }
3281 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3283 # The possible output files:
3284 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3287 for ac_file in $ac_files
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296 if { { ac_try="$ac_link_default"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link_default") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3308 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3309 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3310 # so that the user can short-circuit this test for compilers unknown to
3312 for ac_file in $ac_files ''
3314 test -f "$ac_file" || continue
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3319 # We found the default executable, but exeext='' is most
3323 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3325 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 # We set ac_cv_exeext here because the later test for it is not
3328 # safe: cross compilers may not add the suffix if given an `-o'
3329 # argument, so we may need to know it at that point already.
3330 # Even if this section looks crufty: it has the advantage of
3337 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342 if test -z "$ac_file"; then :
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error 77 "C compiler cannot create executables
3351 See \`config.log' for more details" "$LINENO" 5; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3357 $as_echo_n "checking for C compiler default output file name... " >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3359 $as_echo "$ac_file" >&6; }
3360 ac_exeext=$ac_cv_exeext
3362 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363 ac_clean_files=$ac_clean_files_save
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3365 $as_echo_n "checking for suffix of executables... " >&6; }
3366 if { { ac_try="$ac_link"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_link") 2>&5
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; then :
3377 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3379 # work properly (i.e., refer to `conftest.exe'), while it won't with
3381 for ac_file in conftest.exe conftest conftest.*; do
3382 test -f "$ac_file" || continue
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 rm -f conftest conftest$ac_cv_exeext
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3398 $as_echo "$ac_cv_exeext" >&6; }
3400 rm -f conftest.$ac_ext
3401 EXEEXT=$ac_cv_exeext
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3409 FILE *f = fopen ("conftest.out", "w");
3410 return ferror (f) || fclose (f) != 0;
3416 ac_clean_files="$ac_clean_files conftest.out"
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 if test "$cross_compiling" != yes; then
3422 { { ac_try="$ac_link"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_link") 2>&5
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }
3433 if { ac_try='./conftest$ac_cv_exeext'
3434 { { case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_try") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; }; then
3446 if test "$cross_compiling" = maybe; then
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot run C compiled programs.
3452 If you meant to cross compile, use \`--host'.
3453 See \`config.log' for more details" "$LINENO" 5; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458 $as_echo "$cross_compiling" >&6; }
3460 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3461 ac_clean_files=$ac_clean_files_save
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463 $as_echo_n "checking for suffix of object files... " >&6; }
3464 if ${ac_cv_objext+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 rm -f conftest.o conftest.obj
3479 if { { ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_compile") 2>&5
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 for ac_file in conftest.o conftest.obj conftest.*; do
3491 test -f "$ac_file" || continue;
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error $? "cannot compute suffix of object files: cannot compile
3505 See \`config.log' for more details" "$LINENO" 5; }
3507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510 $as_echo "$ac_cv_objext" >&6; }
3511 OBJEXT=$ac_cv_objext
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515 if ${ac_cv_c_compiler_gnu+:} false; then :
3516 $as_echo_n "(cached) " >&6
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3532 if ac_fn_c_try_compile "$LINENO"; then :
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543 if test $ac_compiler_gnu = yes; then
3548 ac_test_CFLAGS=${CFLAGS+set}
3549 ac_save_CFLAGS=$CFLAGS
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3552 if ${ac_cv_prog_cc_g+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 ac_save_c_werror_flag=$ac_c_werror_flag
3556 ac_c_werror_flag=yes
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 if ac_fn_c_try_compile "$LINENO"; then :
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3601 if ac_fn_c_try_compile "$LINENO"; then :
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_c_werror_flag=$ac_save_c_werror_flag
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612 $as_echo "$ac_cv_prog_cc_g" >&6; }
3613 if test "$ac_test_CFLAGS" = set; then
3614 CFLAGS=$ac_save_CFLAGS
3615 elif test $ac_cv_prog_cc_g = yes; then
3616 if test "$GCC" = yes; then
3622 if test "$GCC" = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630 if ${ac_cv_prog_cc_c89+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 ac_cv_prog_cc_c89=no
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641 struct buf { int x; };
3642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643 static char *e (p, i)
3649 static char *f (char * (*g) (char **, int), char **p, ...)
3654 s = g (p, va_arg (v,int));
3659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660 function prototypes and stuff, but not '\xHH' hex character constants.
3661 These don't provoke an error unfortunately, instead are silently treated
3662 as 'x'. The following induces an error, until -std is added to get
3663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664 array size at least. It's necessary to write '\x00'==0 to get something
3665 that's true only with -std. */
3666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669 inside strings and character constants. */
3671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3673 int test (int i, double x);
3674 struct s1 {int (*f) (int a);};
3675 struct s2 {int (*f) (double a);};
3676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3690 CC="$ac_save_CC $ac_arg"
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_cv_prog_cc_c89=$ac_arg
3694 rm -f core conftest.err conftest.$ac_objext
3695 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 rm -f conftest.$ac_ext
3702 case "x$ac_cv_prog_cc_c89" in
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705 $as_echo "none needed" >&6; } ;;
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 $as_echo "unsupported" >&6; } ;;
3710 CC="$CC $ac_cv_prog_cc_c89"
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3714 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3730 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3731 if ${am_cv_prog_cc_c_o+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 # Make sure it works both with $CC and with simple cc.
3746 # Following AC_PROG_CC_C_O, we do the test twice because some
3747 # compilers refuse to overwrite an existing .o file with -o,
3748 # though they will create one.
3749 am_cv_prog_cc_c_o=yes
3751 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3752 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } \
3756 && test -f conftest2.$ac_objext; then
3759 am_cv_prog_cc_c_o=no
3763 rm -f core conftest*
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3767 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3768 if test "$am_cv_prog_cc_c_o" != yes; then
3769 # Losing compiler, so override with the script.
3770 # FIXME: It is wrong to rewrite CC.
3771 # But if we don't then we get into trouble of one sort or another.
3772 # A longer-term fix would be to have automake use am__CC in this case,
3773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3774 CC="$am_aux_dir/compile $CC"
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 DEPDIR="${am__leading_dot}deps"
3784 ac_config_commands="$ac_config_commands depfiles"
3787 am_make=${MAKE-make}
3788 cat > confinc << 'END'
3790 @echo this is the am__doit target
3793 # If we don't find an include directive, just comment out the code.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3795 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3799 # First try GNU make style include.
3800 echo "include confinc" > confmf
3801 # Ignore all kinds of additional output from 'make'.
3802 case `$am_make -s -f confmf 2> /dev/null` in #(
3803 *the\ am__doit\ target*)
3809 # Now try BSD make style include.
3810 if test "$am__include" = "#"; then
3811 echo '.include "confinc"' > confmf
3812 case `$am_make -s -f confmf 2> /dev/null` in #(
3813 *the\ am__doit\ target*)
3814 am__include=.include
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3823 $as_echo "$_am_result" >&6; }
3824 rm -f confinc confmf
3826 # Check whether --enable-dependency-tracking was given.
3827 if test "${enable_dependency_tracking+set}" = set; then :
3828 enableval=$enable_dependency_tracking;
3831 if test "x$enable_dependency_tracking" != xno; then
3832 am_depcomp="$ac_aux_dir/depcomp"
3836 if test "x$enable_dependency_tracking" != xno; then
3846 depcc="$CC" am_compiler_list=
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849 $as_echo_n "checking dependency style of $depcc... " >&6; }
3850 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854 # We make a subdir and do the tests there. Otherwise we can end up
3855 # making bogus files that we don't know about and never remove. For
3856 # instance it was reported that on HP-UX the gcc test will end up
3857 # making a dummy file named 'D' -- because '-MD' means "put the output
3861 # Copy depcomp to subdir because otherwise we won't find it if we're
3862 # using a relative directory.
3863 cp "$am_depcomp" conftest.dir
3865 # We will build objects and dependencies in a subdirectory because
3866 # it helps to detect inapplicable dependency modes. For instance
3867 # both Tru64's cc and ICC support -MD to output dependencies as a
3868 # side effect of compilation, but ICC will put the dependencies in
3869 # the current directory while Tru64 will put them in the object
3873 am_cv_CC_dependencies_compiler_type=none
3874 if test "$am_compiler_list" = ""; then
3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878 case " $depcc " in #(
3879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3882 for depmode in $am_compiler_list; do
3883 # Setup a source with many dependencies, because some compilers
3884 # like to wrap large dependency lists on column 80 (with \), and
3885 # we should not choose a depcomp mode which is confused by this.
3887 # We need to recreate these files for each test, as the compiler may
3888 # overwrite some of them when testing with obscure command lines.
3889 # This happens at least with the AIX C compiler.
3891 for i in 1 2 3 4 5 6; do
3892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894 # Solaris 10 /bin/sh.
3895 echo '/* dummy */' > sub/conftst$i.h
3897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900 # mode. It turns out that the SunPro C++ compiler does not properly
3901 # handle '-M -o', and we need to detect this. Also, some Intel
3902 # versions had trouble with output in subdirs.
3903 am__obj=sub/conftest.${OBJEXT-o}
3904 am__minus_obj="-o $am__obj"
3907 # This depmode causes a compiler race in universal mode.
3908 test "$am__universal" = false || continue
3911 # After this tag, mechanisms are not by side-effect, so they'll
3912 # only be used when explicitly requested.
3913 if test "x$enable_dependency_tracking" = xyes; then
3919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920 # This compiler won't grok '-c -o', but also, the minuso test has
3921 # not run yet. These depmodes are late enough in the game, and
3922 # so weak that their functioning should not be impacted.
3923 am__obj=conftest.${OBJEXT-o}
3928 if depmode=$depmode \
3929 source=sub/conftest.c object=$am__obj \
3930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932 >/dev/null 2>conftest.err &&
3933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937 # icc doesn't choke on unknown options, it will just issue warnings
3938 # or remarks (even with -Werror). So we grep stderr for any message
3939 # that says an option was ignored or not supported.
3940 # When given -MP, icc 7.0 and 7.1 complain thusly:
3941 # icc: Command line warning: ignoring option '-M'; no argument required
3942 # The diagnosis changed in icc 8.0:
3943 # icc: Command line remark: option '-MP' not supported
3944 if (grep 'ignoring option' conftest.err ||
3945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946 am_cv_CC_dependencies_compiler_type=$depmode
3955 am_cv_CC_dependencies_compiler_type=none
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3964 test "x$enable_dependency_tracking" != xno \
3965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_FALSE='#'
3969 am__fastdepCC_TRUE='#'
3970 am__fastdepCC_FALSE=
3974 # By default we simply use the C compiler to build assembly code.
3976 test "${CCAS+set}" = set || CCAS=$CC
3977 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3981 depcc="$CCAS" am_compiler_list=
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3984 $as_echo_n "checking dependency style of $depcc... " >&6; }
3985 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3989 # We make a subdir and do the tests there. Otherwise we can end up
3990 # making bogus files that we don't know about and never remove. For
3991 # instance it was reported that on HP-UX the gcc test will end up
3992 # making a dummy file named 'D' -- because '-MD' means "put the output
3996 # Copy depcomp to subdir because otherwise we won't find it if we're
3997 # using a relative directory.
3998 cp "$am_depcomp" conftest.dir
4000 # We will build objects and dependencies in a subdirectory because
4001 # it helps to detect inapplicable dependency modes. For instance
4002 # both Tru64's cc and ICC support -MD to output dependencies as a
4003 # side effect of compilation, but ICC will put the dependencies in
4004 # the current directory while Tru64 will put them in the object
4008 am_cv_CCAS_dependencies_compiler_type=none
4009 if test "$am_compiler_list" = ""; then
4010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4015 for depmode in $am_compiler_list; do
4016 # Setup a source with many dependencies, because some compilers
4017 # like to wrap large dependency lists on column 80 (with \), and
4018 # we should not choose a depcomp mode which is confused by this.
4020 # We need to recreate these files for each test, as the compiler may
4021 # overwrite some of them when testing with obscure command lines.
4022 # This happens at least with the AIX C compiler.
4024 for i in 1 2 3 4 5 6; do
4025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4026 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4027 # Solaris 10 /bin/sh.
4028 echo '/* dummy */' > sub/conftst$i.h
4030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4033 # mode. It turns out that the SunPro C++ compiler does not properly
4034 # handle '-M -o', and we need to detect this. Also, some Intel
4035 # versions had trouble with output in subdirs.
4036 am__obj=sub/conftest.${OBJEXT-o}
4037 am__minus_obj="-o $am__obj"
4040 # This depmode causes a compiler race in universal mode.
4041 test "$am__universal" = false || continue
4044 # After this tag, mechanisms are not by side-effect, so they'll
4045 # only be used when explicitly requested.
4046 if test "x$enable_dependency_tracking" = xyes; then
4052 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4053 # This compiler won't grok '-c -o', but also, the minuso test has
4054 # not run yet. These depmodes are late enough in the game, and
4055 # so weak that their functioning should not be impacted.
4056 am__obj=conftest.${OBJEXT-o}
4061 if depmode=$depmode \
4062 source=sub/conftest.c object=$am__obj \
4063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4065 >/dev/null 2>conftest.err &&
4066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4070 # icc doesn't choke on unknown options, it will just issue warnings
4071 # or remarks (even with -Werror). So we grep stderr for any message
4072 # that says an option was ignored or not supported.
4073 # When given -MP, icc 7.0 and 7.1 complain thusly:
4074 # icc: Command line warning: ignoring option '-M'; no argument required
4075 # The diagnosis changed in icc 8.0:
4076 # icc: Command line remark: option '-MP' not supported
4077 if (grep 'ignoring option' conftest.err ||
4078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4079 am_cv_CCAS_dependencies_compiler_type=$depmode
4088 am_cv_CCAS_dependencies_compiler_type=none
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4093 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4094 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4097 test "x$enable_dependency_tracking" != xno \
4098 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4099 am__fastdepCCAS_TRUE=
4100 am__fastdepCCAS_FALSE='#'
4102 am__fastdepCCAS_TRUE='#'
4103 am__fastdepCCAS_FALSE=
4107 # Make sure we can run config.sub.
4108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4109 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4112 $as_echo_n "checking build system type... " >&6; }
4113 if ${ac_cv_build+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 ac_build_alias=$build_alias
4117 test "x$ac_build_alias" = x &&
4118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4119 test "x$ac_build_alias" = x &&
4120 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4126 $as_echo "$ac_cv_build" >&6; }
4127 case $ac_cv_build in
4129 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4132 ac_save_IFS=$IFS; IFS='-'
4138 # Remember, the first character of IFS is used to create $*,
4139 # except with old shells:
4142 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4146 $as_echo_n "checking host system type... " >&6; }
4147 if ${ac_cv_host+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 if test "x$host_alias" = x; then
4151 ac_cv_host=$ac_cv_build
4153 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4154 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4159 $as_echo "$ac_cv_host" >&6; }
4162 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4165 ac_save_IFS=$IFS; IFS='-'
4171 # Remember, the first character of IFS is used to create $*,
4172 # except with old shells:
4175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4179 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4180 if ${ac_cv_path_SED+:} false; then :
4181 $as_echo_n "(cached) " >&6
4183 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4184 for ac_i in 1 2 3 4 5 6 7; do
4185 ac_script="$ac_script$as_nl$ac_script"
4187 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4188 { ac_script=; unset ac_script;}
4189 if test -z "$SED"; then
4190 ac_path_SED_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in sed gsed; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4200 as_fn_executable_p "$ac_path_SED" || continue
4201 # Check for GNU ac_path_SED and select it if it is found.
4202 # Check for GNU $ac_path_SED
4203 case `"$ac_path_SED" --version 2>&1` in
4205 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4208 $as_echo_n 0123456789 >"conftest.in"
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo '' >> "conftest.nl"
4215 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_SED_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_SED="$ac_path_SED"
4221 ac_path_SED_max=$ac_count
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 $ac_path_SED_found && break 3
4234 if test -z "$ac_cv_path_SED"; then
4235 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4243 $as_echo "$ac_cv_path_SED" >&6; }
4244 SED="$ac_cv_path_SED"
4247 test -z "$SED" && SED=sed
4248 Xsed="$SED -e 1s/^X//"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4261 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4262 if ${ac_cv_path_GREP+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 if test -z "$GREP"; then
4266 ac_path_GREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in grep ggrep; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4276 as_fn_executable_p "$ac_path_GREP" || continue
4277 # Check for GNU ac_path_GREP and select it if it is found.
4278 # Check for GNU $ac_path_GREP
4279 case `"$ac_path_GREP" --version 2>&1` in
4281 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4284 $as_echo_n 0123456789 >"conftest.in"
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 $as_echo 'GREP' >> "conftest.nl"
4291 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 as_fn_arith $ac_count + 1 && ac_count=$as_val
4294 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_GREP="$ac_path_GREP"
4297 ac_path_GREP_max=$ac_count
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 $ac_path_GREP_found && break 3
4310 if test -z "$ac_cv_path_GREP"; then
4311 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314 ac_cv_path_GREP=$GREP
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4319 $as_echo "$ac_cv_path_GREP" >&6; }
4320 GREP="$ac_cv_path_GREP"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4324 $as_echo_n "checking for egrep... " >&6; }
4325 if ${ac_cv_path_EGREP+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4329 then ac_cv_path_EGREP="$GREP -E"
4331 if test -z "$EGREP"; then
4332 ac_path_EGREP_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 egrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4342 as_fn_executable_p "$ac_path_EGREP" || continue
4343 # Check for GNU ac_path_EGREP and select it if it is found.
4344 # Check for GNU $ac_path_EGREP
4345 case `"$ac_path_EGREP" --version 2>&1` in
4347 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
4357 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_EGREP="$ac_path_EGREP"
4363 ac_path_EGREP_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_EGREP_found && break 3
4376 if test -z "$ac_cv_path_EGREP"; then
4377 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 ac_cv_path_EGREP=$EGREP
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4386 $as_echo "$ac_cv_path_EGREP" >&6; }
4387 EGREP="$ac_cv_path_EGREP"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4391 $as_echo_n "checking for fgrep... " >&6; }
4392 if ${ac_cv_path_FGREP+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4396 then ac_cv_path_FGREP="$GREP -F"
4398 if test -z "$FGREP"; then
4399 ac_path_FGREP_found=false
4400 # Loop through the user's path and test for each of PROGNAME-LIST
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405 test -z "$as_dir" && as_dir=.
4406 for ac_prog in fgrep; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4409 as_fn_executable_p "$ac_path_FGREP" || continue
4410 # Check for GNU ac_path_FGREP and select it if it is found.
4411 # Check for GNU $ac_path_FGREP
4412 case `"$ac_path_FGREP" --version 2>&1` in
4414 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4417 $as_echo_n 0123456789 >"conftest.in"
4420 cat "conftest.in" "conftest.in" >"conftest.tmp"
4421 mv "conftest.tmp" "conftest.in"
4422 cp "conftest.in" "conftest.nl"
4423 $as_echo 'FGREP' >> "conftest.nl"
4424 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426 as_fn_arith $ac_count + 1 && ac_count=$as_val
4427 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4428 # Best one so far, save it but keep looking for a better one
4429 ac_cv_path_FGREP="$ac_path_FGREP"
4430 ac_path_FGREP_max=$ac_count
4432 # 10*(2^10) chars as input seems more than enough
4433 test $ac_count -gt 10 && break
4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 $ac_path_FGREP_found && break 3
4443 if test -z "$ac_cv_path_FGREP"; then
4444 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4447 ac_cv_path_FGREP=$FGREP
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4453 $as_echo "$ac_cv_path_FGREP" >&6; }
4454 FGREP="$ac_cv_path_FGREP"
4457 test -z "$GREP" && GREP=grep
4475 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4477 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4480 $as_echo_n "checking how to print strings... " >&6; }
4481 # Test print first, because it will be a builtin if present.
4482 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4483 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4485 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4488 # Use this function as a fallback that always works.
4489 func_fallback_echo ()
4491 eval 'cat <<_LTECHO_EOF
4495 ECHO='func_fallback_echo'
4498 # func_echo_all arg...
4499 # Invoke $ECHO with all args, space-separated.
4506 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4507 $as_echo "printf" >&6; } ;;
4508 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4509 $as_echo "print -r" >&6; } ;;
4510 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4511 $as_echo "cat" >&6; } ;;
4529 # Check whether --with-gnu-ld was given.
4530 if test "${with_gnu_ld+set}" = set; then :
4531 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4537 if test yes = "$GCC"; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4540 $as_echo_n "checking for ld used by $CC... " >&6; }
4543 # gcc leaves a trailing carriage return, which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4549 # Accept absolute paths.
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4557 test -z "$LD" && LD=$ac_prog
4560 # If it fails, then pretend we aren't using GCC.
4564 # If it is relative, then search for the first ld in PATH.
4568 elif test yes = "$with_gnu_ld"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4570 $as_echo_n "checking for GNU ld... " >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4573 $as_echo_n "checking for non-GNU ld... " >&6; }
4575 if ${lt_cv_path_LD+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 if test -z "$LD"; then
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD=$ac_dir/$ac_prog
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test no != "$with_gnu_ld" && break
4593 test yes != "$with_gnu_ld" && break
4600 lt_cv_path_LD=$LD # Let the user override the test with a path.
4605 if test -n "$LD"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4607 $as_echo "$LD" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4615 if ${lt_cv_prog_gnu_ld+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619 case `$LD -v 2>&1 </dev/null` in
4620 *GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4624 lt_cv_prog_gnu_ld=no
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4630 with_gnu_ld=$lt_cv_prog_gnu_ld
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4647 # On Suns, sometimes $CPP names a directory.
4648 if test -n "$CPP" && test -d "$CPP"; then
4651 if test -z "$CPP"; then
4652 if ${ac_cv_prog_CPP+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 # Double quotes because CPP needs to be expanded
4656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4659 for ac_c_preproc_warn_flag in '' yes
4661 # Use a header file that comes with gcc, so configuring glibc
4662 # with a fresh cross-compiler works.
4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 # <limits.h> exists even on freestanding compilers.
4665 # On the NeXT, cc -E runs the code through the compiler's parser,
4666 # not just through cpp. "Syntax error" is here to catch this case.
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4670 # include <limits.h>
4672 # include <assert.h>
4676 if ac_fn_c_try_cpp "$LINENO"; then :
4679 # Broken: fails on valid input.
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4684 # OK, works on sane cases. Now check whether nonexistent headers
4685 # can be detected and how.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <ac_nonexistent.h>
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4691 # Broken: success on invalid input.
4694 # Passes both tests.
4698 rm -f conftest.err conftest.i conftest.$ac_ext
4701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4702 rm -f conftest.i conftest.err conftest.$ac_ext
4703 if $ac_preproc_ok; then :
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4716 $as_echo "$CPP" >&6; }
4718 for ac_c_preproc_warn_flag in '' yes
4720 # Use a header file that comes with gcc, so configuring glibc
4721 # with a fresh cross-compiler works.
4722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723 # <limits.h> exists even on freestanding compilers.
4724 # On the NeXT, cc -E runs the code through the compiler's parser,
4725 # not just through cpp. "Syntax error" is here to catch this case.
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4729 # include <limits.h>
4731 # include <assert.h>
4735 if ac_fn_c_try_cpp "$LINENO"; then :
4738 # Broken: fails on valid input.
4741 rm -f conftest.err conftest.i conftest.$ac_ext
4743 # OK, works on sane cases. Now check whether nonexistent headers
4744 # can be detected and how.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <ac_nonexistent.h>
4749 if ac_fn_c_try_cpp "$LINENO"; then :
4750 # Broken: success on invalid input.
4753 # Passes both tests.
4757 rm -f conftest.err conftest.i conftest.$ac_ext
4760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4761 rm -f conftest.i conftest.err conftest.$ac_ext
4762 if $ac_preproc_ok; then :
4765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4768 See \`config.log' for more details" "$LINENO" 5; }
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777 for ac_prog in gawk mawk nawk awk
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_AWK+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -n "$AWK"; then
4787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_AWK="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 if test -n "$AWK"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4809 $as_echo "$AWK" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$AWK" && break
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4821 $as_echo_n "checking whether ln -s works... " >&6; }
4823 if test "$LN_S" = "ln -s"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4825 $as_echo "yes" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4828 $as_echo "no, using $LN_S" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4836 $as_echo_n "(cached) " >&6
4838 cat >conftest.make <<\_ACEOF
4841 @echo '@@@%%%=$(MAKE)=@@@%%%'
4843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4846 eval ac_cv_prog_make_${ac_make}_set=yes;;
4848 eval ac_cv_prog_make_${ac_make}_set=no;;
4852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 SET_MAKE="MAKE=${MAKE-make}"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4866 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4871 macro_version='2.4.6'
4872 macro_revision='2.4.6'
4886 ltmain=$ac_aux_dir/ltmain.sh
4888 # Backslashify metacharacters that are still active within
4889 # double-quoted strings.
4890 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4892 # Same as above, but do not quote variable references.
4893 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4895 # Sed substitution to delay expansion of an escaped shell variable in a
4896 # double_quote_subst'ed string.
4897 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4899 # Sed substitution to delay expansion of an escaped single quote.
4900 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4902 # Sed substitution to avoid accidental globbing in evaled expressions
4903 no_glob_subst='s/\*/\\\*/g'
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907 if ${lt_cv_path_NM+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 if test -n "$NM"; then
4911 # Let the user override the test.
4914 lt_nm_to_check=${ac_tool_prefix}nm
4915 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916 lt_nm_to_check="$lt_nm_to_check nm"
4918 for lt_tmp_nm in $lt_nm_to_check; do
4919 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4920 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4922 test -z "$ac_dir" && ac_dir=.
4923 tmp_nm=$ac_dir/$lt_tmp_nm
4924 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4925 # Check to see if the nm accepts a BSD-compat flag.
4926 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4927 # nm: unknown option "B" ignored
4928 # Tru64's nm complains that /dev/null is an invalid object file
4929 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4931 mingw*) lt_bad_file=conftest.nm/nofile ;;
4932 *) lt_bad_file=/dev/null ;;
4934 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4935 *$lt_bad_file* | *'Invalid file or object type'*)
4936 lt_cv_path_NM="$tmp_nm -B"
4940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4942 lt_cv_path_NM="$tmp_nm -p"
4946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4947 continue # so that we can try to find one that supports BSD flags
4956 : ${lt_cv_path_NM=no}
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4960 $as_echo "$lt_cv_path_NM" >&6; }
4961 if test no != "$lt_cv_path_NM"; then
4964 # Didn't find any BSD compatible name lister, look for dumpbin.
4965 if test -n "$DUMPBIN"; then :
4966 # Let the user override the test.
4968 if test -n "$ac_tool_prefix"; then
4969 for ac_prog in dumpbin "link -dump"
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_DUMPBIN+:} false; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$DUMPBIN"; then
4979 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 DUMPBIN=$ac_cv_prog_DUMPBIN
4999 if test -n "$DUMPBIN"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5001 $as_echo "$DUMPBIN" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 test -n "$DUMPBIN" && break
5011 if test -z "$DUMPBIN"; then
5012 ac_ct_DUMPBIN=$DUMPBIN
5013 for ac_prog in dumpbin "link -dump"
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5020 $as_echo_n "(cached) " >&6
5022 if test -n "$ac_ct_DUMPBIN"; then
5023 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5043 if test -n "$ac_ct_DUMPBIN"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5045 $as_echo "$ac_ct_DUMPBIN" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 test -n "$ac_ct_DUMPBIN" && break
5055 if test "x$ac_ct_DUMPBIN" = x; then
5058 case $cross_compiling:$ac_tool_warned in
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5064 DUMPBIN=$ac_ct_DUMPBIN
5068 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5070 DUMPBIN="$DUMPBIN -symbols -headers"
5078 if test : != "$DUMPBIN"; then
5082 test -z "$NM" && NM=nm
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5090 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5091 if ${lt_cv_nm_interface+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 lt_cv_nm_interface="BSD nm"
5095 echo "int some_variable = 0;" > conftest.$ac_ext
5096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5097 (eval "$ac_compile" 2>conftest.err)
5098 cat conftest.err >&5
5099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5101 cat conftest.err >&5
5102 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5103 cat conftest.out >&5
5104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5105 lt_cv_nm_interface="MS dumpbin"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5110 $as_echo "$lt_cv_nm_interface" >&6; }
5112 # find the maximum length of command line arguments
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5115 if ${lt_cv_sys_max_cmd_len+:} false; then :
5116 $as_echo_n "(cached) " >&6
5123 # On DJGPP, this test can blow up pretty badly due to problems in libc
5124 # (any single argument exceeding 2000 bytes causes a buffer overrun
5125 # during glob expansion). Even if it were fixed, the result of this
5126 # check would be larger than it should be.
5127 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5131 # Under GNU Hurd, this test is not required because there is
5132 # no limit to the length of command line arguments.
5133 # Libtool will interpret -1 as no limit whatsoever
5134 lt_cv_sys_max_cmd_len=-1;
5137 cygwin* | mingw* | cegcc*)
5138 # On Win9x/ME, this test blows up -- it succeeds, but takes
5139 # about 5 minutes as the teststring grows exponentially.
5140 # Worse, since 9x/ME are not pre-emptively multitasking,
5141 # you end up with a "frozen" computer, even though with patience
5142 # the test eventually succeeds (with a max line length of 256k).
5143 # Instead, let's just punt: use the minimum linelength reported by
5144 # all of the supported platforms: 8192 (on NT/2K/XP).
5145 lt_cv_sys_max_cmd_len=8192;
5149 # On MiNT this can take a long time and run out of memory.
5150 lt_cv_sys_max_cmd_len=8192;
5154 # On AmigaOS with pdksh, this test takes hours, literally.
5155 # So we just punt and use a minimum line length of 8192.
5156 lt_cv_sys_max_cmd_len=8192;
5159 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5160 # This has been around since 386BSD, at least. Likely further.
5161 if test -x /sbin/sysctl; then
5162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5163 elif test -x /usr/sbin/sysctl; then
5164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5168 # And add a safety zone
5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5175 lt_cv_sys_max_cmd_len=196608
5179 # The test takes a long time on OS/2.
5180 lt_cv_sys_max_cmd_len=8192
5184 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5185 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5186 # nice to cause kernel panics so lets avoid the loop below.
5187 # First set a reasonable default.
5188 lt_cv_sys_max_cmd_len=16384
5190 if test -x /sbin/sysconfig; then
5191 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5192 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5197 lt_cv_sys_max_cmd_len=102400
5199 sysv5* | sco5v6* | sysv4.2uw2*)
5200 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5201 if test -n "$kargmax"; then
5202 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5204 lt_cv_sys_max_cmd_len=32768
5208 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5209 if test -n "$lt_cv_sys_max_cmd_len" && \
5210 test undefined != "$lt_cv_sys_max_cmd_len"; then
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5214 # Make teststring a little bigger before we do anything with it.
5215 # a 1K string should be a reasonable start.
5216 for i in 1 2 3 4 5 6 7 8; do
5217 teststring=$teststring$teststring
5219 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5220 # If test is not a shell built-in, we'll probably end up computing a
5221 # maximum length that is only half of the actual maximum length, but
5223 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5224 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5225 test 17 != "$i" # 1/2 MB should be enough
5228 teststring=$teststring$teststring
5230 # Only check the string length outside the loop.
5231 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5233 # Add a significant safety factor because C++ compilers can tack on
5234 # massive amounts of additional arguments before passing them to the
5235 # linker. It appears as though 1/2 is a usable value.
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5243 if test -n "$lt_cv_sys_max_cmd_len"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5245 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5248 $as_echo "none" >&6; }
5250 max_cmd_len=$lt_cv_sys_max_cmd_len
5261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5271 # test EBCDIC or ASCII
5272 case `echo X|tr X '\101'` in
5273 A) # ASCII based system
5274 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5275 lt_SP2NL='tr \040 \012'
5276 lt_NL2SP='tr \015\012 \040\040'
5278 *) # EBCDIC based system
5279 lt_SP2NL='tr \100 \n'
5280 lt_NL2SP='tr \r\n \100\100'
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5293 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5294 if ${lt_cv_to_host_file_cmd+:} false; then :
5295 $as_echo_n "(cached) " >&6
5300 *-*-mingw* ) # actually msys
5301 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5304 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5306 * ) # otherwise, assume *nix
5307 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5313 *-*-mingw* ) # actually msys
5314 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5317 lt_cv_to_host_file_cmd=func_convert_file_noop
5319 * ) # otherwise, assume *nix
5320 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5324 * ) # unhandled hosts (and "normal" native builds)
5325 lt_cv_to_host_file_cmd=func_convert_file_noop
5331 to_host_file_cmd=$lt_cv_to_host_file_cmd
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5333 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5340 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5341 if ${lt_cv_to_tool_file_cmd+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 #assume ordinary cross tools, or native build.
5345 lt_cv_to_tool_file_cmd=func_convert_file_noop
5349 *-*-mingw* ) # actually msys
5350 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5360 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5367 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5368 if ${lt_cv_ld_reload_flag+:} false; then :
5369 $as_echo_n "(cached) " >&6
5371 lt_cv_ld_reload_flag='-r'
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5374 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5375 reload_flag=$lt_cv_ld_reload_flag
5376 case $reload_flag in
5378 *) reload_flag=" $reload_flag" ;;
5380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 cygwin* | mingw* | pw32* | cegcc*)
5383 if test yes != "$GCC"; then
5388 if test yes = "$GCC"; then
5389 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_OBJDUMP+:} false; then :
5410 $as_echo_n "(cached) " >&6
5412 if test -n "$OBJDUMP"; then
5413 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 OBJDUMP=$ac_cv_prog_OBJDUMP
5433 if test -n "$OBJDUMP"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5435 $as_echo "$OBJDUMP" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5443 if test -z "$ac_cv_prog_OBJDUMP"; then
5444 ac_ct_OBJDUMP=$OBJDUMP
5445 # Extract the first word of "objdump", so it can be a program name with args.
5446 set dummy objdump; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$ac_ct_OBJDUMP"; then
5453 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5473 if test -n "$ac_ct_OBJDUMP"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5475 $as_echo "$ac_ct_OBJDUMP" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5481 if test "x$ac_ct_OBJDUMP" = x; then
5484 case $cross_compiling:$ac_tool_warned in
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5490 OBJDUMP=$ac_ct_OBJDUMP
5493 OBJDUMP="$ac_cv_prog_OBJDUMP"
5496 test -z "$OBJDUMP" && OBJDUMP=objdump
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5505 if ${lt_cv_deplibs_check_method+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 lt_cv_file_magic_cmd='$MAGIC_CMD'
5509 lt_cv_file_magic_test_file=
5510 lt_cv_deplibs_check_method='unknown'
5511 # Need to set the preceding variable on all platforms that support
5512 # interlibrary dependencies.
5513 # 'none' -- dependencies not supported.
5514 # 'unknown' -- same as none, but documents that we really don't know.
5515 # 'pass_all' -- all dependencies passed with no checks.
5516 # 'test_compile' -- check by making test program.
5517 # 'file_magic [[regex]]' -- check by looking for files in library path
5518 # that responds to the $file_magic_cmd with a given extended regex.
5519 # If you have 'file' or equivalent on your system and you're not sure
5520 # whether 'pass_all' will *always* work, you probably want this one.
5524 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_deplibs_check_method=pass_all
5532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5533 lt_cv_file_magic_cmd='/usr/bin/file -L'
5534 lt_cv_file_magic_test_file=/shlib/libc.so
5538 # func_win32_libid is a shell function defined in ltmain.sh
5539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5540 lt_cv_file_magic_cmd='func_win32_libid'
5544 # Base MSYS/MinGW do not provide the 'file' command needed by
5545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5546 # unless we find 'file', for example because we are cross-compiling.
5547 if ( file / ) >/dev/null 2>&1; then
5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549 lt_cv_file_magic_cmd='func_win32_libid'
5551 # Keep this pattern in sync with the one in func_win32_libid.
5552 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5553 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 # use the weaker test based on 'objdump'. See mingw*.
5559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5560 lt_cv_file_magic_cmd='$OBJDUMP -f'
5563 darwin* | rhapsody*)
5564 lt_cv_deplibs_check_method=pass_all
5567 freebsd* | dragonfly*)
5568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5571 # Not sure whether the presence of OpenBSD here was a mistake.
5572 # Let's accept both of them until this is cleared up.
5573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5579 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5587 hpux10.20* | hpux11*)
5588 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5595 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]'
5596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5606 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5610 irix5* | irix6* | nonstopux*)
5612 *-32|*"-32 ") libmagic=32-bit;;
5613 *-n32|*"-n32 ") libmagic=N32;;
5614 *-64|*"-64 ") libmagic=64-bit;;
5615 *) libmagic=never-match;;
5617 lt_cv_deplibs_check_method=pass_all
5620 # This must be glibc/ELF.
5621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5622 lt_cv_deplibs_check_method=pass_all
5626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5635 lt_cv_file_magic_cmd=/usr/bin/file
5636 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5640 lt_cv_deplibs_check_method=pass_all
5644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651 osf3* | osf4* | osf5*)
5652 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5664 lt_cv_deplibs_check_method=pass_all
5668 case $host_vendor in
5670 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]'
5671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5674 lt_cv_deplibs_check_method=pass_all
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5683 lt_cv_file_magic_test_file=/lib/libc.so
5686 lt_cv_deplibs_check_method=pass_all
5689 lt_cv_deplibs_check_method=pass_all
5695 lt_cv_deplibs_check_method=pass_all
5698 lt_cv_deplibs_check_method=pass_all
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5704 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5708 if test "$build" = "$host"; then
5711 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5714 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5720 file_magic_cmd=$lt_cv_file_magic_cmd
5721 deplibs_check_method=$lt_cv_deplibs_check_method
5722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_DLLTOOL+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -n "$DLLTOOL"; then
5754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 DLLTOOL=$ac_cv_prog_DLLTOOL
5774 if test -n "$DLLTOOL"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5776 $as_echo "$DLLTOOL" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5784 if test -z "$ac_cv_prog_DLLTOOL"; then
5785 ac_ct_DLLTOOL=$DLLTOOL
5786 # Extract the first word of "dlltool", so it can be a program name with args.
5787 set dummy dlltool; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -n "$ac_ct_DLLTOOL"; then
5794 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5814 if test -n "$ac_ct_DLLTOOL"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5816 $as_echo "$ac_ct_DLLTOOL" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5822 if test "x$ac_ct_DLLTOOL" = x; then
5825 case $cross_compiling:$ac_tool_warned in
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829 ac_tool_warned=yes ;;
5831 DLLTOOL=$ac_ct_DLLTOOL
5834 DLLTOOL="$ac_cv_prog_DLLTOOL"
5837 test -z "$DLLTOOL" && DLLTOOL=dlltool
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5846 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5847 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 lt_cv_sharedlib_from_linklib_cmd='unknown'
5853 cygwin* | mingw* | pw32* | cegcc*)
5854 # two different shell functions defined in ltmain.sh;
5855 # decide which one to use based on capabilities of $DLLTOOL
5856 case `$DLLTOOL --help 2>&1` in
5857 *--identify-strict*)
5858 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5861 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5866 # fallback: assume linklib IS sharedlib
5867 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5873 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5874 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5875 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5884 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_AR+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$AR"; then
5895 ac_cv_prog_AR="$AR" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 if test -n "$AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5917 $as_echo "$AR" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$AR" && break
5927 if test -z "$AR"; then
5931 # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy $ac_prog; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$ac_ct_AR"; then
5939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_AR="$ac_prog"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5959 if test -n "$ac_ct_AR"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5961 $as_echo "$ac_ct_AR" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5968 test -n "$ac_ct_AR" && break
5971 if test "x$ac_ct_AR" = x; then
5974 case $cross_compiling:$ac_tool_warned in
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned=yes ;;
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5998 $as_echo_n "checking for archiver @FILE support... " >&6; }
5999 if ${lt_cv_ar_at_file+:} false; then :
6000 $as_echo_n "(cached) " >&6
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6014 if ac_fn_c_try_compile "$LINENO"; then :
6015 echo conftest.$ac_objext > conftest.lst
6016 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6018 (eval $lt_ar_try) 2>&5
6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; }
6022 if test 0 -eq "$ac_status"; then
6023 # Ensure the archiver fails upon bogus file names.
6024 rm -f conftest.$ac_objext libconftest.a
6025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6026 (eval $lt_ar_try) 2>&5
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }
6030 if test 0 -ne "$ac_status"; then
6034 rm -f conftest.* libconftest.a
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6041 $as_echo "$lt_cv_ar_at_file" >&6; }
6043 if test no = "$lt_cv_ar_at_file"; then
6046 archiver_list_spec=$lt_cv_ar_at_file
6055 if test -n "$ac_tool_prefix"; then
6056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6057 set dummy ${ac_tool_prefix}strip; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_STRIP+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$STRIP"; then
6064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 STRIP=$ac_cv_prog_STRIP
6084 if test -n "$STRIP"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6086 $as_echo "$STRIP" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test -z "$ac_cv_prog_STRIP"; then
6096 # Extract the first word of "strip", so it can be a program name with args.
6097 set dummy strip; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -n "$ac_ct_STRIP"; then
6104 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_STRIP="strip"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6124 if test -n "$ac_ct_STRIP"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6126 $as_echo "$ac_ct_STRIP" >&6; }
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6132 if test "x$ac_ct_STRIP" = x; then
6135 case $cross_compiling:$ac_tool_warned in
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6144 STRIP="$ac_cv_prog_STRIP"
6147 test -z "$STRIP" && STRIP=:
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_RANLIB+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 if test -n "$RANLIB"; then
6163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 RANLIB=$ac_cv_prog_RANLIB
6183 if test -n "$RANLIB"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6185 $as_echo "$RANLIB" >&6; }
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6193 if test -z "$ac_cv_prog_RANLIB"; then
6194 ac_ct_RANLIB=$RANLIB
6195 # Extract the first word of "ranlib", so it can be a program name with args.
6196 set dummy ranlib; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6200 $as_echo_n "(cached) " >&6
6202 if test -n "$ac_ct_RANLIB"; then
6203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_RANLIB="ranlib"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6223 if test -n "$ac_ct_RANLIB"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6225 $as_echo "$ac_ct_RANLIB" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6231 if test "x$ac_ct_RANLIB" = x; then
6234 case $cross_compiling:$ac_tool_warned in
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6240 RANLIB=$ac_ct_RANLIB
6243 RANLIB="$ac_cv_prog_RANLIB"
6246 test -z "$RANLIB" && RANLIB=:
6253 # Determine commands to create old-style static archives.
6254 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6255 old_postinstall_cmds='chmod 644 $oldlib'
6256 old_postuninstall_cmds=
6258 if test -n "$RANLIB"; then
6261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6267 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6272 lock_old_archive_extraction=yes ;;
6274 lock_old_archive_extraction=no ;;
6315 # If no C compiler was specified, use CC.
6318 # If no C compiler flags were specified, use CFLAGS.
6319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6321 # Allow CC to be a program name with arguments.
6325 # Check for command to grab the raw symbol name followed by C symbol from nm.
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6327 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6328 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6329 $as_echo_n "(cached) " >&6
6332 # These are sane defaults that work on at least a few old systems.
6333 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6335 # Character class describing NM global symbol codes.
6336 symcode='[BCDEGRST]'
6338 # Regexp to match symbols that can be accessed directly from C.
6339 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6341 # Define system-specific variables.
6346 cygwin* | mingw* | pw32* | cegcc*)
6347 symcode='[ABCDGISTW]'
6350 if test ia64 = "$host_cpu"; then
6351 symcode='[ABCDEGRST]'
6355 symcode='[BCDEGRST]'
6358 symcode='[BCDEGQRST]'
6369 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377 # If we're using GNU nm, then use its standard symbol codes.
6378 case `$NM -V 2>&1` in
6379 *GNU* | *'with BFD'*)
6380 symcode='[ABCDGIRSTW]' ;;
6383 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6384 # Gets list of data symbols to import.
6385 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6386 # Adjust the below global symbol transforms to fixup imported variables.
6387 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6388 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6389 lt_c_name_lib_hook="\
6390 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6391 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6393 # Disable hooks by default.
6394 lt_cv_sys_global_symbol_to_import=
6400 # Transform an extracted symbol line into a proper C declaration.
6401 # Some systems (esp. on ia64) link data and code symbols differently,
6402 # so use this general approach.
6403 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6405 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6406 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6408 # Transform an extracted symbol line into symbol name and symbol address
6409 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6411 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6412 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6414 # Transform an extracted symbol line into symbol name with lib prefix and
6416 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6417 $lt_c_name_lib_hook\
6418 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6419 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6420 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6422 # Handle CRLF in mingw tool chain
6426 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6430 # Try without a prefix underscore, then with it.
6431 for ac_symprfx in "" "_"; do
6433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6434 symxfrm="\\1 $ac_symprfx\\2 \\2"
6436 # Write the raw and C identifiers.
6437 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6438 # Fake it for dumpbin and say T for any non-static function,
6439 # D for any global variable and I for any imported variable.
6440 # Also find C++ and __fastcall symbols from MSVC++,
6441 # which start with @ or ?.
6442 lt_cv_sys_global_symbol_pipe="$AWK '"\
6443 " {last_section=section; section=\$ 3};"\
6444 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6445 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6446 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6447 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6448 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6449 " \$ 0!~/External *\|/{next};"\
6450 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6451 " {if(hide[section]) next};"\
6452 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6453 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6454 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6455 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6456 " ' prfx=^$ac_symprfx"
6458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6460 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6462 # Check to see that the pipe works correctly.
6466 cat > conftest.$ac_ext <<_LT_EOF
6471 void nm_test_func(void);
6472 void nm_test_func(void){}
6476 int main(){nm_test_var='a';nm_test_func();return(0);}
6479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6480 (eval $ac_compile) 2>&5
6482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483 test $ac_status = 0; }; then
6484 # Now try to grab the symbols.
6486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490 test $ac_status = 0; } && test -s "$nlist"; then
6491 # Try sorting and uniquifying the output.
6492 if sort "$nlist" | uniq > "$nlist"T; then
6493 mv -f "$nlist"T "$nlist"
6498 # Make sure that we snagged all the symbols we need.
6499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6501 cat <<_LT_EOF > conftest.$ac_ext
6502 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6503 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6504 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6505 relocations are performed -- see ld's documentation on pseudo-relocs. */
6506 # define LT_DLSYM_CONST
6507 #elif defined __osf__
6508 /* This system does not cope well with relocations in const data. */
6509 # define LT_DLSYM_CONST
6511 # define LT_DLSYM_CONST const
6519 # Now generate the symbol file.
6520 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6522 cat <<_LT_EOF >> conftest.$ac_ext
6524 /* The mapping between symbol names and symbols. */
6525 LT_DLSYM_CONST struct {
6529 lt__PROGRAM__LTX_preloaded_symbols[] =
6531 { "@PROGRAM@", (void *) 0 },
6533 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6534 cat <<\_LT_EOF >> conftest.$ac_ext
6538 /* This works around a problem in FreeBSD linker */
6539 #ifdef FREEBSD_WORKAROUND
6540 static const void *lt_preloaded_setup() {
6541 return lt__PROGRAM__LTX_preloaded_symbols;
6549 # Now try linking the two files.
6550 mv conftest.$ac_objext conftstm.$ac_objext
6551 lt_globsym_save_LIBS=$LIBS
6552 lt_globsym_save_CFLAGS=$CFLAGS
6553 LIBS=conftstm.$ac_objext
6554 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6556 (eval $ac_link) 2>&5
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6562 LIBS=$lt_globsym_save_LIBS
6563 CFLAGS=$lt_globsym_save_CFLAGS
6565 echo "cannot find nm_test_func in $nlist" >&5
6568 echo "cannot find nm_test_var in $nlist" >&5
6571 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6574 echo "$progname: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 rm -rf conftest* conftst*
6579 # Do not use the global_symbol_pipe unless it works.
6580 if test yes = "$pipe_works"; then
6583 lt_cv_sys_global_symbol_pipe=
6589 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6590 lt_cv_sys_global_symbol_to_cdecl=
6592 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6594 $as_echo "failed" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6597 $as_echo "ok" >&6; }
6600 # Response file support.
6601 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6602 nm_file_list_spec='@'
6603 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6604 nm_file_list_spec='@'
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6644 $as_echo_n "checking for sysroot... " >&6; }
6646 # Check whether --with-sysroot was given.
6647 if test "${with_sysroot+set}" = set; then :
6648 withval=$with_sysroot;
6655 case $with_sysroot in #(
6657 if test yes = "$GCC"; then
6658 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6662 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6668 $as_echo "$with_sysroot" >&6; }
6669 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6674 $as_echo "${lt_sysroot:-no}" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6681 $as_echo_n "checking for a working dd... " >&6; }
6682 if ${ac_cv_path_lt_DD+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 printf 0123456789abcdef0123456789abcdef >conftest.i
6686 cat conftest.i conftest.i >conftest2.i
6688 if test -z "$lt_DD"; then
6689 ac_path_lt_DD_found=false
6690 # Loop through the user's path and test for each of PROGNAME-LIST
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_prog in dd; do
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6699 as_fn_executable_p "$ac_path_lt_DD" || continue
6700 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6701 cmp -s conftest.i conftest.out \
6702 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6704 $ac_path_lt_DD_found && break 3
6709 if test -z "$ac_cv_path_lt_DD"; then
6713 ac_cv_path_lt_DD=$lt_DD
6716 rm -f conftest.i conftest2.i conftest.out
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6719 $as_echo "$ac_cv_path_lt_DD" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6723 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6724 if ${lt_cv_truncate_bin+:} false; then :
6725 $as_echo_n "(cached) " >&6
6727 printf 0123456789abcdef0123456789abcdef >conftest.i
6728 cat conftest.i conftest.i >conftest2.i
6730 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6731 cmp -s conftest.i conftest.out \
6732 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6734 rm -f conftest.i conftest2.i conftest.out
6735 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6738 $as_echo "$lt_cv_truncate_bin" >&6; }
6746 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6749 for cc_temp in $*""; do
6751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6757 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6760 # Check whether --enable-libtool-lock was given.
6761 if test "${enable_libtool_lock+set}" = set; then :
6762 enableval=$enable_libtool_lock;
6765 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6767 # Some flags need to be propagated to the compiler or linker for good
6771 # Find out what ABI is being produced by ac_compile, and set mode
6772 # options accordingly.
6773 echo 'int i;' > conftest.$ac_ext
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775 (eval $ac_compile) 2>&5
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
6779 case `/usr/bin/file conftest.$ac_objext` in
6791 # Find out what ABI is being produced by ac_compile, and set linker
6792 # options accordingly.
6793 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795 (eval $ac_compile) 2>&5
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }; then
6799 if test yes = "$lt_cv_prog_gnu_ld"; then
6800 case `/usr/bin/file conftest.$ac_objext` in
6802 LD="${LD-ld} -melf32bsmip"
6805 LD="${LD-ld} -melf32bmipn32"
6808 LD="${LD-ld} -melf64bmip"
6812 case `/usr/bin/file conftest.$ac_objext` in
6829 # Find out what ABI is being produced by ac_compile, and set linker
6830 # options accordingly.
6831 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6846 case `/usr/bin/file conftest.$ac_objext` in
6848 emul="${emul}btsmip"
6851 emul="${emul}ltsmip"
6854 case `/usr/bin/file conftest.$ac_objext` in
6859 LD="${LD-ld} -m $emul"
6864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6866 # Find out what ABI is being produced by ac_compile, and set linker
6867 # options accordingly. Note that the listed cases only cover the
6868 # situations where additional linker options are needed (such as when
6869 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6870 # vice versa); the common cases where no linker options are needed do
6871 # not appear in the list.
6872 echo 'int i;' > conftest.$ac_ext
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 case `/usr/bin/file conftest.o` in
6881 x86_64-*kfreebsd*-gnu)
6882 LD="${LD-ld} -m elf_i386_fbsd"
6885 case `/usr/bin/file conftest.o` in
6887 LD="${LD-ld} -m elf32_x86_64"
6890 LD="${LD-ld} -m elf_i386"
6894 powerpc64le-*linux*)
6895 LD="${LD-ld} -m elf32lppclinux"
6898 LD="${LD-ld} -m elf32ppclinux"
6901 LD="${LD-ld} -m elf_s390"
6904 LD="${LD-ld} -m elf32_sparc"
6910 x86_64-*kfreebsd*-gnu)
6911 LD="${LD-ld} -m elf_x86_64_fbsd"
6914 LD="${LD-ld} -m elf_x86_64"
6917 LD="${LD-ld} -m elf64lppc"
6920 LD="${LD-ld} -m elf64ppc"
6922 s390*-*linux*|s390*-*tpf*)
6923 LD="${LD-ld} -m elf64_s390"
6926 LD="${LD-ld} -m elf64_sparc"
6936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6938 CFLAGS="$CFLAGS -belf"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6940 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6941 if ${lt_cv_cc_needs_belf+:} false; then :
6942 $as_echo_n "(cached) " >&6
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6961 if ac_fn_c_try_link "$LINENO"; then :
6962 lt_cv_cc_needs_belf=yes
6964 lt_cv_cc_needs_belf=no
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6969 ac_cpp='$CPP $CPPFLAGS'
6970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6976 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6977 if test yes != "$lt_cv_cc_needs_belf"; then
6978 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6983 # Find out what ABI is being produced by ac_compile, and set linker
6984 # options accordingly.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 case `/usr/bin/file conftest.o` in
6993 case $lt_cv_prog_gnu_ld in
6996 i?86-*-solaris*|x86_64-*-solaris*)
6997 LD="${LD-ld} -m elf_x86_64"
7000 LD="${LD-ld} -m elf64_sparc"
7003 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7004 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7021 need_locks=$enable_libtool_lock
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}mt; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 if test -n "$MANIFEST_TOOL"; then
7032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7052 if test -n "$MANIFEST_TOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7054 $as_echo "$MANIFEST_TOOL" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7064 # Extract the first word of "mt", so it can be a program name with args.
7065 set dummy mt; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 if test -n "$ac_ct_MANIFEST_TOOL"; then
7072 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7092 if test -n "$ac_ct_MANIFEST_TOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7094 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7103 case $cross_compiling:$ac_tool_warned in
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7115 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7117 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7118 if ${lt_cv_path_mainfest_tool+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 lt_cv_path_mainfest_tool=no
7122 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7123 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7124 cat conftest.err >&5
7125 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7126 lt_cv_path_mainfest_tool=yes
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7131 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7132 if test yes != "$lt_cv_path_mainfest_tool"; then
7142 rhapsody* | darwin*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$DSYMUTIL"; then
7152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7172 if test -n "$DSYMUTIL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7174 $as_echo "$DSYMUTIL" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_DSYMUTIL"; then
7183 ac_ct_DSYMUTIL=$DSYMUTIL
7184 # Extract the first word of "dsymutil", so it can be a program name with args.
7185 set dummy dsymutil; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7214 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_DSYMUTIL" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7229 DSYMUTIL=$ac_ct_DSYMUTIL
7232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_NMEDIT+:} false; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$NMEDIT"; then
7244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 NMEDIT=$ac_cv_prog_NMEDIT
7264 if test -n "$NMEDIT"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7266 $as_echo "$NMEDIT" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_NMEDIT"; then
7275 ac_ct_NMEDIT=$NMEDIT
7276 # Extract the first word of "nmedit", so it can be a program name with args.
7277 set dummy nmedit; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7281 $as_echo_n "(cached) " >&6
7283 if test -n "$ac_ct_NMEDIT"; then
7284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7304 if test -n "$ac_ct_NMEDIT"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7306 $as_echo "$ac_ct_NMEDIT" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_NMEDIT" = x; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7321 NMEDIT=$ac_ct_NMEDIT
7324 NMEDIT="$ac_cv_prog_NMEDIT"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_LIPO+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$LIPO"; then
7336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 LIPO=$ac_cv_prog_LIPO
7356 if test -n "$LIPO"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7358 $as_echo "$LIPO" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_LIPO"; then
7368 # Extract the first word of "lipo", so it can be a program name with args.
7369 set dummy lipo; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_LIPO"; then
7376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_LIPO="lipo"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7396 if test -n "$ac_ct_LIPO"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7398 $as_echo "$ac_ct_LIPO" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_LIPO" = x; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7416 LIPO="$ac_cv_prog_LIPO"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}otool; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_OTOOL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$OTOOL"; then
7428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 OTOOL=$ac_cv_prog_OTOOL
7448 if test -n "$OTOOL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7450 $as_echo "$OTOOL" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_OTOOL"; then
7460 # Extract the first word of "otool", so it can be a program name with args.
7461 set dummy otool; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$ac_ct_OTOOL"; then
7468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_OTOOL="otool"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7488 if test -n "$ac_ct_OTOOL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7490 $as_echo "$ac_ct_OTOOL" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_OTOOL" = x; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7508 OTOOL="$ac_cv_prog_OTOOL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_OTOOL64+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$OTOOL64"; then
7520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 OTOOL64=$ac_cv_prog_OTOOL64
7540 if test -n "$OTOOL64"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7542 $as_echo "$OTOOL64" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_OTOOL64"; then
7551 ac_ct_OTOOL64=$OTOOL64
7552 # Extract the first word of "otool64", so it can be a program name with args.
7553 set dummy otool64; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_OTOOL64"; then
7560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_OTOOL64="otool64"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7580 if test -n "$ac_ct_OTOOL64"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7582 $as_echo "$ac_ct_OTOOL64" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_OTOOL64" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7597 OTOOL64=$ac_ct_OTOOL64
7600 OTOOL64="$ac_cv_prog_OTOOL64"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7630 $as_echo_n "checking for -single_module linker flag... " >&6; }
7631 if ${lt_cv_apple_cc_single_mod+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 lt_cv_apple_cc_single_mod=no
7635 if test -z "$LT_MULTI_MODULE"; then
7636 # By default we will add the -single_module flag. You can override
7637 # by either setting the environment variable LT_MULTI_MODULE
7638 # non-empty at configure time, or by adding -multi_module to the
7640 rm -rf libconftest.dylib*
7641 echo "int foo(void){return 1;}" > conftest.c
7642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7643 -dynamiclib -Wl,-single_module conftest.c" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7647 # If there is a non-empty error log, and "single_module"
7648 # appears in it, assume the flag caused a linker warning
7649 if test -s conftest.err && $GREP single_module conftest.err; then
7650 cat conftest.err >&5
7651 # Otherwise, if the output was created with a 0 exit code from
7652 # the compiler, it worked.
7653 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7654 lt_cv_apple_cc_single_mod=yes
7656 cat conftest.err >&5
7658 rm -rf libconftest.dylib*
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7663 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7666 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7667 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7668 $as_echo_n "(cached) " >&6
7670 lt_cv_ld_exported_symbols_list=no
7671 save_LDFLAGS=$LDFLAGS
7672 echo "_main" > conftest.sym
7673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7685 if ac_fn_c_try_link "$LINENO"; then :
7686 lt_cv_ld_exported_symbols_list=yes
7688 lt_cv_ld_exported_symbols_list=no
7690 rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692 LDFLAGS=$save_LDFLAGS
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7696 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7699 $as_echo_n "checking for -force_load linker flag... " >&6; }
7700 if ${lt_cv_ld_force_load+:} false; then :
7701 $as_echo_n "(cached) " >&6
7703 lt_cv_ld_force_load=no
7704 cat > conftest.c << _LT_EOF
7705 int forced_loaded() { return 2;}
7707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7709 echo "$AR cru libconftest.a conftest.o" >&5
7710 $AR cru libconftest.a conftest.o 2>&5
7711 echo "$RANLIB libconftest.a" >&5
7712 $RANLIB libconftest.a 2>&5
7713 cat > conftest.c << _LT_EOF
7714 int main() { return 0;}
7716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7719 if test -s conftest.err && $GREP force_load conftest.err; then
7720 cat conftest.err >&5
7721 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7722 lt_cv_ld_force_load=yes
7724 cat conftest.err >&5
7726 rm -f conftest.err libconftest.a conftest conftest.c
7727 rm -rf conftest.dSYM
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7731 $as_echo "$lt_cv_ld_force_load" >&6; }
7733 rhapsody* | darwin1.[012])
7734 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7736 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7737 darwin*) # darwin 5.x on
7738 # if running on 10.5 or later, the deployment target defaults
7739 # to the OS version, if on x86, and 10.4, the deployment
7740 # target defaults to 10.4. Don't you love it?
7741 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7742 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7743 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7745 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7747 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7751 if test yes = "$lt_cv_apple_cc_single_mod"; then
7752 _lt_dar_single_mod='$single_module'
7754 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7755 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7759 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7760 _lt_dsymutil='~$DSYMUTIL $lib || :'
7767 # func_munge_path_list VARIABLE PATH
7768 # -----------------------------------
7769 # VARIABLE is name of variable containing _space_ separated list of
7770 # directories to be munged by the contents of PATH, which is string
7773 # string "DIR[ DIR]" will be prepended to VARIABLE
7775 # string "DIR[ DIR]" will be appended to VARIABLE
7776 # "DIRP[:DIRP]::[DIRA:]DIRA"
7777 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7778 # "DIRA[ DIRA]" will be appended to VARIABLE
7780 # VARIABLE will be replaced by "DIR[ DIR]"
7781 func_munge_path_list ()
7787 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7790 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7793 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7794 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7797 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7804 $as_echo_n "checking for ANSI C header files... " >&6; }
7805 if ${ac_cv_header_stdc+:} false; then :
7806 $as_echo_n "(cached) " >&6
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7823 if ac_fn_c_try_compile "$LINENO"; then :
7824 ac_cv_header_stdc=yes
7826 ac_cv_header_stdc=no
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 if test $ac_cv_header_stdc = yes; then
7831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 $EGREP "memchr" >/dev/null 2>&1; then :
7841 ac_cv_header_stdc=no
7847 if test $ac_cv_header_stdc = yes; then
7848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7855 $EGREP "free" >/dev/null 2>&1; then :
7858 ac_cv_header_stdc=no
7864 if test $ac_cv_header_stdc = yes; then
7865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7866 if test "$cross_compiling" = yes; then :
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7873 #if ((' ' & 0x0FF) == 0x020)
7874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7877 # define ISLOWER(c) \
7878 (('a' <= (c) && (c) <= 'i') \
7879 || ('j' <= (c) && (c) <= 'r') \
7880 || ('s' <= (c) && (c) <= 'z'))
7881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7889 for (i = 0; i < 256; i++)
7890 if (XOR (islower (i), ISLOWER (i))
7891 || toupper (i) != TOUPPER (i))
7896 if ac_fn_c_try_run "$LINENO"; then :
7899 ac_cv_header_stdc=no
7901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7902 conftest.$ac_objext conftest.beam conftest.$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7908 $as_echo "$ac_cv_header_stdc" >&6; }
7909 if test $ac_cv_header_stdc = yes; then
7911 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7915 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7916 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7917 inttypes.h stdint.h unistd.h
7919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7920 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7923 cat >>confdefs.h <<_ACEOF
7924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 for ac_header in dlfcn.h
7934 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7936 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_DLFCN_H 1
7950 enable_win32_dll=yes
7953 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}as; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_AS+:} false; then :
7960 $as_echo_n "(cached) " >&6
7962 if test -n "$AS"; then
7963 ac_cv_prog_AS="$AS" # Let the user override the test.
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_AS="${ac_tool_prefix}as"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 if test -n "$AS"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7985 $as_echo "$AS" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_AS"; then
7995 # Extract the first word of "as", so it can be a program name with args.
7996 set dummy as; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8000 $as_echo_n "(cached) " >&6
8002 if test -n "$ac_ct_AS"; then
8003 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_ac_ct_AS="as"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8023 if test -n "$ac_ct_AS"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8025 $as_echo "$ac_ct_AS" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_AS" = x; then
8034 case $cross_compiling:$ac_tool_warned in
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8046 if test -n "$ac_tool_prefix"; then
8047 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_DLLTOOL+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 if test -n "$DLLTOOL"; then
8055 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 DLLTOOL=$ac_cv_prog_DLLTOOL
8075 if test -n "$DLLTOOL"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8077 $as_echo "$DLLTOOL" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8085 if test -z "$ac_cv_prog_DLLTOOL"; then
8086 ac_ct_DLLTOOL=$DLLTOOL
8087 # Extract the first word of "dlltool", so it can be a program name with args.
8088 set dummy dlltool; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$ac_ct_DLLTOOL"; then
8095 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8115 if test -n "$ac_ct_DLLTOOL"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8117 $as_echo "$ac_ct_DLLTOOL" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8123 if test "x$ac_ct_DLLTOOL" = x; then
8126 case $cross_compiling:$ac_tool_warned in
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8132 DLLTOOL=$ac_ct_DLLTOOL
8135 DLLTOOL="$ac_cv_prog_DLLTOOL"
8138 if test -n "$ac_tool_prefix"; then
8139 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8140 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_OBJDUMP+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 if test -n "$OBJDUMP"; then
8147 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 OBJDUMP=$ac_cv_prog_OBJDUMP
8167 if test -n "$OBJDUMP"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8169 $as_echo "$OBJDUMP" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8177 if test -z "$ac_cv_prog_OBJDUMP"; then
8178 ac_ct_OBJDUMP=$OBJDUMP
8179 # Extract the first word of "objdump", so it can be a program name with args.
8180 set dummy objdump; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -n "$ac_ct_OBJDUMP"; then
8187 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8207 if test -n "$ac_ct_OBJDUMP"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8209 $as_echo "$ac_ct_OBJDUMP" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8215 if test "x$ac_ct_OBJDUMP" = x; then
8218 case $cross_compiling:$ac_tool_warned in
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222 ac_tool_warned=yes ;;
8224 OBJDUMP=$ac_ct_OBJDUMP
8227 OBJDUMP="$ac_cv_prog_OBJDUMP"
8233 test -z "$AS" && AS=as
8239 test -z "$DLLTOOL" && DLLTOOL=dlltool
8245 test -z "$OBJDUMP" && OBJDUMP=objdump
8257 # Check whether --enable-shared was given.
8258 if test "${enable_shared+set}" = set; then :
8259 enableval=$enable_shared; p=${PACKAGE-default}
8261 yes) enable_shared=yes ;;
8262 no) enable_shared=no ;;
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8267 for pkg in $enableval; do
8269 if test "X$pkg" = "X$p"; then
8288 # Check whether --enable-static was given.
8289 if test "${enable_static+set}" = set; then :
8290 enableval=$enable_static; p=${PACKAGE-default}
8292 yes) enable_static=yes ;;
8293 no) enable_static=no ;;
8296 # Look at the argument we got. We use all the common list separators.
8297 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8298 for pkg in $enableval; do
8300 if test "X$pkg" = "X$p"; then
8320 # Check whether --with-pic was given.
8321 if test "${with_pic+set}" = set; then :
8322 withval=$with_pic; lt_p=${PACKAGE-default}
8324 yes|no) pic_mode=$withval ;;
8327 # Look at the argument we got. We use all the common list separators.
8328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8329 for lt_pkg in $withval; do
8331 if test "X$lt_pkg" = "X$lt_p"; then
8349 # Check whether --enable-fast-install was given.
8350 if test "${enable_fast_install+set}" = set; then :
8351 enableval=$enable_fast_install; p=${PACKAGE-default}
8353 yes) enable_fast_install=yes ;;
8354 no) enable_fast_install=no ;;
8356 enable_fast_install=no
8357 # Look at the argument we got. We use all the common list separators.
8358 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8359 for pkg in $enableval; do
8361 if test "X$pkg" = "X$p"; then
8362 enable_fast_install=yes
8369 enable_fast_install=yes
8379 shared_archive_member_spec=
8380 case $host,$enable_shared in
8381 power*-*-aix[5-9]*,yes)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8383 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8385 # Check whether --with-aix-soname was given.
8386 if test "${with_aix_soname+set}" = set; then :
8387 withval=$with_aix_soname; case $withval in
8391 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8394 lt_cv_with_aix_soname=$with_aix_soname
8396 if ${lt_cv_with_aix_soname+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 lt_cv_with_aix_soname=aix
8402 with_aix_soname=$lt_cv_with_aix_soname
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8406 $as_echo "$with_aix_soname" >&6; }
8407 if test aix != "$with_aix_soname"; then
8408 # For the AIX way of multilib, we name the shared archive member
8409 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8410 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8411 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8412 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8413 if test 64 = "${OBJECT_MODE-32}"; then
8414 shared_archive_member_spec=shr_64
8416 shared_archive_member_spec=shr
8434 # This can be used to rebuild libtool when needed
8435 LIBTOOL_DEPS=$ltmain
8437 # Always use our own libtool.
8438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8469 test -z "$LN_S" && LN_S="ln -s"
8484 if test -n "${ZSH_VERSION+set}"; then
8485 setopt NO_GLOB_SUBST
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8489 $as_echo_n "checking for objdir... " >&6; }
8490 if ${lt_cv_objdir+:} false; then :
8491 $as_echo_n "(cached) " >&6
8493 rm -f .libs 2>/dev/null
8494 mkdir .libs 2>/dev/null
8495 if test -d .libs; then
8498 # MS-DOS does not allow filenames that begin with a dot.
8501 rmdir .libs 2>/dev/null
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8504 $as_echo "$lt_cv_objdir" >&6; }
8505 objdir=$lt_cv_objdir
8511 cat >>confdefs.h <<_ACEOF
8512 #define LT_OBJDIR "$lt_cv_objdir/"
8520 # AIX sometimes has problems with the GCC collect2 program. For some
8521 # reason, if we set the COLLECT_NAMES environment variable, the problems
8522 # vanish in a puff of smoke.
8523 if test set != "${COLLECT_NAMES+set}"; then
8525 export COLLECT_NAMES
8532 can_build_shared=yes
8534 # All known linkers require a '.a' archive for static linking (except MSVC,
8535 # which needs '.lib').
8538 with_gnu_ld=$lt_cv_prog_gnu_ld
8543 # Set sane defaults for various variables
8544 test -z "$CC" && CC=cc
8545 test -z "$LTCC" && LTCC=$CC
8546 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8547 test -z "$LD" && LD=ld
8548 test -z "$ac_objext" && ac_objext=o
8550 func_cc_basename $compiler
8551 cc_basename=$func_cc_basename_result
8554 # Only perform the check for file, if the check method requires it
8555 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8556 case $deplibs_check_method in
8558 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8560 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8561 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8562 $as_echo_n "(cached) " >&6
8566 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8569 lt_save_MAGIC_CMD=$MAGIC_CMD
8570 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8572 for ac_dir in $ac_dummy; do
8574 test -z "$ac_dir" && ac_dir=.
8575 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8576 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8577 if test -n "$file_magic_test_file"; then
8578 case $deplibs_check_method in
8580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8581 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8583 $EGREP "$file_magic_regex" > /dev/null; then
8588 *** Warning: the command libtool uses to detect shared libraries,
8589 *** $file_magic_cmd, produces output that libtool cannot recognize.
8590 *** The result is that libtool may fail to recognize shared libraries
8591 *** as such. This will affect the creation of libtool libraries that
8592 *** depend on shared libraries, but programs linked with such libtool
8593 *** libraries will work regardless of this problem. Nevertheless, you
8594 *** may want to report the problem to your system manager and/or to
8595 *** bug-libtool@gnu.org
8605 MAGIC_CMD=$lt_save_MAGIC_CMD
8610 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8611 if test -n "$MAGIC_CMD"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8613 $as_echo "$MAGIC_CMD" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8623 if test -z "$lt_cv_path_MAGIC_CMD"; then
8624 if test -n "$ac_tool_prefix"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8626 $as_echo_n "checking for file... " >&6; }
8627 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8628 $as_echo_n "(cached) " >&6
8632 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8635 lt_save_MAGIC_CMD=$MAGIC_CMD
8636 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8638 for ac_dir in $ac_dummy; do
8640 test -z "$ac_dir" && ac_dir=.
8641 if test -f "$ac_dir/file"; then
8642 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8643 if test -n "$file_magic_test_file"; then
8644 case $deplibs_check_method in
8646 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8647 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8649 $EGREP "$file_magic_regex" > /dev/null; then
8654 *** Warning: the command libtool uses to detect shared libraries,
8655 *** $file_magic_cmd, produces output that libtool cannot recognize.
8656 *** The result is that libtool may fail to recognize shared libraries
8657 *** as such. This will affect the creation of libtool libraries that
8658 *** depend on shared libraries, but programs linked with such libtool
8659 *** libraries will work regardless of this problem. Nevertheless, you
8660 *** may want to report the problem to your system manager and/or to
8661 *** bug-libtool@gnu.org
8671 MAGIC_CMD=$lt_save_MAGIC_CMD
8676 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8677 if test -n "$MAGIC_CMD"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8679 $as_echo "$MAGIC_CMD" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8695 # Use C for the default configuration in the libtool script
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 # Source file extension for C test sources.
8708 # Object file extension for compiled C test sources.
8712 # Code to be used in simple compile tests
8713 lt_simple_compile_test_code="int some_variable = 0;"
8715 # Code to be used in simple link tests
8716 lt_simple_link_test_code='int main(){return(0);}'
8724 # If no C compiler was specified, use CC.
8727 # If no C compiler flags were specified, use CFLAGS.
8728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8730 # Allow CC to be a program name with arguments.
8733 # Save the default compiler, since it gets overwritten when the other
8734 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8735 compiler_DEFAULT=$CC
8737 # save warnings/boilerplate of simple test code
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8741 _lt_compiler_boilerplate=`cat conftest.err`
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8747 _lt_linker_boilerplate=`cat conftest.err`
8752 ## There is no encapsulation within the following macros, do not change
8753 ## the running order or otherwise move them around unless you know exactly
8754 ## what you are doing...
8755 if test -n "$compiler"; then
8757 lt_prog_compiler_no_builtin_flag=
8759 if test yes = "$GCC"; then
8760 case $cc_basename in
8762 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8764 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8768 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8769 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 lt_cv_prog_compiler_rtti_exceptions=no
8773 ac_outfile=conftest.$ac_objext
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8776 # Insert the option either (1) after the last *FLAGS variable, or
8777 # (2) before a word containing "conftest.", or (3) at the end.
8778 # Note that $ac_compile itself does not contain backslashes and begins
8779 # with a dollar sign (not a hyphen), so the echo should work correctly.
8780 # The option is referenced via a variable to avoid confusing sed.
8781 lt_compile=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>conftest.err)
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s "$ac_outfile"; then
8791 # The compiler can only warn and ignore the option if not recognized
8792 # So say no if there are warnings other than the usual output.
8793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796 lt_cv_prog_compiler_rtti_exceptions=yes
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8803 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8805 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8806 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8818 lt_prog_compiler_wl=
8819 lt_prog_compiler_pic=
8820 lt_prog_compiler_static=
8823 if test yes = "$GCC"; then
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_static='-static'
8829 # All AIX code is PIC.
8830 if test ia64 = "$host_cpu"; then
8831 # AIX 5 now supports IA64 processor
8832 lt_prog_compiler_static='-Bstatic'
8834 lt_prog_compiler_pic='-fPIC'
8840 # see comment about AmigaOS4 .so support
8841 lt_prog_compiler_pic='-fPIC'
8844 # FIXME: we need at least 68020 code to build shared libraries, but
8845 # adding the '-m68020' flag to GCC prevents building anything better,
8847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8853 # PIC is the default for these OSes.
8856 mingw* | cygwin* | pw32* | os2* | cegcc*)
8857 # This hack is so that the source file can tell whether it is being
8858 # built for inclusion in a dll (and should export symbols for example).
8859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8860 # (--disable-auto-import) libraries
8861 lt_prog_compiler_pic='-DDLL_EXPORT'
8864 lt_prog_compiler_static='$wl-static'
8869 darwin* | rhapsody*)
8870 # PIC is the default on this platform
8871 # Common symbols not allowed in MH_DYLIB files
8872 lt_prog_compiler_pic='-fno-common'
8876 # PIC is the default for Haiku.
8877 # The "-static" flag exists, but is broken.
8878 lt_prog_compiler_static=
8882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8884 # sets the default TLS model and affects inlining.
8890 lt_prog_compiler_pic='-fPIC'
8896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8897 # Instead, we relocate shared libraries at runtime.
8901 # Just because we use GCC doesn't mean we suddenly get shared libraries
8902 # on systems that don't support them.
8903 lt_prog_compiler_can_build_shared=no
8908 # QNX uses GNU C++, but need to define -shared option too, otherwise
8910 lt_prog_compiler_pic='-fPIC -shared'
8914 if test -d /usr/nec; then
8915 lt_prog_compiler_pic=-Kconform_pic
8920 lt_prog_compiler_pic='-fPIC'
8924 case $cc_basename in
8925 nvcc*) # Cuda Compiler Driver 2.2
8926 lt_prog_compiler_wl='-Xlinker '
8927 if test -n "$lt_prog_compiler_pic"; then
8928 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8933 # PORTME Check for flag to pass linker flags through the system compiler.
8936 lt_prog_compiler_wl='-Wl,'
8937 if test ia64 = "$host_cpu"; then
8938 # AIX 5 now supports IA64 processor
8939 lt_prog_compiler_static='-Bstatic'
8941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8945 darwin* | rhapsody*)
8946 # PIC is the default on this platform
8947 # Common symbols not allowed in MH_DYLIB files
8948 lt_prog_compiler_pic='-fno-common'
8949 case $cc_basename in
8951 # NAG Fortran compiler
8952 lt_prog_compiler_wl='-Wl,-Wl,,'
8953 lt_prog_compiler_pic='-PIC'
8954 lt_prog_compiler_static='-Bstatic'
8959 mingw* | cygwin* | pw32* | os2* | cegcc*)
8960 # This hack is so that the source file can tell whether it is being
8961 # built for inclusion in a dll (and should export symbols for example).
8962 lt_prog_compiler_pic='-DDLL_EXPORT'
8965 lt_prog_compiler_static='$wl-static'
8970 hpux9* | hpux10* | hpux11*)
8971 lt_prog_compiler_wl='-Wl,'
8972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8979 lt_prog_compiler_pic='+Z'
8982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8983 lt_prog_compiler_static='$wl-a ${wl}archive'
8986 irix5* | irix6* | nonstopux*)
8987 lt_prog_compiler_wl='-Wl,'
8988 # PIC (with -KPIC) is the default.
8989 lt_prog_compiler_static='-non_shared'
8992 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8993 case $cc_basename in
8994 # old Intel for x86_64, which still supported -KPIC.
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-static'
9000 # icc used to be incompatible with GCC.
9001 # ICC 10 doesn't accept -KPIC any more.
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-fPIC'
9005 lt_prog_compiler_static='-static'
9007 # Lahey Fortran 8.1.
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='--shared'
9011 lt_prog_compiler_static='--static'
9014 # NAG Fortran compiler
9015 lt_prog_compiler_wl='-Wl,-Wl,,'
9016 lt_prog_compiler_pic='-PIC'
9017 lt_prog_compiler_static='-Bstatic'
9020 # Fabrice Bellard et al's Tiny C Compiler
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-fPIC'
9023 lt_prog_compiler_static='-static'
9025 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9026 # Portland Group compilers (*not* the Pentium gcc compiler,
9027 # which looks to be a dead project)
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_pic='-fpic'
9030 lt_prog_compiler_static='-Bstatic'
9033 lt_prog_compiler_wl='-Wl,'
9034 # All Alpha code is PIC.
9035 lt_prog_compiler_static='-non_shared'
9037 xl* | bgxl* | bgf* | mpixl*)
9038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9039 lt_prog_compiler_wl='-Wl,'
9040 lt_prog_compiler_pic='-qpic'
9041 lt_prog_compiler_static='-qstaticlink'
9044 case `$CC -V 2>&1 | sed 5q` in
9045 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9047 lt_prog_compiler_pic='-KPIC'
9048 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_wl=''
9051 *Sun\ F* | *Sun*Fortran*)
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9054 lt_prog_compiler_wl='-Qoption ld '
9058 lt_prog_compiler_pic='-KPIC'
9059 lt_prog_compiler_static='-Bstatic'
9060 lt_prog_compiler_wl='-Wl,'
9062 *Intel*\ [CF]*Compiler*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-fPIC'
9065 lt_prog_compiler_static='-static'
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_pic='-fpic'
9070 lt_prog_compiler_static='-Bstatic'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9083 # QNX uses GNU C++, but need to define -shared option too, otherwise
9085 lt_prog_compiler_pic='-fPIC -shared'
9088 osf3* | osf4* | osf5*)
9089 lt_prog_compiler_wl='-Wl,'
9090 # All OSF/1 code is PIC.
9091 lt_prog_compiler_static='-non_shared'
9095 lt_prog_compiler_static='-non_shared'
9099 lt_prog_compiler_pic='-KPIC'
9100 lt_prog_compiler_static='-Bstatic'
9101 case $cc_basename in
9102 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9103 lt_prog_compiler_wl='-Qoption ld ';;
9105 lt_prog_compiler_wl='-Wl,';;
9110 lt_prog_compiler_wl='-Qoption ld '
9111 lt_prog_compiler_pic='-PIC'
9112 lt_prog_compiler_static='-Bstatic'
9115 sysv4 | sysv4.2uw2* | sysv4.3*)
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9122 if test -d /usr/nec; then
9123 lt_prog_compiler_pic='-Kconform_pic'
9124 lt_prog_compiler_static='-Bstatic'
9128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_can_build_shared=no
9140 lt_prog_compiler_pic='-pic'
9141 lt_prog_compiler_static='-Bstatic'
9145 lt_prog_compiler_can_build_shared=no
9151 # For platforms that do not support PIC, -DPIC is meaningless:
9153 lt_prog_compiler_pic=
9156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9161 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9162 if ${lt_cv_prog_compiler_pic+:} false; then :
9163 $as_echo_n "(cached) " >&6
9165 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9168 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9169 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9172 # Check to make sure the PIC flag actually works.
9174 if test -n "$lt_prog_compiler_pic"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9176 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9177 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9178 $as_echo_n "(cached) " >&6
9180 lt_cv_prog_compiler_pic_works=no
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_pic_works=yes
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9211 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9213 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9214 case $lt_prog_compiler_pic in
9216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9219 lt_prog_compiler_pic=
9220 lt_prog_compiler_can_build_shared=no
9236 # Check to make sure the static flag actually works.
9238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9240 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9241 if ${lt_cv_prog_compiler_static_works+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 lt_cv_prog_compiler_static_works=no
9245 save_LDFLAGS=$LDFLAGS
9246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9247 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9249 # The linker can only warn and ignore the option if not recognized
9250 # So say no if there are warnings
9251 if test -s conftest.err; then
9252 # Append any errors to the config.log.
9253 cat conftest.err 1>&5
9254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9256 if diff conftest.exp conftest.er2 >/dev/null; then
9257 lt_cv_prog_compiler_static_works=yes
9260 lt_cv_prog_compiler_static_works=yes
9264 LDFLAGS=$save_LDFLAGS
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9268 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9270 if test yes = "$lt_cv_prog_compiler_static_works"; then
9273 lt_prog_compiler_static=
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9284 if ${lt_cv_prog_compiler_c_o+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 lt_cv_prog_compiler_c_o=no
9288 $RM -r conftest 2>/dev/null
9292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9294 lt_compiler_flag="-o out/conftest2.$ac_objext"
9295 # Insert the option either (1) after the last *FLAGS variable, or
9296 # (2) before a word containing "conftest.", or (3) at the end.
9297 # Note that $ac_compile itself does not contain backslashes and begins
9298 # with a dollar sign (not a hyphen), so the echo should work correctly.
9299 lt_compile=`echo "$ac_compile" | $SED \
9300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302 -e 's:$: $lt_compiler_flag:'`
9303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304 (eval "$lt_compile" 2>out/conftest.err)
9306 cat out/conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9310 # The compiler can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9315 lt_cv_prog_compiler_c_o=yes
9320 # SGI C++ compiler will create directory out/ii_files/ for
9321 # template instantiation
9322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9323 $RM out/* && rmdir out
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9339 if ${lt_cv_prog_compiler_c_o+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 lt_cv_prog_compiler_c_o=no
9343 $RM -r conftest 2>/dev/null
9347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349 lt_compiler_flag="-o out/conftest2.$ac_objext"
9350 # Insert the option either (1) after the last *FLAGS variable, or
9351 # (2) before a word containing "conftest.", or (3) at the end.
9352 # Note that $ac_compile itself does not contain backslashes and begins
9353 # with a dollar sign (not a hyphen), so the echo should work correctly.
9354 lt_compile=`echo "$ac_compile" | $SED \
9355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9357 -e 's:$: $lt_compiler_flag:'`
9358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9359 (eval "$lt_compile" 2>out/conftest.err)
9361 cat out/conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9365 # The compiler can only warn and ignore the option if not recognized
9366 # So say no if there are warnings
9367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9370 lt_cv_prog_compiler_c_o=yes
9375 # SGI C++ compiler will create directory out/ii_files/ for
9376 # template instantiation
9377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9378 $RM out/* && rmdir out
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9390 hard_links=nottested
9391 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9392 # do not overwrite the value of need_locks provided by the user
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9394 $as_echo_n "checking if we can lock with hard links... " >&6; }
9397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9399 ln conftest.a conftest.b 2>&5 || hard_links=no
9400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9402 $as_echo "$hard_links" >&6; }
9403 if test no = "$hard_links"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9405 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9421 allow_undefined_flag=
9422 always_export_symbols=no
9424 archive_expsym_cmds=
9425 compiler_needs_object=no
9426 enable_shared_with_static_runtimes=no
9427 export_dynamic_flag_spec=
9428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9429 hardcode_automatic=no
9431 hardcode_direct_absolute=no
9432 hardcode_libdir_flag_spec=
9433 hardcode_libdir_separator=
9435 hardcode_shlibpath_var=unsupported
9437 link_all_deplibs=unknown
9440 old_archive_from_new_cmds=
9441 old_archive_from_expsyms_cmds=
9442 thread_safe_flag_spec=
9443 whole_archive_flag_spec=
9444 # include_expsyms should be a list of space-separated symbols to be *always*
9445 # included in the symbol list
9447 # exclude_expsyms can be an extended regexp of symbols to exclude
9448 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9449 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9450 # as well as any symbol that contains 'd'.
9451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9453 # platforms (ab)use it in PIC code, but their linkers get confused if
9454 # the symbol is explicitly referenced. Since portable code cannot
9455 # rely on this symbol name, it's probably fine to never include it in
9456 # preloaded symbol tables.
9457 # Exclude shared library initialization/finalization symbols.
9458 extract_expsyms_cmds=
9461 cygwin* | mingw* | pw32* | cegcc*)
9462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9463 # When not using gcc, we currently assume that we are using
9464 # Microsoft Visual C++.
9465 if test yes != "$GCC"; then
9470 # we just hope/assume this is gcc and not c89 (= MSVC++)
9480 # On some targets, GNU ld is compatible enough with the native linker
9481 # that we're better off using the native interface for both.
9482 lt_use_gnu_ld_interface=no
9483 if test yes = "$with_gnu_ld"; then
9486 # The AIX port of GNU ld has always aspired to compatibility
9487 # with the native linker. However, as the warning in the GNU ld
9488 # block says, versions before 2.19.5* couldn't really create working
9489 # shared libraries, regardless of the interface used.
9490 case `$LD -v 2>&1` in
9491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9493 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9495 lt_use_gnu_ld_interface=yes
9500 lt_use_gnu_ld_interface=yes
9505 if test yes = "$lt_use_gnu_ld_interface"; then
9506 # If archive_cmds runs LD, not CC, wlarc should be empty
9509 # Set some defaults for GNU ld with shared library support. These
9510 # are reset later if shared libraries are not supported. Putting them
9511 # here allows them to be overridden if necessary.
9512 runpath_var=LD_RUN_PATH
9513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9514 export_dynamic_flag_spec='$wl--export-dynamic'
9515 # ancient GNU ld didn't support --whole-archive et. al.
9516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9517 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9519 whole_archive_flag_spec=
9521 supports_anon_versioning=no
9522 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9523 *GNU\ gold*) supports_anon_versioning=yes ;;
9524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9527 *\ 2.11.*) ;; # other 2.11 versions
9528 *) supports_anon_versioning=yes ;;
9531 # See if GNU ld supports shared libraries.
9534 # On AIX/PPC, the GNU linker is very broken
9535 if test ia64 != "$host_cpu"; then
9539 *** Warning: the GNU linker, at least up to release 2.19, is reported
9540 *** to be unable to reliably create shared libraries on AIX.
9541 *** Therefore, libtool is disabling shared libraries support. If you
9542 *** really care for shared libraries, you may want to install binutils
9543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9544 *** You will then need to restart the configuration process.
9553 # see comment about AmigaOS4 .so support
9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555 archive_expsym_cmds=''
9558 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)'
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_minus_L=yes
9566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9567 allow_undefined_flag=unsupported
9568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9569 # support --undefined. This deserves some investigation. FIXME
9570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576 cygwin* | mingw* | pw32* | cegcc*)
9577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9578 # as there is no search path for DLLs.
9579 hardcode_libdir_flag_spec='-L$libdir'
9580 export_dynamic_flag_spec='$wl--export-all-symbols'
9581 allow_undefined_flag=unsupported
9582 always_export_symbols=no
9583 enable_shared_with_static_runtimes=yes
9584 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'
9585 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9589 # If the export-symbols file already is a .def file, use it as
9590 # is; otherwise, prepend EXPORTS...
9591 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9592 cp $export_symbols $output_objdir/$soname.def;
9594 echo EXPORTS > $output_objdir/$soname.def;
9595 cat $export_symbols >> $output_objdir/$soname.def;
9597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9605 link_all_deplibs=yes
9609 hardcode_libdir_flag_spec='-L$libdir'
9610 hardcode_minus_L=yes
9611 allow_undefined_flag=unsupported
9613 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9614 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9615 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9616 $ECHO EXPORTS >> $output_objdir/$libname.def~
9617 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9618 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9619 emximp -o $lib $output_objdir/$libname.def'
9620 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9621 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9622 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9623 $ECHO EXPORTS >> $output_objdir/$libname.def~
9625 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9626 prefix_cmds="$prefix_cmds -e 1d";
9628 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9629 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9630 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9631 emximp -o $lib $output_objdir/$libname.def'
9632 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9633 enable_shared_with_static_runtimes=yes
9638 hardcode_shlibpath_var=no
9639 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9640 export_dynamic_flag_spec='$wl-E'
9641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9642 # Instead, shared libraries are loaded at an image base (0x10000000 by
9643 # default) and relocated if they conflict, which is a slow very memory
9644 # consuming and fragmenting process. To avoid this, we pick a random,
9645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9648 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'
9651 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9653 if test linux-dietlibc = "$host_os"; then
9654 case $cc_basename in
9655 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9658 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9659 && test no = "$tmp_diet"
9661 tmp_addflag=' $pic_flag'
9662 tmp_sharedflag='-shared'
9663 case $cc_basename,$host_cpu in
9664 pgcc*) # Portland Group C compiler
9665 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'
9666 tmp_addflag=' $pic_flag'
9668 pgf77* | pgf90* | pgf95* | pgfortran*)
9669 # Portland Group f77 and f90 compilers
9670 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'
9671 tmp_addflag=' $pic_flag -Mnomain' ;;
9672 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9673 tmp_addflag=' -i_dynamic' ;;
9674 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9675 tmp_addflag=' -i_dynamic -nofor_main' ;;
9676 ifc* | ifort*) # Intel Fortran compiler
9677 tmp_addflag=' -nofor_main' ;;
9678 lf95*) # Lahey Fortran 8.1
9679 whole_archive_flag_spec=
9680 tmp_sharedflag='--shared' ;;
9681 nagfor*) # NAGFOR 5.3
9682 tmp_sharedflag='-Wl,-shared' ;;
9683 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9684 tmp_sharedflag='-qmkshrobj'
9686 nvcc*) # Cuda Compiler Driver 2.2
9687 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'
9688 compiler_needs_object=yes
9691 case `$CC -V 2>&1 | sed 5q` in
9692 *Sun\ C*) # Sun C 5.9
9693 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'
9694 compiler_needs_object=yes
9695 tmp_sharedflag='-G' ;;
9696 *Sun\ F*) # Sun Fortran 8.3
9697 tmp_sharedflag='-G' ;;
9699 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701 if test yes = "$supports_anon_versioning"; then
9702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9704 echo "local: *; };" >> $output_objdir/$libname.ver~
9705 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9708 case $cc_basename in
9710 export_dynamic_flag_spec='-rdynamic'
9712 xlf* | bgf* | bgxlf* | mpixlf*)
9713 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9714 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9716 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9717 if test yes = "$supports_anon_versioning"; then
9718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9720 echo "local: *; };" >> $output_objdir/$libname.ver~
9721 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9741 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9746 *** create shared libraries on Solaris systems. Therefore, libtool
9747 *** is disabling shared libraries support. We urge you to upgrade GNU
9748 *** binutils to release 2.9.1 or newer. Another option is to modify
9749 *** your PATH or compiler configuration so that the native linker is
9750 *** used, and then restart.
9753 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9762 case `$LD -v 2>&1` in
9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9767 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9768 *** reliably create shared libraries on SCO systems. Therefore, libtool
9769 *** is disabling shared libraries support. We urge you to upgrade GNU
9770 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9771 *** your PATH or compiler configuration so that the native linker is
9772 *** used, and then restart.
9777 # For security reasons, it is highly recommended that you always
9778 # use absolute paths for naming shared libraries, and exclude the
9779 # DT_RUNPATH tag from executables and libraries. But doing so
9780 # requires that you compile everything twice, which is a pain.
9781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9782 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9793 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_shlibpath_var=no
9800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9802 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9809 if test no = "$ld_shlibs"; then
9811 hardcode_libdir_flag_spec=
9812 export_dynamic_flag_spec=
9813 whole_archive_flag_spec=
9816 # PORTME fill in a description of your system's linker (not GNU ld)
9819 allow_undefined_flag=unsupported
9820 always_export_symbols=yes
9821 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'
9822 # Note: this linker hardcodes the directories in LIBPATH if there
9823 # are no directories specified by -L.
9824 hardcode_minus_L=yes
9825 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9826 # Neither direct hardcoding nor static linking is supported with a
9828 hardcode_direct=unsupported
9833 if test ia64 = "$host_cpu"; then
9834 # On IA64, the linker does run time linking by default, so we don't
9835 # have to do anything special.
9836 aix_use_runtimelinking=no
9837 exp_sym_flag='-Bexport'
9840 # If we're using GNU nm, then we don't want the "-C" option.
9841 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9842 # Without the "-l" option, or with the "-B" option, AIX nm treats
9843 # weak defined symbols like other global defined symbols, whereas
9844 # GNU nm marks them as "W".
9845 # While the 'weak' keyword is ignored in the Export File, we need
9846 # it in the Import File for the 'aix-soname' feature, so we have
9847 # to replace the "-B" option with "-P" for AIX nm.
9848 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9849 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9851 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9853 aix_use_runtimelinking=no
9855 # Test if we are trying to use run time linking or normal
9856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9857 # have runtime linking enabled, and use it for executables.
9858 # For shared libraries, we enable/disable runtime linking
9859 # depending on the kind of the shared library created -
9860 # when "with_aix_soname,aix_use_runtimelinking" is:
9861 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9862 # "aix,yes" lib.so shared, rtl:yes, for executables
9863 # lib.a static archive
9864 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9865 # lib.a(lib.so.V) shared, rtl:no, for executables
9866 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9867 # lib.a(lib.so.V) shared, rtl:no
9868 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9869 # lib.a static archive
9870 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9871 for ld_flag in $LDFLAGS; do
9872 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9873 aix_use_runtimelinking=yes
9877 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9878 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9879 # so we don't have lib.a shared libs to link our executables.
9880 # We have to force runtime linking in this case.
9881 aix_use_runtimelinking=yes
9882 LDFLAGS="$LDFLAGS -Wl,-brtl"
9887 exp_sym_flag='-bexport'
9888 no_entry_flag='-bnoentry'
9891 # When large executables or shared objects are built, AIX ld can
9892 # have problems creating the table of contents. If linking a library
9893 # or program results in "error TOC overflow" add -mminimal-toc to
9894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9899 hardcode_direct_absolute=yes
9900 hardcode_libdir_separator=':'
9901 link_all_deplibs=yes
9902 file_list_spec='$wl-f,'
9903 case $with_aix_soname,$aix_use_runtimelinking in
9904 aix,*) ;; # traditional, no import file
9905 svr4,* | *,yes) # use import file
9906 # The Import File defines what to hardcode.
9908 hardcode_direct_absolute=no
9912 if test yes = "$GCC"; then
9913 case $host_os in aix4.[012]|aix4.[012].*)
9914 # We only want to do this on AIX 4.2 and lower, the check
9915 # below for broken collect2 doesn't work under 4.3+
9916 collect2name=`$CC -print-prog-name=collect2`
9917 if test -f "$collect2name" &&
9918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9920 # We have reworked collect2
9923 # We have old collect2
9924 hardcode_direct=unsupported
9925 # It fails to find uninstalled libraries when the uninstalled
9926 # path is not listed in the libpath. Setting hardcode_minus_L
9927 # to unsupported forces relinking
9928 hardcode_minus_L=yes
9929 hardcode_libdir_flag_spec='-L$libdir'
9930 hardcode_libdir_separator=
9934 shared_flag='-shared'
9935 if test yes = "$aix_use_runtimelinking"; then
9936 shared_flag="$shared_flag "'$wl-G'
9938 # Need to ensure runtime linking is disabled for the traditional
9939 # shared library, or the linker may eventually find shared libraries
9940 # /with/ Import File - we do not want to mix them.
9941 shared_flag_aix='-shared'
9942 shared_flag_svr4='-shared $wl-G'
9945 if test ia64 = "$host_cpu"; then
9946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9947 # chokes on -Wl,-G. The following line is correct:
9950 if test yes = "$aix_use_runtimelinking"; then
9953 shared_flag='$wl-bM:SRE'
9955 shared_flag_aix='$wl-bM:SRE'
9956 shared_flag_svr4='$wl-G'
9960 export_dynamic_flag_spec='$wl-bexpall'
9961 # It seems that -bexpall does not export symbols beginning with
9962 # underscore (_), so it is better to generate a list of symbols to export.
9963 always_export_symbols=yes
9964 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9965 # Warning - without using the other runtime loading flags (-brtl),
9966 # -berok will link without error, but may produce a broken library.
9967 allow_undefined_flag='-berok'
9968 # Determine the default libpath from the value encoded in an
9970 if test set = "${lt_cv_aix_libpath+set}"; then
9971 aix_libpath=$lt_cv_aix_libpath
9973 if ${lt_cv_aix_libpath_+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9987 if ac_fn_c_try_link "$LINENO"; then :
9989 lt_aix_libpath_sed='
9990 /Import File Strings/,/^$/ {
9992 s/^0 *\([^ ]*\) *$/\1/
9996 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9997 # Check for a 64-bit object if we didn't find anything.
9998 if test -z "$lt_cv_aix_libpath_"; then
9999 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 if test -z "$lt_cv_aix_libpath_"; then
10005 lt_cv_aix_libpath_=/usr/lib:/lib
10010 aix_libpath=$lt_cv_aix_libpath_
10013 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10014 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10016 if test ia64 = "$host_cpu"; then
10017 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10018 allow_undefined_flag="-z nodefs"
10019 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"
10021 # Determine the default libpath from the value encoded in an
10022 # empty executable.
10023 if test set = "${lt_cv_aix_libpath+set}"; then
10024 aix_libpath=$lt_cv_aix_libpath
10026 if ${lt_cv_aix_libpath_+:} false; then :
10027 $as_echo_n "(cached) " >&6
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10040 if ac_fn_c_try_link "$LINENO"; then :
10042 lt_aix_libpath_sed='
10043 /Import File Strings/,/^$/ {
10045 s/^0 *\([^ ]*\) *$/\1/
10049 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10050 # Check for a 64-bit object if we didn't find anything.
10051 if test -z "$lt_cv_aix_libpath_"; then
10052 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 if test -z "$lt_cv_aix_libpath_"; then
10058 lt_cv_aix_libpath_=/usr/lib:/lib
10063 aix_libpath=$lt_cv_aix_libpath_
10066 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10067 # Warning - without using the other run time loading flags,
10068 # -berok will link without error, but may produce a broken library.
10069 no_undefined_flag=' $wl-bernotok'
10070 allow_undefined_flag=' $wl-berok'
10071 if test yes = "$with_gnu_ld"; then
10072 # We only use this code for GNU lds that support --whole-archive.
10073 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10075 # Exported symbols can be pulled into shared objects from archives
10076 whole_archive_flag_spec='$convenience'
10078 archive_cmds_need_lc=yes
10079 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10080 # -brtl affects multiple linker settings, -berok does not and is overridden later
10081 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10082 if test svr4 != "$with_aix_soname"; then
10083 # This is similar to how AIX traditionally builds its shared libraries.
10084 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10086 if test aix != "$with_aix_soname"; then
10087 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10089 # used by -dlpreopen to get the symbols
10090 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10092 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10100 # see comment about AmigaOS4 .so support
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10102 archive_expsym_cmds=''
10105 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)'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10113 export_dynamic_flag_spec=-rdynamic
10116 cygwin* | mingw* | pw32* | cegcc*)
10117 # When not using gcc, we currently assume that we are using
10118 # Microsoft Visual C++.
10119 # hardcode_libdir_flag_spec is actually meaningless, as there is
10120 # no search path for DLLs.
10121 case $cc_basename in
10124 hardcode_libdir_flag_spec=' '
10125 allow_undefined_flag=unsupported
10126 always_export_symbols=yes
10128 # Tell ltmain to make .lib files, not .a files.
10130 # Tell ltmain to make .dll files, not .so files.
10132 # FIXME: Setting linknames here is a bad hack.
10133 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10134 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10135 cp "$export_symbols" "$output_objdir/$soname.def";
10136 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10138 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10140 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10142 # The linker will not automatically build a static lib if we build a DLL.
10143 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10144 enable_shared_with_static_runtimes=yes
10145 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10148 old_postinstall_cmds='chmod 644 $oldlib'
10149 postlink_cmds='lt_outputfile="@OUTPUT@"~
10150 lt_tool_outputfile="@TOOL_OUTPUT@"~
10151 case $lt_outputfile in
10154 lt_outputfile=$lt_outputfile.exe
10155 lt_tool_outputfile=$lt_tool_outputfile.exe
10158 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10159 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10160 $RM "$lt_outputfile.manifest";
10164 # Assume MSVC wrapper
10165 hardcode_libdir_flag_spec=' '
10166 allow_undefined_flag=unsupported
10167 # Tell ltmain to make .lib files, not .a files.
10169 # Tell ltmain to make .dll files, not .so files.
10171 # FIXME: Setting linknames here is a bad hack.
10172 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10173 # The linker will automatically build a .lib file if we build a DLL.
10174 old_archive_from_new_cmds='true'
10175 # FIXME: Should let the user specify the lib program.
10176 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10177 enable_shared_with_static_runtimes=yes
10182 darwin* | rhapsody*)
10185 archive_cmds_need_lc=no
10187 hardcode_automatic=yes
10188 hardcode_shlibpath_var=unsupported
10189 if test yes = "$lt_cv_ld_force_load"; then
10190 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\"`'
10193 whole_archive_flag_spec=''
10195 link_all_deplibs=yes
10196 allow_undefined_flag=$_lt_dar_allow_undefined
10197 case $cc_basename in
10198 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10199 *) _lt_dar_can_shared=$GCC ;;
10201 if test yes = "$_lt_dar_can_shared"; then
10202 output_verbose_link_cmd=func_echo_all
10203 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10204 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10205 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"
10206 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"
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_shlibpath_var=no
10220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10221 # support. Future versions do this automatically, but an explicit c++rt0.o
10222 # does not break anything, and helps significantly (at the cost of a little
10225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10226 hardcode_libdir_flag_spec='-R$libdir'
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_direct=yes
10235 hardcode_minus_L=yes
10236 hardcode_shlibpath_var=no
10239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10240 freebsd* | dragonfly*)
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 hardcode_libdir_flag_spec='-R$libdir'
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10248 if test yes = "$GCC"; then
10249 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10251 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10253 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10254 hardcode_libdir_separator=:
10255 hardcode_direct=yes
10257 # hardcode_minus_L: Not really in the search PATH,
10258 # but as the default location of the library.
10259 hardcode_minus_L=yes
10260 export_dynamic_flag_spec='$wl-E'
10264 if test yes,no = "$GCC,$with_gnu_ld"; then
10265 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10269 if test no = "$with_gnu_ld"; then
10270 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10271 hardcode_libdir_separator=:
10272 hardcode_direct=yes
10273 hardcode_direct_absolute=yes
10274 export_dynamic_flag_spec='$wl-E'
10275 # hardcode_minus_L: Not really in the search PATH,
10276 # but as the default location of the library.
10277 hardcode_minus_L=yes
10282 if test yes,no = "$GCC,$with_gnu_ld"; then
10285 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10304 # Older versions of the 11.00 compiler do not understand -b yet
10305 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10307 $as_echo_n "checking if $CC understands -b... " >&6; }
10308 if ${lt_cv_prog_compiler__b+:} false; then :
10309 $as_echo_n "(cached) " >&6
10311 lt_cv_prog_compiler__b=no
10312 save_LDFLAGS=$LDFLAGS
10313 LDFLAGS="$LDFLAGS -b"
10314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10316 # The linker can only warn and ignore the option if not recognized
10317 # So say no if there are warnings
10318 if test -s conftest.err; then
10319 # Append any errors to the config.log.
10320 cat conftest.err 1>&5
10321 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10323 if diff conftest.exp conftest.er2 >/dev/null; then
10324 lt_cv_prog_compiler__b=yes
10327 lt_cv_prog_compiler__b=yes
10331 LDFLAGS=$save_LDFLAGS
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10335 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10337 if test yes = "$lt_cv_prog_compiler__b"; then
10338 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10346 if test no = "$with_gnu_ld"; then
10347 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10348 hardcode_libdir_separator=:
10353 hardcode_shlibpath_var=no
10356 hardcode_direct=yes
10357 hardcode_direct_absolute=yes
10358 export_dynamic_flag_spec='$wl-E'
10360 # hardcode_minus_L: Not really in the search PATH,
10361 # but as the default location of the library.
10362 hardcode_minus_L=yes
10368 irix5* | irix6* | nonstopux*)
10369 if test yes = "$GCC"; then
10370 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'
10371 # Try to use the -exported_symbol ld option, if it does not
10372 # work, assume that -exports_file does not work either and
10373 # implicitly export all symbols.
10374 # This should be the same for all languages, so no per-tag cache variable.
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10376 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10377 if ${lt_cv_irix_exported_symbol+:} false; then :
10378 $as_echo_n "(cached) " >&6
10380 save_LDFLAGS=$LDFLAGS
10381 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 int foo (void) { return 0; }
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 lt_cv_irix_exported_symbol=yes
10389 lt_cv_irix_exported_symbol=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LDFLAGS=$save_LDFLAGS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10396 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10397 if test yes = "$lt_cv_irix_exported_symbol"; then
10398 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'
10401 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'
10402 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'
10404 archive_cmds_need_lc='no'
10405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10406 hardcode_libdir_separator=:
10408 link_all_deplibs=yes
10412 case $cc_basename in
10414 # Fabrice Bellard et al's Tiny C Compiler
10416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10425 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10427 hardcode_libdir_flag_spec='-R$libdir'
10428 hardcode_direct=yes
10429 hardcode_shlibpath_var=no
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_direct=yes
10435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10436 hardcode_libdir_separator=:
10437 hardcode_shlibpath_var=no
10443 openbsd* | bitrig*)
10444 if test -f /usr/libexec/ld.so; then
10445 hardcode_direct=yes
10446 hardcode_shlibpath_var=no
10447 hardcode_direct_absolute=yes
10448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10451 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10452 export_dynamic_flag_spec='$wl-E'
10454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_minus_L=yes
10465 allow_undefined_flag=unsupported
10467 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10468 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10469 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10470 $ECHO EXPORTS >> $output_objdir/$libname.def~
10471 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10472 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10473 emximp -o $lib $output_objdir/$libname.def'
10474 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10475 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10476 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10477 $ECHO EXPORTS >> $output_objdir/$libname.def~
10478 prefix_cmds="$SED"~
10479 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10480 prefix_cmds="$prefix_cmds -e 1d";
10482 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10483 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10484 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10485 emximp -o $lib $output_objdir/$libname.def'
10486 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10487 enable_shared_with_static_runtimes=yes
10491 if test yes = "$GCC"; then
10492 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10493 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'
10495 allow_undefined_flag=' -expect_unresolved \*'
10496 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'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10500 hardcode_libdir_separator=:
10503 osf4* | osf5*) # as osf3* with the addition of -msym flag
10504 if test yes = "$GCC"; then
10505 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10506 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'
10507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 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~
10512 $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'
10514 # Both c and cxx compiler support -rpath directly
10515 hardcode_libdir_flag_spec='-rpath $libdir'
10517 archive_cmds_need_lc='no'
10518 hardcode_libdir_separator=:
10522 no_undefined_flag=' -z defs'
10523 if test yes = "$GCC"; then
10525 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527 $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'
10529 case `$CC -V 2>&1` in
10532 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10538 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_shlibpath_var=no
10547 solaris2.[0-5] | solaris2.[0-5].*) ;;
10549 # The compiler driver will combine and reorder linker options,
10550 # but understands '-z linker_flag'. GCC discards it without '$wl',
10551 # but is careful enough not to reorder.
10552 # Supported since Solaris 2.6 (maybe 2.5.1?)
10553 if test yes = "$GCC"; then
10554 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10560 link_all_deplibs=yes
10564 if test sequent = "$host_vendor"; then
10565 # Use $CC to link under sequent, because it throws in some extra .o
10566 # files that make .init and .fini sections work.
10567 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_direct=yes
10573 hardcode_minus_L=yes
10574 hardcode_shlibpath_var=no
10578 case $host_vendor in
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes # is this really true???
10584 ## LD is ld it makes a PLAMLIB
10585 ## CC just makes a GrossModule.
10586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10587 reload_cmds='$CC -r -o $output$reload_objs'
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10595 runpath_var='LD_RUN_PATH'
10596 hardcode_shlibpath_var=no
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_shlibpath_var=no
10602 export_dynamic_flag_spec='-Bexport'
10606 if test -d /usr/nec; then
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 runpath_var=LD_RUN_PATH
10610 hardcode_runpath_var=yes
10615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10616 no_undefined_flag='$wl-z,text'
10617 archive_cmds_need_lc=no
10618 hardcode_shlibpath_var=no
10619 runpath_var='LD_RUN_PATH'
10621 if test yes = "$GCC"; then
10622 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 sysv5* | sco3.2v5* | sco5v6*)
10631 # Note: We CANNOT use -z defs as we might desire, because we do not
10632 # link with -lc, and that would cause any symbols used from libc to
10633 # always be unresolved, which means just about no library would
10634 # ever link correctly. If we're not using GNU ld we use -z text
10635 # though, which does catch some bad symbols but isn't as heavy-handed
10637 no_undefined_flag='$wl-z,text'
10638 allow_undefined_flag='$wl-z,nodefs'
10639 archive_cmds_need_lc=no
10640 hardcode_shlibpath_var=no
10641 hardcode_libdir_flag_spec='$wl-R,$libdir'
10642 hardcode_libdir_separator=':'
10643 link_all_deplibs=yes
10644 export_dynamic_flag_spec='$wl-Bexport'
10645 runpath_var='LD_RUN_PATH'
10647 if test yes = "$GCC"; then
10648 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10667 if test sni = "$host_vendor"; then
10669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10670 export_dynamic_flag_spec='$wl-Blargedynsym'
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10677 $as_echo "$ld_shlibs" >&6; }
10678 test no = "$ld_shlibs" && can_build_shared=no
10680 with_gnu_ld=$with_gnu_ld
10697 # Do we need to explicitly link libc?
10699 case "x$archive_cmds_need_lc" in
10701 # Assume -lc should be added
10702 archive_cmds_need_lc=yes
10704 if test yes,yes = "$GCC,$enable_shared"; then
10705 case $archive_cmds in
10707 # FIXME: we may have to deal with multi-command sequences.
10710 # Test whether the compiler implicitly links with -lc since on some
10711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10712 # to ld, don't add -lc before -lgcc.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10715 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10716 $as_echo_n "(cached) " >&6
10719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10722 (eval $ac_compile) 2>&5
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; } 2>conftest.err; then
10728 libobjs=conftest.$ac_objext
10730 wl=$lt_prog_compiler_wl
10731 pic_flag=$lt_prog_compiler_pic
10737 lt_save_allow_undefined_flag=$allow_undefined_flag
10738 allow_undefined_flag=
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; }
10745 lt_cv_archive_cmds_need_lc=no
10747 lt_cv_archive_cmds_need_lc=yes
10749 allow_undefined_flag=$lt_save_allow_undefined_flag
10751 cat conftest.err 1>&5
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10919 if test yes = "$GCC"; then
10921 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10922 *) lt_awk_arg='/^libraries:/' ;;
10925 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10926 *) lt_sed_strip_eq='s|=/|/|g' ;;
10928 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10929 case $lt_search_path_spec in
10931 # if the path contains ";" then we assume it to be the separator
10932 # otherwise default to the standard path separator (i.e. ":") - it is
10933 # assumed that no part of a normal pathname contains ";" but that should
10934 # okay in the real world where ";" in dirpaths is itself problematic.
10935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10941 # Ok, now we have the path, separated by spaces, we can step through it
10942 # and add multilib dir if necessary...
10943 lt_tmp_lt_search_path_spec=
10944 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10945 # ...but if some path component already ends with the multilib dir we assume
10946 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10947 case "$lt_multi_os_dir; $lt_search_path_spec " in
10948 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10952 for lt_sys_path in $lt_search_path_spec; do
10953 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10955 elif test -n "$lt_multi_os_dir"; then
10956 test -d "$lt_sys_path" && \
10957 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10960 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10961 BEGIN {RS = " "; FS = "/|\n";} {
10964 for (lt_i = NF; lt_i > 0; lt_i--) {
10965 if ($lt_i != "" && $lt_i != ".") {
10966 if ($lt_i == "..") {
10969 if (lt_count == 0) {
10970 lt_foo = "/" $lt_i lt_foo;
10977 if (lt_foo != "") { lt_freq[lt_foo]++; }
10978 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10980 # AWK program above erroneously prepends '/' to C:/dos/paths
10983 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10984 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10986 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10990 library_names_spec=
10991 libname_spec='lib$name'
10995 postuninstall_cmds=
10999 shlibpath_overrides_runpath=unknown
11001 dynamic_linker="$host_os ld.so"
11002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11003 need_lib_prefix=unknown
11004 hardcode_into_libs=no
11006 # when you set need_version to no, make sure it does not cause -set_version
11007 # flags to be left without arguments
11008 need_version=unknown
11014 version_type=linux # correct to gnu/linux during the next big refactor
11015 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11016 shlibpath_var=LIBPATH
11018 # AIX 3 has no versioning support, so we append a major version to the name.
11019 soname_spec='$libname$release$shared_ext$major'
11023 version_type=linux # correct to gnu/linux during the next big refactor
11026 hardcode_into_libs=yes
11027 if test ia64 = "$host_cpu"; then
11028 # AIX 5 supports IA64
11029 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11030 shlibpath_var=LD_LIBRARY_PATH
11032 # With GCC up to 2.95.x, collect2 would create an import file
11033 # for dependence libraries. The import file would start with
11034 # the line '#! .'. This would cause the generated library to
11035 # depend on '.', always an invalid library. This was fixed in
11036 # development snapshots of GCC prior to 3.0.
11038 aix4 | aix4.[01] | aix4.[01].*)
11039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11041 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11044 can_build_shared=no
11048 # Using Import Files as archive members, it is possible to support
11049 # filename-based versioning of shared library archives on AIX. While
11050 # this would work for both with and without runtime linking, it will
11051 # prevent static linking of such archives. So we do filename-based
11052 # shared library versioning with .so extension only, which is used
11053 # when both runtime linking and shared linking is enabled.
11054 # Unfortunately, runtime linking may impact performance, so we do
11055 # not want this to be the default eventually. Also, we use the
11056 # versioned .so libs for executables only if there is the -brtl
11057 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11058 # To allow for filename-based versioning support, we need to create
11059 # libNAME.so.V as an archive file, containing:
11060 # *) an Import File, referring to the versioned filename of the
11061 # archive as well as the shared archive member, telling the
11062 # bitwidth (32 or 64) of that shared object, and providing the
11063 # list of exported symbols of that shared object, eventually
11064 # decorated with the 'weak' keyword
11065 # *) the shared object with the F_LOADONLY flag set, to really avoid
11066 # it being seen by the linker.
11067 # At run time we better use the real file rather than another symlink,
11068 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11070 case $with_aix_soname,$aix_use_runtimelinking in
11071 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11072 # soname into executable. Probably we can add versioning support to
11073 # collect2, so additional links can be useful in future.
11074 aix,yes) # traditional libtool
11075 dynamic_linker='AIX unversionable lib.so'
11076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11077 # instead of lib<name>.a to let people know that these are not
11078 # typical AIX shared libraries.
11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081 aix,no) # traditional AIX only
11082 dynamic_linker='AIX lib.a(lib.so.V)'
11083 # We preserve .a as extension for shared libraries through AIX4.2
11084 # and later when we are not doing run time linking.
11085 library_names_spec='$libname$release.a $libname.a'
11086 soname_spec='$libname$release$shared_ext$major'
11088 svr4,*) # full svr4 only
11089 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11090 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11091 # We do not specify a path in Import Files, so LIBPATH fires.
11092 shlibpath_overrides_runpath=yes
11094 *,yes) # both, prefer svr4
11095 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11096 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11097 # unpreferred sharedlib libNAME.a needs extra handling
11098 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11099 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11100 # We do not specify a path in Import Files, so LIBPATH fires.
11101 shlibpath_overrides_runpath=yes
11103 *,no) # both, prefer aix
11104 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11105 library_names_spec='$libname$release.a $libname.a'
11106 soname_spec='$libname$release$shared_ext$major'
11107 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11108 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11109 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11112 shlibpath_var=LIBPATH
11119 # Since July 2007 AmigaOS4 officially supports .so libraries.
11120 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 library_names_spec='$libname.ixlibrary $libname.a'
11125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11126 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11132 library_names_spec='$libname$shared_ext'
11133 dynamic_linker="$host_os ld.so"
11134 shlibpath_var=LIBRARY_PATH
11138 version_type=linux # correct to gnu/linux during the next big refactor
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 soname_spec='$libname$release$shared_ext$major'
11142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11146 # the default ld.so.conf also contains /usr/contrib/lib and
11147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11148 # libtool to hard-code these into programs
11151 cygwin* | mingw* | pw32* | cegcc*)
11152 version_type=windows
11157 case $GCC,$cc_basename in
11160 library_names_spec='$libname.dll.a'
11161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11162 postinstall_cmds='base_file=`basename \$file`~
11163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11164 dldir=$destdir/`dirname \$dlpath`~
11165 test -d \$dldir || mkdir -p \$dldir~
11166 $install_prog $dir/$dlname \$dldir/$dlname~
11167 chmod a+x \$dldir/$dlname~
11168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11169 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11172 dlpath=$dir/\$dldll~
11174 shlibpath_overrides_runpath=yes
11178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11179 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11184 # MinGW DLLs use traditional 'lib' prefix
11185 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11188 # pw32 DLLs use 'pw' prefix rather than 'lib'
11189 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11192 dynamic_linker='Win32 ld.exe'
11197 libname_spec='$name'
11198 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11199 library_names_spec='$libname.dll.lib'
11203 sys_lib_search_path_spec=
11206 for lt_path in $LIB
11209 # Let DOS variable expansion print the short 8.3 style file name.
11210 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11211 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11214 # Convert to MSYS style.
11215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11218 # Convert to unix form, then to dos form, then back to unix form
11219 # but this time dos style (no spaces!) so that the unix form looks
11220 # like /cygdrive/c/PROGRA~1:/cygdr...
11221 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11222 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11223 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11226 sys_lib_search_path_spec=$LIB
11227 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11228 # It is most probably a Windows format PATH.
11229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11233 # FIXME: find the short name or the path components, as spaces are
11234 # common. (e.g. "Program Files" -> "PROGRA~1")
11238 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11239 postinstall_cmds='base_file=`basename \$file`~
11240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11241 dldir=$destdir/`dirname \$dlpath`~
11242 test -d \$dldir || mkdir -p \$dldir~
11243 $install_prog $dir/$dlname \$dldir/$dlname'
11244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11245 dlpath=$dir/\$dldll~
11247 shlibpath_overrides_runpath=yes
11248 dynamic_linker='Win32 link.exe'
11252 # Assume MSVC wrapper
11253 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11254 dynamic_linker='Win32 ld.exe'
11257 # FIXME: first we should search . and the directory the executable is in
11261 darwin* | rhapsody*)
11262 dynamic_linker="$host_os dyld"
11263 version_type=darwin
11266 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11267 soname_spec='$libname$release$major$shared_ext'
11268 shlibpath_overrides_runpath=yes
11269 shlibpath_var=DYLD_LIBRARY_PATH
11270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11277 version_type=linux # correct to gnu/linux during the next big refactor
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11285 freebsd* | dragonfly*)
11286 # DragonFly does not have aout. When/if they implement a new
11287 # versioning mechanism, adjust this.
11288 if test -x /usr/bin/objformat; then
11289 objformat=`/usr/bin/objformat`
11292 freebsd[23].*) objformat=aout ;;
11293 *) objformat=elf ;;
11296 version_type=freebsd-$objformat
11297 case $version_type in
11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300 soname_spec='$libname$release$shared_ext$major'
11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11309 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes
11314 freebsd3.[01]* | freebsdelf3.[01]*)
11315 shlibpath_overrides_runpath=yes
11316 hardcode_into_libs=yes
11318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11323 *) # from 4.6 on, and DragonFly
11324 shlibpath_overrides_runpath=yes
11325 hardcode_into_libs=yes
11331 version_type=linux # correct to gnu/linux during the next big refactor
11334 dynamic_linker="$host_os runtime_loader"
11335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336 soname_spec='$libname$release$shared_ext$major'
11337 shlibpath_var=LIBRARY_PATH
11338 shlibpath_overrides_runpath=no
11339 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11340 hardcode_into_libs=yes
11343 hpux9* | hpux10* | hpux11*)
11344 # Give a soname corresponding to the major version so that dld.sl refuses to
11345 # link against other versions.
11352 hardcode_into_libs=yes
11353 dynamic_linker="$host_os dld.so"
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357 soname_spec='$libname$release$shared_ext$major'
11358 if test 32 = "$HPUX_IA64_MODE"; then
11359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11360 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11363 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11368 hardcode_into_libs=yes
11369 dynamic_linker="$host_os dld.sl"
11370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11373 soname_spec='$libname$release$shared_ext$major'
11374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379 dynamic_linker="$host_os dld.sl"
11380 shlibpath_var=SHLIB_PATH
11381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383 soname_spec='$libname$release$shared_ext$major'
11386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11387 postinstall_cmds='chmod 555 $lib'
11388 # or fails outright, so override atomically:
11389 install_override_mode=555
11393 version_type=linux # correct to gnu/linux during the next big refactor
11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397 soname_spec='$libname$release$shared_ext$major'
11398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11399 shlibpath_var=LD_LIBRARY_PATH
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11404 irix5* | irix6* | nonstopux*)
11406 nonstopux*) version_type=nonstopux ;;
11408 if test yes = "$lt_cv_prog_gnu_ld"; then
11409 version_type=linux # correct to gnu/linux during the next big refactor
11416 soname_spec='$libname$release$shared_ext$major'
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11419 irix5* | nonstopux*)
11420 libsuff= shlibsuff=
11423 case $LD in # libtool.m4 will add one of these switches to LD
11424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11425 libsuff= shlibsuff= libmagic=32-bit;;
11426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11427 libsuff=32 shlibsuff=N32 libmagic=N32;;
11428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11430 *) libsuff= shlibsuff= libmagic=never-match;;
11434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11435 shlibpath_overrides_runpath=no
11436 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11437 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11438 hardcode_into_libs=yes
11441 # No shared lib support for Linux oldld, aout, or coff.
11442 linux*oldld* | linux*aout* | linux*coff*)
11447 version_type=none # Android doesn't support versioned libraries.
11450 library_names_spec='$libname$release$shared_ext'
11451 soname_spec='$libname$release$shared_ext'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11456 # This implies no fast_install, which is unacceptable.
11457 # Some rework will be needed to allow for fast_install
11458 # before this can be enabled.
11459 hardcode_into_libs=yes
11461 dynamic_linker='Android linker'
11462 # Don't embed -rpath directories since the linker doesn't support them.
11463 hardcode_libdir_flag_spec='-L$libdir'
11466 # This must be glibc/ELF.
11467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11468 version_type=linux # correct to gnu/linux during the next big refactor
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472 soname_spec='$libname$release$shared_ext$major'
11473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=no
11477 # Some binutils ld are patched to set DT_RUNPATH
11478 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11479 $as_echo_n "(cached) " >&6
11481 lt_cv_shlibpath_overrides_runpath=no
11482 save_LDFLAGS=$LDFLAGS
11483 save_libdir=$libdir
11484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11497 if ac_fn_c_try_link "$LINENO"; then :
11498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11499 lt_cv_shlibpath_overrides_runpath=yes
11502 rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
11504 LDFLAGS=$save_LDFLAGS
11505 libdir=$save_libdir
11509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11511 # This implies no fast_install, which is unacceptable.
11512 # Some rework will be needed to allow for fast_install
11513 # before this can be enabled.
11514 hardcode_into_libs=yes
11516 # Ideally, we could use ldconfig to report *all* directores which are
11517 # searched for libraries, however this is still not possible. Aside from not
11518 # being certain /sbin/ldconfig is available, command
11519 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11520 # even though it is searched at run-time. Try to do the best guess by
11521 # appending ld.so.conf contents (and includes) to the search path.
11522 if test -f /etc/ld.so.conf; then
11523 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' ' '`
11524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11527 # We used to test for /lib/ld.so.1 and disable shared libraries on
11528 # powerpc, because MkLinux only supported shared libraries with the
11529 # GNU dynamic linker. Since this was broken with cross compilers,
11530 # most powerpc-linux boxes support dynamic linking these days and
11531 # people can always --disable-shared, the test was removed, and we
11532 # assume the GNU/Linux dynamic linker is in use.
11533 dynamic_linker='GNU/Linux ld.so'
11540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11543 dynamic_linker='NetBSD (a.out) ld.so'
11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11546 soname_spec='$libname$release$shared_ext$major'
11547 dynamic_linker='NetBSD ld.elf_so'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=yes
11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11566 soname_spec='$libname$release$shared_ext$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=no
11569 hardcode_into_libs=yes
11570 dynamic_linker='ldqnx.so'
11573 openbsd* | bitrig*)
11575 sys_lib_dlsearch_path_spec=/usr/lib
11577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11589 libname_spec='$name'
11590 version_type=windows
11594 # OS/2 can only load a DLL with a base name of 8 characters or less.
11595 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11596 v=$($ECHO $release$versuffix | tr -d .-);
11597 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11598 $ECHO $n$v`$shared_ext'
11599 library_names_spec='${libname}_dll.$libext'
11600 dynamic_linker='OS/2 ld.exe'
11601 shlibpath_var=BEGINLIBPATH
11602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11604 postinstall_cmds='base_file=`basename \$file`~
11605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11606 dldir=$destdir/`dirname \$dlpath`~
11607 test -d \$dldir || mkdir -p \$dldir~
11608 $install_prog $dir/$dlname \$dldir/$dlname~
11609 chmod a+x \$dldir/$dlname~
11610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11614 dlpath=$dir/\$dldll~
11618 osf3* | osf4* | osf5*)
11622 soname_spec='$libname$release$shared_ext$major'
11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634 version_type=linux # correct to gnu/linux during the next big refactor
11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638 soname_spec='$libname$release$shared_ext$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=yes
11641 hardcode_into_libs=yes
11642 # ldd complains unless libraries are executable
11643 postinstall_cmds='chmod +x $lib'
11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11649 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11652 if test yes = "$with_gnu_ld"; then
11659 version_type=linux # correct to gnu/linux during the next big refactor
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 case $host_vendor in
11665 shlibpath_overrides_runpath=no
11667 runpath_var=LD_RUN_PATH
11675 shlibpath_overrides_runpath=no
11676 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11682 if test -d /usr/nec; then
11683 version_type=linux # correct to gnu/linux during the next big refactor
11684 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11685 soname_spec='$libname$shared_ext.$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11698 hardcode_into_libs=yes
11699 if test yes = "$with_gnu_ld"; then
11700 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11702 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11705 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11709 sys_lib_dlsearch_path_spec='/usr/lib'
11713 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11714 version_type=linux # correct to gnu/linux during the next big refactor
11717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=no
11720 hardcode_into_libs=yes
11724 version_type=linux # correct to gnu/linux during the next big refactor
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 soname_spec='$libname$release$shared_ext$major'
11727 shlibpath_var=LD_LIBRARY_PATH
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11735 $as_echo "$dynamic_linker" >&6; }
11736 test no = "$dynamic_linker" && can_build_shared=no
11738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11739 if test yes = "$GCC"; then
11740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11743 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11744 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11747 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11748 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11751 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11752 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11754 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11755 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11757 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11758 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11859 if test -n "$hardcode_libdir_flag_spec" ||
11860 test -n "$runpath_var" ||
11861 test yes = "$hardcode_automatic"; then
11863 # We can hardcode non-existent directories.
11864 if test no != "$hardcode_direct" &&
11865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11866 # have to relink, otherwise we might link with an installed library
11867 # when we should be linking with a yet-to-be-installed one
11868 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11869 test no != "$hardcode_minus_L"; then
11870 # Linking always hardcodes the temporary library directory.
11871 hardcode_action=relink
11873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11874 hardcode_action=immediate
11877 # We cannot hardcode anything, or else we can only hardcode existing
11879 hardcode_action=unsupported
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11882 $as_echo "$hardcode_action" >&6; }
11884 if test relink = "$hardcode_action" ||
11885 test yes = "$inherit_rpath"; then
11886 # Fast installation is not supported
11887 enable_fast_install=no
11888 elif test yes = "$shlibpath_overrides_runpath" ||
11889 test no = "$enable_shared"; then
11890 # Fast installation is not necessary
11891 enable_fast_install=needless
11899 if test yes != "$enable_dlopen"; then
11900 enable_dlopen=unknown
11901 enable_dlopen_self=unknown
11902 enable_dlopen_self_static=unknown
11909 lt_cv_dlopen=load_add_on
11911 lt_cv_dlopen_self=yes
11914 mingw* | pw32* | cegcc*)
11915 lt_cv_dlopen=LoadLibrary
11920 lt_cv_dlopen=dlopen
11925 # if libdl is installed we need to link against it
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11928 if ${ac_cv_lib_dl_dlopen+:} false; then :
11929 $as_echo_n "(cached) " >&6
11931 ac_check_lib_save_LIBS=$LIBS
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 ac_cv_lib_dl_dlopen=yes
11954 ac_cv_lib_dl_dlopen=no
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11968 lt_cv_dlopen_self=yes
11975 # Don't try to run any link tests for TPF. We know it's impossible
11976 # because TPF is a cross-compiler, and we know how we open DSOs.
11977 lt_cv_dlopen=dlopen
11979 lt_cv_dlopen_self=no
11983 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11984 if test "x$ac_cv_func_shl_load" = xyes; then :
11985 lt_cv_dlopen=shl_load
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11989 if ${ac_cv_lib_dld_shl_load+:} false; then :
11990 $as_echo_n "(cached) " >&6
11992 ac_check_lib_save_LIBS=$LIBS
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12007 return shl_load ();
12012 if ac_fn_c_try_link "$LINENO"; then :
12013 ac_cv_lib_dld_shl_load=yes
12015 ac_cv_lib_dld_shl_load=no
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_check_lib_save_LIBS
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12023 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12024 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12026 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12027 if test "x$ac_cv_func_dlopen" = xyes; then :
12028 lt_cv_dlopen=dlopen
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12032 if ${ac_cv_lib_dl_dlopen+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 ac_check_lib_save_LIBS=$LIBS
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12055 if ac_fn_c_try_link "$LINENO"; then :
12056 ac_cv_lib_dl_dlopen=yes
12058 ac_cv_lib_dl_dlopen=no
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12066 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12071 if ${ac_cv_lib_svld_dlopen+:} false; then :
12072 $as_echo_n "(cached) " >&6
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-lsvld $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_svld_dlopen=yes
12097 ac_cv_lib_svld_dlopen=no
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12105 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12110 if ${ac_cv_lib_dld_dld_link+:} false; then :
12111 $as_echo_n "(cached) " >&6
12113 ac_check_lib_save_LIBS=$LIBS
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12128 return dld_link ();
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_dld_dld_link=yes
12136 ac_cv_lib_dld_dld_link=no
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12144 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12145 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12166 if test no = "$lt_cv_dlopen"; then
12172 case $lt_cv_dlopen in
12174 save_CPPFLAGS=$CPPFLAGS
12175 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12177 save_LDFLAGS=$LDFLAGS
12178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12181 LIBS="$lt_cv_dlopen_libs $LIBS"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12185 if ${lt_cv_dlopen_self+:} false; then :
12186 $as_echo_n "(cached) " >&6
12188 if test yes = "$cross_compiling"; then :
12189 lt_cv_dlopen_self=cross
12191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12192 lt_status=$lt_dlunknown
12193 cat > conftest.$ac_ext <<_LT_EOF
12194 #line $LINENO "configure"
12195 #include "confdefs.h"
12204 # define LT_DLGLOBAL RTLD_GLOBAL
12207 # define LT_DLGLOBAL DL_GLOBAL
12209 # define LT_DLGLOBAL 0
12213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12214 find out it does not work in some platform. */
12215 #ifndef LT_DLLAZY_OR_NOW
12217 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12220 # define LT_DLLAZY_OR_NOW DL_LAZY
12223 # define LT_DLLAZY_OR_NOW RTLD_NOW
12226 # define LT_DLLAZY_OR_NOW DL_NOW
12228 # define LT_DLLAZY_OR_NOW 0
12235 /* When -fvisibility=hidden is used, assume the code has been annotated
12236 correspondingly for the symbols needed. */
12237 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12238 int fnord () __attribute__((visibility("default")));
12241 int fnord () { return 42; }
12244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12245 int status = $lt_dlunknown;
12249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12252 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12253 else puts (dlerror ());
12255 /* dlclose (self); */
12263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12264 (eval $ac_link) 2>&5
12266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12268 (./conftest; exit; ) >&5 2>/dev/null
12270 case x$lt_status in
12271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12276 # compilation failed
12277 lt_cv_dlopen_self=no
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12285 $as_echo "$lt_cv_dlopen_self" >&6; }
12287 if test yes = "$lt_cv_dlopen_self"; then
12288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12290 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12291 if ${lt_cv_dlopen_self_static+:} false; then :
12292 $as_echo_n "(cached) " >&6
12294 if test yes = "$cross_compiling"; then :
12295 lt_cv_dlopen_self_static=cross
12297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12298 lt_status=$lt_dlunknown
12299 cat > conftest.$ac_ext <<_LT_EOF
12300 #line $LINENO "configure"
12301 #include "confdefs.h"
12310 # define LT_DLGLOBAL RTLD_GLOBAL
12313 # define LT_DLGLOBAL DL_GLOBAL
12315 # define LT_DLGLOBAL 0
12319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12320 find out it does not work in some platform. */
12321 #ifndef LT_DLLAZY_OR_NOW
12323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12326 # define LT_DLLAZY_OR_NOW DL_LAZY
12329 # define LT_DLLAZY_OR_NOW RTLD_NOW
12332 # define LT_DLLAZY_OR_NOW DL_NOW
12334 # define LT_DLLAZY_OR_NOW 0
12341 /* When -fvisibility=hidden is used, assume the code has been annotated
12342 correspondingly for the symbols needed. */
12343 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12344 int fnord () __attribute__((visibility("default")));
12347 int fnord () { return 42; }
12350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351 int status = $lt_dlunknown;
12355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12359 else puts (dlerror ());
12361 /* dlclose (self); */
12369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12370 (eval $ac_link) 2>&5
12372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12373 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12374 (./conftest; exit; ) >&5 2>/dev/null
12376 case x$lt_status in
12377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12379 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12382 # compilation failed
12383 lt_cv_dlopen_self_static=no
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12394 CPPFLAGS=$save_CPPFLAGS
12395 LDFLAGS=$save_LDFLAGS
12400 case $lt_cv_dlopen_self in
12401 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12402 *) enable_dlopen_self=unknown ;;
12405 case $lt_cv_dlopen_self_static in
12406 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12407 *) enable_dlopen_self_static=unknown ;;
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12437 # FIXME - insert some real tests, host_os isn't really good enough
12440 if test -n "$STRIP"; then
12441 striplib="$STRIP -x"
12442 old_striplib="$STRIP -S"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444 $as_echo "yes" >&6; }
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12468 # Report what library types will actually be built
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12472 $as_echo "$can_build_shared" >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12475 $as_echo_n "checking whether to build shared libraries... " >&6; }
12476 test no = "$can_build_shared" && enable_shared=no
12478 # On AIX, shared libraries and static libraries use the same namespace, and
12479 # are all built from PIC.
12482 test yes = "$enable_shared" && enable_static=no
12483 if test -n "$RANLIB"; then
12484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12485 postinstall_cmds='$RANLIB $lib'
12490 if test ia64 != "$host_cpu"; then
12491 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12492 yes,aix,yes) ;; # shared object as lib.so file only
12493 yes,svr4,*) ;; # shared object as lib.so archive member only
12494 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12500 $as_echo "$enable_shared" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12503 $as_echo_n "checking whether to build static libraries... " >&6; }
12504 # Make sure either enable_shared or enable_static is yes.
12505 test yes = "$enable_shared" || enable_static=yes
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12507 $as_echo "$enable_static" >&6; }
12514 ac_cpp='$CPP $CPPFLAGS'
12515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535 ac_config_commands="$ac_config_commands libtool"
12540 # Only expand once:
12545 # Some awks crash when confronted with pnglibconf.dfa, do a test run now
12546 # to make sure this doesn't happen
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
12548 $as_echo_n "checking that AWK works... " >&6; }
12549 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
12550 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
12551 ${srcdir}/pngusr.dfa 1>&2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12554 $as_echo "ok" >&6; }
12556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12558 as_fn_error 1 "failed
12559 See \`config.log' for more details" "$LINENO" 5; }
12562 # This is a remnant of the old cc -E validation, where it may have been
12563 # necessary to use a different preprocessor for .dfn files
12567 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12568 # checks the compiler with a program that generates a warning), add the
12569 # following option to deal with this
12571 # Check whether --enable-werror was given.
12572 if test "${enable_werror+set}" = set; then :
12573 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12574 if test "$enable_werror" != "no"; then
12575 sav_CFLAGS="$CFLAGS"
12576 CFLAGS="$enable_werror $CFLAGS"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12578 $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 int main(int argc, char **argv){
12583 return argv[argc-1][0];
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589 PNG_COPTS="$PNG_COPTS $enable_werror"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 CFLAGS="$sav_CFLAGS"
12600 # Checks for header files.
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12602 $as_echo_n "checking for ANSI C header files... " >&6; }
12603 if ${ac_cv_header_stdc+:} false; then :
12604 $as_echo_n "(cached) " >&6
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include <stdlib.h>
12609 #include <stdarg.h>
12610 #include <string.h>
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622 ac_cv_header_stdc=yes
12624 ac_cv_header_stdc=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 if test $ac_cv_header_stdc = yes; then
12629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <string.h>
12635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12636 $EGREP "memchr" >/dev/null 2>&1; then :
12639 ac_cv_header_stdc=no
12645 if test $ac_cv_header_stdc = yes; then
12646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 #include <stdlib.h>
12652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12653 $EGREP "free" >/dev/null 2>&1; then :
12656 ac_cv_header_stdc=no
12662 if test $ac_cv_header_stdc = yes; then
12663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12664 if test "$cross_compiling" = yes; then :
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12670 #include <stdlib.h>
12671 #if ((' ' & 0x0FF) == 0x020)
12672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12675 # define ISLOWER(c) \
12676 (('a' <= (c) && (c) <= 'i') \
12677 || ('j' <= (c) && (c) <= 'r') \
12678 || ('s' <= (c) && (c) <= 'z'))
12679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12687 for (i = 0; i < 256; i++)
12688 if (XOR (islower (i), ISLOWER (i))
12689 || toupper (i) != TOUPPER (i))
12694 if ac_fn_c_try_run "$LINENO"; then :
12697 ac_cv_header_stdc=no
12699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12700 conftest.$ac_objext conftest.beam conftest.$ac_ext
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12706 $as_echo "$ac_cv_header_stdc" >&6; }
12707 if test $ac_cv_header_stdc = yes; then
12709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12714 # Checks for typedefs, structures, and compiler characteristics.
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12716 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12717 if ${ac_cv_c_const+:} false; then :
12718 $as_echo_n "(cached) " >&6
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12727 #ifndef __cplusplus
12728 /* Ultrix mips cc rejects this sort of thing. */
12729 typedef int charset[2];
12730 const charset cs = { 0, 0 };
12731 /* SunOS 4.1.1 cc rejects this. */
12732 char const *const *pcpcc;
12734 /* NEC SVR4.0.2 mips cc rejects this. */
12735 struct point {int x, y;};
12736 static struct point const zero = {0,0};
12737 /* AIX XL C 1.02.0.0 rejects this.
12738 It does not let you subtract one const X* pointer from another in
12739 an arm of an if-expression whose if-part is not a constant
12741 const char *g = "string";
12742 pcpcc = &g + (g ? g-g : 0);
12743 /* HPUX 7.0 cc rejects these. */
12745 ppc = (char**) pcpcc;
12746 pcpcc = (char const *const *) ppc;
12747 { /* SCO 3.2v4 cc rejects this sort of thing. */
12750 char const *s = 0 ? (char *) 0 : (char const *) 0;
12755 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12756 int x[] = {25, 17};
12757 const int *foo = &x[0];
12760 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12761 typedef const int *iptr;
12765 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12766 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12767 struct s { int j; const int *ap[3]; } bx;
12768 struct s *b = &bx; b->j = 5;
12770 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12771 const int foo = 10;
12772 if (!foo) return 0;
12774 return !cs[0] && !zero.x;
12781 if ac_fn_c_try_compile "$LINENO"; then :
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12789 $as_echo "$ac_cv_c_const" >&6; }
12790 if test $ac_cv_c_const = no; then
12792 $as_echo "#define const /**/" >>confdefs.h
12796 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12797 if test "x$ac_cv_type_size_t" = xyes; then :
12801 cat >>confdefs.h <<_ACEOF
12802 #define size_t unsigned int
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12808 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12809 if ${ac_cv_struct_tm+:} false; then :
12810 $as_echo_n "(cached) " >&6
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 #include <sys/types.h>
12821 int *p = &tm.tm_sec;
12827 if ac_fn_c_try_compile "$LINENO"; then :
12828 ac_cv_struct_tm=time.h
12830 ac_cv_struct_tm=sys/time.h
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12835 $as_echo "$ac_cv_struct_tm" >&6; }
12836 if test $ac_cv_struct_tm = sys/time.h; then
12838 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12843 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12844 if ${ac_cv_c_restrict+:} false; then :
12845 $as_echo_n "(cached) " >&6
12847 ac_cv_c_restrict=no
12848 # The order here caters to the fact that C++ does not require restrict.
12849 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 typedef int * int_ptr;
12853 int foo (int_ptr $ac_kw ip) {
12860 int * $ac_kw t = s;
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 ac_cv_c_restrict=$ac_kw
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 test "$ac_cv_c_restrict" != no && break
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12876 $as_echo "$ac_cv_c_restrict" >&6; }
12878 case $ac_cv_c_restrict in
12880 no) $as_echo "#define restrict /**/" >>confdefs.h
12882 *) cat >>confdefs.h <<_ACEOF
12883 #define restrict $ac_cv_c_restrict
12889 # Checks for library functions.
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12891 $as_echo_n "checking for working strtod... " >&6; }
12892 if ${ac_cv_func_strtod+:} false; then :
12893 $as_echo_n "(cached) " >&6
12895 if test "$cross_compiling" = yes; then :
12896 ac_cv_func_strtod=no
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 $ac_includes_default
12909 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12910 char *string = " +69";
12913 value = strtod (string, &term);
12914 if (value != 69 || term != (string + 4))
12919 /* Under Solaris 2.4, strtod returns the wrong value for the
12920 terminating character under some conditions. */
12921 char *string = "NaN";
12923 strtod (string, &term);
12924 if (term != string && *(term - 1) == 0)
12931 if ac_fn_c_try_run "$LINENO"; then :
12932 ac_cv_func_strtod=yes
12934 ac_cv_func_strtod=no
12936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12937 conftest.$ac_objext conftest.beam conftest.$ac_ext
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12942 $as_echo "$ac_cv_func_strtod" >&6; }
12943 if test $ac_cv_func_strtod = no; then
12944 case " $LIBOBJS " in
12945 *" strtod.$ac_objext "* ) ;;
12946 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12950 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12951 if test "x$ac_cv_func_pow" = xyes; then :
12955 if test $ac_cv_func_pow = no; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12957 $as_echo_n "checking for pow in -lm... " >&6; }
12958 if ${ac_cv_lib_m_pow+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 ac_check_lib_save_LIBS=$LIBS
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 ac_cv_lib_m_pow=yes
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12991 $as_echo "$ac_cv_lib_m_pow" >&6; }
12992 if test "x$ac_cv_lib_m_pow" = xyes; then :
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12996 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13003 for ac_func in memset
13005 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
13006 if test "x$ac_cv_func_memset" = xyes; then :
13007 cat >>confdefs.h <<_ACEOF
13008 #define HAVE_MEMSET 1
13012 as_fn_error $? "memset not found in libc" "$LINENO" 5
13018 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13019 if test "x$ac_cv_func_pow" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13026 $as_echo_n "checking for pow in -lm... " >&6; }
13027 if ${ac_cv_lib_m_pow+:} false; then :
13028 $as_echo_n "(cached) " >&6
13030 ac_check_lib_save_LIBS=$LIBS
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_m_pow=yes
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13060 $as_echo "$ac_cv_lib_m_pow" >&6; }
13061 if test "x$ac_cv_lib_m_pow" = xyes; then :
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_LIBM 1
13069 as_fn_error $? "cannot find pow" "$LINENO" 5
13076 # Check whether --with-zlib-prefix was given.
13077 if test "${with_zlib_prefix+set}" = set; then :
13078 withval=$with_zlib_prefix; ZPREFIX=${withval}
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13084 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13085 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13086 $as_echo_n "(cached) " >&6
13088 ac_check_lib_save_LIBS=$LIBS
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13099 char zlibVersion ();
13103 return zlibVersion ();
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 ac_cv_lib_z_zlibVersion=yes
13111 ac_cv_lib_z_zlibVersion=no
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 LIBS=$ac_check_lib_save_LIBS
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13118 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13119 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_LIBZ 1
13127 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
13129 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
13130 if eval \${$as_ac_Lib+:} false; then :
13131 $as_echo_n "(cached) " >&6
13133 ac_check_lib_save_LIBS=$LIBS
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13144 char ${ZPREFIX}zlibVersion ();
13148 return ${ZPREFIX}zlibVersion ();
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 eval "$as_ac_Lib=yes"
13156 eval "$as_ac_Lib=no"
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 eval ac_res=\$$as_ac_Lib
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13164 $as_echo "$ac_res" >&6; }
13165 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_LIBZ 1
13173 as_fn_error $? "zlib not installed" "$LINENO" 5
13179 # The following is for pngvalid, to ensure it catches FP errors even on
13180 # platforms that don't enable FP exceptions, the function appears in the math
13181 # library (typically), it's not an error if it is not found.
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
13183 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
13184 if ${ac_cv_lib_m_feenableexcept+:} false; then :
13185 $as_echo_n "(cached) " >&6
13187 ac_check_lib_save_LIBS=$LIBS
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13198 char feenableexcept ();
13202 return feenableexcept ();
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 ac_cv_lib_m_feenableexcept=yes
13210 ac_cv_lib_m_feenableexcept=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
13217 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
13218 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_LIBM 1
13227 for ac_func in feenableexcept
13229 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
13230 if test "x$ac_cv_func_feenableexcept" = xyes; then :
13231 cat >>confdefs.h <<_ACEOF
13232 #define HAVE_FEENABLEEXCEPT 1
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
13240 $as_echo_n "checking if using Solaris linker... " >&6; }
13241 SLD=`$LD --version 2>&1 | grep Solaris`
13242 if test "$SLD"; then
13243 have_solaris_ld=yes
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13251 if test "$have_solaris_ld" = "yes"; then
13252 HAVE_SOLARIS_LD_TRUE=
13253 HAVE_SOLARIS_LD_FALSE='#'
13255 HAVE_SOLARIS_LD_TRUE='#'
13256 HAVE_SOLARIS_LD_FALSE=
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
13261 $as_echo_n "checking if libraries can be versioned... " >&6; }
13262 # Special case for PE/COFF platforms: ld reports
13263 # support for version-script, but doesn't actually
13264 # DO anything with it.
13266 *cygwin* | *mingw32* | *interix* )
13267 have_ld_version_script=no
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13273 if test "$have_solaris_ld" = "yes"; then
13274 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
13276 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
13279 if test "$GLD"; then
13280 have_ld_version_script=yes
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13284 have_ld_version_script=no
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
13288 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
13293 if test "$have_ld_version_script" = "yes"; then
13294 HAVE_LD_VERSION_SCRIPT_TRUE=
13295 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13297 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13298 HAVE_LD_VERSION_SCRIPT_FALSE=
13302 if test "$have_ld_version_script" = "yes"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
13304 $as_echo_n "checking for symbol prefix... " >&6; }
13305 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
13306 | ${CPP-${CC-gcc} -E} - 2>&1 \
13307 | ${EGREP-grep} "^PREFIX=" \
13308 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
13311 $as_echo "$SYMBOL_PREFIX" >&6; }
13314 # Substitutions for .in files
13320 # Additional arguments (and substitutions)
13321 # Allow the pkg-config directory to be set
13323 # Check whether --with-pkgconfigdir was given.
13324 if test "${with_pkgconfigdir+set}" = set; then :
13325 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
13327 pkgconfigdir='${libdir}/pkgconfig'
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
13333 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
13335 # Make the *-config binary config scripts optional
13337 # Check whether --with-binconfigs was given.
13338 if test "${with_binconfigs+set}" = set; then :
13339 withval=$with_binconfigs; if test "${withval}" = no; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
13342 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
13344 binconfigs='${binconfigs}'
13347 binconfigs='${binconfigs}'
13352 # Support for prefixes to the API function names; this will generate defines
13353 # at the start of the build to rename exported library functions
13355 # Check whether --with-libpng-prefix was given.
13356 if test "${with_libpng_prefix+set}" = set; then :
13357 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
13358 PNG_PREFIX=${withval}
13363 if test "${with_libpng_prefix:-no}" != "no"; then
13364 DO_PNG_PREFIX_TRUE=
13365 DO_PNG_PREFIX_FALSE='#'
13367 DO_PNG_PREFIX_TRUE='#'
13368 DO_PNG_PREFIX_FALSE=
13372 # Control over what links are made for installed files. Versioned files are
13373 # always installed, when the following options are turned on corresponding
13374 # unversioned links are also created (normally as symbolic links):
13375 # Check whether --enable-unversioned-links was given.
13376 if test "${enable_unversioned_links+set}" = set; then :
13377 enableval=$enable_unversioned_links;
13381 # The AM_CONDITIONAL test is written so that the default is enabled;
13382 # --disable-unversioned-links must be given to turn the option off.
13383 if test "$enable_unversioned_links" != "no"; then
13384 DO_INSTALL_LINKS_TRUE=
13385 DO_INSTALL_LINKS_FALSE='#'
13387 DO_INSTALL_LINKS_TRUE='#'
13388 DO_INSTALL_LINKS_FALSE=
13392 # Check whether --enable-unversioned-libpng-pc was given.
13393 if test "${enable_unversioned_libpng_pc+set}" = set; then :
13394 enableval=$enable_unversioned_libpng_pc;
13397 if test "$enable_unversioned_libpng_pc" != "no"; then
13398 DO_INSTALL_LIBPNG_PC_TRUE=
13399 DO_INSTALL_LIBPNG_PC_FALSE='#'
13401 DO_INSTALL_LIBPNG_PC_TRUE='#'
13402 DO_INSTALL_LIBPNG_PC_FALSE=
13406 # Check whether --enable-unversioned-libpng-config was given.
13407 if test "${enable_unversioned_libpng_config+set}" = set; then :
13408 enableval=$enable_unversioned_libpng_config;
13411 if test "$enable_unversioned_libpng_config" != "no"; then
13412 DO_INSTALL_LIBPNG_CONFIG_TRUE=
13413 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
13415 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
13416 DO_INSTALL_LIBPNG_CONFIG_FALSE=
13420 # HOST SPECIFIC OPTIONS
13421 # =====================
13426 # ARM NEON (SIMD) support.
13428 # Check whether --enable-arm-neon was given.
13429 if test "${enable_arm_neon+set}" = set; then :
13430 enableval=$enable_arm_neon; case "$enableval" in
13432 # disable the default enabling on __ARM_NEON__ systems:
13434 $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
13436 # Prevent inclusion of the assembler files below:
13437 enable_arm_neon=no;;
13440 $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
13444 $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
13448 $as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
13451 you want the optimizations unconditionally pass -mfpu=neon
13452 to the compiler." >&5
13453 $as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
13454 you want the optimizations unconditionally pass -mfpu=neon
13455 to the compiler." >&2;};;
13457 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
13462 # Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
13463 # where ARM optimizations were explicitly requested (this allows a fallback if a
13464 # future host CPU does not match 'arm*')
13466 if test "$enable_arm_neon" != 'no' &&
13467 case "$host_cpu" in
13469 *) test "$enable_arm_neon" != '';;
13472 PNG_ARM_NEON_FALSE='#'
13474 PNG_ARM_NEON_TRUE='#'
13475 PNG_ARM_NEON_FALSE=
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
13480 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
13482 # Config files, substituting as above
13483 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
13485 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
13488 cat >confcache <<\_ACEOF
13489 # This file is a shell script that caches the results of configure
13490 # tests run on this system so they can be shared between configure
13491 # scripts and configure runs, see configure's option --config-cache.
13492 # It is not useful on other systems. If it contains results you don't
13493 # want to keep, you may remove or edit it.
13495 # config.status only pays attention to the cache file if you give it
13496 # the --recheck option to rerun configure.
13498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13500 # following values.
13504 # The following way of writing the cache mishandles newlines in values,
13505 # but we know of no workaround that is simple, portable, and efficient.
13506 # So, we kill variables containing newlines.
13507 # Ultrix sh set writes to stderr and can't be redirected directly,
13508 # and sets the high bit in the cache file unless we assign to the vars.
13510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13511 eval ac_val=\$$ac_var
13515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13519 _ | IFS | as_nl) ;; #(
13520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13521 *) { eval $ac_var=; unset $ac_var;} ;;
13527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13528 *${as_nl}ac_space=\ *)
13529 # `set' does not quote correctly, so add quotes: double-quote
13530 # substitution turns \\\\ into \\, and sed turns \\ into \.
13533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13536 # `set' quotes correctly as required by POSIX, so do not add quotes.
13537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13551 if test -w "$cache_file"; then
13552 if test "x$cache_file" != "x/dev/null"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13554 $as_echo "$as_me: updating cache $cache_file" >&6;}
13555 if test ! -f "$cache_file" || test -h "$cache_file"; then
13556 cat confcache >"$cache_file"
13558 case $cache_file in #(
13560 mv -f confcache "$cache_file"$$ &&
13561 mv -f "$cache_file"$$ "$cache_file" ;; #(
13563 mv -f confcache "$cache_file" ;;
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13575 # Let make expand exec_prefix.
13576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13578 DEFS=-DHAVE_CONFIG_H
13583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13584 # 1. Remove the extension, and $U if already installed.
13585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13588 # will be set to the directory where LIBOBJS objects are built.
13589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13592 LIBOBJS=$ac_libobjs
13594 LTLIBOBJS=$ac_ltlibobjs
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13598 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13599 if test -n "$am_sleep_pid"; then
13600 # Hide warnings about reused PIDs.
13601 wait $am_sleep_pid 2>/dev/null
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13604 $as_echo "done" >&6; }
13605 if test -n "$EXEEXT"; then
13607 am__EXEEXT_FALSE='#'
13609 am__EXEEXT_TRUE='#'
13613 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13614 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13618 as_fn_error $? "conditional \"AMDEP\" was never defined.
13619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13622 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13625 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13626 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13629 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13630 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13633 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13634 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13637 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13638 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13641 if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
13642 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
13643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13645 if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
13646 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
13647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13649 if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
13650 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
13651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13653 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13654 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13658 : "${CONFIG_STATUS=./config.status}"
13660 ac_clean_files_save=$ac_clean_files
13661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13665 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13667 # Generated by $as_me.
13668 # Run this file to recreate the current configuration.
13669 # Compiler output produced by configure, useful for debugging
13670 # configure, is in config.log if it exists.
13673 ac_cs_recheck=false
13676 SHELL=\${CONFIG_SHELL-$SHELL}
13679 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13680 ## -------------------- ##
13681 ## M4sh Initialization. ##
13682 ## -------------------- ##
13684 # Be more Bourne compatible
13685 DUALCASE=1; export DUALCASE # for MKS sh
13686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13690 # is contrary to our usage. Disable this feature.
13691 alias -g '${1+"$@"}'='"$@"'
13692 setopt NO_GLOB_SUBST
13694 case `(set -o) 2>/dev/null` in #(
13706 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13707 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13709 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13710 # Prefer a ksh shell builtin over an external printf program on Solaris,
13711 # but without wasting forks for bash or zsh.
13712 if test -z "$BASH_VERSION$ZSH_VERSION" \
13713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13714 as_echo='print -r --'
13715 as_echo_n='print -rn --'
13716 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13717 as_echo='printf %s\n'
13718 as_echo_n='printf %s'
13720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13722 as_echo_n='/usr/ucb/echo -n'
13724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13725 as_echo_n_body='eval
13729 expr "X$arg" : "X\\(.*\\)$as_nl";
13730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13734 export as_echo_n_body
13735 as_echo_n='sh -c $as_echo_n_body as_echo'
13737 export as_echo_body
13738 as_echo='sh -c $as_echo_body as_echo'
13741 # The user is always right.
13742 if test "${PATH_SEPARATOR+set}" != set; then
13744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13752 # We need space, tab and new line, in precisely that order. Quoting is
13753 # there to prevent editors from complaining about space-tab.
13754 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13755 # splitting by setting IFS to empty value.)
13758 # Find who we are. Look in the path if we contain no directory separator.
13761 *[\\/]* ) as_myself=$0 ;;
13762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13766 test -z "$as_dir" && as_dir=.
13767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13773 # We did not find ourselves, most probably we were run as `sh COMMAND'
13774 # in which case we are not to be found in the path.
13775 if test "x$as_myself" = x; then
13778 if test ! -f "$as_myself"; then
13779 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13783 # Unset variables that we do not need and which cause bugs (e.g. in
13784 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13785 # suppresses any "Segmentation fault" message there. '((' could
13786 # trigger a bug in pdksh 5.2.14.
13787 for as_var in BASH_ENV ENV MAIL MAILPATH
13788 do eval test x\${$as_var+set} = xset \
13789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13805 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13806 # ----------------------------------------
13807 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13808 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13809 # script with STATUS, using 1 if that was 0.
13812 as_status=$1; test $as_status -eq 0 && as_status=1
13814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13815 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13817 $as_echo "$as_me: error: $2" >&2
13818 as_fn_exit $as_status
13822 # as_fn_set_status STATUS
13823 # -----------------------
13824 # Set $? to STATUS, without forking.
13825 as_fn_set_status ()
13828 } # as_fn_set_status
13830 # as_fn_exit STATUS
13831 # -----------------
13832 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13836 as_fn_set_status $1
13842 # Portably unset VAR.
13845 { eval $1=; unset $1;}
13847 as_unset=as_fn_unset
13848 # as_fn_append VAR VALUE
13849 # ----------------------
13850 # Append the text in VALUE to the end of the definition contained in VAR. Take
13851 # advantage of any shell optimizations that allow amortized linear growth over
13852 # repeated appends, instead of the typical quadratic growth present in naive
13854 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13855 eval 'as_fn_append ()
13866 # as_fn_arith ARG...
13867 # ------------------
13868 # Perform arithmetic evaluation on the ARGs, and store the result in the
13869 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13870 # must be portable across $(()) and expr.
13871 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13872 eval 'as_fn_arith ()
13879 as_val=`expr "$@" || test $? -eq 1`
13884 if expr a : '\(a\)' >/dev/null 2>&1 &&
13885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13892 as_basename=basename
13897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13903 as_me=`$as_basename -- "$0" ||
13904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13905 X"$0" : 'X\(//\)$' \| \
13906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13908 sed '/^.*\/\([^/][^/]*\)\/*$/{
13922 # Avoid depending upon Character Ranges.
13923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13926 as_cr_digits='0123456789'
13927 as_cr_alnum=$as_cr_Letters$as_cr_digits
13929 ECHO_C= ECHO_N= ECHO_T=
13930 case `echo -n x` in #(((((
13932 case `echo 'xy\c'` in
13933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13942 rm -f conf$$ conf$$.exe conf$$.file
13943 if test -d conf$$.dir; then
13944 rm -f conf$$.dir/conf$$.file
13947 mkdir conf$$.dir 2>/dev/null
13949 if (echo >conf$$.file) 2>/dev/null; then
13950 if ln -s conf$$.file conf$$ 2>/dev/null; then
13952 # ... but there are two gotchas:
13953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13955 # In both cases, we have to default to `cp -pR'.
13956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13958 elif ln conf$$.file conf$$ 2>/dev/null; then
13966 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13967 rmdir conf$$.dir 2>/dev/null
13972 # Create "$as_dir" as a directory, including parents if necessary.
13977 -*) as_dir=./$as_dir;;
13979 test -d "$as_dir" || eval $as_mkdir_p || {
13983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13984 *) as_qdir=$as_dir;;
13986 as_dirs="'$as_qdir' $as_dirs"
13987 as_dir=`$as_dirname -- "$as_dir" ||
13988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13989 X"$as_dir" : 'X\(//\)[^/]' \| \
13990 X"$as_dir" : 'X\(//\)$' \| \
13991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13992 $as_echo X"$as_dir" |
13993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13997 /^X\(\/\/\)[^/].*/{
14010 test -d "$as_dir" && break
14012 test -z "$as_dirs" || eval "mkdir $as_dirs"
14013 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14017 if mkdir -p . 2>/dev/null; then
14018 as_mkdir_p='mkdir -p "$as_dir"'
14020 test -d ./-p && rmdir ./-p
14025 # as_fn_executable_p FILE
14026 # -----------------------
14027 # Test if FILE is an executable regular file.
14028 as_fn_executable_p ()
14030 test -f "$1" && test -x "$1"
14031 } # as_fn_executable_p
14032 as_test_x='test -x'
14033 as_executable_p=as_fn_executable_p
14035 # Sed expression to map a string onto a valid CPP name.
14036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14038 # Sed expression to map a string onto a valid variable name.
14039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14043 ## ----------------------------------- ##
14044 ## Main body of $CONFIG_STATUS script. ##
14045 ## ----------------------------------- ##
14047 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 # Save the log message, to keep $0 and so on meaningful, and to
14051 # report actual input values of CONFIG_FILES etc. instead of their
14052 # values after options handling.
14054 This file was extended by libpng $as_me 1.6.21, which was
14055 generated by GNU Autoconf 2.69. Invocation command line was
14057 CONFIG_FILES = $CONFIG_FILES
14058 CONFIG_HEADERS = $CONFIG_HEADERS
14059 CONFIG_LINKS = $CONFIG_LINKS
14060 CONFIG_COMMANDS = $CONFIG_COMMANDS
14063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14068 case $ac_config_files in *"
14069 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14072 case $ac_config_headers in *"
14073 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 # Files that config.status was made for.
14079 config_files="$ac_config_files"
14080 config_headers="$ac_config_headers"
14081 config_commands="$ac_config_commands"
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14087 \`$as_me' instantiates files and other configuration actions
14088 from templates according to the current configuration. Unless the files
14089 and actions are specified as TAGs, all are instantiated by default.
14091 Usage: $0 [OPTION]... [TAG]...
14093 -h, --help print this help, then exit
14094 -V, --version print version number and configuration settings, then exit
14095 --config print configuration, then exit
14096 -q, --quiet, --silent
14097 do not print progress messages
14098 -d, --debug don't remove temporary files
14099 --recheck update $as_me by reconfiguring in the same conditions
14100 --file=FILE[:TEMPLATE]
14101 instantiate the configuration file FILE
14102 --header=FILE[:TEMPLATE]
14103 instantiate the configuration header FILE
14105 Configuration files:
14108 Configuration headers:
14111 Configuration commands:
14114 Report bugs to <png-mng-implement@lists.sourceforge.net>."
14117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14118 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14120 libpng config.status 1.6.21
14121 configured by $0, generated by GNU Autoconf 2.69,
14122 with options \\"\$ac_cs_config\\"
14124 Copyright (C) 2012 Free Software Foundation, Inc.
14125 This config.status script is free software; the Free Software Foundation
14126 gives unlimited permission to copy, distribute and modify it."
14133 test -n "\$AWK" || AWK=awk
14136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 # The default lists apply if the user does not specify any file.
14143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14160 # Handling of the options.
14161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14164 $as_echo "$ac_cs_version"; exit ;;
14165 --config | --confi | --conf | --con | --co | --c )
14166 $as_echo "$ac_cs_config"; exit ;;
14167 --debug | --debu | --deb | --de | --d | -d )
14169 --file | --fil | --fi | --f )
14172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14173 '') as_fn_error $? "missing file argument" ;;
14175 as_fn_append CONFIG_FILES " '$ac_optarg'"
14176 ac_need_defaults=false;;
14177 --header | --heade | --head | --hea )
14180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14183 ac_need_defaults=false;;
14185 # Conflict between --help and --header
14186 as_fn_error $? "ambiguous option: \`$1'
14187 Try \`$0 --help' for more information.";;
14188 --help | --hel | -h )
14189 $as_echo "$ac_cs_usage"; exit ;;
14190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14194 # This is an error.
14195 -*) as_fn_error $? "unrecognized option: \`$1'
14196 Try \`$0 --help' for more information." ;;
14198 *) as_fn_append ac_config_targets " $1"
14199 ac_need_defaults=false ;;
14205 ac_configure_extra_args=
14207 if $ac_cs_silent; then
14209 ac_configure_extra_args="$ac_configure_extra_args --silent"
14213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214 if \$ac_cs_recheck; then
14215 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14218 CONFIG_SHELL='$SHELL'
14219 export CONFIG_SHELL
14224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14229 ## Running $as_me. ##
14235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14242 # The HP-UX ksh and POSIX shell print the target directory to stdout
14243 # if CDPATH is set.
14244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14246 sed_quote_subst='$sed_quote_subst'
14247 double_quote_subst='$double_quote_subst'
14248 delay_variable_subst='$delay_variable_subst'
14249 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14250 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14251 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14252 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14253 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14254 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14255 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14256 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14257 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14258 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14259 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14260 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14261 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14262 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14263 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14264 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14265 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14266 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14267 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14268 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14269 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14270 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14271 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14272 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14273 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14274 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14275 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14276 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14277 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14278 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14279 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14280 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14281 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14282 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14283 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14284 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14285 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14286 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14287 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14288 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14289 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14290 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14291 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14292 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14293 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14294 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14295 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14296 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14297 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14298 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14299 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14300 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14301 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14302 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14303 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14304 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14305 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14306 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14307 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14308 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"`'
14309 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14310 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14311 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14312 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14313 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14314 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14315 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14316 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14317 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14318 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14319 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14320 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14321 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14322 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14323 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14324 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14325 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14326 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14327 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14328 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14329 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14330 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14331 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14332 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14333 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14334 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14335 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14336 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14337 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14338 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14339 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14340 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14341 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14342 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14343 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14344 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14345 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14346 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14347 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14348 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14349 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14350 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14351 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14352 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14353 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14354 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14355 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14356 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14357 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14358 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14359 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14360 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14361 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14362 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14363 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14364 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14365 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14366 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14367 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14368 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14369 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14370 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14371 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14372 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14373 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14374 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14375 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14376 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14377 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14378 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14379 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14380 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14381 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14382 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14383 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14384 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14387 LTCFLAGS='$LTCFLAGS'
14388 compiler='$compiler_DEFAULT'
14390 # A function that is used when there is no print builtin or printf.
14391 func_fallback_echo ()
14393 eval 'cat <<_LTECHO_EOF
14398 # Quote evaled strings.
14415 deplibs_check_method \
14419 sharedlib_from_linklib_cmd \
14422 archiver_list_spec \
14428 lt_cv_sys_global_symbol_pipe \
14429 lt_cv_sys_global_symbol_to_cdecl \
14430 lt_cv_sys_global_symbol_to_import \
14431 lt_cv_sys_global_symbol_to_c_name_address \
14432 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14433 lt_cv_nm_interface \
14434 nm_file_list_spec \
14435 lt_cv_truncate_bin \
14436 lt_prog_compiler_no_builtin_flag \
14437 lt_prog_compiler_pic \
14438 lt_prog_compiler_wl \
14439 lt_prog_compiler_static \
14440 lt_cv_prog_compiler_c_o \
14449 export_dynamic_flag_spec \
14450 whole_archive_flag_spec \
14451 compiler_needs_object \
14453 allow_undefined_flag \
14454 no_undefined_flag \
14455 hardcode_libdir_flag_spec \
14456 hardcode_libdir_separator \
14460 variables_saved_for_relink \
14462 library_names_spec \
14464 install_override_mode \
14468 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14469 *[\\\\\\\`\\"\\\$]*)
14470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14473 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14478 # Double-quote double-evaled strings.
14479 for var in reload_cmds \
14480 old_postinstall_cmds \
14481 old_postuninstall_cmds \
14483 extract_expsyms_cmds \
14484 old_archive_from_new_cmds \
14485 old_archive_from_expsyms_cmds \
14487 archive_expsym_cmds \
14489 module_expsym_cmds \
14490 export_symbols_cmds \
14494 postuninstall_cmds \
14496 sys_lib_search_path_spec \
14497 configure_time_dlsearch_path \
14498 configure_time_lt_sys_library_path; do
14499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14500 *[\\\\\\\`\\"\\\$]*)
14501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14509 ac_aux_dir='$ac_aux_dir'
14511 # See if we are running on zsh, and set the options that allow our
14512 # commands through without removal of \ escapes INIT.
14513 if test -n "\${ZSH_VERSION+set}"; then
14514 setopt NO_GLOB_SUBST
14528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 # Handling of arguments.
14531 for ac_config_target in $ac_config_targets
14533 case $ac_config_target in
14534 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14535 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14536 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14538 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14539 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
14541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14546 # If the user did not use the arguments to specify the items to instantiate,
14547 # then the envvar interface is used. Set only those that are not.
14548 # We use the long form for the default assignment because of an extremely
14549 # bizarre bug on SunOS 4.1.3.
14550 if $ac_need_defaults; then
14551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14556 # Have a temporary directory for convenience. Make it in the build tree
14557 # simply because there is no reason against having it here, and in addition,
14558 # creating and moving files from /tmp can sometimes cause problems.
14559 # Hook for its removal unless debugging.
14560 # Note that there is a small window in which the directory will not be cleaned:
14561 # after its creation but before its name has been assigned to `$tmp'.
14565 trap 'exit_status=$?
14566 : "${ac_tmp:=$tmp}"
14567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14569 trap 'as_fn_exit 1' 1 2 13 15
14571 # Create a (secure) tmp directory for tmp files.
14574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14578 tmp=./conf$$-$RANDOM
14579 (umask 077 && mkdir "$tmp")
14580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14583 # Set up the scripts for CONFIG_FILES section.
14584 # No need to generate them if there are no CONFIG_FILES.
14585 # This happens for instance with `./config.status config.h'.
14586 if test -n "$CONFIG_FILES"; then
14589 ac_cr=`echo X | tr X '\015'`
14590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14591 # But we know of no other shell where ac_cr would be empty at this
14592 # point, so we can use a bashism as a fallback.
14593 if test "x$ac_cr" = x; then
14594 eval ac_cr=\$\'\\r\'
14596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14600 ac_cs_awk_cr=$ac_cr
14603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14608 echo "cat >conf$$subs.awk <<_ACEOF" &&
14609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14611 } >conf$$subs.sh ||
14612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14615 for ac_last_try in false false false false false :; do
14616 . ./conf$$subs.sh ||
14617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14620 if test $ac_delim_n = $ac_delim_num; then
14622 elif $ac_last_try; then
14623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14628 rm -f conf$$subs.sh
14630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14635 s/^/S["/; s/!.*/"]=/
14645 s/\(.\{148\}\)..*/\1/
14647 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14659 s/\(.\{148\}\)..*/\1/
14661 s/["\\]/\\&/g; s/^/"/; s/$/"/
14665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14670 ' <conf$$subs.awk | sed '
14675 ' >>$CONFIG_STATUS || ac_write_fail=1
14676 rm -f conf$$subs.awk
14677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14679 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14680 for (key in S) S_is_set[key] = 1
14686 nfields = split(line, field, "@")
14688 len = length(field[1])
14689 for (i = 2; i < nfields; i++) {
14691 keylen = length(key)
14692 if (S_is_set[key]) {
14694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14695 len += length(value) + length(field[++i])
14706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14711 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14717 # trailing colons and then remove the whole line if VPATH becomes empty
14718 # (actually we leave an empty line to preserve line numbers).
14719 if test "x$srcdir" = x.; then
14720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14739 fi # test -n "$CONFIG_FILES"
14741 # Set up the scripts for CONFIG_HEADERS section.
14742 # No need to generate them if there are no CONFIG_HEADERS.
14743 # This happens for instance with `./config.status Makefile'.
14744 if test -n "$CONFIG_HEADERS"; then
14745 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14749 # Transform confdefs.h into an awk script `defines.awk', embedded as
14750 # here-document in config.status, that substitutes the proper values into
14751 # config.h.in to produce config.h.
14753 # Create a delimiter string that does not exist in confdefs.h, to ease
14754 # handling of long lines.
14756 for ac_last_try in false false :; do
14757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14758 if test -z "$ac_tt"; then
14760 elif $ac_last_try; then
14761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14767 # For the awk script, D is an array of macro values keyed by name,
14768 # likewise P contains macro parameters if any. Preserve backslash
14769 # newline sequences.
14771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14773 s/.\{148\}/&'"$ac_delim"'/g
14776 s/^[ ]*#[ ]*define[ ][ ]*/ /
14783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14790 D["\1"]=" \3\\\\\\n"\\/p
14792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14797 s/.\{148\}/&'"$ac_delim"'/g
14802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14807 ' <confdefs.h | sed '
14808 s/'"$ac_delim"'/"\\\
14809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14812 for (key in D) D_is_set[key] = 1
14815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14817 split(line, arg, " ")
14818 if (arg[1] == "#") {
14822 defundef = substr(arg[1], 2)
14825 split(mac1, mac2, "(") #)
14827 prefix = substr(line, 1, index(line, defundef) - 1)
14828 if (D_is_set[macro]) {
14829 # Preserve the white space surrounding the "#".
14830 print prefix "define", macro P[macro] D[macro]
14833 # Replace #undef with comments. This is necessary, for example,
14834 # in the case of _POSIX_SOURCE, which is predefined and required
14835 # on some systems where configure will not decide to define it.
14836 if (defundef == "undef") {
14837 print "/*", prefix defundef, macro, "*/"
14845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14847 fi # test -n "$CONFIG_HEADERS"
14850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14855 :[FHLC]) ac_mode=$ac_tag; continue;;
14857 case $ac_mode$ac_tag in
14859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14860 :[FH]-) ac_tag=-:-;;
14861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14878 -) ac_f="$ac_tmp/stdin";;
14879 *) # Look for the file first in the build tree, then in the source tree
14880 # (if the path is not absolute). The absolute path cannot be DOS-style,
14881 # because $ac_f cannot contain `:'.
14885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14890 as_fn_append ac_file_inputs " '$ac_f'"
14893 # Let's still pretend it is `configure' which instantiates (i.e., don't
14894 # use $as_me), people would be surprised to read:
14895 # /* config.h. Generated by config.status. */
14896 configure_input='Generated from '`
14897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14899 if test x"$ac_file" != x-; then
14900 configure_input="$ac_file. $configure_input"
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14902 $as_echo "$as_me: creating $ac_file" >&6;}
14904 # Neutralize special characters interpreted by sed in replacement strings.
14905 case $configure_input in #(
14906 *\&* | *\|* | *\\* )
14907 ac_sed_conf_input=`$as_echo "$configure_input" |
14908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14909 *) ac_sed_conf_input=$configure_input;;
14913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14919 ac_dir=`$as_dirname -- "$ac_file" ||
14920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14921 X"$ac_file" : 'X\(//\)[^/]' \| \
14922 X"$ac_file" : 'X\(//\)$' \| \
14923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14924 $as_echo X"$ac_file" |
14925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14929 /^X\(\/\/\)[^/].*/{
14942 as_dir="$ac_dir"; as_fn_mkdir_p
14946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14949 # A ".." for each directory in $ac_dir_suffix.
14950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14951 case $ac_top_builddir_sub in
14952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14956 ac_abs_top_builddir=$ac_pwd
14957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14958 # for backward compatibility:
14959 ac_top_builddir=$ac_top_build_prefix
14962 .) # We are building in place.
14964 ac_top_srcdir=$ac_top_builddir_sub
14965 ac_abs_top_srcdir=$ac_pwd ;;
14966 [\\/]* | ?:[\\/]* ) # Absolute name.
14967 ac_srcdir=$srcdir$ac_dir_suffix;
14968 ac_top_srcdir=$srcdir
14969 ac_abs_top_srcdir=$srcdir ;;
14970 *) # Relative name.
14971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14972 ac_top_srcdir=$ac_top_build_prefix$srcdir
14973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14988 ac_MKDIR_P=$MKDIR_P
14990 [\\/$]* | ?:[\\/]* ) ;;
14991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14996 # If the template does not know about datarootdir, expand it.
14997 # FIXME: This hack should be removed a few years after 2.60.
14998 ac_datarootdir_hack=; ac_datarootdir_seen=
15009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15010 *datarootdir*) ac_datarootdir_seen=yes;;
15011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15016 ac_datarootdir_hack='
15017 s&@datadir@&$datadir&g
15018 s&@docdir@&$docdir&g
15019 s&@infodir@&$infodir&g
15020 s&@localedir@&$localedir&g
15021 s&@mandir@&$mandir&g
15022 s&\\\${datarootdir}&$datarootdir&g' ;;
15026 # Neutralize VPATH when `$srcdir' = `.'.
15027 # Shell code in configure.ac might set extrasub.
15028 # FIXME: do we really want to maintain this feature?
15029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15030 ac_sed_extra="$ac_vpsub
15033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15036 s|@configure_input@|$ac_sed_conf_input|;t t
15037 s&@top_builddir@&$ac_top_builddir_sub&;t t
15038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15039 s&@srcdir@&$ac_srcdir&;t t
15040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15041 s&@top_srcdir@&$ac_top_srcdir&;t t
15042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15043 s&@builddir@&$ac_builddir&;t t
15044 s&@abs_builddir@&$ac_abs_builddir&;t t
15045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15046 s&@INSTALL@&$ac_INSTALL&;t t
15047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15048 $ac_datarootdir_hack
15050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15051 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15056 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15058 which seems to be undefined. Please make sure it is defined" >&5
15059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15060 which seems to be undefined. Please make sure it is defined" >&2;}
15062 rm -f "$ac_tmp/stdin"
15064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15073 if test x"$ac_file" != x-; then
15075 $as_echo "/* $configure_input */" \
15076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15077 } >"$ac_tmp/config.h" \
15078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15079 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15084 mv "$ac_tmp/config.h" "$ac_file" \
15085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15088 $as_echo "/* $configure_input */" \
15089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15090 || as_fn_error $? "could not create -" "$LINENO" 5
15092 # Compute "$ac_file"'s index in $config_headers.
15095 for _am_header in $config_headers :; do
15096 case $_am_header in
15097 $_am_arg | $_am_arg:* )
15100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15103 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15104 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105 X"$_am_arg" : 'X\(//\)[^/]' \| \
15106 X"$_am_arg" : 'X\(//\)$' \| \
15107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15108 $as_echo X"$_am_arg" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15113 /^X\(\/\/\)[^/].*/{
15125 s/.*/./; q'`/stamp-h$_am_stamp_count
15128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15129 $as_echo "$as_me: executing $ac_file commands" >&6;}
15134 case $ac_file$ac_mode in
15135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15136 # Older Autoconf quotes --file arguments for eval, but not when files
15137 # are listed without --file. Let's play safe and only enable the eval
15138 # if we detect the quoting.
15139 case $CONFIG_FILES in
15140 *\'*) eval set x "$CONFIG_FILES" ;;
15141 *) set x $CONFIG_FILES ;;
15146 # Strip MF so we end up with the name of the file.
15147 mf=`echo "$mf" | sed -e 's/:.*$//'`
15148 # Check whether this is an Automake generated Makefile or not.
15149 # We used to match only the files named 'Makefile.in', but
15150 # some people rename them; so instead we look at the file content.
15151 # Grep'ing the first line is not enough: some people post-process
15152 # each Makefile.in and add a new line on top of each file to say so.
15153 # Grep'ing the whole file is not good either: AIX grep has a line
15154 # limit of 2048, but all sed's we know have understand at least 4000.
15155 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15156 dirpart=`$as_dirname -- "$mf" ||
15157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15158 X"$mf" : 'X\(//\)[^/]' \| \
15159 X"$mf" : 'X\(//\)$' \| \
15160 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15166 /^X\(\/\/\)[^/].*/{
15182 # Extract the definition of DEPDIR, am__include, and am__quote
15183 # from the Makefile without running 'make'.
15184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15185 test -z "$DEPDIR" && continue
15186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15187 test -z "$am__include" && continue
15188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15189 # Find all dependency output files, they are included files with
15190 # $(DEPDIR) in their names. We invoke sed twice because it is the
15191 # simplest approach to changing $(DEPDIR) to its actual value in the
15193 for file in `sed -n "
15194 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15195 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15196 # Make sure the directory exists.
15197 test -f "$dirpart/$file" && continue
15198 fdir=`$as_dirname -- "$file" ||
15199 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15200 X"$file" : 'X\(//\)[^/]' \| \
15201 X"$file" : 'X\(//\)$' \| \
15202 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15203 $as_echo X"$file" |
15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15208 /^X\(\/\/\)[^/].*/{
15221 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15222 # echo "creating $dirpart/$file"
15223 echo '# dummy' > "$dirpart/$file"
15230 # See if we are running on zsh, and set the options that allow our
15231 # commands through without removal of \ escapes.
15232 if test -n "${ZSH_VERSION+set}"; then
15233 setopt NO_GLOB_SUBST
15237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15240 cat <<_LT_EOF >> "$cfgfile"
15242 # Generated automatically by $as_me ($PACKAGE) $VERSION
15243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15244 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15246 # Provide generalized library-building support services.
15247 # Written by Gordon Matzigkeit, 1996
15249 # Copyright (C) 2014 Free Software Foundation, Inc.
15250 # This is free software; see the source for copying conditions. There is NO
15251 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15253 # GNU Libtool is free software; you can redistribute it and/or modify
15254 # it under the terms of the GNU General Public License as published by
15255 # the Free Software Foundation; either version 2 of of the License, or
15256 # (at your option) any later version.
15258 # As a special exception to the GNU General Public License, if you
15259 # distribute this file as part of a program or library that is built
15260 # using GNU Libtool, you may include this file under the same
15261 # distribution terms that you use for the rest of that program.
15263 # GNU Libtool is distributed in the hope that it will be useful, but
15264 # WITHOUT ANY WARRANTY; without even the implied warranty of
15265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15266 # GNU General Public License for more details.
15268 # You should have received a copy of the GNU General Public License
15269 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15272 # The names of the tagged configurations supported by this script.
15275 # Configured defaults for sys_lib_dlsearch_path munging.
15276 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15278 # ### BEGIN LIBTOOL CONFIG
15280 # A sed program that does not truncate output.
15283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15284 Xsed="\$SED -e 1s/^X//"
15286 # A grep program that handles long lines.
15292 # A literal string matcher.
15295 # Shell to use when invoking shell scripts.
15298 # An echo program that protects backslashes.
15301 # Which release of libtool.m4 was used?
15302 macro_version=$macro_version
15303 macro_revision=$macro_revision
15305 # Assembler program.
15308 # DLL creation program.
15309 DLLTOOL=$lt_DLLTOOL
15311 # Object dumper program.
15312 OBJDUMP=$lt_OBJDUMP
15314 # Whether or not to build shared libraries.
15315 build_libtool_libs=$enable_shared
15317 # Whether or not to build static libraries.
15318 build_old_libs=$enable_static
15320 # What type of objects to build.
15323 # Whether or not to optimize for fast installation.
15324 fast_install=$enable_fast_install
15326 # Shared archive member basename,for filename based shared library versioning on AIX.
15327 shared_archive_member_spec=$shared_archive_member_spec
15329 # The PATH separator for the build system.
15330 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15333 host_alias=$host_alias
15337 # The build system.
15338 build_alias=$build_alias
15342 # A BSD- or MS-compatible name lister.
15345 # Whether we need soft or hard links.
15348 # What is the maximum length of a command?
15349 max_cmd_len=$max_cmd_len
15351 # Object file suffix (normally "o").
15354 # Executable file suffix (normally "").
15357 # whether the shell understands "unset".
15360 # turn spaces into newlines.
15363 # turn newlines into spaces.
15366 # convert \$build file names to \$host format.
15367 to_host_file_cmd=$lt_cv_to_host_file_cmd
15369 # convert \$build files to toolchain format.
15370 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15372 # Method to check whether dependent libraries are shared objects.
15373 deplibs_check_method=$lt_deplibs_check_method
15375 # Command to use when deplibs_check_method = "file_magic".
15376 file_magic_cmd=$lt_file_magic_cmd
15378 # How to find potential files when deplibs_check_method = "file_magic".
15379 file_magic_glob=$lt_file_magic_glob
15381 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15382 want_nocaseglob=$lt_want_nocaseglob
15384 # Command to associate shared and link libraries.
15385 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15390 # Flags to create an archive.
15391 AR_FLAGS=$lt_AR_FLAGS
15393 # How to feed a file listing to the archiver.
15394 archiver_list_spec=$lt_archiver_list_spec
15396 # A symbol stripping program.
15399 # Commands used to install an old-style archive.
15401 old_postinstall_cmds=$lt_old_postinstall_cmds
15402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15404 # Whether to use a lock for old archive extraction.
15405 lock_old_archive_extraction=$lock_old_archive_extraction
15410 # LTCC compiler flags.
15411 LTCFLAGS=$lt_CFLAGS
15413 # Take the output of nm and produce a listing of raw symbols and C names.
15414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15416 # Transform the output of nm in a proper C declaration.
15417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15419 # Transform the output of nm into a list of symbols to manually relocate.
15420 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15422 # Transform the output of nm in a C name address pair.
15423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15425 # Transform the output of nm in a C name address pair when lib prefix is needed.
15426 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15428 # The name lister interface.
15429 nm_interface=$lt_lt_cv_nm_interface
15431 # Specify filename containing input files for \$NM.
15432 nm_file_list_spec=$lt_nm_file_list_spec
15434 # The root where to search for dependent libraries,and where our libraries should be installed.
15435 lt_sysroot=$lt_sysroot
15437 # Command to truncate a binary pipe.
15438 lt_truncate_bin=$lt_lt_cv_truncate_bin
15440 # The name of the directory that contains temporary libtool files.
15443 # Used to examine libraries when file_magic_cmd begins with "file".
15444 MAGIC_CMD=$MAGIC_CMD
15446 # Must we lock files when doing compilation?
15447 need_locks=$lt_need_locks
15450 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15452 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15453 DSYMUTIL=$lt_DSYMUTIL
15455 # Tool to change global to local symbols on Mac OS X.
15458 # Tool to manipulate fat objects and archives on Mac OS X.
15461 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15464 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15465 OTOOL64=$lt_OTOOL64
15467 # Old archive suffix (normally "a").
15470 # Shared library suffix (normally ".so").
15471 shrext_cmds=$lt_shrext_cmds
15473 # The commands to extract the exported symbol list from a shared archive.
15474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15476 # Variables whose values should be saved in libtool wrapper scripts and
15477 # restored at link time.
15478 variables_saved_for_relink=$lt_variables_saved_for_relink
15480 # Do we need the "lib" prefix for modules?
15481 need_lib_prefix=$need_lib_prefix
15483 # Do we need a version for libraries?
15484 need_version=$need_version
15486 # Library versioning type.
15487 version_type=$version_type
15489 # Shared library runtime path variable.
15490 runpath_var=$runpath_var
15492 # Shared library path variable.
15493 shlibpath_var=$shlibpath_var
15495 # Is shlibpath searched before the hard-coded library search path?
15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15498 # Format of library name prefix.
15499 libname_spec=$lt_libname_spec
15501 # List of archive names. First name is the real one, the rest are links.
15502 # The last name is the one that the linker finds with -lNAME
15503 library_names_spec=$lt_library_names_spec
15505 # The coded name of the library, if different from the real name.
15506 soname_spec=$lt_soname_spec
15508 # Permission mode override for installation of shared libraries.
15509 install_override_mode=$lt_install_override_mode
15511 # Command to use after installation of a shared archive.
15512 postinstall_cmds=$lt_postinstall_cmds
15514 # Command to use after uninstallation of a shared archive.
15515 postuninstall_cmds=$lt_postuninstall_cmds
15517 # Commands used to finish a libtool library installation in a directory.
15518 finish_cmds=$lt_finish_cmds
15520 # As "finish_cmds", except a single script fragment to be evaled but
15522 finish_eval=$lt_finish_eval
15524 # Whether we should hardcode library paths into libraries.
15525 hardcode_into_libs=$hardcode_into_libs
15527 # Compile-time system search path for libraries.
15528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15530 # Detected run-time system search path for libraries.
15531 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15533 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15534 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15536 # Whether dlopen is supported.
15537 dlopen_support=$enable_dlopen
15539 # Whether dlopen of programs is supported.
15540 dlopen_self=$enable_dlopen_self
15542 # Whether dlopen of statically linked programs is supported.
15543 dlopen_self_static=$enable_dlopen_self_static
15545 # Commands to strip libraries.
15546 old_striplib=$lt_old_striplib
15547 striplib=$lt_striplib
15550 # The linker used to build libraries.
15553 # How to create reloadable object files.
15554 reload_flag=$lt_reload_flag
15555 reload_cmds=$lt_reload_cmds
15557 # Commands used to build an old-style archive.
15558 old_archive_cmds=$lt_old_archive_cmds
15560 # A language specific compiler.
15563 # Is the compiler the GNU compiler?
15566 # Compiler flag to turn off builtin functions.
15567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15569 # Additional compiler flags for building library objects.
15570 pic_flag=$lt_lt_prog_compiler_pic
15572 # How to pass a linker flag through the compiler.
15573 wl=$lt_lt_prog_compiler_wl
15575 # Compiler flag to prevent dynamic linking.
15576 link_static_flag=$lt_lt_prog_compiler_static
15578 # Does compiler simultaneously support -c and -o options?
15579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15581 # Whether or not to add -lc for building shared libraries.
15582 build_libtool_need_lc=$archive_cmds_need_lc
15584 # Whether or not to disallow shared libs when runtime libs are static.
15585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15587 # Compiler flag to allow reflexive dlopens.
15588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15590 # Compiler flag to generate shared objects directly from archives.
15591 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15593 # Whether the compiler copes with passing no objects directly.
15594 compiler_needs_object=$lt_compiler_needs_object
15596 # Create an old-style archive from a shared archive.
15597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15599 # Create a temporary old-style archive to link instead of a shared archive.
15600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15602 # Commands used to build a shared archive.
15603 archive_cmds=$lt_archive_cmds
15604 archive_expsym_cmds=$lt_archive_expsym_cmds
15606 # Commands used to build a loadable module if different from building
15607 # a shared archive.
15608 module_cmds=$lt_module_cmds
15609 module_expsym_cmds=$lt_module_expsym_cmds
15611 # Whether we are building with GNU ld or not.
15612 with_gnu_ld=$lt_with_gnu_ld
15614 # Flag that allows shared libraries with undefined symbols to be built.
15615 allow_undefined_flag=$lt_allow_undefined_flag
15617 # Flag that enforces no undefined symbols.
15618 no_undefined_flag=$lt_no_undefined_flag
15620 # Flag to hardcode \$libdir into a binary during linking.
15621 # This must work even if \$libdir does not exist
15622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15624 # Whether we need a single "-rpath" flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15627 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15628 # DIR into the resulting binary.
15629 hardcode_direct=$hardcode_direct
15631 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15632 # DIR into the resulting binary and the resulting library dependency is
15633 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15634 # library is relocated.
15635 hardcode_direct_absolute=$hardcode_direct_absolute
15637 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15638 # into the resulting binary.
15639 hardcode_minus_L=$hardcode_minus_L
15641 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15642 # into the resulting binary.
15643 hardcode_shlibpath_var=$hardcode_shlibpath_var
15645 # Set to "yes" if building a shared library automatically hardcodes DIR
15646 # into the library and all subsequent libraries and executables linked
15648 hardcode_automatic=$hardcode_automatic
15650 # Set to yes if linker adds runtime paths of dependent libraries
15651 # to runtime path list.
15652 inherit_rpath=$inherit_rpath
15654 # Whether libtool must link a program against all its dependency libraries.
15655 link_all_deplibs=$link_all_deplibs
15657 # Set to "yes" if exported symbols are required.
15658 always_export_symbols=$always_export_symbols
15660 # The commands to list exported symbols.
15661 export_symbols_cmds=$lt_export_symbols_cmds
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms
15669 # Commands necessary for linking programs (against libraries) with templates.
15670 prelink_cmds=$lt_prelink_cmds
15672 # Commands necessary for finishing linking programs.
15673 postlink_cmds=$lt_postlink_cmds
15675 # Specify filename containing input files.
15676 file_list_spec=$lt_file_list_spec
15678 # How to hardcode a shared library path into an executable.
15679 hardcode_action=$hardcode_action
15681 # ### END LIBTOOL CONFIG
15685 cat <<'_LT_EOF' >> "$cfgfile"
15687 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15689 # func_munge_path_list VARIABLE PATH
15690 # -----------------------------------
15691 # VARIABLE is name of variable containing _space_ separated list of
15692 # directories to be munged by the contents of PATH, which is string
15695 # string "DIR[ DIR]" will be prepended to VARIABLE
15697 # string "DIR[ DIR]" will be appended to VARIABLE
15698 # "DIRP[:DIRP]::[DIRA:]DIRA"
15699 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15700 # "DIRA[ DIRA]" will be appended to VARIABLE
15702 # VARIABLE will be replaced by "DIR[ DIR]"
15703 func_munge_path_list ()
15709 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15712 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15715 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15716 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15725 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15726 func_cc_basename ()
15728 for cc_temp in $*""; do
15730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15736 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15740 # ### END FUNCTIONS SHARED WITH CONFIGURE
15746 cat <<\_LT_EOF >> "$cfgfile"
15747 # AIX sometimes has problems with the GCC collect2 program. For some
15748 # reason, if we set the COLLECT_NAMES environment variable, the problems
15749 # vanish in a puff of smoke.
15750 if test set != "${COLLECT_NAMES+set}"; then
15752 export COLLECT_NAMES
15759 ltmain=$ac_aux_dir/ltmain.sh
15762 # We use sed instead of cat because bash on DJGPP gets confused if
15763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15764 # text mode, it properly converts lines to CR/LF. This bash problem
15765 # is reportedly fixed, but why not run on old versions too?
15766 sed '$q' "$ltmain" >> "$cfgfile" \
15767 || (rm -f "$cfgfile"; exit 1)
15769 mv -f "$cfgfile" "$ofile" ||
15770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15774 "libpng-config":F) chmod +x libpng-config ;;
15782 ac_clean_files=$ac_clean_files_save
15784 test $ac_write_fail = 0 ||
15785 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15788 # configure is writing to config.log, and then calls config.status.
15789 # config.status does its own redirection, appending to config.log.
15790 # Unfortunately, on DOS this fails, as config.log is still kept open
15791 # by configure, so config.status won't be able to write to it; its
15792 # output is simply discarded. So we exec the FD to /dev/null,
15793 # effectively closing config.log, so it can be properly (re)opened and
15794 # appended to by config.status. When coming back to configure, we
15795 # need to make the FD available again.
15796 if test "$no_create" != yes; then
15798 ac_config_status_args=
15799 test "$silent" = yes &&
15800 ac_config_status_args="$ac_config_status_args --quiet"
15802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15805 # would make configure fail if this is the last instruction.
15806 $ac_cs_success || as_fn_exit 1
15808 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15810 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}