2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.9.
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.9'
594 PACKAGE_STRING='libpng 1.6.9'
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
695 am__fastdepCCAS_FALSE
718 MAINTAINER_MODE_FALSE
732 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
789 enable_maintainer_mode
790 enable_dependency_tracking
803 enable_unversioned_links
804 enable_unversioned_libpng_pc
805 enable_unversioned_libpng_config
808 ac_precious_vars='build_alias
822 # Initialize some variables set by options.
824 ac_init_version=false
825 ac_unrecognized_opts=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1129 -site=* | --site=* | --sit=*)
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=no ;;
1188 # Obsolete; use --with-x.
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures libpng 1.6.9 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libpng 1.6.9:";;
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1454 --enable-unversioned-links
1455 Installed libpng header files are placed in a
1456 versioned subdirectory and installed libpng library
1457 (including DLL) files are versioned. If this option
1458 is enabled unversioned links will be created
1459 pointing to the corresponding installed files. If
1460 you use libpng.pc or libpng-config for all builds
1461 you do not need these links, but if you compile
1462 programs directly they will typically #include
1463 <png.h> and link with -lpng; in that case you need
1464 the links. The links can be installed manually using
1465 'make install-header-links' and 'make
1466 install-library-links' and can be removed using the
1467 corresponding uninstall- targets. If you do enable
1468 this option every libpng 'make install' will
1469 recreate the links to point to the just installed
1470 version of libpng. The default is to create the
1471 links; use --disable-unversioned-links to change
1473 --enable-unversioned-libpng-pc
1474 Install the configuration file 'libpng.pc' as a link
1475 to the versioned version. This is done by default -
1476 use --disable-unversioned-libpng-pc to change this.
1477 --enable-unversioned-libpng-config
1478 Install the configuration file 'libpng-config' as a
1479 link to the versioned version. This is done by
1480 default - use --disable-unversioned-libpng-config to
1482 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1483 yes/on: no/off: disable the optimizations; check:
1484 use internal checking code (deprecated and poorly
1485 supported); api: disable by default, enable by a
1486 call to png_set_option; yes/on: turn on
1487 unconditionally. If not specified: determined by the
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1496 --with-sysroot=DIR Search for dependent libraries within DIR
1497 (or the compiler's sysroot if not specified).
1498 --with-zlib-prefix prefix that may have been used in installed zlib
1499 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1501 --with-binconfigs Generate shell libpng-config scripts as well as
1502 pkg-config data [default=yes]
1503 --with-libpng-prefix prefix libpng exported function (API) names with the
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1517 PNG_COPTS additional flags for the C compiler, use this for options that
1518 would cause configure itself to fail
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 libpng configure 1.6.9
1587 generated by GNU Autoconf 2.69
1589 Copyright (C) 2012 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 test -x conftest$ac_exeext
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_link
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1738 if ac_fn_c_try_compile "$LINENO"; then :
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_compile
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=$ac_status
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1817 # include <limits.h>
1819 # include <assert.h>
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1846 if ac_fn_c_try_link "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_func
1861 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862 # -------------------------------------------
1863 # Tests whether TYPE exists after having included INCLUDES, setting cache
1864 # variable VAR accordingly.
1865 ac_fn_c_check_type ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1899 if ac_fn_c_try_compile "$LINENO"; then :
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_type
1914 cat >config.log <<_ACEOF
1915 This file contains any messages produced by compilers while
1916 running configure, to aid debugging if configure makes a mistake.
1918 It was created by libpng $as_me 1.6.9, which was
1919 generated by GNU Autoconf 2.69. Invocation command line was
1931 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1944 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 $as_echo "PATH: $as_dir"
1971 # Keep a trace of the command line.
1972 # Strip out --no-create and --no-recursion so they do not pile up.
1973 # Strip out --silent because we don't want to record it for future runs.
1974 # Also quote any args containing shell meta-characters.
1975 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_must_keep_next=false
1985 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987 | -silent | --silent | --silen | --sile | --sil)
1990 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1995 as_fn_append ac_configure_args1 " '$ac_arg'"
1996 if test $ac_must_keep_next = true; then
1997 ac_must_keep_next=false # Got value, back to normal.
2000 *=* | --config-cache | -C | -disable-* | --disable-* \
2001 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003 | -with-* | --with-* | -without-* | --without-* | --x)
2004 case "$ac_configure_args0 " in
2005 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008 -* ) ac_must_keep_next=true ;;
2011 as_fn_append ac_configure_args " '$ac_arg'"
2016 { ac_configure_args0=; unset ac_configure_args0;}
2017 { ac_configure_args1=; unset ac_configure_args1;}
2019 # When interrupted or exit'd, cleanup temporary files, and complete
2020 # config.log. We remove comments because anyway the quotes in there
2021 # would cause problems or look ugly.
2022 # WARNING: Use '\'' to represent an apostrophe within the trap.
2023 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024 trap 'exit_status=$?
2025 # Save into config.log some information that might help in debugging.
2029 $as_echo "## ---------------- ##
2030 ## Cache variables. ##
2031 ## ---------------- ##"
2033 # The following way of writing the cache mishandles newlines in values,
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 $as_echo "## ----------------- ##
2066 ## Output variables. ##
2067 ## ----------------- ##"
2069 for ac_var in $ac_subst_vars
2071 eval ac_val=\$$ac_var
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 $as_echo "$ac_var='\''$ac_val'\''"
2079 if test -n "$ac_subst_files"; then
2080 $as_echo "## ------------------- ##
2081 ## File substitutions. ##
2082 ## ------------------- ##"
2084 for ac_var in $ac_subst_files
2086 eval ac_val=\$$ac_var
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 $as_echo "$ac_var='\''$ac_val'\''"
2095 if test -s confdefs.h; then
2096 $as_echo "## ----------- ##
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2119 $as_echo "/* confdefs.h */" > confdefs.h
2121 # Predefined preprocessor variables.
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_NAME "$PACKAGE_NAME"
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_STRING "$PACKAGE_STRING"
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_URL "$PACKAGE_URL"
2148 # Let the site file select an alternate cache file if it wants to.
2149 # Prefer an explicitly selected file to automatically selected ones.
2152 if test -n "$CONFIG_SITE"; then
2153 # We do not want a PATH search for config.site.
2154 case $CONFIG_SITE in #((
2155 -*) ac_site_file1=./$CONFIG_SITE;;
2156 */*) ac_site_file1=$CONFIG_SITE;;
2157 *) ac_site_file1=./$CONFIG_SITE;;
2159 elif test "x$prefix" != xNONE; then
2160 ac_site_file1=$prefix/share/config.site
2161 ac_site_file2=$prefix/etc/config.site
2163 ac_site_file1=$ac_default_prefix/share/config.site
2164 ac_site_file2=$ac_default_prefix/etc/config.site
2166 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168 test "x$ac_site_file" = xNONE && continue
2169 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2172 sed 's/^/| /' "$ac_site_file" >&5
2174 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176 as_fn_error $? "failed to load site script $ac_site_file
2177 See \`config.log' for more details" "$LINENO" 5; }
2181 if test -r "$cache_file"; then
2182 # Some versions of bash will fail to source /dev/null (special files
2183 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2184 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 # Check that the precious variables saved in the cache have kept the same
2200 ac_cache_corrupted=false
2201 for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2255 ## -------------------- ##
2256 ## Main body of script. ##
2257 ## -------------------- ##
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 # libpng does not follow GNU file name conventions (hence 'foreign')
2269 # color-tests requires automake 1.11 or later
2270 # silent-rules requires automake 1.11 or later
2271 # dist-xz requires automake 1.11 or later
2272 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2273 # 1.13 is required for parallel tests
2274 am__api_version='1.14'
2277 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2278 if test -f "$ac_dir/install-sh"; then
2280 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 elif test -f "$ac_dir/install.sh"; then
2284 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 elif test -f "$ac_dir/shtool"; then
2288 ac_install_sh="$ac_aux_dir/shtool install -c"
2292 if test -z "$ac_aux_dir"; then
2293 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2296 # These three variables are undocumented and unsupported,
2297 # and are intended to be withdrawn in a future Autoconf release.
2298 # They can cause serious problems if a builder's source tree is in a directory
2299 # whose full name contains unusual characters.
2300 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2301 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2302 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2305 # Find a good install program. We prefer a C program (faster),
2306 # so one script is as good as another. But avoid the broken or
2307 # incompatible versions:
2308 # SysV /etc/install, /usr/sbin/install
2309 # SunOS /usr/etc/install
2310 # IRIX /sbin/install
2312 # AmigaOS /C/install, which installs bootblocks on floppy discs
2313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2316 # OS/2's system install, which has a completely different semantic
2317 # ./install, which can be erroneously created by make from ./install.sh.
2318 # Reject install programs that cannot install multiple files.
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2320 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2321 if test -z "$INSTALL"; then
2322 if ${ac_cv_path_install+:} false; then :
2323 $as_echo_n "(cached) " >&6
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 # Account for people who put trailing slashes in PATH elements.
2331 case $as_dir/ in #((
2332 ./ | .// | /[cC]/* | \
2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2334 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2337 # OSF1 and SCO ODT 3.0 have their own names for install.
2338 # Don't use installbsd from OSF since it installs stuff as root
2340 for ac_prog in ginstall scoinst install; do
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2343 if test $ac_prog = install &&
2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # AIX install. It has an incompatible calling convention.
2347 elif test $ac_prog = install &&
2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # program-specific install script used by HP pwplus--don't use.
2352 rm -rf conftest.one conftest.two conftest.dir
2353 echo one > conftest.one
2354 echo two > conftest.two
2356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2357 test -s conftest.one && test -s conftest.two &&
2358 test -s conftest.dir/conftest.one &&
2359 test -s conftest.dir/conftest.two
2361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 rm -rf conftest.one conftest.two conftest.dir
2377 if test "${ac_cv_path_install+set}" = set; then
2378 INSTALL=$ac_cv_path_install
2380 # As a last resort, use the slow shell script. Don't cache a
2381 # value for INSTALL within a source directory, because that will
2382 # break other packages using the cache if that directory is
2383 # removed, or if the value is a relative name.
2384 INSTALL=$ac_install_sh
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2388 $as_echo "$INSTALL" >&6; }
2390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2391 # It thinks the first close brace ends the variable substitution.
2392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2399 $as_echo_n "checking whether build environment is sane... " >&6; }
2400 # Reject unsafe characters in $srcdir or the absolute working directory
2401 # name. Accept space and tab only in the latter.
2405 *[\\\"\#\$\&\'\`$am_lf]*)
2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2410 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2413 # Do 'set' in a subshell so we don't clobber the current shell's
2414 # arguments. Must try -L first in case configure is actually a
2415 # symlink; some systems play weird games with the mod time of symlinks
2416 # (eg FreeBSD returns the mod time of the symlink's containing
2420 for am_try in 1 2; do
2421 echo "timestamp, slept: $am_has_slept" > conftest.file
2422 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2423 if test "$*" = "X"; then
2425 set X `ls -t "$srcdir/configure" conftest.file`
2427 if test "$*" != "X $srcdir/configure conftest.file" \
2428 && test "$*" != "X conftest.file $srcdir/configure"; then
2430 # If neither matched, then we have a broken ls. This can happen
2431 # if, for instance, CONFIG_SHELL is bash and it inherits a
2432 # broken ls alias from the environment. This has actually
2433 # happened. Such a system could not be considered "sane".
2434 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2435 alias in your environment" "$LINENO" 5
2437 if test "$2" = conftest.file || test $am_try -eq 2; then
2444 test "$2" = conftest.file
2450 as_fn_error $? "newly created file is older than distributed files!
2451 Check your system clock" "$LINENO" 5
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2454 $as_echo "yes" >&6; }
2455 # If we didn't sleep, we still need to ensure time stamps of config.status and
2456 # generated files are strictly newer.
2458 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2465 test "$program_prefix" != NONE &&
2466 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467 # Use a double $ so make ignores it.
2468 test "$program_suffix" != NONE &&
2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470 # Double any \ or $.
2471 # By default was `s,x,x', remove it if useless.
2472 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475 # expand $ac_aux_dir to an absolute path
2476 am_aux_dir=`cd $ac_aux_dir && pwd`
2478 if test x"${MISSING+set}" != xset; then
2481 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2486 # Use eval to expand $SHELL
2487 if eval "$MISSING --is-lightweight"; then
2488 am_missing_run="$MISSING "
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2492 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2495 if test x"${install_sh}" != xset; then
2498 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500 install_sh="\${SHELL} $am_aux_dir/install-sh"
2504 # Installed binaries are usually stripped using 'strip' when the user
2505 # run "make install-strip". However 'strip' might not be the right
2506 # tool to use in cross-compilation environments, therefore Automake
2507 # will honor the 'STRIP' environment variable to overrule this program.
2508 if test "$cross_compiling" != no; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}strip; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_STRIP+:} false; then :
2515 $as_echo_n "(cached) " >&6
2517 if test -n "$STRIP"; then
2518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 STRIP=$ac_cv_prog_STRIP
2538 if test -n "$STRIP"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2540 $as_echo "$STRIP" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2548 if test -z "$ac_cv_prog_STRIP"; then
2550 # Extract the first word of "strip", so it can be a program name with args.
2551 set dummy strip; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2555 $as_echo_n "(cached) " >&6
2557 if test -n "$ac_ct_STRIP"; then
2558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_STRIP="strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2578 if test -n "$ac_ct_STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2580 $as_echo "$ac_ct_STRIP" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2586 if test "x$ac_ct_STRIP" = x; then
2589 case $cross_compiling:$ac_tool_warned in
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2598 STRIP="$ac_cv_prog_STRIP"
2602 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2605 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2606 if test -z "$MKDIR_P"; then
2607 if ${ac_cv_path_mkdir+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2614 test -z "$as_dir" && as_dir=.
2615 for ac_prog in mkdir gmkdir; do
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2618 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2619 'mkdir (GNU coreutils) '* | \
2620 'mkdir (coreutils) '* | \
2621 'mkdir (fileutils) '4.1*)
2622 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2632 test -d ./--version && rmdir ./--version
2633 if test "${ac_cv_path_mkdir+set}" = set; then
2634 MKDIR_P="$ac_cv_path_mkdir -p"
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for MKDIR_P within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 MKDIR_P="$ac_install_sh -d"
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2644 $as_echo "$MKDIR_P" >&6; }
2646 for ac_prog in gawk mawk nawk awk
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_AWK+:} false; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$AWK"; then
2656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_AWK="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$AWK"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2678 $as_echo "$AWK" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$AWK" && break
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2692 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2693 $as_echo_n "(cached) " >&6
2695 cat >conftest.make <<\_ACEOF
2698 @echo '@@@%%%=$(MAKE)=@@@%%%'
2700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2701 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703 eval ac_cv_prog_make_${ac_make}_set=yes;;
2705 eval ac_cv_prog_make_${ac_make}_set=no;;
2709 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 SET_MAKE="MAKE=${MAKE-make}"
2719 rm -rf .tst 2>/dev/null
2720 mkdir .tst 2>/dev/null
2721 if test -d .tst; then
2726 rmdir .tst 2>/dev/null
2728 # Check whether --enable-silent-rules was given.
2729 if test "${enable_silent_rules+set}" = set; then :
2730 enableval=$enable_silent_rules;
2733 case $enable_silent_rules in # (((
2734 yes) AM_DEFAULT_VERBOSITY=0;;
2735 no) AM_DEFAULT_VERBOSITY=1;;
2736 *) AM_DEFAULT_VERBOSITY=1;;
2738 am_make=${MAKE-make}
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2740 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2741 if ${am_cv_make_support_nested_variables+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 if $as_echo 'TRUE=$(BAR$(V))
2750 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2751 am_cv_make_support_nested_variables=yes
2753 am_cv_make_support_nested_variables=no
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2757 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2758 if test $am_cv_make_support_nested_variables = yes; then
2760 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2762 AM_V=$AM_DEFAULT_VERBOSITY
2763 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2767 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2769 # is not polluted with repeated "-I."
2770 am__isrc=' -I$(srcdir)'
2771 # test to see if srcdir already configured
2772 if test -f $srcdir/config.status; then
2773 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2777 # test whether we have cygpath
2778 if test -z "$CYGPATH_W"; then
2779 if (cygpath --version) >/dev/null 2>/dev/null; then
2780 CYGPATH_W='cygpath -w'
2787 # Define the identity of the package.
2792 cat >>confdefs.h <<_ACEOF
2793 #define PACKAGE "$PACKAGE"
2797 cat >>confdefs.h <<_ACEOF
2798 #define VERSION "$VERSION"
2801 # Some tools Automake needs.
2803 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2806 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2809 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2812 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2815 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2817 # For better backward compatibility. To be removed once Automake 1.9.x
2818 # dies out for good. For more background, see:
2819 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2820 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2821 mkdir_p='$(MKDIR_P)'
2823 # We need awk for the "check" target. The system "awk" is bad on
2825 # Always define AMTAR for backward compatibility. Yes, it's still used
2826 # in the wild :-( We should find a proper way to deprecate it ...
2830 # We'll loop over all known methods to create a tar archive until one works.
2831 _am_tools='gnutar pax cpio none'
2833 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2840 # POSIX will say in a future version that running "rm -f" with no argument
2841 # is OK; and we want to be able to make that assumption in our Makefile
2842 # recipes. So use an aggressive probe to check that the usage we want is
2843 # actually supported "in the wild" to an acceptable degree.
2844 # See automake bug#10828.
2845 # To make any issue more visible, cause the running configure to be aborted
2846 # by default if the 'rm' program in use doesn't match our expectations; the
2847 # user can still override this though.
2848 if rm -f && rm -fr && rm -rf; then : OK; else
2852 Your 'rm' program seems unable to run without file operands specified
2853 on the command line, even when the '-f' option is present. This is contrary
2854 to the behaviour of most rm programs out there, and not conforming with
2855 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2857 Please tell bug-automake@gnu.org about your system, including the value
2858 of your $PATH and any error possibly output before this message. This
2859 can help us improve future automake versions.
2862 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2863 echo 'Configuration will proceed anyway, since you have set the' >&2
2864 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2868 Aborting the configuration process, to ensure you take notice of the issue.
2870 You can download and install GNU coreutils to get an 'rm' implementation
2871 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2873 If you want to complete the configuration process using your problematic
2874 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2875 to "yes", and re-run configure.
2878 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2881 # The following line causes --disable-maintainer-mode to be the default to
2882 # configure, this is necessary because libpng distributions cannot rely on the
2883 # time stamps of the autotools generated files being correct
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2886 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2887 # Check whether --enable-maintainer-mode was given.
2888 if test "${enable_maintainer_mode+set}" = set; then :
2889 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2891 USE_MAINTAINER_MODE=no
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2895 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2896 if test $USE_MAINTAINER_MODE = yes; then
2897 MAINTAINER_MODE_TRUE=
2898 MAINTAINER_MODE_FALSE='#'
2900 MAINTAINER_MODE_TRUE='#'
2901 MAINTAINER_MODE_FALSE=
2904 MAINT=$MAINTAINER_MODE_TRUE
2909 PNGLIB_VERSION=1.6.9
2916 ac_config_headers="$ac_config_headers config.h"
2919 # Checks for programs.
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$ac_cv_prog_CC"; then
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 $as_echo "$ac_ct_CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3008 if test "x$ac_ct_CC" = x; then
3011 case $cross_compiling:$ac_tool_warned in
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="${ac_tool_prefix}cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3064 if test -z "$CC"; then
3065 # Extract the first word of "cc", so it can be a program name with args.
3066 set dummy cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084 ac_prog_rejected=yes
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_CC
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set CC to just the basename; use the full file name.
3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 for ac_prog in cl.exe
3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3161 test -n "$CC" && break
3164 if test -z "$CC"; then
3166 for ac_prog in cl.exe
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_ac_ct_CC="$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3205 test -n "$ac_ct_CC" && break
3208 if test "x$ac_ct_CC" = x; then
3211 case $cross_compiling:$ac_tool_warned in
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3224 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "no acceptable C compiler found in \$PATH
3227 See \`config.log' for more details" "$LINENO" 5; }
3229 # Provide some information about the compiler.
3230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233 for ac_option in --version -v -V -qversion; do
3234 { { ac_try="$ac_compiler $ac_option >&5"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3243 if test -s conftest.err; then
3245 ... rest of stderr output deleted ...
3246 10q' conftest.err >conftest.er1
3247 cat conftest.er1 >&5
3249 rm -f conftest.er1 conftest.err
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3265 ac_clean_files_save=$ac_clean_files
3266 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3267 # Try to create an executable without -o first, disregard a.out.
3268 # It will help us diagnose broken compilers, and finding out an intuition
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3271 $as_echo_n "checking whether the C compiler works... " >&6; }
3272 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3274 # The possible output files:
3275 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278 for ac_file in $ac_files
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3287 if { { ac_try="$ac_link_default"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link_default") 2>&5
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3301 # so that the user can short-circuit this test for compilers unknown to
3303 for ac_file in $ac_files ''
3305 test -f "$ac_file" || continue
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310 # We found the default executable, but exeext='' is most
3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 # We set ac_cv_exeext here because the later test for it is not
3319 # safe: cross compilers may not add the suffix if given an `-o'
3320 # argument, so we may need to know it at that point already.
3321 # Even if this section looks crufty: it has the advantage of
3328 test "$ac_cv_exeext" = no && ac_cv_exeext=
3333 if test -z "$ac_file"; then :
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error 77 "C compiler cannot create executables
3342 See \`config.log' for more details" "$LINENO" 5; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348 $as_echo_n "checking for C compiler default output file name... " >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350 $as_echo "$ac_file" >&6; }
3351 ac_exeext=$ac_cv_exeext
3353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3356 $as_echo_n "checking for suffix of executables... " >&6; }
3357 if { { ac_try="$ac_link"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3372 for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details" "$LINENO" 5; }
3387 rm -f conftest conftest$ac_cv_exeext
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389 $as_echo "$ac_cv_exeext" >&6; }
3391 rm -f conftest.$ac_ext
3392 EXEEXT=$ac_cv_exeext
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3400 FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3407 ac_clean_files="$ac_clean_files conftest.out"
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411 $as_echo_n "checking whether we are cross compiling... " >&6; }
3412 if test "$cross_compiling" != yes; then
3413 { { ac_try="$ac_link"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }
3424 if { ac_try='./conftest$ac_cv_exeext'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3437 if test "$cross_compiling" = maybe; then
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details" "$LINENO" 5; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449 $as_echo "$cross_compiling" >&6; }
3451 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452 ac_clean_files=$ac_clean_files_save
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454 $as_echo_n "checking for suffix of object files... " >&6; }
3455 if ${ac_cv_objext+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3469 rm -f conftest.o conftest.obj
3470 if { { ac_try="$ac_compile"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compile") 2>&5
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 for ac_file in conftest.o conftest.obj conftest.*; do
3482 test -f "$ac_file" || continue;
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "cannot compute suffix of object files: cannot compile
3496 See \`config.log' for more details" "$LINENO" 5; }
3498 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3501 $as_echo "$ac_cv_objext" >&6; }
3502 OBJEXT=$ac_cv_objext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3505 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3506 if ${ac_cv_c_compiler_gnu+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3523 if ac_fn_c_try_compile "$LINENO"; then :
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3533 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3534 if test $ac_compiler_gnu = yes; then
3539 ac_test_CFLAGS=${CFLAGS+set}
3540 ac_save_CFLAGS=$CFLAGS
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3542 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3543 if ${ac_cv_prog_cc_g+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 ac_save_c_werror_flag=$ac_c_werror_flag
3547 ac_c_werror_flag=yes
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 if ac_fn_c_try_compile "$LINENO"; then :
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3576 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3603 $as_echo "$ac_cv_prog_cc_g" >&6; }
3604 if test "$ac_test_CFLAGS" = set; then
3605 CFLAGS=$ac_save_CFLAGS
3606 elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3613 if test "$GCC" = yes; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3620 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3621 if ${ac_cv_prog_cc_c89+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 ac_cv_prog_cc_c89=no
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3645 s = g (p, va_arg (v,int));
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 CC="$ac_save_CC $ac_arg"
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_c89=$ac_arg
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 rm -f conftest.$ac_ext
3693 case "x$ac_cv_prog_cc_c89" in
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696 $as_echo "none needed" >&6; } ;;
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;;
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 if test "x$ac_cv_prog_cc_c89" != xno; then :
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3721 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3722 if ${am_cv_prog_cc_c_o+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3736 # Make sure it works both with $CC and with simple cc.
3737 # Following AC_PROG_CC_C_O, we do the test twice because some
3738 # compilers refuse to overwrite an existing .o file with -o,
3739 # though they will create one.
3740 am_cv_prog_cc_c_o=yes
3742 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3743 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } \
3747 && test -f conftest2.$ac_objext; then
3750 am_cv_prog_cc_c_o=no
3754 rm -f core conftest*
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3758 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3759 if test "$am_cv_prog_cc_c_o" != yes; then
3760 # Losing compiler, so override with the script.
3761 # FIXME: It is wrong to rewrite CC.
3762 # But if we don't then we get into trouble of one sort or another.
3763 # A longer-term fix would be to have automake use am__CC in this case,
3764 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3765 CC="$am_aux_dir/compile $CC"
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 DEPDIR="${am__leading_dot}deps"
3775 ac_config_commands="$ac_config_commands depfiles"
3778 am_make=${MAKE-make}
3779 cat > confinc << 'END'
3781 @echo this is the am__doit target
3784 # If we don't find an include directive, just comment out the code.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3790 # First try GNU make style include.
3791 echo "include confinc" > confmf
3792 # Ignore all kinds of additional output from 'make'.
3793 case `$am_make -s -f confmf 2> /dev/null` in #(
3794 *the\ am__doit\ target*)
3800 # Now try BSD make style include.
3801 if test "$am__include" = "#"; then
3802 echo '.include "confinc"' > confmf
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805 am__include=.include
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814 $as_echo "$_am_result" >&6; }
3815 rm -f confinc confmf
3817 # Check whether --enable-dependency-tracking was given.
3818 if test "${enable_dependency_tracking+set}" = set; then :
3819 enableval=$enable_dependency_tracking;
3822 if test "x$enable_dependency_tracking" != xno; then
3823 am_depcomp="$ac_aux_dir/depcomp"
3827 if test "x$enable_dependency_tracking" != xno; then
3837 depcc="$CC" am_compiler_list=
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840 $as_echo_n "checking dependency style of $depcc... " >&6; }
3841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
3848 # making a dummy file named 'D' -- because '-MD' means "put the output
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3864 am_cv_CC_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3869 case " $depcc " in #(
3870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3873 for depmode in $am_compiler_list; do
3874 # Setup a source with many dependencies, because some compilers
3875 # like to wrap large dependency lists on column 80 (with \), and
3876 # we should not choose a depcomp mode which is confused by this.
3878 # We need to recreate these files for each test, as the compiler may
3879 # overwrite some of them when testing with obscure command lines.
3880 # This happens at least with the AIX C compiler.
3882 for i in 1 2 3 4 5 6; do
3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885 # Solaris 10 /bin/sh.
3886 echo '/* dummy */' > sub/conftst$i.h
3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3891 # mode. It turns out that the SunPro C++ compiler does not properly
3892 # handle '-M -o', and we need to detect this. Also, some Intel
3893 # versions had trouble with output in subdirs.
3894 am__obj=sub/conftest.${OBJEXT-o}
3895 am__minus_obj="-o $am__obj"
3898 # This depmode causes a compiler race in universal mode.
3899 test "$am__universal" = false || continue
3902 # After this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested.
3904 if test "x$enable_dependency_tracking" = xyes; then
3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911 # This compiler won't grok '-c -o', but also, the minuso test has
3912 # not run yet. These depmodes are late enough in the game, and
3913 # so weak that their functioning should not be impacted.
3914 am__obj=conftest.${OBJEXT-o}
3919 if depmode=$depmode \
3920 source=sub/conftest.c object=$am__obj \
3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 >/dev/null 2>conftest.err &&
3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928 # icc doesn't choke on unknown options, it will just issue warnings
3929 # or remarks (even with -Werror). So we grep stderr for any message
3930 # that says an option was ignored or not supported.
3931 # When given -MP, icc 7.0 and 7.1 complain thusly:
3932 # icc: Command line warning: ignoring option '-M'; no argument required
3933 # The diagnosis changed in icc 8.0:
3934 # icc: Command line remark: option '-MP' not supported
3935 if (grep 'ignoring option' conftest.err ||
3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937 am_cv_CC_dependencies_compiler_type=$depmode
3946 am_cv_CC_dependencies_compiler_type=none
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3955 test "x$enable_dependency_tracking" != xno \
3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3958 am__fastdepCC_FALSE='#'
3960 am__fastdepCC_TRUE='#'
3961 am__fastdepCC_FALSE=
3965 # By default we simply use the C compiler to build assembly code.
3967 test "${CCAS+set}" = set || CCAS=$CC
3968 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3972 depcc="$CCAS" am_compiler_list=
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3975 $as_echo_n "checking dependency style of $depcc... " >&6; }
3976 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3977 $as_echo_n "(cached) " >&6
3979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3980 # We make a subdir and do the tests there. Otherwise we can end up
3981 # making bogus files that we don't know about and never remove. For
3982 # instance it was reported that on HP-UX the gcc test will end up
3983 # making a dummy file named 'D' -- because '-MD' means "put the output
3987 # Copy depcomp to subdir because otherwise we won't find it if we're
3988 # using a relative directory.
3989 cp "$am_depcomp" conftest.dir
3991 # We will build objects and dependencies in a subdirectory because
3992 # it helps to detect inapplicable dependency modes. For instance
3993 # both Tru64's cc and ICC support -MD to output dependencies as a
3994 # side effect of compilation, but ICC will put the dependencies in
3995 # the current directory while Tru64 will put them in the object
3999 am_cv_CCAS_dependencies_compiler_type=none
4000 if test "$am_compiler_list" = ""; then
4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4018 # Solaris 10 /bin/sh.
4019 echo '/* dummy */' > sub/conftst$i.h
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle '-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs.
4027 am__obj=sub/conftest.${OBJEXT-o}
4028 am__minus_obj="-o $am__obj"
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false || continue
4035 # After this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested.
4037 if test "x$enable_dependency_tracking" = xyes; then
4043 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4044 # This compiler won't grok '-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj=conftest.${OBJEXT-o}
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=$am__obj \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070 am_cv_CCAS_dependencies_compiler_type=$depmode
4079 am_cv_CCAS_dependencies_compiler_type=none
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4085 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4090 am__fastdepCCAS_TRUE=
4091 am__fastdepCCAS_FALSE='#'
4093 am__fastdepCCAS_TRUE='#'
4094 am__fastdepCCAS_FALSE=
4098 # Make sure we can run config.sub.
4099 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4100 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4103 $as_echo_n "checking build system type... " >&6; }
4104 if ${ac_cv_build+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_build_alias=$build_alias
4108 test "x$ac_build_alias" = x &&
4109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4110 test "x$ac_build_alias" = x &&
4111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4117 $as_echo "$ac_cv_build" >&6; }
4118 case $ac_cv_build in
4120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4123 ac_save_IFS=$IFS; IFS='-'
4129 # Remember, the first character of IFS is used to create $*,
4130 # except with old shells:
4133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4137 $as_echo_n "checking host system type... " >&6; }
4138 if ${ac_cv_host+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test "x$host_alias" = x; then
4142 ac_cv_host=$ac_cv_build
4144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4150 $as_echo "$ac_cv_host" >&6; }
4153 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4156 ac_save_IFS=$IFS; IFS='-'
4162 # Remember, the first character of IFS is used to create $*,
4163 # except with old shells:
4166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171 if ${ac_cv_path_SED+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 as_fn_executable_p "$ac_path_SED" || continue
4192 # Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194 case `"$ac_path_SED" --version 2>&1` in
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4199 $as_echo_n 0123456789 >"conftest.in"
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 $ac_path_SED_found && break 3
4225 if test -z "$ac_cv_path_SED"; then
4226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234 $as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4238 test -z "$SED" && SED=sed
4239 Xsed="$SED -e 1s/^X//"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253 if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 as_fn_executable_p "$ac_path_GREP" || continue
4268 # Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270 case `"$ac_path_GREP" --version 2>&1` in
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275 $as_echo_n 0123456789 >"conftest.in"
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 $ac_path_GREP_found && break 3
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 ac_cv_path_GREP=$GREP
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310 $as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315 $as_echo_n "checking for egrep... " >&6; }
4316 if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 as_fn_executable_p "$ac_path_EGREP" || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 $as_echo_n 0123456789 >"conftest.in"
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 $ac_path_EGREP_found && break 3
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 ac_cv_path_EGREP=$EGREP
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377 $as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382 $as_echo_n "checking for fgrep... " >&6; }
4383 if ${ac_cv_path_FGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p "$ac_path_FGREP" || continue
4401 # Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403 case `"$ac_path_FGREP" --version 2>&1` in
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4408 $as_echo_n 0123456789 >"conftest.in"
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 $ac_path_FGREP_found && break 3
4434 if test -z "$ac_cv_path_FGREP"; then
4435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 ac_cv_path_FGREP=$FGREP
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444 $as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4448 test -z "$GREP" && GREP=grep
4466 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4467 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4468 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4471 $as_echo_n "checking how to print strings... " >&6; }
4472 # Test print first, because it will be a builtin if present.
4473 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4474 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4476 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4479 # Use this function as a fallback that always works.
4480 func_fallback_echo ()
4482 eval 'cat <<_LTECHO_EOF
4486 ECHO='func_fallback_echo'
4489 # func_echo_all arg...
4490 # Invoke $ECHO with all args, space-separated.
4497 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4498 $as_echo "printf" >&6; } ;;
4499 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4500 $as_echo "print -r" >&6; } ;;
4501 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4502 $as_echo "cat" >&6; } ;;
4520 # Check whether --with-gnu-ld was given.
4521 if test "${with_gnu_ld+set}" = set; then :
4522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4528 if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531 $as_echo_n "checking for ld used by $CC... " >&6; }
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4540 # Accept absolute paths.
4542 re_direlt='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4548 test -z "$LD" && LD="$ac_prog"
4551 # If it fails, then pretend we aren't using GCC.
4555 # If it is relative, then search for the first ld in PATH.
4559 elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561 $as_echo_n "checking for GNU ld... " >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564 $as_echo_n "checking for non-GNU ld... " >&6; }
4566 if ${lt_cv_path_LD+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -z "$LD"; then
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH; do
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU* | *'with BFD'*)
4581 test "$with_gnu_ld" != no && break
4584 test "$with_gnu_ld" != yes && break
4591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4596 if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598 $as_echo "$LD" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4603 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606 if ${lt_cv_prog_gnu_ld+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610 case `$LD -v 2>&1 </dev/null` in
4611 *GNU* | *'with BFD'*)
4612 lt_cv_prog_gnu_ld=yes
4615 lt_cv_prog_gnu_ld=no
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621 with_gnu_ld=$lt_cv_prog_gnu_ld
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4638 # On Suns, sometimes $CPP names a directory.
4639 if test -n "$CPP" && test -d "$CPP"; then
4642 if test -z "$CPP"; then
4643 if ${ac_cv_prog_CPP+:} false; then :
4644 $as_echo_n "(cached) " >&6
4646 # Double quotes because CPP needs to be expanded
4647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4650 for ac_c_preproc_warn_flag in '' yes
4652 # Use a header file that comes with gcc, so configuring glibc
4653 # with a fresh cross-compiler works.
4654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 # <limits.h> exists even on freestanding compilers.
4656 # On the NeXT, cc -E runs the code through the compiler's parser,
4657 # not just through cpp. "Syntax error" is here to catch this case.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4661 # include <limits.h>
4663 # include <assert.h>
4667 if ac_fn_c_try_cpp "$LINENO"; then :
4670 # Broken: fails on valid input.
4673 rm -f conftest.err conftest.i conftest.$ac_ext
4675 # OK, works on sane cases. Now check whether nonexistent headers
4676 # can be detected and how.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <ac_nonexistent.h>
4681 if ac_fn_c_try_cpp "$LINENO"; then :
4682 # Broken: success on invalid input.
4685 # Passes both tests.
4689 rm -f conftest.err conftest.i conftest.$ac_ext
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.i conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then :
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4707 $as_echo "$CPP" >&6; }
4709 for ac_c_preproc_warn_flag in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4729 # Broken: fails on valid input.
4732 rm -f conftest.err conftest.i conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <ac_nonexistent.h>
4740 if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4744 # Passes both tests.
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.i conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then :
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4759 See \`config.log' for more details" "$LINENO" 5; }
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 for ac_prog in gawk mawk nawk awk
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_AWK+:} false; then :
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$AWK"; then
4778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_AWK="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 if test -n "$AWK"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4800 $as_echo "$AWK" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$AWK" && break
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4812 $as_echo_n "checking whether ln -s works... " >&6; }
4814 if test "$LN_S" = "ln -s"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816 $as_echo "yes" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4819 $as_echo "no, using $LN_S" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 cat >conftest.make <<\_ACEOF
4832 @echo '@@@%%%=$(MAKE)=@@@%%%'
4834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4837 eval ac_cv_prog_make_${ac_make}_set=yes;;
4839 eval ac_cv_prog_make_${ac_make}_set=no;;
4843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845 $as_echo "yes" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 SET_MAKE="MAKE=${MAKE-make}"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4857 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4862 macro_version='2.4.2'
4863 macro_revision='1.3337'
4877 ltmain="$ac_aux_dir/ltmain.sh"
4879 # Backslashify metacharacters that are still active within
4880 # double-quoted strings.
4881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4883 # Same as above, but do not quote variable references.
4884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4886 # Sed substitution to delay expansion of an escaped shell variable in a
4887 # double_quote_subst'ed string.
4888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4890 # Sed substitution to delay expansion of an escaped single quote.
4891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4893 # Sed substitution to avoid accidental globbing in evaled expressions
4894 no_glob_subst='s/\*/\\\*/g'
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4898 if ${lt_cv_path_NM+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$NM"; then
4902 # Let the user override the test.
4905 lt_nm_to_check="${ac_tool_prefix}nm"
4906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4907 lt_nm_to_check="$lt_nm_to_check nm"
4909 for lt_tmp_nm in $lt_nm_to_check; do
4910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4913 test -z "$ac_dir" && ac_dir=.
4914 tmp_nm="$ac_dir/$lt_tmp_nm"
4915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4916 # Check to see if the nm accepts a BSD-compat flag.
4917 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4918 # nm: unknown option "B" ignored
4919 # Tru64's nm complains that /dev/null is an invalid object file
4920 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4921 */dev/null* | *'Invalid file or object type'*)
4922 lt_cv_path_NM="$tmp_nm -B"
4926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4928 lt_cv_path_NM="$tmp_nm -p"
4932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4933 continue # so that we can try to find one that supports BSD flags
4942 : ${lt_cv_path_NM=no}
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4946 $as_echo "$lt_cv_path_NM" >&6; }
4947 if test "$lt_cv_path_NM" != "no"; then
4950 # Didn't find any BSD compatible name lister, look for dumpbin.
4951 if test -n "$DUMPBIN"; then :
4952 # Let the user override the test.
4954 if test -n "$ac_tool_prefix"; then
4955 for ac_prog in dumpbin "link -dump"
4957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_DUMPBIN+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 if test -n "$DUMPBIN"; then
4965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 DUMPBIN=$ac_cv_prog_DUMPBIN
4985 if test -n "$DUMPBIN"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4987 $as_echo "$DUMPBIN" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 test -n "$DUMPBIN" && break
4997 if test -z "$DUMPBIN"; then
4998 ac_ct_DUMPBIN=$DUMPBIN
4999 for ac_prog in dumpbin "link -dump"
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$ac_ct_DUMPBIN"; then
5009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5029 if test -n "$ac_ct_DUMPBIN"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5031 $as_echo "$ac_ct_DUMPBIN" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 test -n "$ac_ct_DUMPBIN" && break
5041 if test "x$ac_ct_DUMPBIN" = x; then
5044 case $cross_compiling:$ac_tool_warned in
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5050 DUMPBIN=$ac_ct_DUMPBIN
5054 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5056 DUMPBIN="$DUMPBIN -symbols"
5064 if test "$DUMPBIN" != ":"; then
5068 test -z "$NM" && NM=nm
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5076 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5077 if ${lt_cv_nm_interface+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 lt_cv_nm_interface="BSD nm"
5081 echo "int some_variable = 0;" > conftest.$ac_ext
5082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5083 (eval "$ac_compile" 2>conftest.err)
5084 cat conftest.err >&5
5085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5087 cat conftest.err >&5
5088 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5089 cat conftest.out >&5
5090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5091 lt_cv_nm_interface="MS dumpbin"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5096 $as_echo "$lt_cv_nm_interface" >&6; }
5098 # find the maximum length of command line arguments
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5100 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5101 if ${lt_cv_sys_max_cmd_len+:} false; then :
5102 $as_echo_n "(cached) " >&6
5109 # On DJGPP, this test can blow up pretty badly due to problems in libc
5110 # (any single argument exceeding 2000 bytes causes a buffer overrun
5111 # during glob expansion). Even if it were fixed, the result of this
5112 # check would be larger than it should be.
5113 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5117 # Under GNU Hurd, this test is not required because there is
5118 # no limit to the length of command line arguments.
5119 # Libtool will interpret -1 as no limit whatsoever
5120 lt_cv_sys_max_cmd_len=-1;
5123 cygwin* | mingw* | cegcc*)
5124 # On Win9x/ME, this test blows up -- it succeeds, but takes
5125 # about 5 minutes as the teststring grows exponentially.
5126 # Worse, since 9x/ME are not pre-emptively multitasking,
5127 # you end up with a "frozen" computer, even though with patience
5128 # the test eventually succeeds (with a max line length of 256k).
5129 # Instead, let's just punt: use the minimum linelength reported by
5130 # all of the supported platforms: 8192 (on NT/2K/XP).
5131 lt_cv_sys_max_cmd_len=8192;
5135 # On MiNT this can take a long time and run out of memory.
5136 lt_cv_sys_max_cmd_len=8192;
5140 # On AmigaOS with pdksh, this test takes hours, literally.
5141 # So we just punt and use a minimum line length of 8192.
5142 lt_cv_sys_max_cmd_len=8192;
5145 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5146 # This has been around since 386BSD, at least. Likely further.
5147 if test -x /sbin/sysctl; then
5148 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5149 elif test -x /usr/sbin/sysctl; then
5150 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5152 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5154 # And add a safety zone
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5160 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5161 lt_cv_sys_max_cmd_len=196608
5165 # The test takes a long time on OS/2.
5166 lt_cv_sys_max_cmd_len=8192
5170 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5171 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5172 # nice to cause kernel panics so lets avoid the loop below.
5173 # First set a reasonable default.
5174 lt_cv_sys_max_cmd_len=16384
5176 if test -x /sbin/sysconfig; then
5177 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5178 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5183 lt_cv_sys_max_cmd_len=102400
5185 sysv5* | sco5v6* | sysv4.2uw2*)
5186 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5187 if test -n "$kargmax"; then
5188 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5190 lt_cv_sys_max_cmd_len=32768
5194 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5199 # Make teststring a little bigger before we do anything with it.
5200 # a 1K string should be a reasonable start.
5201 for i in 1 2 3 4 5 6 7 8 ; do
5202 teststring=$teststring$teststring
5204 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5205 # If test is not a shell built-in, we'll probably end up computing a
5206 # maximum length that is only half of the actual maximum length, but
5208 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5209 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5210 test $i != 17 # 1/2 MB should be enough
5213 teststring=$teststring$teststring
5215 # Only check the string length outside the loop.
5216 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5218 # Add a significant safety factor because C++ compilers can tack on
5219 # massive amounts of additional arguments before passing them to the
5220 # linker. It appears as though 1/2 is a usable value.
5221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5228 if test -n $lt_cv_sys_max_cmd_len ; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5230 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5233 $as_echo "none" >&6; }
5235 max_cmd_len=$lt_cv_sys_max_cmd_len
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5247 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5248 # Try some XSI features
5251 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5253 && eval 'test $(( 1 + 1 )) -eq 2 \
5254 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5257 $as_echo "$xsi_shell" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5261 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5263 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5265 && lt_shell_append=yes
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5267 $as_echo "$lt_shell_append" >&6; }
5270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5280 # test EBCDIC or ASCII
5281 case `echo X|tr X '\101'` in
5282 A) # ASCII based system
5283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5284 lt_SP2NL='tr \040 \012'
5285 lt_NL2SP='tr \015\012 \040\040'
5287 *) # EBCDIC based system
5288 lt_SP2NL='tr \100 \n'
5289 lt_NL2SP='tr \r\n \100\100'
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5302 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5303 if ${lt_cv_to_host_file_cmd+:} false; then :
5304 $as_echo_n "(cached) " >&6
5309 *-*-mingw* ) # actually msys
5310 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5313 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5315 * ) # otherwise, assume *nix
5316 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5322 *-*-mingw* ) # actually msys
5323 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5326 lt_cv_to_host_file_cmd=func_convert_file_noop
5328 * ) # otherwise, assume *nix
5329 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5333 * ) # unhandled hosts (and "normal" native builds)
5334 lt_cv_to_host_file_cmd=func_convert_file_noop
5340 to_host_file_cmd=$lt_cv_to_host_file_cmd
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5342 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5349 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5350 if ${lt_cv_to_tool_file_cmd+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 #assume ordinary cross tools, or native build.
5354 lt_cv_to_tool_file_cmd=func_convert_file_noop
5358 *-*-mingw* ) # actually msys
5359 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5367 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5369 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5376 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5377 if ${lt_cv_ld_reload_flag+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 lt_cv_ld_reload_flag='-r'
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5383 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5384 reload_flag=$lt_cv_ld_reload_flag
5385 case $reload_flag in
5387 *) reload_flag=" $reload_flag" ;;
5389 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5391 cygwin* | mingw* | pw32* | cegcc*)
5392 if test "$GCC" != yes; then
5397 if test "$GCC" = yes; then
5398 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5400 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_OBJDUMP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5421 if test -n "$OBJDUMP"; then
5422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 OBJDUMP=$ac_cv_prog_OBJDUMP
5442 if test -n "$OBJDUMP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5444 $as_echo "$OBJDUMP" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5452 if test -z "$ac_cv_prog_OBJDUMP"; then
5453 ac_ct_OBJDUMP=$OBJDUMP
5454 # Extract the first word of "objdump", so it can be a program name with args.
5455 set dummy objdump; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$ac_ct_OBJDUMP"; then
5462 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5482 if test -n "$ac_ct_OBJDUMP"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5484 $as_echo "$ac_ct_OBJDUMP" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5490 if test "x$ac_ct_OBJDUMP" = x; then
5493 case $cross_compiling:$ac_tool_warned in
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497 ac_tool_warned=yes ;;
5499 OBJDUMP=$ac_ct_OBJDUMP
5502 OBJDUMP="$ac_cv_prog_OBJDUMP"
5505 test -z "$OBJDUMP" && OBJDUMP=objdump
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5514 if ${lt_cv_deplibs_check_method+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 lt_cv_file_magic_cmd='$MAGIC_CMD'
5518 lt_cv_file_magic_test_file=
5519 lt_cv_deplibs_check_method='unknown'
5520 # Need to set the preceding variable on all platforms that support
5521 # interlibrary dependencies.
5522 # 'none' -- dependencies not supported.
5523 # `unknown' -- same as none, but documents that we really don't know.
5524 # 'pass_all' -- all dependencies passed with no checks.
5525 # 'test_compile' -- check by making test program.
5526 # 'file_magic [[regex]]' -- check by looking for files in library path
5527 # which responds to the $file_magic_cmd with a given extended regex.
5528 # If you have `file' or equivalent on your system and you're not sure
5529 # whether `pass_all' will *always* work, you probably want this one.
5533 lt_cv_deplibs_check_method=pass_all
5537 lt_cv_deplibs_check_method=pass_all
5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5542 lt_cv_file_magic_cmd='/usr/bin/file -L'
5543 lt_cv_file_magic_test_file=/shlib/libc.so
5547 # func_win32_libid is a shell function defined in ltmain.sh
5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549 lt_cv_file_magic_cmd='func_win32_libid'
5553 # Base MSYS/MinGW do not provide the 'file' command needed by
5554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5555 # unless we find 'file', for example because we are cross-compiling.
5556 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5557 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559 lt_cv_file_magic_cmd='func_win32_libid'
5561 # Keep this pattern in sync with the one in func_win32_libid.
5562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5563 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 # use the weaker test based on 'objdump'. See mingw*.
5569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570 lt_cv_file_magic_cmd='$OBJDUMP -f'
5573 darwin* | rhapsody*)
5574 lt_cv_deplibs_check_method=pass_all
5577 freebsd* | dragonfly*)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5581 # Not sure whether the presence of OpenBSD here was a mistake.
5582 # Let's accept both of them until this is cleared up.
5583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5589 lt_cv_deplibs_check_method=pass_all
5594 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_deplibs_check_method=pass_all
5601 hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5609 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]'
5610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5624 irix5* | irix6* | nonstopux*)
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5631 lt_cv_deplibs_check_method=pass_all
5634 # This must be glibc/ELF.
5635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5636 lt_cv_deplibs_check_method=pass_all
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5654 lt_cv_deplibs_check_method=pass_all
5658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5665 osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5670 lt_cv_deplibs_check_method=pass_all
5674 lt_cv_deplibs_check_method=pass_all
5677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5682 case $host_vendor in
5684 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]'
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5688 lt_cv_deplibs_check_method=pass_all
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697 lt_cv_file_magic_test_file=/lib/libc.so
5700 lt_cv_deplibs_check_method=pass_all
5703 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method=pass_all
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5715 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5719 if test "$build" = "$host"; then
5722 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5725 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5731 file_magic_cmd=$lt_cv_file_magic_cmd
5732 deplibs_check_method=$lt_cv_deplibs_check_method
5733 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_DLLTOOL+:} false; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -n "$DLLTOOL"; then
5765 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 DLLTOOL=$ac_cv_prog_DLLTOOL
5785 if test -n "$DLLTOOL"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5787 $as_echo "$DLLTOOL" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5795 if test -z "$ac_cv_prog_DLLTOOL"; then
5796 ac_ct_DLLTOOL=$DLLTOOL
5797 # Extract the first word of "dlltool", so it can be a program name with args.
5798 set dummy dlltool; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$ac_ct_DLLTOOL"; then
5805 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5825 if test -n "$ac_ct_DLLTOOL"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5827 $as_echo "$ac_ct_DLLTOOL" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5833 if test "x$ac_ct_DLLTOOL" = x; then
5836 case $cross_compiling:$ac_tool_warned in
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5842 DLLTOOL=$ac_ct_DLLTOOL
5845 DLLTOOL="$ac_cv_prog_DLLTOOL"
5848 test -z "$DLLTOOL" && DLLTOOL=dlltool
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5857 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5858 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5859 $as_echo_n "(cached) " >&6
5861 lt_cv_sharedlib_from_linklib_cmd='unknown'
5864 cygwin* | mingw* | pw32* | cegcc*)
5865 # two different shell functions defined in ltmain.sh
5866 # decide which to use based on capabilities of $DLLTOOL
5867 case `$DLLTOOL --help 2>&1` in
5868 *--identify-strict*)
5869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5872 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5877 # fallback: assume linklib IS sharedlib
5878 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5884 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5885 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5886 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5895 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_prog_AR+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 if test -n "$AR"; then
5906 ac_cv_prog_AR="$AR" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 if test -n "$AR"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5928 $as_echo "$AR" >&6; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5935 test -n "$AR" && break
5938 if test -z "$AR"; then
5942 # Extract the first word of "$ac_prog", so it can be a program name with args.
5943 set dummy $ac_prog; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$ac_ct_AR"; then
5950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_AR="$ac_prog"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5970 if test -n "$ac_ct_AR"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5972 $as_echo "$ac_ct_AR" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5979 test -n "$ac_ct_AR" && break
5982 if test "x$ac_ct_AR" = x; then
5985 case $cross_compiling:$ac_tool_warned in
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6009 $as_echo_n "checking for archiver @FILE support... " >&6; }
6010 if ${lt_cv_ar_at_file+:} false; then :
6011 $as_echo_n "(cached) " >&6
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 echo conftest.$ac_objext > conftest.lst
6027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6029 (eval $lt_ar_try) 2>&5
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }
6033 if test "$ac_status" -eq 0; then
6034 # Ensure the archiver fails upon bogus file names.
6035 rm -f conftest.$ac_objext libconftest.a
6036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6037 (eval $lt_ar_try) 2>&5
6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }
6041 if test "$ac_status" -ne 0; then
6045 rm -f conftest.* libconftest.a
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6052 $as_echo "$lt_cv_ar_at_file" >&6; }
6054 if test "x$lt_cv_ar_at_file" = xno; then
6057 archiver_list_spec=$lt_cv_ar_at_file
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}strip; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_STRIP+:} false; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$STRIP"; then
6075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 STRIP=$ac_cv_prog_STRIP
6095 if test -n "$STRIP"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6097 $as_echo "$STRIP" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6105 if test -z "$ac_cv_prog_STRIP"; then
6107 # Extract the first word of "strip", so it can be a program name with args.
6108 set dummy strip; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$ac_ct_STRIP"; then
6115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_ac_ct_STRIP="strip"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6135 if test -n "$ac_ct_STRIP"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6137 $as_echo "$ac_ct_STRIP" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6143 if test "x$ac_ct_STRIP" = x; then
6146 case $cross_compiling:$ac_tool_warned in
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6155 STRIP="$ac_cv_prog_STRIP"
6158 test -z "$STRIP" && STRIP=:
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_RANLIB+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 RANLIB=$ac_cv_prog_RANLIB
6194 if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196 $as_echo "$RANLIB" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207 set dummy ranlib; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_ac_ct_RANLIB="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234 if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236 $as_echo "$ac_ct_RANLIB" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_RANLIB" = x; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6251 RANLIB=$ac_ct_RANLIB
6254 RANLIB="$ac_cv_prog_RANLIB"
6257 test -z "$RANLIB" && RANLIB=:
6264 # Determine commands to create old-style static archives.
6265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6266 old_postinstall_cmds='chmod 644 $oldlib'
6267 old_postuninstall_cmds=
6269 if test -n "$RANLIB"; then
6272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6283 lock_old_archive_extraction=yes ;;
6285 lock_old_archive_extraction=no ;;
6326 # If no C compiler was specified, use CC.
6329 # If no C compiler flags were specified, use CFLAGS.
6330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6332 # Allow CC to be a program name with arguments.
6336 # Check for command to grab the raw symbol name followed by C symbol from nm.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6339 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6340 $as_echo_n "(cached) " >&6
6343 # These are sane defaults that work on at least a few old systems.
6344 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6346 # Character class describing NM global symbol codes.
6347 symcode='[BCDEGRST]'
6349 # Regexp to match symbols that can be accessed directly from C.
6350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6352 # Define system-specific variables.
6357 cygwin* | mingw* | pw32* | cegcc*)
6358 symcode='[ABCDGISTW]'
6361 if test "$host_cpu" = ia64; then
6362 symcode='[ABCDEGRST]'
6366 symcode='[BCDEGRST]'
6369 symcode='[BCDEGQRST]'
6380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6388 # If we're using GNU nm, then use its standard symbol codes.
6389 case `$NM -V 2>&1` in
6390 *GNU* | *'with BFD'*)
6391 symcode='[ABCDGIRSTW]' ;;
6394 # Transform an extracted symbol line into a proper C declaration.
6395 # Some systems (esp. on ia64) link data and code symbols differently,
6396 # so use this general approach.
6397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6399 # Transform an extracted symbol line into symbol name and symbol address
6400 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6401 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6403 # Handle CRLF in mingw tool chain
6407 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6411 # Try without a prefix underscore, then with it.
6412 for ac_symprfx in "" "_"; do
6414 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6415 symxfrm="\\1 $ac_symprfx\\2 \\2"
6417 # Write the raw and C identifiers.
6418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6419 # Fake it for dumpbin and say T for any non-static function
6420 # and D for any global variable.
6421 # Also find C++ and __fastcall symbols from MSVC++,
6422 # which start with @ or ?.
6423 lt_cv_sys_global_symbol_pipe="$AWK '"\
6424 " {last_section=section; section=\$ 3};"\
6425 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6426 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6427 " \$ 0!~/External *\|/{next};"\
6428 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6429 " {if(hide[section]) next};"\
6430 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6431 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6432 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6433 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6434 " ' prfx=^$ac_symprfx"
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6438 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6440 # Check to see that the pipe works correctly.
6444 cat > conftest.$ac_ext <<_LT_EOF
6449 void nm_test_func(void);
6450 void nm_test_func(void){}
6454 int main(){nm_test_var='a';nm_test_func();return(0);}
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458 (eval $ac_compile) 2>&5
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; }; then
6462 # Now try to grab the symbols.
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6465 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; } && test -s "$nlist"; then
6469 # Try sorting and uniquifying the output.
6470 if sort "$nlist" | uniq > "$nlist"T; then
6471 mv -f "$nlist"T "$nlist"
6476 # Make sure that we snagged all the symbols we need.
6477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6479 cat <<_LT_EOF > conftest.$ac_ext
6480 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6481 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6482 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6483 relocations are performed -- see ld's documentation on pseudo-relocs. */
6484 # define LT_DLSYM_CONST
6485 #elif defined(__osf__)
6486 /* This system does not cope well with relocations in const data. */
6487 # define LT_DLSYM_CONST
6489 # define LT_DLSYM_CONST const
6497 # Now generate the symbol file.
6498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6500 cat <<_LT_EOF >> conftest.$ac_ext
6502 /* The mapping between symbol names and symbols. */
6503 LT_DLSYM_CONST struct {
6507 lt__PROGRAM__LTX_preloaded_symbols[] =
6509 { "@PROGRAM@", (void *) 0 },
6511 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6512 cat <<\_LT_EOF >> conftest.$ac_ext
6516 /* This works around a problem in FreeBSD linker */
6517 #ifdef FREEBSD_WORKAROUND
6518 static const void *lt_preloaded_setup() {
6519 return lt__PROGRAM__LTX_preloaded_symbols;
6527 # Now try linking the two files.
6528 mv conftest.$ac_objext conftstm.$ac_objext
6529 lt_globsym_save_LIBS=$LIBS
6530 lt_globsym_save_CFLAGS=$CFLAGS
6531 LIBS="conftstm.$ac_objext"
6532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6534 (eval $ac_link) 2>&5
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6540 LIBS=$lt_globsym_save_LIBS
6541 CFLAGS=$lt_globsym_save_CFLAGS
6543 echo "cannot find nm_test_func in $nlist" >&5
6546 echo "cannot find nm_test_var in $nlist" >&5
6549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552 echo "$progname: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 rm -rf conftest* conftst*
6557 # Do not use the global_symbol_pipe unless it works.
6558 if test "$pipe_works" = yes; then
6561 lt_cv_sys_global_symbol_pipe=
6567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6568 lt_cv_sys_global_symbol_to_cdecl=
6570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6572 $as_echo "failed" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6575 $as_echo "ok" >&6; }
6578 # Response file support.
6579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580 nm_file_list_spec='@'
6581 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6582 nm_file_list_spec='@'
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6612 $as_echo_n "checking for sysroot... " >&6; }
6614 # Check whether --with-sysroot was given.
6615 if test "${with_sysroot+set}" = set; then :
6616 withval=$with_sysroot;
6623 case ${with_sysroot} in #(
6625 if test "$GCC" = yes; then
6626 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6630 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6636 $as_echo "${with_sysroot}" >&6; }
6637 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6642 $as_echo "${lt_sysroot:-no}" >&6; }
6648 # Check whether --enable-libtool-lock was given.
6649 if test "${enable_libtool_lock+set}" = set; then :
6650 enableval=$enable_libtool_lock;
6653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6655 # Some flags need to be propagated to the compiler or linker for good
6659 # Find out which ABI we are using.
6660 echo 'int i;' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 case `/usr/bin/file conftest.$ac_objext` in
6678 # Find out which ABI we are using.
6679 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 if test "$lt_cv_prog_gnu_ld" = yes; then
6686 case `/usr/bin/file conftest.$ac_objext` in
6688 LD="${LD-ld} -melf32bsmip"
6691 LD="${LD-ld} -melf32bmipn32"
6694 LD="${LD-ld} -melf64bmip"
6698 case `/usr/bin/file conftest.$ac_objext` in
6714 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6715 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6716 # Find out which ABI we are using.
6717 echo 'int i;' > conftest.$ac_ext
6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719 (eval $ac_compile) 2>&5
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; then
6723 case `/usr/bin/file conftest.o` in
6726 x86_64-*kfreebsd*-gnu)
6727 LD="${LD-ld} -m elf_i386_fbsd"
6730 LD="${LD-ld} -m elf_i386"
6732 ppc64-*linux*|powerpc64-*linux*)
6733 LD="${LD-ld} -m elf32ppclinux"
6736 LD="${LD-ld} -m elf_s390"
6739 LD="${LD-ld} -m elf32_sparc"
6745 x86_64-*kfreebsd*-gnu)
6746 LD="${LD-ld} -m elf_x86_64_fbsd"
6749 LD="${LD-ld} -m elf_x86_64"
6751 ppc*-*linux*|powerpc*-*linux*)
6752 LD="${LD-ld} -m elf64ppc"
6754 s390*-*linux*|s390*-*tpf*)
6755 LD="${LD-ld} -m elf64_s390"
6758 LD="${LD-ld} -m elf64_sparc"
6768 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6769 SAVE_CFLAGS="$CFLAGS"
6770 CFLAGS="$CFLAGS -belf"
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6772 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6773 if ${lt_cv_cc_needs_belf+:} false; then :
6774 $as_echo_n "(cached) " >&6
6777 ac_cpp='$CPP $CPPFLAGS'
6778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_c_try_link "$LINENO"; then :
6794 lt_cv_cc_needs_belf=yes
6796 lt_cv_cc_needs_belf=no
6798 rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6808 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6809 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6811 CFLAGS="$SAVE_CFLAGS"
6815 # Find out which ABI we are using.
6816 echo 'int i;' > conftest.$ac_ext
6817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818 (eval $ac_compile) 2>&5
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; }; then
6822 case `/usr/bin/file conftest.o` in
6824 case $lt_cv_prog_gnu_ld in
6828 LD="${LD-ld} -m elf_x86_64"
6831 LD="${LD-ld} -m elf64_sparc"
6834 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6835 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6840 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6852 need_locks="$enable_libtool_lock"
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}mt; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$MANIFEST_TOOL"; then
6863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6883 if test -n "$MANIFEST_TOOL"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6885 $as_echo "$MANIFEST_TOOL" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6893 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6894 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6895 # Extract the first word of "mt", so it can be a program name with args.
6896 set dummy mt; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 if test -n "$ac_ct_MANIFEST_TOOL"; then
6903 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6923 if test -n "$ac_ct_MANIFEST_TOOL"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6925 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6931 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6940 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6943 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6946 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6948 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6949 if ${lt_cv_path_mainfest_tool+:} false; then :
6950 $as_echo_n "(cached) " >&6
6952 lt_cv_path_mainfest_tool=no
6953 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6954 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6955 cat conftest.err >&5
6956 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6957 lt_cv_path_mainfest_tool=yes
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6962 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6963 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6973 rhapsody* | darwin*)
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 if test -n "$DSYMUTIL"; then
6983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7003 if test -n "$DSYMUTIL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7005 $as_echo "$DSYMUTIL" >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7013 if test -z "$ac_cv_prog_DSYMUTIL"; then
7014 ac_ct_DSYMUTIL=$DSYMUTIL
7015 # Extract the first word of "dsymutil", so it can be a program name with args.
7016 set dummy dsymutil; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 if test -n "$ac_ct_DSYMUTIL"; then
7023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7043 if test -n "$ac_ct_DSYMUTIL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7045 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7051 if test "x$ac_ct_DSYMUTIL" = x; then
7054 case $cross_compiling:$ac_tool_warned in
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7060 DSYMUTIL=$ac_ct_DSYMUTIL
7063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_NMEDIT+:} false; then :
7072 $as_echo_n "(cached) " >&6
7074 if test -n "$NMEDIT"; then
7075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 NMEDIT=$ac_cv_prog_NMEDIT
7095 if test -n "$NMEDIT"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7097 $as_echo "$NMEDIT" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7105 if test -z "$ac_cv_prog_NMEDIT"; then
7106 ac_ct_NMEDIT=$NMEDIT
7107 # Extract the first word of "nmedit", so it can be a program name with args.
7108 set dummy nmedit; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 if test -n "$ac_ct_NMEDIT"; then
7115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7135 if test -n "$ac_ct_NMEDIT"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7137 $as_echo "$ac_ct_NMEDIT" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7143 if test "x$ac_ct_NMEDIT" = x; then
7146 case $cross_compiling:$ac_tool_warned in
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7152 NMEDIT=$ac_ct_NMEDIT
7155 NMEDIT="$ac_cv_prog_NMEDIT"
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_LIPO+:} false; then :
7164 $as_echo_n "(cached) " >&6
7166 if test -n "$LIPO"; then
7167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 LIPO=$ac_cv_prog_LIPO
7187 if test -n "$LIPO"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7189 $as_echo "$LIPO" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7197 if test -z "$ac_cv_prog_LIPO"; then
7199 # Extract the first word of "lipo", so it can be a program name with args.
7200 set dummy lipo; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 if test -n "$ac_ct_LIPO"; then
7207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_ac_ct_LIPO="lipo"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7227 if test -n "$ac_ct_LIPO"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7229 $as_echo "$ac_ct_LIPO" >&6; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7235 if test "x$ac_ct_LIPO" = x; then
7238 case $cross_compiling:$ac_tool_warned in
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7247 LIPO="$ac_cv_prog_LIPO"
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}otool; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_OTOOL+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 if test -n "$OTOOL"; then
7259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 OTOOL=$ac_cv_prog_OTOOL
7279 if test -n "$OTOOL"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7281 $as_echo "$OTOOL" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7289 if test -z "$ac_cv_prog_OTOOL"; then
7291 # Extract the first word of "otool", so it can be a program name with args.
7292 set dummy otool; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$ac_ct_OTOOL"; then
7299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_OTOOL="otool"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7319 if test -n "$ac_ct_OTOOL"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7321 $as_echo "$ac_ct_OTOOL" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7327 if test "x$ac_ct_OTOOL" = x; then
7330 case $cross_compiling:$ac_tool_warned in
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334 ac_tool_warned=yes ;;
7339 OTOOL="$ac_cv_prog_OTOOL"
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_OTOOL64+:} false; then :
7348 $as_echo_n "(cached) " >&6
7350 if test -n "$OTOOL64"; then
7351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 OTOOL64=$ac_cv_prog_OTOOL64
7371 if test -n "$OTOOL64"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7373 $as_echo "$OTOOL64" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7381 if test -z "$ac_cv_prog_OTOOL64"; then
7382 ac_ct_OTOOL64=$OTOOL64
7383 # Extract the first word of "otool64", so it can be a program name with args.
7384 set dummy otool64; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 if test -n "$ac_ct_OTOOL64"; then
7391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_OTOOL64="otool64"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7411 if test -n "$ac_ct_OTOOL64"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7413 $as_echo "$ac_ct_OTOOL64" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7419 if test "x$ac_ct_OTOOL64" = x; then
7422 case $cross_compiling:$ac_tool_warned in
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7428 OTOOL64=$ac_ct_OTOOL64
7431 OTOOL64="$ac_cv_prog_OTOOL64"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7461 $as_echo_n "checking for -single_module linker flag... " >&6; }
7462 if ${lt_cv_apple_cc_single_mod+:} false; then :
7463 $as_echo_n "(cached) " >&6
7465 lt_cv_apple_cc_single_mod=no
7466 if test -z "${LT_MULTI_MODULE}"; then
7467 # By default we will add the -single_module flag. You can override
7468 # by either setting the environment variable LT_MULTI_MODULE
7469 # non-empty at configure time, or by adding -multi_module to the
7471 rm -rf libconftest.dylib*
7472 echo "int foo(void){return 1;}" > conftest.c
7473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7474 -dynamiclib -Wl,-single_module conftest.c" >&5
7475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7478 # If there is a non-empty error log, and "single_module"
7479 # appears in it, assume the flag caused a linker warning
7480 if test -s conftest.err && $GREP single_module conftest.err; then
7481 cat conftest.err >&5
7482 # Otherwise, if the output was created with a 0 exit code from
7483 # the compiler, it worked.
7484 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7485 lt_cv_apple_cc_single_mod=yes
7487 cat conftest.err >&5
7489 rm -rf libconftest.dylib*
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7497 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7498 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 lt_cv_ld_exported_symbols_list=no
7502 save_LDFLAGS=$LDFLAGS
7503 echo "_main" > conftest.sym
7504 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7516 if ac_fn_c_try_link "$LINENO"; then :
7517 lt_cv_ld_exported_symbols_list=yes
7519 lt_cv_ld_exported_symbols_list=no
7521 rm -f core conftest.err conftest.$ac_objext \
7522 conftest$ac_exeext conftest.$ac_ext
7523 LDFLAGS="$save_LDFLAGS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7527 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7530 $as_echo_n "checking for -force_load linker flag... " >&6; }
7531 if ${lt_cv_ld_force_load+:} false; then :
7532 $as_echo_n "(cached) " >&6
7534 lt_cv_ld_force_load=no
7535 cat > conftest.c << _LT_EOF
7536 int forced_loaded() { return 2;}
7538 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7539 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7540 echo "$AR cru libconftest.a conftest.o" >&5
7541 $AR cru libconftest.a conftest.o 2>&5
7542 echo "$RANLIB libconftest.a" >&5
7543 $RANLIB libconftest.a 2>&5
7544 cat > conftest.c << _LT_EOF
7545 int main() { return 0;}
7547 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7548 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7550 if test -s conftest.err && $GREP force_load conftest.err; then
7551 cat conftest.err >&5
7552 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7553 lt_cv_ld_force_load=yes
7555 cat conftest.err >&5
7557 rm -f conftest.err libconftest.a conftest conftest.c
7558 rm -rf conftest.dSYM
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7562 $as_echo "$lt_cv_ld_force_load" >&6; }
7564 rhapsody* | darwin1.[012])
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 darwin*) # darwin 5.x on
7569 # if running on 10.5 or later, the deployment target defaults
7570 # to the OS version, if on x86, and 10.4, the deployment
7571 # target defaults to 10.4. Don't you love it?
7572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7583 _lt_dar_single_mod='$single_module'
7585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7590 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7591 _lt_dsymutil='~$DSYMUTIL $lib || :'
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7600 $as_echo_n "checking for ANSI C header files... " >&6; }
7601 if ${ac_cv_header_stdc+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7619 if ac_fn_c_try_compile "$LINENO"; then :
7620 ac_cv_header_stdc=yes
7622 ac_cv_header_stdc=no
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 if test $ac_cv_header_stdc = yes; then
7627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "memchr" >/dev/null 2>&1; then :
7637 ac_cv_header_stdc=no
7643 if test $ac_cv_header_stdc = yes; then
7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7651 $EGREP "free" >/dev/null 2>&1; then :
7654 ac_cv_header_stdc=no
7660 if test $ac_cv_header_stdc = yes; then
7661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7662 if test "$cross_compiling" = yes; then :
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7669 #if ((' ' & 0x0FF) == 0x020)
7670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7673 # define ISLOWER(c) \
7674 (('a' <= (c) && (c) <= 'i') \
7675 || ('j' <= (c) && (c) <= 'r') \
7676 || ('s' <= (c) && (c) <= 'z'))
7677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7685 for (i = 0; i < 256; i++)
7686 if (XOR (islower (i), ISLOWER (i))
7687 || toupper (i) != TOUPPER (i))
7692 if ac_fn_c_try_run "$LINENO"; then :
7695 ac_cv_header_stdc=no
7697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7698 conftest.$ac_objext conftest.beam conftest.$ac_ext
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7704 $as_echo "$ac_cv_header_stdc" >&6; }
7705 if test $ac_cv_header_stdc = yes; then
7707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7713 inttypes.h stdint.h unistd.h
7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7719 cat >>confdefs.h <<_ACEOF
7720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 for ac_header in dlfcn.h
7730 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7732 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_DLFCN_H 1
7746 enable_win32_dll=yes
7749 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}as; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_AS+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 if test -n "$AS"; then
7759 ac_cv_prog_AS="$AS" # Let the user override the test.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_AS="${ac_tool_prefix}as"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 if test -n "$AS"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7781 $as_echo "$AS" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 if test -z "$ac_cv_prog_AS"; then
7791 # Extract the first word of "as", so it can be a program name with args.
7792 set dummy as; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$ac_ct_AS"; then
7799 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_AS="as"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7819 if test -n "$ac_ct_AS"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7821 $as_echo "$ac_ct_AS" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7827 if test "x$ac_ct_AS" = x; then
7830 case $cross_compiling:$ac_tool_warned in
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7842 if test -n "$ac_tool_prefix"; then
7843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_DLLTOOL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7850 if test -n "$DLLTOOL"; then
7851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 DLLTOOL=$ac_cv_prog_DLLTOOL
7871 if test -n "$DLLTOOL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7873 $as_echo "$DLLTOOL" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 if test -z "$ac_cv_prog_DLLTOOL"; then
7882 ac_ct_DLLTOOL=$DLLTOOL
7883 # Extract the first word of "dlltool", so it can be a program name with args.
7884 set dummy dlltool; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7888 $as_echo_n "(cached) " >&6
7890 if test -n "$ac_ct_DLLTOOL"; then
7891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7911 if test -n "$ac_ct_DLLTOOL"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7913 $as_echo "$ac_ct_DLLTOOL" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7919 if test "x$ac_ct_DLLTOOL" = x; then
7922 case $cross_compiling:$ac_tool_warned in
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926 ac_tool_warned=yes ;;
7928 DLLTOOL=$ac_ct_DLLTOOL
7931 DLLTOOL="$ac_cv_prog_DLLTOOL"
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7936 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_OBJDUMP+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 if test -n "$OBJDUMP"; then
7943 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 OBJDUMP=$ac_cv_prog_OBJDUMP
7963 if test -n "$OBJDUMP"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7965 $as_echo "$OBJDUMP" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 if test -z "$ac_cv_prog_OBJDUMP"; then
7974 ac_ct_OBJDUMP=$OBJDUMP
7975 # Extract the first word of "objdump", so it can be a program name with args.
7976 set dummy objdump; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7980 $as_echo_n "(cached) " >&6
7982 if test -n "$ac_ct_OBJDUMP"; then
7983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8003 if test -n "$ac_ct_OBJDUMP"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8005 $as_echo "$ac_ct_OBJDUMP" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8011 if test "x$ac_ct_OBJDUMP" = x; then
8014 case $cross_compiling:$ac_tool_warned in
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018 ac_tool_warned=yes ;;
8020 OBJDUMP=$ac_ct_OBJDUMP
8023 OBJDUMP="$ac_cv_prog_OBJDUMP"
8029 test -z "$AS" && AS=as
8035 test -z "$DLLTOOL" && DLLTOOL=dlltool
8041 test -z "$OBJDUMP" && OBJDUMP=objdump
8053 # Check whether --enable-shared was given.
8054 if test "${enable_shared+set}" = set; then :
8055 enableval=$enable_shared; p=${PACKAGE-default}
8057 yes) enable_shared=yes ;;
8058 no) enable_shared=no ;;
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for pkg in $enableval; do
8065 if test "X$pkg" = "X$p"; then
8084 # Check whether --enable-static was given.
8085 if test "${enable_static+set}" = set; then :
8086 enableval=$enable_static; p=${PACKAGE-default}
8088 yes) enable_static=yes ;;
8089 no) enable_static=no ;;
8092 # Look at the argument we got. We use all the common list separators.
8093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8094 for pkg in $enableval; do
8096 if test "X$pkg" = "X$p"; then
8116 # Check whether --with-pic was given.
8117 if test "${with_pic+set}" = set; then :
8118 withval=$with_pic; lt_p=${PACKAGE-default}
8120 yes|no) pic_mode=$withval ;;
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for lt_pkg in $withval; do
8127 if test "X$lt_pkg" = "X$lt_p"; then
8139 test -z "$pic_mode" && pic_mode=default
8147 # Check whether --enable-fast-install was given.
8148 if test "${enable_fast_install+set}" = set; then :
8149 enableval=$enable_fast_install; p=${PACKAGE-default}
8151 yes) enable_fast_install=yes ;;
8152 no) enable_fast_install=no ;;
8154 enable_fast_install=no
8155 # Look at the argument we got. We use all the common list separators.
8156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8157 for pkg in $enableval; do
8159 if test "X$pkg" = "X$p"; then
8160 enable_fast_install=yes
8167 enable_fast_install=yes
8180 # This can be used to rebuild libtool when needed
8181 LIBTOOL_DEPS="$ltmain"
8183 # Always use our own libtool.
8184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8215 test -z "$LN_S" && LN_S="ln -s"
8230 if test -n "${ZSH_VERSION+set}" ; then
8231 setopt NO_GLOB_SUBST
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8235 $as_echo_n "checking for objdir... " >&6; }
8236 if ${lt_cv_objdir+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 rm -f .libs 2>/dev/null
8240 mkdir .libs 2>/dev/null
8241 if test -d .libs; then
8244 # MS-DOS does not allow filenames that begin with a dot.
8247 rmdir .libs 2>/dev/null
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8250 $as_echo "$lt_cv_objdir" >&6; }
8251 objdir=$lt_cv_objdir
8257 cat >>confdefs.h <<_ACEOF
8258 #define LT_OBJDIR "$lt_cv_objdir/"
8266 # AIX sometimes has problems with the GCC collect2 program. For some
8267 # reason, if we set the COLLECT_NAMES environment variable, the problems
8268 # vanish in a puff of smoke.
8269 if test "X${COLLECT_NAMES+set}" != Xset; then
8271 export COLLECT_NAMES
8278 can_build_shared=yes
8280 # All known linkers require a `.a' archive for static linking (except MSVC,
8281 # which needs '.lib').
8284 with_gnu_ld="$lt_cv_prog_gnu_ld"
8287 old_CFLAGS="$CFLAGS"
8289 # Set sane defaults for various variables
8290 test -z "$CC" && CC=cc
8291 test -z "$LTCC" && LTCC=$CC
8292 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8293 test -z "$LD" && LD=ld
8294 test -z "$ac_objext" && ac_objext=o
8296 for cc_temp in $compiler""; do
8298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8304 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8307 # Only perform the check for file, if the check method requires it
8308 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8309 case $deplibs_check_method in
8311 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8313 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8314 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8315 $as_echo_n "(cached) " >&6
8319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 lt_save_MAGIC_CMD="$MAGIC_CMD"
8323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325 for ac_dir in $ac_dummy; do
8327 test -z "$ac_dir" && ac_dir=.
8328 if test -f $ac_dir/${ac_tool_prefix}file; then
8329 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8330 if test -n "$file_magic_test_file"; then
8331 case $deplibs_check_method in
8333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336 $EGREP "$file_magic_regex" > /dev/null; then
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such. This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem. Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8358 MAGIC_CMD="$lt_save_MAGIC_CMD"
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8366 $as_echo "$MAGIC_CMD" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8376 if test -z "$lt_cv_path_MAGIC_CMD"; then
8377 if test -n "$ac_tool_prefix"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8379 $as_echo_n "checking for file... " >&6; }
8380 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8381 $as_echo_n "(cached) " >&6
8385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8388 lt_save_MAGIC_CMD="$MAGIC_CMD"
8389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8391 for ac_dir in $ac_dummy; do
8393 test -z "$ac_dir" && ac_dir=.
8394 if test -f $ac_dir/file; then
8395 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8396 if test -n "$file_magic_test_file"; then
8397 case $deplibs_check_method in
8399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8402 $EGREP "$file_magic_regex" > /dev/null; then
8407 *** Warning: the command libtool uses to detect shared libraries,
8408 *** $file_magic_cmd, produces output that libtool cannot recognize.
8409 *** The result is that libtool may fail to recognize shared libraries
8410 *** as such. This will affect the creation of libtool libraries that
8411 *** depend on shared libraries, but programs linked with such libtool
8412 *** libraries will work regardless of this problem. Nevertheless, you
8413 *** may want to report the problem to your system manager and/or to
8414 *** bug-libtool@gnu.org
8424 MAGIC_CMD="$lt_save_MAGIC_CMD"
8429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8430 if test -n "$MAGIC_CMD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8432 $as_echo "$MAGIC_CMD" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8448 # Use C for the default configuration in the libtool script
8452 ac_cpp='$CPP $CPPFLAGS'
8453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458 # Source file extension for C test sources.
8461 # Object file extension for compiled C test sources.
8465 # Code to be used in simple compile tests
8466 lt_simple_compile_test_code="int some_variable = 0;"
8468 # Code to be used in simple link tests
8469 lt_simple_link_test_code='int main(){return(0);}'
8477 # If no C compiler was specified, use CC.
8480 # If no C compiler flags were specified, use CFLAGS.
8481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8483 # Allow CC to be a program name with arguments.
8486 # Save the default compiler, since it gets overwritten when the other
8487 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8488 compiler_DEFAULT=$CC
8490 # save warnings/boilerplate of simple test code
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8494 _lt_compiler_boilerplate=`cat conftest.err`
8497 ac_outfile=conftest.$ac_objext
8498 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8500 _lt_linker_boilerplate=`cat conftest.err`
8505 ## There is no encapsulation within the following macros, do not change
8506 ## the running order or otherwise move them around unless you know exactly
8507 ## what you are doing...
8508 if test -n "$compiler"; then
8510 lt_prog_compiler_no_builtin_flag=
8512 if test "$GCC" = yes; then
8513 case $cc_basename in
8515 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8522 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8523 $as_echo_n "(cached) " >&6
8525 lt_cv_prog_compiler_rtti_exceptions=no
8526 ac_outfile=conftest.$ac_objext
8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-fno-rtti -fno-exceptions"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 # The option is referenced via a variable to avoid confusing sed.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>conftest.err)
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s "$ac_outfile"; then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings other than the usual output.
8546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_rtti_exceptions=yes
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8571 lt_prog_compiler_wl=
8572 lt_prog_compiler_pic=
8573 lt_prog_compiler_static=
8576 if test "$GCC" = yes; then
8577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_static='-static'
8582 # All AIX code is PIC.
8583 if test "$host_cpu" = ia64; then
8584 # AIX 5 now supports IA64 processor
8585 lt_prog_compiler_static='-Bstatic'
8592 # see comment about AmigaOS4 .so support
8593 lt_prog_compiler_pic='-fPIC'
8596 # FIXME: we need at least 68020 code to build shared libraries, but
8597 # adding the `-m68020' flag to GCC prevents building anything better,
8599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8605 # PIC is the default for these OSes.
8608 mingw* | cygwin* | pw32* | os2* | cegcc*)
8609 # This hack is so that the source file can tell whether it is being
8610 # built for inclusion in a dll (and should export symbols for example).
8611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8612 # (--disable-auto-import) libraries
8613 lt_prog_compiler_pic='-DDLL_EXPORT'
8616 darwin* | rhapsody*)
8617 # PIC is the default on this platform
8618 # Common symbols not allowed in MH_DYLIB files
8619 lt_prog_compiler_pic='-fno-common'
8623 # PIC is the default for Haiku.
8624 # The "-static" flag exists, but is broken.
8625 lt_prog_compiler_static=
8629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8631 # sets the default TLS model and affects inlining.
8637 lt_prog_compiler_pic='-fPIC'
8643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8644 # Instead, we relocate shared libraries at runtime.
8648 # Just because we use GCC doesn't mean we suddenly get shared libraries
8649 # on systems that don't support them.
8650 lt_prog_compiler_can_build_shared=no
8655 # QNX uses GNU C++, but need to define -shared option too, otherwise
8657 lt_prog_compiler_pic='-fPIC -shared'
8661 if test -d /usr/nec; then
8662 lt_prog_compiler_pic=-Kconform_pic
8667 lt_prog_compiler_pic='-fPIC'
8671 case $cc_basename in
8672 nvcc*) # Cuda Compiler Driver 2.2
8673 lt_prog_compiler_wl='-Xlinker '
8674 if test -n "$lt_prog_compiler_pic"; then
8675 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8680 # PORTME Check for flag to pass linker flags through the system compiler.
8683 lt_prog_compiler_wl='-Wl,'
8684 if test "$host_cpu" = ia64; then
8685 # AIX 5 now supports IA64 processor
8686 lt_prog_compiler_static='-Bstatic'
8688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8692 mingw* | cygwin* | pw32* | os2* | cegcc*)
8693 # This hack is so that the source file can tell whether it is being
8694 # built for inclusion in a dll (and should export symbols for example).
8695 lt_prog_compiler_pic='-DDLL_EXPORT'
8698 hpux9* | hpux10* | hpux11*)
8699 lt_prog_compiler_wl='-Wl,'
8700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8707 lt_prog_compiler_pic='+Z'
8710 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8711 lt_prog_compiler_static='${wl}-a ${wl}archive'
8714 irix5* | irix6* | nonstopux*)
8715 lt_prog_compiler_wl='-Wl,'
8716 # PIC (with -KPIC) is the default.
8717 lt_prog_compiler_static='-non_shared'
8720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8721 case $cc_basename in
8722 # old Intel for x86_64 which still supported -KPIC.
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-static'
8728 # icc used to be incompatible with GCC.
8729 # ICC 10 doesn't accept -KPIC any more.
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-fPIC'
8733 lt_prog_compiler_static='-static'
8735 # Lahey Fortran 8.1.
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='--shared'
8739 lt_prog_compiler_static='--static'
8742 # NAG Fortran compiler
8743 lt_prog_compiler_wl='-Wl,-Wl,,'
8744 lt_prog_compiler_pic='-PIC'
8745 lt_prog_compiler_static='-Bstatic'
8747 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8748 # Portland Group compilers (*not* the Pentium gcc compiler,
8749 # which looks to be a dead project)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fpic'
8752 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Wl,'
8756 # All Alpha code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8759 xl* | bgxl* | bgf* | mpixl*)
8760 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-qpic'
8763 lt_prog_compiler_static='-qstaticlink'
8766 case `$CC -V 2>&1 | sed 5q` in
8767 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 lt_prog_compiler_wl=''
8773 *Sun\ F* | *Sun*Fortran*)
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 lt_prog_compiler_wl='-Qoption ld '
8780 lt_prog_compiler_pic='-KPIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 lt_prog_compiler_wl='-Wl,'
8784 *Intel*\ [CF]*Compiler*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-fPIC'
8787 lt_prog_compiler_static='-static'
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-fpic'
8792 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8807 lt_prog_compiler_pic='-fPIC -shared'
8810 osf3* | osf4* | osf5*)
8811 lt_prog_compiler_wl='-Wl,'
8812 # All OSF/1 code is PIC.
8813 lt_prog_compiler_static='-non_shared'
8817 lt_prog_compiler_static='-non_shared'
8821 lt_prog_compiler_pic='-KPIC'
8822 lt_prog_compiler_static='-Bstatic'
8823 case $cc_basename in
8824 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8825 lt_prog_compiler_wl='-Qoption ld ';;
8827 lt_prog_compiler_wl='-Wl,';;
8832 lt_prog_compiler_wl='-Qoption ld '
8833 lt_prog_compiler_pic='-PIC'
8834 lt_prog_compiler_static='-Bstatic'
8837 sysv4 | sysv4.2uw2* | sysv4.3*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8844 if test -d /usr/nec ;then
8845 lt_prog_compiler_pic='-Kconform_pic'
8846 lt_prog_compiler_static='-Bstatic'
8850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_can_build_shared=no
8862 lt_prog_compiler_pic='-pic'
8863 lt_prog_compiler_static='-Bstatic'
8867 lt_prog_compiler_can_build_shared=no
8873 # For platforms which do not support PIC, -DPIC is meaningless:
8875 lt_prog_compiler_pic=
8878 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8884 if ${lt_cv_prog_compiler_pic+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8890 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8891 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8894 # Check to make sure the PIC flag actually works.
8896 if test -n "$lt_prog_compiler_pic"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8899 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_pic_works=no
8903 ac_outfile=conftest.$ac_objext
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 # The option is referenced via a variable to avoid confusing sed.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916 (eval "$lt_compile" 2>conftest.err)
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 if (exit $ac_status) && test -s "$ac_outfile"; then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings other than the usual output.
8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8926 lt_cv_prog_compiler_pic_works=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8935 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8936 case $lt_prog_compiler_pic in
8938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8941 lt_prog_compiler_pic=
8942 lt_prog_compiler_can_build_shared=no
8958 # Check to make sure the static flag actually works.
8960 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8962 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8963 if ${lt_cv_prog_compiler_static_works+:} false; then :
8964 $as_echo_n "(cached) " >&6
8966 lt_cv_prog_compiler_static_works=no
8967 save_LDFLAGS="$LDFLAGS"
8968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8971 # The linker can only warn and ignore the option if not recognized
8972 # So say no if there are warnings
8973 if test -s conftest.err; then
8974 # Append any errors to the config.log.
8975 cat conftest.err 1>&5
8976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978 if diff conftest.exp conftest.er2 >/dev/null; then
8979 lt_cv_prog_compiler_static_works=yes
8982 lt_cv_prog_compiler_static_works=yes
8986 LDFLAGS="$save_LDFLAGS"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8990 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8992 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8995 lt_prog_compiler_static=
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9005 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9006 if ${lt_cv_prog_compiler_c_o+:} false; then :
9007 $as_echo_n "(cached) " >&6
9009 lt_cv_prog_compiler_c_o=no
9010 $RM -r conftest 2>/dev/null
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016 lt_compiler_flag="-o out/conftest2.$ac_objext"
9017 # Insert the option either (1) after the last *FLAGS variable, or
9018 # (2) before a word containing "conftest.", or (3) at the end.
9019 # Note that $ac_compile itself does not contain backslashes and begins
9020 # with a dollar sign (not a hyphen), so the echo should work correctly.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>out/conftest.err)
9028 cat out/conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9032 # The compiler can only warn and ignore the option if not recognized
9033 # So say no if there are warnings
9034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler_c_o=yes
9042 # SGI C++ compiler will create directory out/ii_files/ for
9043 # template instantiation
9044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9045 $RM out/* && rmdir out
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9052 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9061 if ${lt_cv_prog_compiler_c_o+:} false; then :
9062 $as_echo_n "(cached) " >&6
9064 lt_cv_prog_compiler_c_o=no
9065 $RM -r conftest 2>/dev/null
9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="-o out/conftest2.$ac_objext"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 lt_compile=`echo "$ac_compile" | $SED \
9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079 -e 's:$: $lt_compiler_flag:'`
9080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9081 (eval "$lt_compile" 2>out/conftest.err)
9083 cat out/conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_c_o=yes
9097 # SGI C++ compiler will create directory out/ii_files/ for
9098 # template instantiation
9099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9100 $RM out/* && rmdir out
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9107 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112 hard_links="nottested"
9113 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9114 # do not overwrite the value of need_locks provided by the user
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9116 $as_echo_n "checking if we can lock with hard links... " >&6; }
9119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9121 ln conftest.a conftest.b 2>&5 || hard_links=no
9122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9124 $as_echo "$hard_links" >&6; }
9125 if test "$hard_links" = no; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9127 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9143 allow_undefined_flag=
9144 always_export_symbols=no
9146 archive_expsym_cmds=
9147 compiler_needs_object=no
9148 enable_shared_with_static_runtimes=no
9149 export_dynamic_flag_spec=
9150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9151 hardcode_automatic=no
9153 hardcode_direct_absolute=no
9154 hardcode_libdir_flag_spec=
9155 hardcode_libdir_separator=
9157 hardcode_shlibpath_var=unsupported
9159 link_all_deplibs=unknown
9162 old_archive_from_new_cmds=
9163 old_archive_from_expsyms_cmds=
9164 thread_safe_flag_spec=
9165 whole_archive_flag_spec=
9166 # include_expsyms should be a list of space-separated symbols to be *always*
9167 # included in the symbol list
9169 # exclude_expsyms can be an extended regexp of symbols to exclude
9170 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9172 # as well as any symbol that contains `d'.
9173 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9175 # platforms (ab)use it in PIC code, but their linkers get confused if
9176 # the symbol is explicitly referenced. Since portable code cannot
9177 # rely on this symbol name, it's probably fine to never include it in
9178 # preloaded symbol tables.
9179 # Exclude shared library initialization/finalization symbols.
9180 extract_expsyms_cmds=
9183 cygwin* | mingw* | pw32* | cegcc*)
9184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9185 # When not using gcc, we currently assume that we are using
9186 # Microsoft Visual C++.
9187 if test "$GCC" != yes; then
9192 # we just hope/assume this is gcc and not c89 (= MSVC++)
9202 # On some targets, GNU ld is compatible enough with the native linker
9203 # that we're better off using the native interface for both.
9204 lt_use_gnu_ld_interface=no
9205 if test "$with_gnu_ld" = yes; then
9208 # The AIX port of GNU ld has always aspired to compatibility
9209 # with the native linker. However, as the warning in the GNU ld
9210 # block says, versions before 2.19.5* couldn't really create working
9211 # shared libraries, regardless of the interface used.
9212 case `$LD -v 2>&1` in
9213 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9214 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9215 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9217 lt_use_gnu_ld_interface=yes
9222 lt_use_gnu_ld_interface=yes
9227 if test "$lt_use_gnu_ld_interface" = yes; then
9228 # If archive_cmds runs LD, not CC, wlarc should be empty
9231 # Set some defaults for GNU ld with shared library support. These
9232 # are reset later if shared libraries are not supported. Putting them
9233 # here allows them to be overridden if necessary.
9234 runpath_var=LD_RUN_PATH
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 export_dynamic_flag_spec='${wl}--export-dynamic'
9237 # ancient GNU ld didn't support --whole-archive et. al.
9238 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9239 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9241 whole_archive_flag_spec=
9243 supports_anon_versioning=no
9244 case `$LD -v 2>&1` in
9245 *GNU\ gold*) supports_anon_versioning=yes ;;
9246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9249 *\ 2.11.*) ;; # other 2.11 versions
9250 *) supports_anon_versioning=yes ;;
9253 # See if GNU ld supports shared libraries.
9256 # On AIX/PPC, the GNU linker is very broken
9257 if test "$host_cpu" != ia64; then
9261 *** Warning: the GNU linker, at least up to release 2.19, is reported
9262 *** to be unable to reliably create shared libraries on AIX.
9263 *** Therefore, libtool is disabling shared libraries support. If you
9264 *** really care for shared libraries, you may want to install binutils
9265 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9266 *** You will then need to restart the configuration process.
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9289 allow_undefined_flag=unsupported
9290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9291 # support --undefined. This deserves some investigation. FIXME
9292 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9300 # as there is no search path for DLLs.
9301 hardcode_libdir_flag_spec='-L$libdir'
9302 export_dynamic_flag_spec='${wl}--export-all-symbols'
9303 allow_undefined_flag=unsupported
9304 always_export_symbols=no
9305 enable_shared_with_static_runtimes=yes
9306 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'
9307 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9309 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311 # If the export-symbols file already is a .def file (1st line
9312 # is EXPORTS), use it as is; otherwise, prepend...
9313 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9314 cp $export_symbols $output_objdir/$soname.def;
9316 echo EXPORTS > $output_objdir/$soname.def;
9317 cat $export_symbols >> $output_objdir/$soname.def;
9319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 link_all_deplibs=yes
9332 hardcode_shlibpath_var=no
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9336 # Instead, shared libraries are loaded at an image base (0x10000000 by
9337 # default) and relocated if they conflict, which is a slow very memory
9338 # consuming and fragmenting process. To avoid this, we pick a random,
9339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9342 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'
9345 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9347 if test "$host_os" = linux-dietlibc; then
9348 case $cc_basename in
9349 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9352 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9353 && test "$tmp_diet" = no
9355 tmp_addflag=' $pic_flag'
9356 tmp_sharedflag='-shared'
9357 case $cc_basename,$host_cpu in
9358 pgcc*) # Portland Group C compiler
9359 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'
9360 tmp_addflag=' $pic_flag'
9362 pgf77* | pgf90* | pgf95* | pgfortran*)
9363 # Portland Group f77 and f90 compilers
9364 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'
9365 tmp_addflag=' $pic_flag -Mnomain' ;;
9366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9367 tmp_addflag=' -i_dynamic' ;;
9368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9369 tmp_addflag=' -i_dynamic -nofor_main' ;;
9370 ifc* | ifort*) # Intel Fortran compiler
9371 tmp_addflag=' -nofor_main' ;;
9372 lf95*) # Lahey Fortran 8.1
9373 whole_archive_flag_spec=
9374 tmp_sharedflag='--shared' ;;
9375 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9376 tmp_sharedflag='-qmkshrobj'
9378 nvcc*) # Cuda Compiler Driver 2.2
9379 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'
9380 compiler_needs_object=yes
9383 case `$CC -V 2>&1 | sed 5q` in
9384 *Sun\ C*) # Sun C 5.9
9385 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'
9386 compiler_needs_object=yes
9387 tmp_sharedflag='-G' ;;
9388 *Sun\ F*) # Sun Fortran 8.3
9389 tmp_sharedflag='-G' ;;
9391 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 if test "x$supports_anon_versioning" = xyes; then
9394 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9396 echo "local: *; };" >> $output_objdir/$libname.ver~
9397 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9400 case $cc_basename in
9401 xlf* | bgf* | bgxlf* | mpixlf*)
9402 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9403 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9406 if test "x$supports_anon_versioning" = xyes; then
9407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9409 echo "local: *; };" >> $output_objdir/$libname.ver~
9410 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9421 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9434 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9435 *** create shared libraries on Solaris systems. Therefore, libtool
9436 *** is disabling shared libraries support. We urge you to upgrade GNU
9437 *** binutils to release 2.9.1 or newer. Another option is to modify
9438 *** your PATH or compiler configuration so that the native linker is
9439 *** used, and then restart.
9442 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9451 case `$LD -v 2>&1` in
9452 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9456 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9457 *** reliably create shared libraries on SCO systems. Therefore, libtool
9458 *** is disabling shared libraries support. We urge you to upgrade GNU
9459 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9460 *** your PATH or compiler configuration so that the native linker is
9461 *** used, and then restart.
9466 # For security reasons, it is highly recommended that you always
9467 # use absolute paths for naming shared libraries, and exclude the
9468 # DT_RUNPATH tag from executables and libraries. But doing so
9469 # requires that you compile everything twice, which is a pain.
9470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_shlibpath_var=no
9489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498 if test "$ld_shlibs" = no; then
9500 hardcode_libdir_flag_spec=
9501 export_dynamic_flag_spec=
9502 whole_archive_flag_spec=
9505 # PORTME fill in a description of your system's linker (not GNU ld)
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=yes
9510 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'
9511 # Note: this linker hardcodes the directories in LIBPATH if there
9512 # are no directories specified by -L.
9513 hardcode_minus_L=yes
9514 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9515 # Neither direct hardcoding nor static linking is supported with a
9517 hardcode_direct=unsupported
9522 if test "$host_cpu" = ia64; then
9523 # On IA64, the linker does run time linking by default, so we don't
9524 # have to do anything special.
9525 aix_use_runtimelinking=no
9526 exp_sym_flag='-Bexport'
9529 # If we're using GNU nm, then we don't want the "-C" option.
9530 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9531 # Also, AIX nm treats weak defined symbols like other global
9532 # defined symbols, whereas GNU nm marks them as "W".
9533 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9534 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9536 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9538 aix_use_runtimelinking=no
9540 # Test if we are trying to use run time linking or normal
9541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9542 # need to do runtime linking.
9543 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9544 for ld_flag in $LDFLAGS; do
9545 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9546 aix_use_runtimelinking=yes
9553 exp_sym_flag='-bexport'
9554 no_entry_flag='-bnoentry'
9557 # When large executables or shared objects are built, AIX ld can
9558 # have problems creating the table of contents. If linking a library
9559 # or program results in "error TOC overflow" add -mminimal-toc to
9560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9565 hardcode_direct_absolute=yes
9566 hardcode_libdir_separator=':'
9567 link_all_deplibs=yes
9568 file_list_spec='${wl}-f,'
9570 if test "$GCC" = yes; then
9571 case $host_os in aix4.[012]|aix4.[012].*)
9572 # We only want to do this on AIX 4.2 and lower, the check
9573 # below for broken collect2 doesn't work under 4.3+
9574 collect2name=`${CC} -print-prog-name=collect2`
9575 if test -f "$collect2name" &&
9576 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9578 # We have reworked collect2
9581 # We have old collect2
9582 hardcode_direct=unsupported
9583 # It fails to find uninstalled libraries when the uninstalled
9584 # path is not listed in the libpath. Setting hardcode_minus_L
9585 # to unsupported forces relinking
9586 hardcode_minus_L=yes
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_libdir_separator=
9592 shared_flag='-shared'
9593 if test "$aix_use_runtimelinking" = yes; then
9594 shared_flag="$shared_flag "'${wl}-G'
9598 if test "$host_cpu" = ia64; then
9599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9600 # chokes on -Wl,-G. The following line is correct:
9603 if test "$aix_use_runtimelinking" = yes; then
9604 shared_flag='${wl}-G'
9606 shared_flag='${wl}-bM:SRE'
9611 export_dynamic_flag_spec='${wl}-bexpall'
9612 # It seems that -bexpall does not export symbols beginning with
9613 # underscore (_), so it is better to generate a list of symbols to export.
9614 always_export_symbols=yes
9615 if test "$aix_use_runtimelinking" = yes; then
9616 # Warning - without using the other runtime loading flags (-brtl),
9617 # -berok will link without error, but may produce a broken library.
9618 allow_undefined_flag='-berok'
9619 # Determine the default libpath from the value encoded in an
9621 if test "${lt_cv_aix_libpath+set}" = set; then
9622 aix_libpath=$lt_cv_aix_libpath
9624 if ${lt_cv_aix_libpath_+:} false; then :
9625 $as_echo_n "(cached) " >&6
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9638 if ac_fn_c_try_link "$LINENO"; then :
9640 lt_aix_libpath_sed='
9641 /Import File Strings/,/^$/ {
9643 s/^0 *\([^ ]*\) *$/\1/
9647 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 # Check for a 64-bit object if we didn't find anything.
9649 if test -z "$lt_cv_aix_libpath_"; then
9650 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_="/usr/lib:/lib"
9661 aix_libpath=$lt_cv_aix_libpath_
9664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9665 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9667 if test "$host_cpu" = ia64; then
9668 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9669 allow_undefined_flag="-z nodefs"
9670 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"
9672 # Determine the default libpath from the value encoded in an
9674 if test "${lt_cv_aix_libpath+set}" = set; then
9675 aix_libpath=$lt_cv_aix_libpath
9677 if ${lt_cv_aix_libpath_+:} false; then :
9678 $as_echo_n "(cached) " >&6
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9691 if ac_fn_c_try_link "$LINENO"; then :
9693 lt_aix_libpath_sed='
9694 /Import File Strings/,/^$/ {
9696 s/^0 *\([^ ]*\) *$/\1/
9700 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701 # Check for a 64-bit object if we didn't find anything.
9702 if test -z "$lt_cv_aix_libpath_"; then
9703 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 if test -z "$lt_cv_aix_libpath_"; then
9709 lt_cv_aix_libpath_="/usr/lib:/lib"
9714 aix_libpath=$lt_cv_aix_libpath_
9717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 # Warning - without using the other run time loading flags,
9719 # -berok will link without error, but may produce a broken library.
9720 no_undefined_flag=' ${wl}-bernotok'
9721 allow_undefined_flag=' ${wl}-berok'
9722 if test "$with_gnu_ld" = yes; then
9723 # We only use this code for GNU lds that support --whole-archive.
9724 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9726 # Exported symbols can be pulled into shared objects from archives
9727 whole_archive_flag_spec='$convenience'
9729 archive_cmds_need_lc=yes
9730 # This is similar to how AIX traditionally builds its shared libraries.
9731 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9739 # see comment about AmigaOS4 .so support
9740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741 archive_expsym_cmds=''
9744 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)'
9745 hardcode_libdir_flag_spec='-L$libdir'
9746 hardcode_minus_L=yes
9752 export_dynamic_flag_spec=-rdynamic
9755 cygwin* | mingw* | pw32* | cegcc*)
9756 # When not using gcc, we currently assume that we are using
9757 # Microsoft Visual C++.
9758 # hardcode_libdir_flag_spec is actually meaningless, as there is
9759 # no search path for DLLs.
9760 case $cc_basename in
9763 hardcode_libdir_flag_spec=' '
9764 allow_undefined_flag=unsupported
9765 always_export_symbols=yes
9767 # Tell ltmain to make .lib files, not .a files.
9769 # Tell ltmain to make .dll files, not .so files.
9771 # FIXME: Setting linknames here is a bad hack.
9772 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9773 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9774 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9776 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9778 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9780 # The linker will not automatically build a static lib if we build a DLL.
9781 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9782 enable_shared_with_static_runtimes=yes
9783 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9784 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9786 old_postinstall_cmds='chmod 644 $oldlib'
9787 postlink_cmds='lt_outputfile="@OUTPUT@"~
9788 lt_tool_outputfile="@TOOL_OUTPUT@"~
9789 case $lt_outputfile in
9792 lt_outputfile="$lt_outputfile.exe"
9793 lt_tool_outputfile="$lt_tool_outputfile.exe"
9796 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9797 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9798 $RM "$lt_outputfile.manifest";
9802 # Assume MSVC wrapper
9803 hardcode_libdir_flag_spec=' '
9804 allow_undefined_flag=unsupported
9805 # Tell ltmain to make .lib files, not .a files.
9807 # Tell ltmain to make .dll files, not .so files.
9809 # FIXME: Setting linknames here is a bad hack.
9810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9811 # The linker will automatically build a .lib file if we build a DLL.
9812 old_archive_from_new_cmds='true'
9813 # FIXME: Should let the user specify the lib program.
9814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9815 enable_shared_with_static_runtimes=yes
9820 darwin* | rhapsody*)
9823 archive_cmds_need_lc=no
9825 hardcode_automatic=yes
9826 hardcode_shlibpath_var=unsupported
9827 if test "$lt_cv_ld_force_load" = "yes"; then
9828 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\"`'
9831 whole_archive_flag_spec=''
9833 link_all_deplibs=yes
9834 allow_undefined_flag="$_lt_dar_allow_undefined"
9835 case $cc_basename in
9836 ifort*) _lt_dar_can_shared=yes ;;
9837 *) _lt_dar_can_shared=$GCC ;;
9839 if test "$_lt_dar_can_shared" = "yes"; then
9840 output_verbose_link_cmd=func_echo_all
9841 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9842 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9843 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}"
9844 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}"
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_shlibpath_var=no
9858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9859 # support. Future versions do this automatically, but an explicit c++rt0.o
9860 # does not break anything, and helps significantly (at the cost of a little
9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9864 hardcode_libdir_flag_spec='-R$libdir'
9866 hardcode_shlibpath_var=no
9869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9873 hardcode_minus_L=yes
9874 hardcode_shlibpath_var=no
9877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9878 freebsd* | dragonfly*)
9879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9880 hardcode_libdir_flag_spec='-R$libdir'
9882 hardcode_shlibpath_var=no
9886 if test "$GCC" = yes; then
9887 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9889 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9892 hardcode_libdir_separator=:
9895 # hardcode_minus_L: Not really in the search PATH,
9896 # but as the default location of the library.
9897 hardcode_minus_L=yes
9898 export_dynamic_flag_spec='${wl}-E'
9902 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9903 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9907 if test "$with_gnu_ld" = no; then
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='${wl}-E'
9913 # hardcode_minus_L: Not really in the search PATH,
9914 # but as the default location of the library.
9915 hardcode_minus_L=yes
9920 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9923 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9942 # Older versions of the 11.00 compiler do not understand -b yet
9943 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9945 $as_echo_n "checking if $CC understands -b... " >&6; }
9946 if ${lt_cv_prog_compiler__b+:} false; then :
9947 $as_echo_n "(cached) " >&6
9949 lt_cv_prog_compiler__b=no
9950 save_LDFLAGS="$LDFLAGS"
9951 LDFLAGS="$LDFLAGS -b"
9952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9954 # The linker can only warn and ignore the option if not recognized
9955 # So say no if there are warnings
9956 if test -s conftest.err; then
9957 # Append any errors to the config.log.
9958 cat conftest.err 1>&5
9959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9961 if diff conftest.exp conftest.er2 >/dev/null; then
9962 lt_cv_prog_compiler__b=yes
9965 lt_cv_prog_compiler__b=yes
9969 LDFLAGS="$save_LDFLAGS"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9973 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9975 if test x"$lt_cv_prog_compiler__b" = xyes; then
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9984 if test "$with_gnu_ld" = no; then
9985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator=:
9991 hardcode_shlibpath_var=no
9995 hardcode_direct_absolute=yes
9996 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10006 irix5* | irix6* | nonstopux*)
10007 if test "$GCC" = yes; then
10008 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'
10009 # Try to use the -exported_symbol ld option, if it does not
10010 # work, assume that -exports_file does not work either and
10011 # implicitly export all symbols.
10012 # This should be the same for all languages, so no per-tag cache variable.
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10014 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10015 if ${lt_cv_irix_exported_symbol+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 save_LDFLAGS="$LDFLAGS"
10019 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 int foo (void) { return 0; }
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 lt_cv_irix_exported_symbol=yes
10027 lt_cv_irix_exported_symbol=no
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LDFLAGS="$save_LDFLAGS"
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10034 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10035 if test "$lt_cv_irix_exported_symbol" = yes; then
10036 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'
10039 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'
10040 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'
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 hardcode_libdir_separator=:
10046 link_all_deplibs=yes
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=yes
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 hardcode_libdir_separator=:
10065 hardcode_shlibpath_var=no
10072 if test -f /usr/libexec/ld.so; then
10073 hardcode_direct=yes
10074 hardcode_shlibpath_var=no
10075 hardcode_direct_absolute=yes
10076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080 export_dynamic_flag_spec='${wl}-E'
10083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_libdir_flag_spec='-R$libdir'
10088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 allow_undefined_flag=unsupported
10102 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10103 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10107 if test "$GCC" = yes; then
10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109 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'
10111 allow_undefined_flag=' -expect_unresolved \*'
10112 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'
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10119 osf4* | osf5*) # as osf3* with the addition of -msym flag
10120 if test "$GCC" = yes; then
10121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10122 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'
10123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125 allow_undefined_flag=' -expect_unresolved \*'
10126 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'
10127 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~
10128 $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'
10130 # Both c and cxx compiler support -rpath directly
10131 hardcode_libdir_flag_spec='-rpath $libdir'
10133 archive_cmds_need_lc='no'
10134 hardcode_libdir_separator=:
10138 no_undefined_flag=' -z defs'
10139 if test "$GCC" = yes; then
10141 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $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'
10145 case `$CC -V 2>&1` in
10148 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10154 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_shlibpath_var=no
10163 solaris2.[0-5] | solaris2.[0-5].*) ;;
10165 # The compiler driver will combine and reorder linker options,
10166 # but understands `-z linker_flag'. GCC discards it without `$wl',
10167 # but is careful enough not to reorder.
10168 # Supported since Solaris 2.6 (maybe 2.5.1?)
10169 if test "$GCC" = yes; then
10170 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10176 link_all_deplibs=yes
10180 if test "x$host_vendor" = xsequent; then
10181 # Use $CC to link under sequent, because it throws in some extra .o
10182 # files that make .init and .fini sections work.
10183 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_direct=yes
10189 hardcode_minus_L=yes
10190 hardcode_shlibpath_var=no
10194 case $host_vendor in
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes # is this really true???
10200 ## LD is ld it makes a PLAMLIB
10201 ## CC just makes a GrossModule.
10202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203 reload_cmds='$CC -r -o $output$reload_objs'
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10211 runpath_var='LD_RUN_PATH'
10212 hardcode_shlibpath_var=no
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var=no
10218 export_dynamic_flag_spec='-Bexport'
10222 if test -d /usr/nec; then
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 runpath_var=LD_RUN_PATH
10226 hardcode_runpath_var=yes
10231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232 no_undefined_flag='${wl}-z,text'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 runpath_var='LD_RUN_PATH'
10237 if test "$GCC" = yes; then
10238 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 sysv5* | sco3.2v5* | sco5v6*)
10247 # Note: We can NOT use -z defs as we might desire, because we do not
10248 # link with -lc, and that would cause any symbols used from libc to
10249 # always be unresolved, which means just about no library would
10250 # ever link correctly. If we're not using GNU ld we use -z text
10251 # though, which does catch some bad symbols but isn't as heavy-handed
10253 no_undefined_flag='${wl}-z,text'
10254 allow_undefined_flag='${wl}-z,nodefs'
10255 archive_cmds_need_lc=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10258 hardcode_libdir_separator=':'
10259 link_all_deplibs=yes
10260 export_dynamic_flag_spec='${wl}-Bexport'
10261 runpath_var='LD_RUN_PATH'
10263 if test "$GCC" = yes; then
10264 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_shlibpath_var=no
10283 if test x$host_vendor = xsni; then
10285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286 export_dynamic_flag_spec='${wl}-Blargedynsym'
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293 $as_echo "$ld_shlibs" >&6; }
10294 test "$ld_shlibs" = no && can_build_shared=no
10296 with_gnu_ld=$with_gnu_ld
10313 # Do we need to explicitly link libc?
10315 case "x$archive_cmds_need_lc" in
10317 # Assume -lc should be added
10318 archive_cmds_need_lc=yes
10320 if test "$enable_shared" = yes && test "$GCC" = yes; then
10321 case $archive_cmds in
10323 # FIXME: we may have to deal with multi-command sequences.
10326 # Test whether the compiler implicitly links with -lc since on some
10327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328 # to ld, don't add -lc before -lgcc.
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10331 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10332 $as_echo_n "(cached) " >&6
10335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338 (eval $ac_compile) 2>&5
10340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341 test $ac_status = 0; } 2>conftest.err; then
10344 libobjs=conftest.$ac_objext
10346 wl=$lt_prog_compiler_wl
10347 pic_flag=$lt_prog_compiler_pic
10353 lt_save_allow_undefined_flag=$allow_undefined_flag
10354 allow_undefined_flag=
10355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10356 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 test $ac_status = 0; }
10361 lt_cv_archive_cmds_need_lc=no
10363 lt_cv_archive_cmds_need_lc=yes
10365 allow_undefined_flag=$lt_save_allow_undefined_flag
10367 cat conftest.err 1>&5
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10535 if test "$GCC" = yes; then
10537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10538 *) lt_awk_arg="/^libraries:/" ;;
10541 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10542 *) lt_sed_strip_eq="s,=/,/,g" ;;
10544 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545 case $lt_search_path_spec in
10547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10557 # Ok, now we have the path, separated by spaces, we can step through it
10558 # and add multilib dir if necessary.
10559 lt_tmp_lt_search_path_spec=
10560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561 for lt_sys_path in $lt_search_path_spec; do
10562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10565 test -d "$lt_sys_path" && \
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10569 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10570 BEGIN {RS=" "; FS="/|\n";} {
10573 for (lt_i = NF; lt_i > 0; lt_i--) {
10574 if ($lt_i != "" && $lt_i != ".") {
10575 if ($lt_i == "..") {
10578 if (lt_count == 0) {
10579 lt_foo="/" $lt_i lt_foo;
10586 if (lt_foo != "") { lt_freq[lt_foo]++; }
10587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10589 # AWK program above erroneously prepends '/' to C:/dos/paths
10592 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10593 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10595 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10599 library_names_spec=
10600 libname_spec='lib$name'
10604 postuninstall_cmds=
10608 shlibpath_overrides_runpath=unknown
10610 dynamic_linker="$host_os ld.so"
10611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10621 version_type=linux # correct to gnu/linux during the next big refactor
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10630 version_type=linux # correct to gnu/linux during the next big refactor
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10651 can_build_shared=no
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LIBPATH
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10689 library_names_spec='${libname}${shared_ext}'
10690 dynamic_linker="$host_os ld.so"
10691 shlibpath_var=LIBRARY_PATH
10695 version_type=linux # correct to gnu/linux during the next big refactor
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10708 cygwin* | mingw* | pw32* | cegcc*)
10709 version_type=windows
10714 case $GCC,$cc_basename in
10717 library_names_spec='$libname.dll.a'
10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719 postinstall_cmds='base_file=`basename \${file}`~
10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721 dldir=$destdir/`dirname \$dlpath`~
10722 test -d \$dldir || mkdir -p \$dldir~
10723 $install_prog $dir/$dlname \$dldir/$dlname~
10724 chmod a+x \$dldir/$dlname~
10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729 dlpath=$dir/\$dldll~
10731 shlibpath_overrides_runpath=yes
10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741 # MinGW DLLs use traditional 'lib' prefix
10742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749 dynamic_linker='Win32 ld.exe'
10754 libname_spec='$name'
10755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756 library_names_spec='${libname}.dll.lib'
10760 sys_lib_search_path_spec=
10763 for lt_path in $LIB
10766 # Let DOS variable expansion print the short 8.3 style file name.
10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10771 # Convert to MSYS style.
10772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10775 # Convert to unix form, then to dos form, then back to unix form
10776 # but this time dos style (no spaces!) so that the unix form looks
10777 # like /cygdrive/c/PROGRA~1:/cygdr...
10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10783 sys_lib_search_path_spec="$LIB"
10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10785 # It is most probably a Windows format PATH.
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10790 # FIXME: find the short name or the path components, as spaces are
10791 # common. (e.g. "Program Files" -> "PROGRA~1")
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \${file}`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname'
10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10802 dlpath=$dir/\$dldll~
10804 shlibpath_overrides_runpath=yes
10805 dynamic_linker='Win32 link.exe'
10809 # Assume MSVC wrapper
10810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10811 dynamic_linker='Win32 ld.exe'
10814 # FIXME: first we should search . and the directory the executable is in
10818 darwin* | rhapsody*)
10819 dynamic_linker="$host_os dyld"
10820 version_type=darwin
10823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10824 soname_spec='${libname}${release}${major}$shared_ext'
10825 shlibpath_overrides_runpath=yes
10826 shlibpath_var=DYLD_LIBRARY_PATH
10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10834 version_type=linux # correct to gnu/linux during the next big refactor
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10842 freebsd* | dragonfly*)
10843 # DragonFly does not have aout. When/if they implement a new
10844 # versioning mechanism, adjust this.
10845 if test -x /usr/bin/objformat; then
10846 objformat=`/usr/bin/objformat`
10849 freebsd[23].*) objformat=aout ;;
10850 *) objformat=elf ;;
10853 version_type=freebsd-$objformat
10854 case $version_type in
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10865 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes
10870 freebsd3.[01]* | freebsdelf3.[01]*)
10871 shlibpath_overrides_runpath=yes
10872 hardcode_into_libs=yes
10874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10876 shlibpath_overrides_runpath=no
10877 hardcode_into_libs=yes
10879 *) # from 4.6 on, and DragonFly
10880 shlibpath_overrides_runpath=yes
10881 hardcode_into_libs=yes
10887 version_type=linux # correct to gnu/linux during the next big refactor
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10898 version_type=linux # correct to gnu/linux during the next big refactor
10901 dynamic_linker="$host_os runtime_loader"
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10907 hardcode_into_libs=yes
10910 hpux9* | hpux10* | hpux11*)
10911 # Give a soname corresponding to the major version so that dld.sl refuses to
10912 # link against other versions.
10919 hardcode_into_libs=yes
10920 dynamic_linker="$host_os dld.so"
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 if test "X$HPUX_IA64_MODE" = X32; then
10926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10934 hardcode_into_libs=yes
10935 dynamic_linker="$host_os dld.sl"
10936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945 dynamic_linker="$host_os dld.sl"
10946 shlibpath_var=SHLIB_PATH
10947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10953 postinstall_cmds='chmod 555 $lib'
10954 # or fails outright, so override atomically:
10955 install_override_mode=555
10959 version_type=linux # correct to gnu/linux during the next big refactor
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10970 irix5* | irix6* | nonstopux*)
10972 nonstopux*) version_type=nonstopux ;;
10974 if test "$lt_cv_prog_gnu_ld" = yes; then
10975 version_type=linux # correct to gnu/linux during the next big refactor
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10985 irix5* | nonstopux*)
10986 libsuff= shlibsuff=
10989 case $LD in # libtool.m4 will add one of these switches to LD
10990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10991 libsuff= shlibsuff= libmagic=32-bit;;
10992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10993 libsuff=32 shlibsuff=N32 libmagic=N32;;
10994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10996 *) libsuff= shlibsuff= libmagic=never-match;;
11000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11004 hardcode_into_libs=yes
11007 # No shared lib support for Linux oldld, aout, or coff.
11008 linux*oldld* | linux*aout* | linux*coff*)
11012 # This must be glibc/ELF.
11013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11014 version_type=linux # correct to gnu/linux during the next big refactor
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=no
11023 # Some binutils ld are patched to set DT_RUNPATH
11024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11025 $as_echo_n "(cached) " >&6
11027 lt_cv_shlibpath_overrides_runpath=no
11028 save_LDFLAGS=$LDFLAGS
11029 save_libdir=$libdir
11030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11045 lt_cv_shlibpath_overrides_runpath=yes
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LDFLAGS=$save_LDFLAGS
11051 libdir=$save_libdir
11055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
11064 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' ' '`
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11096 version_type=linux # correct to gnu/linux during the next big refactor
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 dynamic_linker='ldqnx.so'
11116 sys_lib_dlsearch_path_spec="/usr/lib"
11118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11121 *) need_version=no ;;
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11128 openbsd2.[89] | openbsd2.[89].*)
11129 shlibpath_overrides_runpath=no
11132 shlibpath_overrides_runpath=yes
11136 shlibpath_overrides_runpath=yes
11141 libname_spec='$name'
11144 library_names_spec='$libname${shared_ext} $libname.a'
11145 dynamic_linker='OS/2 ld.exe'
11146 shlibpath_var=LIBPATH
11149 osf3* | osf4* | osf5*)
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11165 version_type=linux # correct to gnu/linux during the next big refactor
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11190 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11196 shlibpath_overrides_runpath=no
11198 runpath_var=LD_RUN_PATH
11206 shlibpath_overrides_runpath=no
11207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11213 if test -d /usr/nec ;then
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11216 soname_spec='$libname${shared_ext}.$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222 version_type=freebsd-elf
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 if test "$with_gnu_ld" = yes; then
11231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240 sys_lib_dlsearch_path_spec='/usr/lib'
11244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11245 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=no
11251 hardcode_into_libs=yes
11255 version_type=linux # correct to gnu/linux during the next big refactor
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266 $as_echo "$dynamic_linker" >&6; }
11267 test "$dynamic_linker" = no && can_build_shared=no
11269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270 if test "$GCC" = yes; then
11271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11375 if test -n "$hardcode_libdir_flag_spec" ||
11376 test -n "$runpath_var" ||
11377 test "X$hardcode_automatic" = "Xyes" ; then
11379 # We can hardcode non-existent directories.
11380 if test "$hardcode_direct" != no &&
11381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382 # have to relink, otherwise we might link with an installed library
11383 # when we should be linking with a yet-to-be-installed one
11384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11385 test "$hardcode_minus_L" != no; then
11386 # Linking always hardcodes the temporary library directory.
11387 hardcode_action=relink
11389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390 hardcode_action=immediate
11393 # We cannot hardcode anything, or else we can only hardcode existing
11395 hardcode_action=unsupported
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11398 $as_echo "$hardcode_action" >&6; }
11400 if test "$hardcode_action" = relink ||
11401 test "$inherit_rpath" = yes; then
11402 # Fast installation is not supported
11403 enable_fast_install=no
11404 elif test "$shlibpath_overrides_runpath" = yes ||
11405 test "$enable_shared" = no; then
11406 # Fast installation is not necessary
11407 enable_fast_install=needless
11415 if test "x$enable_dlopen" != xyes; then
11416 enable_dlopen=unknown
11417 enable_dlopen_self=unknown
11418 enable_dlopen_self_static=unknown
11425 lt_cv_dlopen="load_add_on"
11427 lt_cv_dlopen_self=yes
11430 mingw* | pw32* | cegcc*)
11431 lt_cv_dlopen="LoadLibrary"
11436 lt_cv_dlopen="dlopen"
11441 # if libdl is installed we need to link against it
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11443 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11444 if ${ac_cv_lib_dl_dlopen+:} false; then :
11445 $as_echo_n "(cached) " >&6
11447 ac_check_lib_save_LIBS=$LIBS
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_dl_dlopen=yes
11470 ac_cv_lib_dl_dlopen=no
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11478 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11482 lt_cv_dlopen="dyld"
11484 lt_cv_dlopen_self=yes
11491 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11492 if test "x$ac_cv_func_shl_load" = xyes; then :
11493 lt_cv_dlopen="shl_load"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11496 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11497 if ${ac_cv_lib_dld_shl_load+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11515 return shl_load ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_dld_shl_load=yes
11523 ac_cv_lib_dld_shl_load=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11530 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11531 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11532 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11534 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11535 if test "x$ac_cv_func_dlopen" = xyes; then :
11536 lt_cv_dlopen="dlopen"
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11540 if ${ac_cv_lib_dl_dlopen+:} false; then :
11541 $as_echo_n "(cached) " >&6
11543 ac_check_lib_save_LIBS=$LIBS
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 ac_cv_lib_dl_dlopen=yes
11566 ac_cv_lib_dl_dlopen=no
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570 LIBS=$ac_check_lib_save_LIBS
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11573 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11574 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11578 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11579 if ${ac_cv_lib_svld_dlopen+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-lsvld $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_svld_dlopen=yes
11605 ac_cv_lib_svld_dlopen=no
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11612 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11613 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11617 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11618 if ${ac_cv_lib_dld_dld_link+:} false; then :
11619 $as_echo_n "(cached) " >&6
11621 ac_check_lib_save_LIBS=$LIBS
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11636 return dld_link ();
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_dld_dld_link=yes
11644 ac_cv_lib_dld_dld_link=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11651 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11652 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11653 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11674 if test "x$lt_cv_dlopen" != xno; then
11680 case $lt_cv_dlopen in
11682 save_CPPFLAGS="$CPPFLAGS"
11683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11685 save_LDFLAGS="$LDFLAGS"
11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11689 LIBS="$lt_cv_dlopen_libs $LIBS"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11692 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 if test "$cross_compiling" = yes; then :
11697 lt_cv_dlopen_self=cross
11699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700 lt_status=$lt_dlunknown
11701 cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11712 # define LT_DLGLOBAL RTLD_GLOBAL
11715 # define LT_DLGLOBAL DL_GLOBAL
11717 # define LT_DLGLOBAL 0
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722 find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11728 # define LT_DLLAZY_OR_NOW DL_LAZY
11731 # define LT_DLLAZY_OR_NOW RTLD_NOW
11734 # define LT_DLLAZY_OR_NOW DL_NOW
11736 # define LT_DLLAZY_OR_NOW 0
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744 correspondingly for the symbols needed. */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11749 int fnord () { return 42; }
11752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753 int status = $lt_dlunknown;
11757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11760 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11761 else puts (dlerror ());
11763 /* dlclose (self); */
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11784 # compilation failed
11785 lt_cv_dlopen_self=no
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11793 $as_echo "$lt_cv_dlopen_self" >&6; }
11795 if test "x$lt_cv_dlopen_self" = xyes; then
11796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11798 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11799 if ${lt_cv_dlopen_self_static+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 if test "$cross_compiling" = yes; then :
11803 lt_cv_dlopen_self_static=cross
11805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806 lt_status=$lt_dlunknown
11807 cat > conftest.$ac_ext <<_LT_EOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11818 # define LT_DLGLOBAL RTLD_GLOBAL
11821 # define LT_DLGLOBAL DL_GLOBAL
11823 # define LT_DLGLOBAL 0
11827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828 find out it does not work in some platform. */
11829 #ifndef LT_DLLAZY_OR_NOW
11831 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11834 # define LT_DLLAZY_OR_NOW DL_LAZY
11837 # define LT_DLLAZY_OR_NOW RTLD_NOW
11840 # define LT_DLLAZY_OR_NOW DL_NOW
11842 # define LT_DLLAZY_OR_NOW 0
11849 /* When -fvisbility=hidden is used, assume the code has been annotated
11850 correspondingly for the symbols needed. */
11851 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11852 int fnord () __attribute__((visibility("default")));
11855 int fnord () { return 42; }
11858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859 int status = $lt_dlunknown;
11863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11866 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11867 else puts (dlerror ());
11869 /* dlclose (self); */
11877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11878 (eval $ac_link) 2>&5
11880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11882 (./conftest; exit; ) >&5 2>/dev/null
11884 case x$lt_status in
11885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11890 # compilation failed
11891 lt_cv_dlopen_self_static=no
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11899 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11902 CPPFLAGS="$save_CPPFLAGS"
11903 LDFLAGS="$save_LDFLAGS"
11908 case $lt_cv_dlopen_self in
11909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11910 *) enable_dlopen_self=unknown ;;
11913 case $lt_cv_dlopen_self_static in
11914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11915 *) enable_dlopen_self_static=unknown ;;
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11938 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11939 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11945 # FIXME - insert some real tests, host_os isn't really good enough
11948 if test -n "$STRIP" ; then
11949 striplib="$STRIP -x"
11950 old_striplib="$STRIP -S"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11976 # Report which library types will actually be built
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11978 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11980 $as_echo "$can_build_shared" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11983 $as_echo_n "checking whether to build shared libraries... " >&6; }
11984 test "$can_build_shared" = "no" && enable_shared=no
11986 # On AIX, shared libraries and static libraries use the same namespace, and
11987 # are all built from PIC.
11990 test "$enable_shared" = yes && enable_static=no
11991 if test -n "$RANLIB"; then
11992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993 postinstall_cmds='$RANLIB $lib'
11998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999 test "$enable_shared" = yes && enable_static=no
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12004 $as_echo "$enable_shared" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12007 $as_echo_n "checking whether to build static libraries... " >&6; }
12008 # Make sure either enable_shared or enable_static is yes.
12009 test "$enable_shared" = yes || enable_static=yes
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12011 $as_echo "$enable_static" >&6; }
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 ac_config_commands="$ac_config_commands libtool"
12044 # Only expand once:
12049 # Some awks crash when confronted with pnglibconf.dfa, do a test run now
12050 # to make sure this doesn't happen
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
12052 $as_echo_n "checking that AWK works... " >&6; }
12053 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
12054 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
12055 ${srcdir}/pngusr.dfa 1>&2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12058 $as_echo "ok" >&6; }
12060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12062 as_fn_error 1 "failed
12063 See \`config.log' for more details" "$LINENO" 5; }
12066 # This is a remnant of the old cc -E validation, where it may have been
12067 # necessary to use a different preprocessor for .dfn files
12071 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12072 # checks the compiler with a program that generates a warning), add the
12073 # following option to deal with this
12075 # Check whether --enable-werror was given.
12076 if test "${enable_werror+set}" = set; then :
12077 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12078 if test "$enable_werror" != "no"; then
12079 sav_CFLAGS="$CFLAGS"
12080 CFLAGS="$enable_werror $CFLAGS"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12082 $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12086 int main(int argc, char **argv){
12087 return argv[argc-1][0];
12090 if ac_fn_c_try_compile "$LINENO"; then :
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092 $as_echo "yes" >&6; }
12093 PNG_COPTS="$PNG_COPTS $enable_werror"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 CFLAGS="$sav_CFLAGS"
12104 # Checks for header files.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12106 $as_echo_n "checking for ANSI C header files... " >&6; }
12107 if ${ac_cv_header_stdc+:} false; then :
12108 $as_echo_n "(cached) " >&6
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <stdlib.h>
12113 #include <stdarg.h>
12114 #include <string.h>
12125 if ac_fn_c_try_compile "$LINENO"; then :
12126 ac_cv_header_stdc=yes
12128 ac_cv_header_stdc=no
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 if test $ac_cv_header_stdc = yes; then
12133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <string.h>
12139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12140 $EGREP "memchr" >/dev/null 2>&1; then :
12143 ac_cv_header_stdc=no
12149 if test $ac_cv_header_stdc = yes; then
12150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #include <stdlib.h>
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "free" >/dev/null 2>&1; then :
12160 ac_cv_header_stdc=no
12166 if test $ac_cv_header_stdc = yes; then
12167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12168 if test "$cross_compiling" = yes; then :
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 #include <stdlib.h>
12175 #if ((' ' & 0x0FF) == 0x020)
12176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12179 # define ISLOWER(c) \
12180 (('a' <= (c) && (c) <= 'i') \
12181 || ('j' <= (c) && (c) <= 'r') \
12182 || ('s' <= (c) && (c) <= 'z'))
12183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12191 for (i = 0; i < 256; i++)
12192 if (XOR (islower (i), ISLOWER (i))
12193 || toupper (i) != TOUPPER (i))
12198 if ac_fn_c_try_run "$LINENO"; then :
12201 ac_cv_header_stdc=no
12203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12204 conftest.$ac_objext conftest.beam conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12210 $as_echo "$ac_cv_header_stdc" >&6; }
12211 if test $ac_cv_header_stdc = yes; then
12213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12218 # Checks for typedefs, structures, and compiler characteristics.
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12220 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12221 if ${ac_cv_c_const+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12231 #ifndef __cplusplus
12232 /* Ultrix mips cc rejects this sort of thing. */
12233 typedef int charset[2];
12234 const charset cs = { 0, 0 };
12235 /* SunOS 4.1.1 cc rejects this. */
12236 char const *const *pcpcc;
12238 /* NEC SVR4.0.2 mips cc rejects this. */
12239 struct point {int x, y;};
12240 static struct point const zero = {0,0};
12241 /* AIX XL C 1.02.0.0 rejects this.
12242 It does not let you subtract one const X* pointer from another in
12243 an arm of an if-expression whose if-part is not a constant
12245 const char *g = "string";
12246 pcpcc = &g + (g ? g-g : 0);
12247 /* HPUX 7.0 cc rejects these. */
12249 ppc = (char**) pcpcc;
12250 pcpcc = (char const *const *) ppc;
12251 { /* SCO 3.2v4 cc rejects this sort of thing. */
12254 char const *s = 0 ? (char *) 0 : (char const *) 0;
12259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12260 int x[] = {25, 17};
12261 const int *foo = &x[0];
12264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12265 typedef const int *iptr;
12269 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12271 struct s { int j; const int *ap[3]; } bx;
12272 struct s *b = &bx; b->j = 5;
12274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12275 const int foo = 10;
12276 if (!foo) return 0;
12278 return !cs[0] && !zero.x;
12285 if ac_fn_c_try_compile "$LINENO"; then :
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12293 $as_echo "$ac_cv_c_const" >&6; }
12294 if test $ac_cv_c_const = no; then
12296 $as_echo "#define const /**/" >>confdefs.h
12300 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12301 if test "x$ac_cv_type_size_t" = xyes; then :
12305 cat >>confdefs.h <<_ACEOF
12306 #define size_t unsigned int
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12312 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12313 if ${ac_cv_struct_tm+:} false; then :
12314 $as_echo_n "(cached) " >&6
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #include <sys/types.h>
12325 int *p = &tm.tm_sec;
12331 if ac_fn_c_try_compile "$LINENO"; then :
12332 ac_cv_struct_tm=time.h
12334 ac_cv_struct_tm=sys/time.h
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12339 $as_echo "$ac_cv_struct_tm" >&6; }
12340 if test $ac_cv_struct_tm = sys/time.h; then
12342 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12347 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12348 if ${ac_cv_c_restrict+:} false; then :
12349 $as_echo_n "(cached) " >&6
12351 ac_cv_c_restrict=no
12352 # The order here caters to the fact that C++ does not require restrict.
12353 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356 typedef int * int_ptr;
12357 int foo (int_ptr $ac_kw ip) {
12364 int * $ac_kw t = s;
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_c_restrict=$ac_kw
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 test "$ac_cv_c_restrict" != no && break
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12380 $as_echo "$ac_cv_c_restrict" >&6; }
12382 case $ac_cv_c_restrict in
12384 no) $as_echo "#define restrict /**/" >>confdefs.h
12386 *) cat >>confdefs.h <<_ACEOF
12387 #define restrict $ac_cv_c_restrict
12393 # Checks for library functions.
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12395 $as_echo_n "checking for working strtod... " >&6; }
12396 if ${ac_cv_func_strtod+:} false; then :
12397 $as_echo_n "(cached) " >&6
12399 if test "$cross_compiling" = yes; then :
12400 ac_cv_func_strtod=no
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 $ac_includes_default
12413 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12414 char *string = " +69";
12417 value = strtod (string, &term);
12418 if (value != 69 || term != (string + 4))
12423 /* Under Solaris 2.4, strtod returns the wrong value for the
12424 terminating character under some conditions. */
12425 char *string = "NaN";
12427 strtod (string, &term);
12428 if (term != string && *(term - 1) == 0)
12435 if ac_fn_c_try_run "$LINENO"; then :
12436 ac_cv_func_strtod=yes
12438 ac_cv_func_strtod=no
12440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12441 conftest.$ac_objext conftest.beam conftest.$ac_ext
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12446 $as_echo "$ac_cv_func_strtod" >&6; }
12447 if test $ac_cv_func_strtod = no; then
12448 case " $LIBOBJS " in
12449 *" strtod.$ac_objext "* ) ;;
12450 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12454 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12455 if test "x$ac_cv_func_pow" = xyes; then :
12459 if test $ac_cv_func_pow = no; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12461 $as_echo_n "checking for pow in -lm... " >&6; }
12462 if ${ac_cv_lib_m_pow+:} false; then :
12463 $as_echo_n "(cached) " >&6
12465 ac_check_lib_save_LIBS=$LIBS
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 ac_cv_lib_m_pow=yes
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12495 $as_echo "$ac_cv_lib_m_pow" >&6; }
12496 if test "x$ac_cv_lib_m_pow" = xyes; then :
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12500 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12507 for ac_func in memset
12509 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12510 if test "x$ac_cv_func_memset" = xyes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_MEMSET 1
12516 as_fn_error $? "memset not found in libc" "$LINENO" 5
12522 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12523 if test "x$ac_cv_func_pow" = xyes; then :
12524 cat >>confdefs.h <<_ACEOF
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12530 $as_echo_n "checking for pow in -lm... " >&6; }
12531 if ${ac_cv_lib_m_pow+:} false; then :
12532 $as_echo_n "(cached) " >&6
12534 ac_check_lib_save_LIBS=$LIBS
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12554 if ac_fn_c_try_link "$LINENO"; then :
12555 ac_cv_lib_m_pow=yes
12559 rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12564 $as_echo "$ac_cv_lib_m_pow" >&6; }
12565 if test "x$ac_cv_lib_m_pow" = xyes; then :
12566 cat >>confdefs.h <<_ACEOF
12567 #define HAVE_LIBM 1
12573 as_fn_error $? "cannot find pow" "$LINENO" 5
12580 # Check whether --with-zlib-prefix was given.
12581 if test "${with_zlib_prefix+set}" = set; then :
12582 withval=$with_zlib_prefix; ZPREFIX=${withval}
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12588 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12589 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12590 $as_echo_n "(cached) " >&6
12592 ac_check_lib_save_LIBS=$LIBS
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12603 char zlibVersion ();
12607 return zlibVersion ();
12612 if ac_fn_c_try_link "$LINENO"; then :
12613 ac_cv_lib_z_zlibVersion=yes
12615 ac_cv_lib_z_zlibVersion=no
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 LIBS=$ac_check_lib_save_LIBS
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12622 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12623 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12624 cat >>confdefs.h <<_ACEOF
12625 #define HAVE_LIBZ 1
12631 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12633 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12634 if eval \${$as_ac_Lib+:} false; then :
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS=$LIBS
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12648 char ${ZPREFIX}zlibVersion ();
12652 return ${ZPREFIX}zlibVersion ();
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 eval "$as_ac_Lib=yes"
12660 eval "$as_ac_Lib=no"
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 eval ac_res=\$$as_ac_Lib
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12668 $as_echo "$ac_res" >&6; }
12669 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12670 cat >>confdefs.h <<_ACEOF
12671 #define HAVE_LIBZ 1
12677 as_fn_error $? "zlib not installed" "$LINENO" 5
12683 # The following is for pngvalid, to ensure it catches FP errors even on
12684 # platforms that don't enable FP exceptions, the function appears in the math
12685 # library (typically), it's not an error if it is not found.
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12687 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12688 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12689 $as_echo_n "(cached) " >&6
12691 ac_check_lib_save_LIBS=$LIBS
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12702 char feenableexcept ();
12706 return feenableexcept ();
12711 if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_lib_m_feenableexcept=yes
12714 ac_cv_lib_m_feenableexcept=no
12716 rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 LIBS=$ac_check_lib_save_LIBS
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12721 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12722 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_LIBM 1
12731 for ac_func in feenableexcept
12733 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12734 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_FEENABLEEXCEPT 1
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12744 $as_echo_n "checking if using Solaris linker... " >&6; }
12745 SLD=`$LD --version 2>&1 | grep Solaris`
12746 if test "$SLD"; then
12747 have_solaris_ld=yes
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749 $as_echo "yes" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12755 if test "$have_solaris_ld" = "yes"; then
12756 HAVE_SOLARIS_LD_TRUE=
12757 HAVE_SOLARIS_LD_FALSE='#'
12759 HAVE_SOLARIS_LD_TRUE='#'
12760 HAVE_SOLARIS_LD_FALSE=
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12765 $as_echo_n "checking if libraries can be versioned... " >&6; }
12766 # Special case for PE/COFF platforms: ld reports
12767 # support for version-script, but doesn't actually
12768 # DO anything with it.
12770 *cygwin* | *mingw32* | *interix* )
12771 have_ld_version_script=no
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12777 if test "$have_solaris_ld" = "yes"; then
12778 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12780 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12783 if test "$GLD"; then
12784 have_ld_version_script=yes
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12788 have_ld_version_script=no
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12792 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12797 if test "$have_ld_version_script" = "yes"; then
12798 HAVE_LD_VERSION_SCRIPT_TRUE=
12799 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12801 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12802 HAVE_LD_VERSION_SCRIPT_FALSE=
12806 if test "$have_ld_version_script" = "yes"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12808 $as_echo_n "checking for symbol prefix... " >&6; }
12809 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12810 | ${CPP-${CC-gcc} -E} - 2>&1 \
12811 | ${EGREP-grep} "^PREFIX=" \
12812 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12815 $as_echo "$SYMBOL_PREFIX" >&6; }
12818 # Substitutions for .in files
12824 # Additional arguments (and substitutions)
12825 # Allow the pkg-config directory to be set
12827 # Check whether --with-pkgconfigdir was given.
12828 if test "${with_pkgconfigdir+set}" = set; then :
12829 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12831 pkgconfigdir='${libdir}/pkgconfig'
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12837 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12839 # Make the *-config binary config scripts optional
12841 # Check whether --with-binconfigs was given.
12842 if test "${with_binconfigs+set}" = set; then :
12843 withval=$with_binconfigs; if test "${withval}" = no; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12846 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12848 binconfigs='${binconfigs}'
12851 binconfigs='${binconfigs}'
12856 # Support for prefixes to the API function names; this will generate defines
12857 # at the start of the build to rename exported library functions
12859 # Check whether --with-libpng-prefix was given.
12860 if test "${with_libpng_prefix+set}" = set; then :
12861 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
12862 PNG_PREFIX=${withval}
12867 if test "${with_libpng_prefix:-no}" != "no"; then
12868 DO_PNG_PREFIX_TRUE=
12869 DO_PNG_PREFIX_FALSE='#'
12871 DO_PNG_PREFIX_TRUE='#'
12872 DO_PNG_PREFIX_FALSE=
12876 # Control over what links are made for installed files. Versioned files are
12877 # always installed, when the following options are turned on corresponding
12878 # unversioned links are also created (normally as symbolic links):
12879 # Check whether --enable-unversioned-links was given.
12880 if test "${enable_unversioned_links+set}" = set; then :
12881 enableval=$enable_unversioned_links;
12885 # The AM_CONDITIONAL test is written so that the default is enabled;
12886 # --disable-unversioned-links must be given to turn the option off.
12887 if test "$enable_unversioned_links" != "no"; then
12888 DO_INSTALL_LINKS_TRUE=
12889 DO_INSTALL_LINKS_FALSE='#'
12891 DO_INSTALL_LINKS_TRUE='#'
12892 DO_INSTALL_LINKS_FALSE=
12896 # Check whether --enable-unversioned-libpng-pc was given.
12897 if test "${enable_unversioned_libpng_pc+set}" = set; then :
12898 enableval=$enable_unversioned_libpng_pc;
12901 if test "$enable_unversioned_libpng_pc" != "no"; then
12902 DO_INSTALL_LIBPNG_PC_TRUE=
12903 DO_INSTALL_LIBPNG_PC_FALSE='#'
12905 DO_INSTALL_LIBPNG_PC_TRUE='#'
12906 DO_INSTALL_LIBPNG_PC_FALSE=
12910 # Check whether --enable-unversioned-libpng-config was given.
12911 if test "${enable_unversioned_libpng_config+set}" = set; then :
12912 enableval=$enable_unversioned_libpng_config;
12915 if test "$enable_unversioned_libpng_config" != "no"; then
12916 DO_INSTALL_LIBPNG_CONFIG_TRUE=
12917 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
12919 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
12920 DO_INSTALL_LIBPNG_CONFIG_FALSE=
12924 # HOST SPECIFIC OPTIONS
12925 # =====================
12930 # ARM NEON (SIMD) support.
12932 # Check whether --enable-arm-neon was given.
12933 if test "${enable_arm_neon+set}" = set; then :
12934 enableval=$enable_arm_neon; case "$enableval" in
12936 # disable the default enabling on __ARM_NEON__ systems:
12938 $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
12940 # Prevent inclusion of the assembler files below:
12941 enable_arm_neon=no;;
12944 $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
12948 $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
12952 $as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
12955 you want the optimizations unconditionally pass -mfpu=neon
12956 to the compiler." >&5
12957 $as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
12958 you want the optimizations unconditionally pass -mfpu=neon
12959 to the compiler." >&2;};;
12961 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
12966 # Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
12967 # where ARM optimizations were explicitly requested (this allows a fallback if a
12968 # future host CPU does not match 'arm*')
12970 if test "$enable_arm_neon" != 'no' &&
12971 case "$host_cpu" in
12973 *) test "$enable_arm_neon" != '';;
12976 PNG_ARM_NEON_FALSE='#'
12978 PNG_ARM_NEON_TRUE='#'
12979 PNG_ARM_NEON_FALSE=
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
12984 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
12986 # Config files, substituting as above
12987 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12989 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12992 cat >confcache <<\_ACEOF
12993 # This file is a shell script that caches the results of configure
12994 # tests run on this system so they can be shared between configure
12995 # scripts and configure runs, see configure's option --config-cache.
12996 # It is not useful on other systems. If it contains results you don't
12997 # want to keep, you may remove or edit it.
12999 # config.status only pays attention to the cache file if you give it
13000 # the --recheck option to rerun configure.
13002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13004 # following values.
13008 # The following way of writing the cache mishandles newlines in values,
13009 # but we know of no workaround that is simple, portable, and efficient.
13010 # So, we kill variables containing newlines.
13011 # Ultrix sh set writes to stderr and can't be redirected directly,
13012 # and sets the high bit in the cache file unless we assign to the vars.
13014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13015 eval ac_val=\$$ac_var
13019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13023 _ | IFS | as_nl) ;; #(
13024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13025 *) { eval $ac_var=; unset $ac_var;} ;;
13031 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13032 *${as_nl}ac_space=\ *)
13033 # `set' does not quote correctly, so add quotes: double-quote
13034 # substitution turns \\\\ into \\, and sed turns \\ into \.
13037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13040 # `set' quotes correctly as required by POSIX, so do not add quotes.
13041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13054 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13055 if test -w "$cache_file"; then
13056 if test "x$cache_file" != "x/dev/null"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13058 $as_echo "$as_me: updating cache $cache_file" >&6;}
13059 if test ! -f "$cache_file" || test -h "$cache_file"; then
13060 cat confcache >"$cache_file"
13062 case $cache_file in #(
13064 mv -f confcache "$cache_file"$$ &&
13065 mv -f "$cache_file"$$ "$cache_file" ;; #(
13067 mv -f confcache "$cache_file" ;;
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13079 # Let make expand exec_prefix.
13080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13082 DEFS=-DHAVE_CONFIG_H
13087 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13088 # 1. Remove the extension, and $U if already installed.
13089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13092 # will be set to the directory where LIBOBJS objects are built.
13093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13096 LIBOBJS=$ac_libobjs
13098 LTLIBOBJS=$ac_ltlibobjs
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13102 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13103 if test -n "$am_sleep_pid"; then
13104 # Hide warnings about reused PIDs.
13105 wait $am_sleep_pid 2>/dev/null
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13108 $as_echo "done" >&6; }
13109 if test -n "$EXEEXT"; then
13111 am__EXEEXT_FALSE='#'
13113 am__EXEEXT_TRUE='#'
13117 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13118 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13121 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13122 as_fn_error $? "conditional \"AMDEP\" was never defined.
13123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13125 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13126 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13129 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13130 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13133 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13134 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13137 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13138 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13141 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13142 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13145 if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
13146 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
13147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13149 if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
13150 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
13151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13153 if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
13154 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
13155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13157 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13158 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13162 : "${CONFIG_STATUS=./config.status}"
13164 ac_clean_files_save=$ac_clean_files
13165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13167 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13169 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13171 # Generated by $as_me.
13172 # Run this file to recreate the current configuration.
13173 # Compiler output produced by configure, useful for debugging
13174 # configure, is in config.log if it exists.
13177 ac_cs_recheck=false
13180 SHELL=\${CONFIG_SHELL-$SHELL}
13183 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13184 ## -------------------- ##
13185 ## M4sh Initialization. ##
13186 ## -------------------- ##
13188 # Be more Bourne compatible
13189 DUALCASE=1; export DUALCASE # for MKS sh
13190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13194 # is contrary to our usage. Disable this feature.
13195 alias -g '${1+"$@"}'='"$@"'
13196 setopt NO_GLOB_SUBST
13198 case `(set -o) 2>/dev/null` in #(
13210 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13211 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13214 # Prefer a ksh shell builtin over an external printf program on Solaris,
13215 # but without wasting forks for bash or zsh.
13216 if test -z "$BASH_VERSION$ZSH_VERSION" \
13217 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13218 as_echo='print -r --'
13219 as_echo_n='print -rn --'
13220 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13221 as_echo='printf %s\n'
13222 as_echo_n='printf %s'
13224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13225 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13226 as_echo_n='/usr/ucb/echo -n'
13228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13229 as_echo_n_body='eval
13233 expr "X$arg" : "X\\(.*\\)$as_nl";
13234 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13236 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13238 export as_echo_n_body
13239 as_echo_n='sh -c $as_echo_n_body as_echo'
13241 export as_echo_body
13242 as_echo='sh -c $as_echo_body as_echo'
13245 # The user is always right.
13246 if test "${PATH_SEPARATOR+set}" != set; then
13248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13256 # We need space, tab and new line, in precisely that order. Quoting is
13257 # there to prevent editors from complaining about space-tab.
13258 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13259 # splitting by setting IFS to empty value.)
13262 # Find who we are. Look in the path if we contain no directory separator.
13265 *[\\/]* ) as_myself=$0 ;;
13266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13270 test -z "$as_dir" && as_dir=.
13271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13277 # We did not find ourselves, most probably we were run as `sh COMMAND'
13278 # in which case we are not to be found in the path.
13279 if test "x$as_myself" = x; then
13282 if test ! -f "$as_myself"; then
13283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13287 # Unset variables that we do not need and which cause bugs (e.g. in
13288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13289 # suppresses any "Segmentation fault" message there. '((' could
13290 # trigger a bug in pdksh 5.2.14.
13291 for as_var in BASH_ENV ENV MAIL MAILPATH
13292 do eval test x\${$as_var+set} = xset \
13293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13309 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13310 # ----------------------------------------
13311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13313 # script with STATUS, using 1 if that was 0.
13316 as_status=$1; test $as_status -eq 0 && as_status=1
13318 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13321 $as_echo "$as_me: error: $2" >&2
13322 as_fn_exit $as_status
13326 # as_fn_set_status STATUS
13327 # -----------------------
13328 # Set $? to STATUS, without forking.
13329 as_fn_set_status ()
13332 } # as_fn_set_status
13334 # as_fn_exit STATUS
13335 # -----------------
13336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13340 as_fn_set_status $1
13346 # Portably unset VAR.
13349 { eval $1=; unset $1;}
13351 as_unset=as_fn_unset
13352 # as_fn_append VAR VALUE
13353 # ----------------------
13354 # Append the text in VALUE to the end of the definition contained in VAR. Take
13355 # advantage of any shell optimizations that allow amortized linear growth over
13356 # repeated appends, instead of the typical quadratic growth present in naive
13358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13359 eval 'as_fn_append ()
13370 # as_fn_arith ARG...
13371 # ------------------
13372 # Perform arithmetic evaluation on the ARGs, and store the result in the
13373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13374 # must be portable across $(()) and expr.
13375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13376 eval 'as_fn_arith ()
13383 as_val=`expr "$@" || test $? -eq 1`
13388 if expr a : '\(a\)' >/dev/null 2>&1 &&
13389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13396 as_basename=basename
13401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13407 as_me=`$as_basename -- "$0" ||
13408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13409 X"$0" : 'X\(//\)$' \| \
13410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13412 sed '/^.*\/\([^/][^/]*\)\/*$/{
13426 # Avoid depending upon Character Ranges.
13427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13430 as_cr_digits='0123456789'
13431 as_cr_alnum=$as_cr_Letters$as_cr_digits
13433 ECHO_C= ECHO_N= ECHO_T=
13434 case `echo -n x` in #(((((
13436 case `echo 'xy\c'` in
13437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13446 rm -f conf$$ conf$$.exe conf$$.file
13447 if test -d conf$$.dir; then
13448 rm -f conf$$.dir/conf$$.file
13451 mkdir conf$$.dir 2>/dev/null
13453 if (echo >conf$$.file) 2>/dev/null; then
13454 if ln -s conf$$.file conf$$ 2>/dev/null; then
13456 # ... but there are two gotchas:
13457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13459 # In both cases, we have to default to `cp -pR'.
13460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13462 elif ln conf$$.file conf$$ 2>/dev/null; then
13470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13471 rmdir conf$$.dir 2>/dev/null
13476 # Create "$as_dir" as a directory, including parents if necessary.
13481 -*) as_dir=./$as_dir;;
13483 test -d "$as_dir" || eval $as_mkdir_p || {
13487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13488 *) as_qdir=$as_dir;;
13490 as_dirs="'$as_qdir' $as_dirs"
13491 as_dir=`$as_dirname -- "$as_dir" ||
13492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13493 X"$as_dir" : 'X\(//\)[^/]' \| \
13494 X"$as_dir" : 'X\(//\)$' \| \
13495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13496 $as_echo X"$as_dir" |
13497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13501 /^X\(\/\/\)[^/].*/{
13514 test -d "$as_dir" && break
13516 test -z "$as_dirs" || eval "mkdir $as_dirs"
13517 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13521 if mkdir -p . 2>/dev/null; then
13522 as_mkdir_p='mkdir -p "$as_dir"'
13524 test -d ./-p && rmdir ./-p
13529 # as_fn_executable_p FILE
13530 # -----------------------
13531 # Test if FILE is an executable regular file.
13532 as_fn_executable_p ()
13534 test -f "$1" && test -x "$1"
13535 } # as_fn_executable_p
13536 as_test_x='test -x'
13537 as_executable_p=as_fn_executable_p
13539 # Sed expression to map a string onto a valid CPP name.
13540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13542 # Sed expression to map a string onto a valid variable name.
13543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13547 ## ----------------------------------- ##
13548 ## Main body of $CONFIG_STATUS script. ##
13549 ## ----------------------------------- ##
13551 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554 # Save the log message, to keep $0 and so on meaningful, and to
13555 # report actual input values of CONFIG_FILES etc. instead of their
13556 # values after options handling.
13558 This file was extended by libpng $as_me 1.6.9, which was
13559 generated by GNU Autoconf 2.69. Invocation command line was
13561 CONFIG_FILES = $CONFIG_FILES
13562 CONFIG_HEADERS = $CONFIG_HEADERS
13563 CONFIG_LINKS = $CONFIG_LINKS
13564 CONFIG_COMMANDS = $CONFIG_COMMANDS
13567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13572 case $ac_config_files in *"
13573 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13576 case $ac_config_headers in *"
13577 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 # Files that config.status was made for.
13583 config_files="$ac_config_files"
13584 config_headers="$ac_config_headers"
13585 config_commands="$ac_config_commands"
13589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13591 \`$as_me' instantiates files and other configuration actions
13592 from templates according to the current configuration. Unless the files
13593 and actions are specified as TAGs, all are instantiated by default.
13595 Usage: $0 [OPTION]... [TAG]...
13597 -h, --help print this help, then exit
13598 -V, --version print version number and configuration settings, then exit
13599 --config print configuration, then exit
13600 -q, --quiet, --silent
13601 do not print progress messages
13602 -d, --debug don't remove temporary files
13603 --recheck update $as_me by reconfiguring in the same conditions
13604 --file=FILE[:TEMPLATE]
13605 instantiate the configuration file FILE
13606 --header=FILE[:TEMPLATE]
13607 instantiate the configuration header FILE
13609 Configuration files:
13612 Configuration headers:
13615 Configuration commands:
13618 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13624 libpng config.status 1.6.9
13625 configured by $0, generated by GNU Autoconf 2.69,
13626 with options \\"\$ac_cs_config\\"
13628 Copyright (C) 2012 Free Software Foundation, Inc.
13629 This config.status script is free software; the Free Software Foundation
13630 gives unlimited permission to copy, distribute and modify it."
13637 test -n "\$AWK" || AWK=awk
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641 # The default lists apply if the user does not specify any file.
13647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13664 # Handling of the options.
13665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13668 $as_echo "$ac_cs_version"; exit ;;
13669 --config | --confi | --conf | --con | --co | --c )
13670 $as_echo "$ac_cs_config"; exit ;;
13671 --debug | --debu | --deb | --de | --d | -d )
13673 --file | --fil | --fi | --f )
13676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13677 '') as_fn_error $? "missing file argument" ;;
13679 as_fn_append CONFIG_FILES " '$ac_optarg'"
13680 ac_need_defaults=false;;
13681 --header | --heade | --head | --hea )
13684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13687 ac_need_defaults=false;;
13689 # Conflict between --help and --header
13690 as_fn_error $? "ambiguous option: \`$1'
13691 Try \`$0 --help' for more information.";;
13692 --help | --hel | -h )
13693 $as_echo "$ac_cs_usage"; exit ;;
13694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13698 # This is an error.
13699 -*) as_fn_error $? "unrecognized option: \`$1'
13700 Try \`$0 --help' for more information." ;;
13702 *) as_fn_append ac_config_targets " $1"
13703 ac_need_defaults=false ;;
13709 ac_configure_extra_args=
13711 if $ac_cs_silent; then
13713 ac_configure_extra_args="$ac_configure_extra_args --silent"
13717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718 if \$ac_cs_recheck; then
13719 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13722 CONFIG_SHELL='$SHELL'
13723 export CONFIG_SHELL
13728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13733 ## Running $as_me. ##
13739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13746 # The HP-UX ksh and POSIX shell print the target directory to stdout
13747 # if CDPATH is set.
13748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13750 sed_quote_subst='$sed_quote_subst'
13751 double_quote_subst='$double_quote_subst'
13752 delay_variable_subst='$delay_variable_subst'
13753 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13754 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13755 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13756 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13757 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13758 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13759 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13760 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13761 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13762 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13763 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13764 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13765 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13767 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13768 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13769 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13770 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13771 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13772 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13773 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13774 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13775 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13776 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13777 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13778 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13779 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13780 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13781 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13782 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13783 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13784 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13785 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13786 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13787 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13788 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13789 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13790 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13791 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13792 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13793 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13794 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13795 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13796 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13797 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13798 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13799 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13800 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13801 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13802 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13803 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13804 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13805 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13806 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13807 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13808 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13809 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13810 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"`'
13811 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13812 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13813 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13814 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13815 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13816 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13817 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13818 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13819 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13820 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13821 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13822 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13823 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13824 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13825 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13826 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13827 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13828 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13829 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13830 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13831 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13832 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13833 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13834 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13835 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13836 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13837 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13838 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13839 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13840 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13841 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13842 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13843 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13844 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13853 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13854 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13855 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13856 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13857 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13858 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13886 LTCFLAGS='$LTCFLAGS'
13887 compiler='$compiler_DEFAULT'
13889 # A function that is used when there is no print builtin or printf.
13890 func_fallback_echo ()
13892 eval 'cat <<_LTECHO_EOF
13897 # Quote evaled strings.
13914 deplibs_check_method \
13918 sharedlib_from_linklib_cmd \
13921 archiver_list_spec \
13927 lt_cv_sys_global_symbol_pipe \
13928 lt_cv_sys_global_symbol_to_cdecl \
13929 lt_cv_sys_global_symbol_to_c_name_address \
13930 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13931 nm_file_list_spec \
13932 lt_prog_compiler_no_builtin_flag \
13933 lt_prog_compiler_pic \
13934 lt_prog_compiler_wl \
13935 lt_prog_compiler_static \
13936 lt_cv_prog_compiler_c_o \
13945 export_dynamic_flag_spec \
13946 whole_archive_flag_spec \
13947 compiler_needs_object \
13949 allow_undefined_flag \
13950 no_undefined_flag \
13951 hardcode_libdir_flag_spec \
13952 hardcode_libdir_separator \
13956 variables_saved_for_relink \
13958 library_names_spec \
13960 install_override_mode \
13964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13965 *[\\\\\\\`\\"\\\$]*)
13966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13974 # Double-quote double-evaled strings.
13975 for var in reload_cmds \
13976 old_postinstall_cmds \
13977 old_postuninstall_cmds \
13979 extract_expsyms_cmds \
13980 old_archive_from_new_cmds \
13981 old_archive_from_expsyms_cmds \
13983 archive_expsym_cmds \
13985 module_expsym_cmds \
13986 export_symbols_cmds \
13990 postuninstall_cmds \
13992 sys_lib_search_path_spec \
13993 sys_lib_dlsearch_path_spec; do
13994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13995 *[\\\\\\\`\\"\\\$]*)
13996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14004 ac_aux_dir='$ac_aux_dir'
14005 xsi_shell='$xsi_shell'
14006 lt_shell_append='$lt_shell_append'
14008 # See if we are running on zsh, and set the options which allow our
14009 # commands through without removal of \ escapes INIT.
14010 if test -n "\${ZSH_VERSION+set}" ; then
14011 setopt NO_GLOB_SUBST
14017 TIMESTAMP='$TIMESTAMP'
14026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14028 # Handling of arguments.
14029 for ac_config_target in $ac_config_targets
14031 case $ac_config_target in
14032 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14036 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14037 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
14039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14044 # If the user did not use the arguments to specify the items to instantiate,
14045 # then the envvar interface is used. Set only those that are not.
14046 # We use the long form for the default assignment because of an extremely
14047 # bizarre bug on SunOS 4.1.3.
14048 if $ac_need_defaults; then
14049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14054 # Have a temporary directory for convenience. Make it in the build tree
14055 # simply because there is no reason against having it here, and in addition,
14056 # creating and moving files from /tmp can sometimes cause problems.
14057 # Hook for its removal unless debugging.
14058 # Note that there is a small window in which the directory will not be cleaned:
14059 # after its creation but before its name has been assigned to `$tmp'.
14063 trap 'exit_status=$?
14064 : "${ac_tmp:=$tmp}"
14065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14067 trap 'as_fn_exit 1' 1 2 13 15
14069 # Create a (secure) tmp directory for tmp files.
14072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14076 tmp=./conf$$-$RANDOM
14077 (umask 077 && mkdir "$tmp")
14078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14081 # Set up the scripts for CONFIG_FILES section.
14082 # No need to generate them if there are no CONFIG_FILES.
14083 # This happens for instance with `./config.status config.h'.
14084 if test -n "$CONFIG_FILES"; then
14087 ac_cr=`echo X | tr X '\015'`
14088 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14089 # But we know of no other shell where ac_cr would be empty at this
14090 # point, so we can use a bashism as a fallback.
14091 if test "x$ac_cr" = x; then
14092 eval ac_cr=\$\'\\r\'
14094 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14098 ac_cs_awk_cr=$ac_cr
14101 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14106 echo "cat >conf$$subs.awk <<_ACEOF" &&
14107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14109 } >conf$$subs.sh ||
14110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14113 for ac_last_try in false false false false false :; do
14114 . ./conf$$subs.sh ||
14115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14118 if test $ac_delim_n = $ac_delim_num; then
14120 elif $ac_last_try; then
14121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14126 rm -f conf$$subs.sh
14128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14129 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14133 s/^/S["/; s/!.*/"]=/
14143 s/\(.\{148\}\)..*/\1/
14145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14157 s/\(.\{148\}\)..*/\1/
14159 s/["\\]/\\&/g; s/^/"/; s/$/"/
14163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14168 ' <conf$$subs.awk | sed '
14173 ' >>$CONFIG_STATUS || ac_write_fail=1
14174 rm -f conf$$subs.awk
14175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14178 for (key in S) S_is_set[key] = 1
14184 nfields = split(line, field, "@")
14186 len = length(field[1])
14187 for (i = 2; i < nfields; i++) {
14189 keylen = length(key)
14190 if (S_is_set[key]) {
14192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14193 len += length(value) + length(field[++i])
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14209 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14213 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14214 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14215 # trailing colons and then remove the whole line if VPATH becomes empty
14216 # (actually we leave an empty line to preserve line numbers).
14217 if test "x$srcdir" = x.; then
14218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 fi # test -n "$CONFIG_FILES"
14239 # Set up the scripts for CONFIG_HEADERS section.
14240 # No need to generate them if there are no CONFIG_HEADERS.
14241 # This happens for instance with `./config.status Makefile'.
14242 if test -n "$CONFIG_HEADERS"; then
14243 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14247 # Transform confdefs.h into an awk script `defines.awk', embedded as
14248 # here-document in config.status, that substitutes the proper values into
14249 # config.h.in to produce config.h.
14251 # Create a delimiter string that does not exist in confdefs.h, to ease
14252 # handling of long lines.
14254 for ac_last_try in false false :; do
14255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14256 if test -z "$ac_tt"; then
14258 elif $ac_last_try; then
14259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14265 # For the awk script, D is an array of macro values keyed by name,
14266 # likewise P contains macro parameters if any. Preserve backslash
14267 # newline sequences.
14269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14271 s/.\{148\}/&'"$ac_delim"'/g
14274 s/^[ ]*#[ ]*define[ ][ ]*/ /
14281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14288 D["\1"]=" \3\\\\\\n"\\/p
14290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14295 s/.\{148\}/&'"$ac_delim"'/g
14300 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14303 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14305 ' <confdefs.h | sed '
14306 s/'"$ac_delim"'/"\\\
14307 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310 for (key in D) D_is_set[key] = 1
14313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14315 split(line, arg, " ")
14316 if (arg[1] == "#") {
14320 defundef = substr(arg[1], 2)
14323 split(mac1, mac2, "(") #)
14325 prefix = substr(line, 1, index(line, defundef) - 1)
14326 if (D_is_set[macro]) {
14327 # Preserve the white space surrounding the "#".
14328 print prefix "define", macro P[macro] D[macro]
14331 # Replace #undef with comments. This is necessary, for example,
14332 # in the case of _POSIX_SOURCE, which is predefined and required
14333 # on some systems where configure will not decide to define it.
14334 if (defundef == "undef") {
14335 print "/*", prefix defundef, macro, "*/"
14343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14345 fi # test -n "$CONFIG_HEADERS"
14348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14353 :[FHLC]) ac_mode=$ac_tag; continue;;
14355 case $ac_mode$ac_tag in
14357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14358 :[FH]-) ac_tag=-:-;;
14359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14376 -) ac_f="$ac_tmp/stdin";;
14377 *) # Look for the file first in the build tree, then in the source tree
14378 # (if the path is not absolute). The absolute path cannot be DOS-style,
14379 # because $ac_f cannot contain `:'.
14383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14388 as_fn_append ac_file_inputs " '$ac_f'"
14391 # Let's still pretend it is `configure' which instantiates (i.e., don't
14392 # use $as_me), people would be surprised to read:
14393 # /* config.h. Generated by config.status. */
14394 configure_input='Generated from '`
14395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14397 if test x"$ac_file" != x-; then
14398 configure_input="$ac_file. $configure_input"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14400 $as_echo "$as_me: creating $ac_file" >&6;}
14402 # Neutralize special characters interpreted by sed in replacement strings.
14403 case $configure_input in #(
14404 *\&* | *\|* | *\\* )
14405 ac_sed_conf_input=`$as_echo "$configure_input" |
14406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14407 *) ac_sed_conf_input=$configure_input;;
14411 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14417 ac_dir=`$as_dirname -- "$ac_file" ||
14418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419 X"$ac_file" : 'X\(//\)[^/]' \| \
14420 X"$ac_file" : 'X\(//\)$' \| \
14421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14422 $as_echo X"$ac_file" |
14423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14427 /^X\(\/\/\)[^/].*/{
14440 as_dir="$ac_dir"; as_fn_mkdir_p
14444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14447 # A ".." for each directory in $ac_dir_suffix.
14448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14449 case $ac_top_builddir_sub in
14450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14454 ac_abs_top_builddir=$ac_pwd
14455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14456 # for backward compatibility:
14457 ac_top_builddir=$ac_top_build_prefix
14460 .) # We are building in place.
14462 ac_top_srcdir=$ac_top_builddir_sub
14463 ac_abs_top_srcdir=$ac_pwd ;;
14464 [\\/]* | ?:[\\/]* ) # Absolute name.
14465 ac_srcdir=$srcdir$ac_dir_suffix;
14466 ac_top_srcdir=$srcdir
14467 ac_abs_top_srcdir=$srcdir ;;
14468 *) # Relative name.
14469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14470 ac_top_srcdir=$ac_top_build_prefix$srcdir
14471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14486 ac_MKDIR_P=$MKDIR_P
14488 [\\/$]* | ?:[\\/]* ) ;;
14489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14494 # If the template does not know about datarootdir, expand it.
14495 # FIXME: This hack should be removed a few years after 2.60.
14496 ac_datarootdir_hack=; ac_datarootdir_seen=
14507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14508 *datarootdir*) ac_datarootdir_seen=yes;;
14509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14514 ac_datarootdir_hack='
14515 s&@datadir@&$datadir&g
14516 s&@docdir@&$docdir&g
14517 s&@infodir@&$infodir&g
14518 s&@localedir@&$localedir&g
14519 s&@mandir@&$mandir&g
14520 s&\\\${datarootdir}&$datarootdir&g' ;;
14524 # Neutralize VPATH when `$srcdir' = `.'.
14525 # Shell code in configure.ac might set extrasub.
14526 # FIXME: do we really want to maintain this feature?
14527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14528 ac_sed_extra="$ac_vpsub
14531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14534 s|@configure_input@|$ac_sed_conf_input|;t t
14535 s&@top_builddir@&$ac_top_builddir_sub&;t t
14536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14537 s&@srcdir@&$ac_srcdir&;t t
14538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14539 s&@top_srcdir@&$ac_top_srcdir&;t t
14540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14541 s&@builddir@&$ac_builddir&;t t
14542 s&@abs_builddir@&$ac_abs_builddir&;t t
14543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14544 s&@INSTALL@&$ac_INSTALL&;t t
14545 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14546 $ac_datarootdir_hack
14548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14556 which seems to be undefined. Please make sure it is defined" >&5
14557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14558 which seems to be undefined. Please make sure it is defined" >&2;}
14560 rm -f "$ac_tmp/stdin"
14562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14571 if test x"$ac_file" != x-; then
14573 $as_echo "/* $configure_input */" \
14574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14575 } >"$ac_tmp/config.h" \
14576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14579 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14582 mv "$ac_tmp/config.h" "$ac_file" \
14583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14586 $as_echo "/* $configure_input */" \
14587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14588 || as_fn_error $? "could not create -" "$LINENO" 5
14590 # Compute "$ac_file"'s index in $config_headers.
14593 for _am_header in $config_headers :; do
14594 case $_am_header in
14595 $_am_arg | $_am_arg:* )
14598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14601 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14602 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603 X"$_am_arg" : 'X\(//\)[^/]' \| \
14604 X"$_am_arg" : 'X\(//\)$' \| \
14605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14606 $as_echo X"$_am_arg" |
14607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611 /^X\(\/\/\)[^/].*/{
14623 s/.*/./; q'`/stamp-h$_am_stamp_count
14626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14627 $as_echo "$as_me: executing $ac_file commands" >&6;}
14632 case $ac_file$ac_mode in
14633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14634 # Older Autoconf quotes --file arguments for eval, but not when files
14635 # are listed without --file. Let's play safe and only enable the eval
14636 # if we detect the quoting.
14637 case $CONFIG_FILES in
14638 *\'*) eval set x "$CONFIG_FILES" ;;
14639 *) set x $CONFIG_FILES ;;
14644 # Strip MF so we end up with the name of the file.
14645 mf=`echo "$mf" | sed -e 's/:.*$//'`
14646 # Check whether this is an Automake generated Makefile or not.
14647 # We used to match only the files named 'Makefile.in', but
14648 # some people rename them; so instead we look at the file content.
14649 # Grep'ing the first line is not enough: some people post-process
14650 # each Makefile.in and add a new line on top of each file to say so.
14651 # Grep'ing the whole file is not good either: AIX grep has a line
14652 # limit of 2048, but all sed's we know have understand at least 4000.
14653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14654 dirpart=`$as_dirname -- "$mf" ||
14655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14656 X"$mf" : 'X\(//\)[^/]' \| \
14657 X"$mf" : 'X\(//\)$' \| \
14658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14664 /^X\(\/\/\)[^/].*/{
14680 # Extract the definition of DEPDIR, am__include, and am__quote
14681 # from the Makefile without running 'make'.
14682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14683 test -z "$DEPDIR" && continue
14684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14685 test -z "$am__include" && continue
14686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14687 # Find all dependency output files, they are included files with
14688 # $(DEPDIR) in their names. We invoke sed twice because it is the
14689 # simplest approach to changing $(DEPDIR) to its actual value in the
14691 for file in `sed -n "
14692 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14693 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14694 # Make sure the directory exists.
14695 test -f "$dirpart/$file" && continue
14696 fdir=`$as_dirname -- "$file" ||
14697 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14698 X"$file" : 'X\(//\)[^/]' \| \
14699 X"$file" : 'X\(//\)$' \| \
14700 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14701 $as_echo X"$file" |
14702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14706 /^X\(\/\/\)[^/].*/{
14719 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14720 # echo "creating $dirpart/$file"
14721 echo '# dummy' > "$dirpart/$file"
14728 # See if we are running on zsh, and set the options which allow our
14729 # commands through without removal of \ escapes.
14730 if test -n "${ZSH_VERSION+set}" ; then
14731 setopt NO_GLOB_SUBST
14734 cfgfile="${ofile}T"
14735 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14738 cat <<_LT_EOF >> "$cfgfile"
14741 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14742 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14744 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14746 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14747 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14749 # Written by Gordon Matzigkeit, 1996
14751 # This file is part of GNU Libtool.
14753 # GNU Libtool is free software; you can redistribute it and/or
14754 # modify it under the terms of the GNU General Public License as
14755 # published by the Free Software Foundation; either version 2 of
14756 # the License, or (at your option) any later version.
14758 # As a special exception to the GNU General Public License,
14759 # if you distribute this file as part of a program or library that
14760 # is built using GNU Libtool, you may include this file under the
14761 # same distribution terms that you use for the rest of that program.
14763 # GNU Libtool is distributed in the hope that it will be useful,
14764 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14766 # GNU General Public License for more details.
14768 # You should have received a copy of the GNU General Public License
14769 # along with GNU Libtool; see the file COPYING. If not, a copy
14770 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14771 # obtained by writing to the Free Software Foundation, Inc.,
14772 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14775 # The names of the tagged configurations supported by this script.
14778 # ### BEGIN LIBTOOL CONFIG
14780 # A sed program that does not truncate output.
14783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14784 Xsed="\$SED -e 1s/^X//"
14786 # A grep program that handles long lines.
14792 # A literal string matcher.
14795 # Shell to use when invoking shell scripts.
14798 # An echo program that protects backslashes.
14801 # Which release of libtool.m4 was used?
14802 macro_version=$macro_version
14803 macro_revision=$macro_revision
14805 # Assembler program.
14808 # DLL creation program.
14809 DLLTOOL=$lt_DLLTOOL
14811 # Object dumper program.
14812 OBJDUMP=$lt_OBJDUMP
14814 # Whether or not to build shared libraries.
14815 build_libtool_libs=$enable_shared
14817 # Whether or not to build static libraries.
14818 build_old_libs=$enable_static
14820 # What type of objects to build.
14823 # Whether or not to optimize for fast installation.
14824 fast_install=$enable_fast_install
14826 # The PATH separator for the build system.
14827 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14830 host_alias=$host_alias
14834 # The build system.
14835 build_alias=$build_alias
14839 # A BSD- or MS-compatible name lister.
14842 # Whether we need soft or hard links.
14845 # What is the maximum length of a command?
14846 max_cmd_len=$max_cmd_len
14848 # Object file suffix (normally "o").
14851 # Executable file suffix (normally "").
14854 # whether the shell understands "unset".
14857 # turn spaces into newlines.
14860 # turn newlines into spaces.
14863 # convert \$build file names to \$host format.
14864 to_host_file_cmd=$lt_cv_to_host_file_cmd
14866 # convert \$build files to toolchain format.
14867 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14869 # Method to check whether dependent libraries are shared objects.
14870 deplibs_check_method=$lt_deplibs_check_method
14872 # Command to use when deplibs_check_method = "file_magic".
14873 file_magic_cmd=$lt_file_magic_cmd
14875 # How to find potential files when deplibs_check_method = "file_magic".
14876 file_magic_glob=$lt_file_magic_glob
14878 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14879 want_nocaseglob=$lt_want_nocaseglob
14881 # Command to associate shared and link libraries.
14882 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14887 # Flags to create an archive.
14888 AR_FLAGS=$lt_AR_FLAGS
14890 # How to feed a file listing to the archiver.
14891 archiver_list_spec=$lt_archiver_list_spec
14893 # A symbol stripping program.
14896 # Commands used to install an old-style archive.
14898 old_postinstall_cmds=$lt_old_postinstall_cmds
14899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14901 # Whether to use a lock for old archive extraction.
14902 lock_old_archive_extraction=$lock_old_archive_extraction
14907 # LTCC compiler flags.
14908 LTCFLAGS=$lt_CFLAGS
14910 # Take the output of nm and produce a listing of raw symbols and C names.
14911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14913 # Transform the output of nm in a proper C declaration.
14914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14916 # Transform the output of nm in a C name address pair.
14917 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14919 # Transform the output of nm in a C name address pair when lib prefix is needed.
14920 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14922 # Specify filename containing input files for \$NM.
14923 nm_file_list_spec=$lt_nm_file_list_spec
14925 # The root where to search for dependent libraries,and in which our libraries should be installed.
14926 lt_sysroot=$lt_sysroot
14928 # The name of the directory that contains temporary libtool files.
14931 # Used to examine libraries when file_magic_cmd begins with "file".
14932 MAGIC_CMD=$MAGIC_CMD
14934 # Must we lock files when doing compilation?
14935 need_locks=$lt_need_locks
14938 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14940 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14941 DSYMUTIL=$lt_DSYMUTIL
14943 # Tool to change global to local symbols on Mac OS X.
14946 # Tool to manipulate fat objects and archives on Mac OS X.
14949 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14952 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14953 OTOOL64=$lt_OTOOL64
14955 # Old archive suffix (normally "a").
14958 # Shared library suffix (normally ".so").
14959 shrext_cmds=$lt_shrext_cmds
14961 # The commands to extract the exported symbol list from a shared archive.
14962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14964 # Variables whose values should be saved in libtool wrapper scripts and
14965 # restored at link time.
14966 variables_saved_for_relink=$lt_variables_saved_for_relink
14968 # Do we need the "lib" prefix for modules?
14969 need_lib_prefix=$need_lib_prefix
14971 # Do we need a version for libraries?
14972 need_version=$need_version
14974 # Library versioning type.
14975 version_type=$version_type
14977 # Shared library runtime path variable.
14978 runpath_var=$runpath_var
14980 # Shared library path variable.
14981 shlibpath_var=$shlibpath_var
14983 # Is shlibpath searched before the hard-coded library search path?
14984 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14986 # Format of library name prefix.
14987 libname_spec=$lt_libname_spec
14989 # List of archive names. First name is the real one, the rest are links.
14990 # The last name is the one that the linker finds with -lNAME
14991 library_names_spec=$lt_library_names_spec
14993 # The coded name of the library, if different from the real name.
14994 soname_spec=$lt_soname_spec
14996 # Permission mode override for installation of shared libraries.
14997 install_override_mode=$lt_install_override_mode
14999 # Command to use after installation of a shared archive.
15000 postinstall_cmds=$lt_postinstall_cmds
15002 # Command to use after uninstallation of a shared archive.
15003 postuninstall_cmds=$lt_postuninstall_cmds
15005 # Commands used to finish a libtool library installation in a directory.
15006 finish_cmds=$lt_finish_cmds
15008 # As "finish_cmds", except a single script fragment to be evaled but
15010 finish_eval=$lt_finish_eval
15012 # Whether we should hardcode library paths into libraries.
15013 hardcode_into_libs=$hardcode_into_libs
15015 # Compile-time system search path for libraries.
15016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15018 # Run-time system search path for libraries.
15019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15021 # Whether dlopen is supported.
15022 dlopen_support=$enable_dlopen
15024 # Whether dlopen of programs is supported.
15025 dlopen_self=$enable_dlopen_self
15027 # Whether dlopen of statically linked programs is supported.
15028 dlopen_self_static=$enable_dlopen_self_static
15030 # Commands to strip libraries.
15031 old_striplib=$lt_old_striplib
15032 striplib=$lt_striplib
15035 # The linker used to build libraries.
15038 # How to create reloadable object files.
15039 reload_flag=$lt_reload_flag
15040 reload_cmds=$lt_reload_cmds
15042 # Commands used to build an old-style archive.
15043 old_archive_cmds=$lt_old_archive_cmds
15045 # A language specific compiler.
15048 # Is the compiler the GNU compiler?
15051 # Compiler flag to turn off builtin functions.
15052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15054 # Additional compiler flags for building library objects.
15055 pic_flag=$lt_lt_prog_compiler_pic
15057 # How to pass a linker flag through the compiler.
15058 wl=$lt_lt_prog_compiler_wl
15060 # Compiler flag to prevent dynamic linking.
15061 link_static_flag=$lt_lt_prog_compiler_static
15063 # Does compiler simultaneously support -c and -o options?
15064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15066 # Whether or not to add -lc for building shared libraries.
15067 build_libtool_need_lc=$archive_cmds_need_lc
15069 # Whether or not to disallow shared libs when runtime libs are static.
15070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15072 # Compiler flag to allow reflexive dlopens.
15073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15075 # Compiler flag to generate shared objects directly from archives.
15076 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15078 # Whether the compiler copes with passing no objects directly.
15079 compiler_needs_object=$lt_compiler_needs_object
15081 # Create an old-style archive from a shared archive.
15082 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15084 # Create a temporary old-style archive to link instead of a shared archive.
15085 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15087 # Commands used to build a shared archive.
15088 archive_cmds=$lt_archive_cmds
15089 archive_expsym_cmds=$lt_archive_expsym_cmds
15091 # Commands used to build a loadable module if different from building
15092 # a shared archive.
15093 module_cmds=$lt_module_cmds
15094 module_expsym_cmds=$lt_module_expsym_cmds
15096 # Whether we are building with GNU ld or not.
15097 with_gnu_ld=$lt_with_gnu_ld
15099 # Flag that allows shared libraries with undefined symbols to be built.
15100 allow_undefined_flag=$lt_allow_undefined_flag
15102 # Flag that enforces no undefined symbols.
15103 no_undefined_flag=$lt_no_undefined_flag
15105 # Flag to hardcode \$libdir into a binary during linking.
15106 # This must work even if \$libdir does not exist
15107 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15109 # Whether we need a single "-rpath" flag with a separated argument.
15110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15113 # DIR into the resulting binary.
15114 hardcode_direct=$hardcode_direct
15116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15117 # DIR into the resulting binary and the resulting library dependency is
15118 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15119 # library is relocated.
15120 hardcode_direct_absolute=$hardcode_direct_absolute
15122 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15123 # into the resulting binary.
15124 hardcode_minus_L=$hardcode_minus_L
15126 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15127 # into the resulting binary.
15128 hardcode_shlibpath_var=$hardcode_shlibpath_var
15130 # Set to "yes" if building a shared library automatically hardcodes DIR
15131 # into the library and all subsequent libraries and executables linked
15133 hardcode_automatic=$hardcode_automatic
15135 # Set to yes if linker adds runtime paths of dependent libraries
15136 # to runtime path list.
15137 inherit_rpath=$inherit_rpath
15139 # Whether libtool must link a program against all its dependency libraries.
15140 link_all_deplibs=$link_all_deplibs
15142 # Set to "yes" if exported symbols are required.
15143 always_export_symbols=$always_export_symbols
15145 # The commands to list exported symbols.
15146 export_symbols_cmds=$lt_export_symbols_cmds
15148 # Symbols that should not be listed in the preloaded symbols.
15149 exclude_expsyms=$lt_exclude_expsyms
15151 # Symbols that must always be exported.
15152 include_expsyms=$lt_include_expsyms
15154 # Commands necessary for linking programs (against libraries) with templates.
15155 prelink_cmds=$lt_prelink_cmds
15157 # Commands necessary for finishing linking programs.
15158 postlink_cmds=$lt_postlink_cmds
15160 # Specify filename containing input files.
15161 file_list_spec=$lt_file_list_spec
15163 # How to hardcode a shared library path into an executable.
15164 hardcode_action=$hardcode_action
15166 # ### END LIBTOOL CONFIG
15172 cat <<\_LT_EOF >> "$cfgfile"
15173 # AIX sometimes has problems with the GCC collect2 program. For some
15174 # reason, if we set the COLLECT_NAMES environment variable, the problems
15175 # vanish in a puff of smoke.
15176 if test "X${COLLECT_NAMES+set}" != Xset; then
15178 export COLLECT_NAMES
15185 ltmain="$ac_aux_dir/ltmain.sh"
15188 # We use sed instead of cat because bash on DJGPP gets confused if
15189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15190 # text mode, it properly converts lines to CR/LF. This bash problem
15191 # is reportedly fixed, but why not run on old versions too?
15192 sed '$q' "$ltmain" >> "$cfgfile" \
15193 || (rm -f "$cfgfile"; exit 1)
15195 if test x"$xsi_shell" = xyes; then
15196 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15200 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15201 \ * ) func_dirname_result="${3}" ;;\
15203 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15204 && mv -f "$cfgfile.tmp" "$cfgfile" \
15205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15206 test 0 -eq $? || _lt_function_replace_fail=:
15209 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15212 \ func_basename_result="${1##*/}"\
15213 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15214 && mv -f "$cfgfile.tmp" "$cfgfile" \
15215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15216 test 0 -eq $? || _lt_function_replace_fail=:
15219 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15220 func_dirname_and_basename ()\
15223 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15224 \ * ) func_dirname_result="${3}" ;;\
15226 \ func_basename_result="${1##*/}"\
15227 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15228 && mv -f "$cfgfile.tmp" "$cfgfile" \
15229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15230 test 0 -eq $? || _lt_function_replace_fail=:
15233 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15236 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15237 \ # positional parameters, so assign one to ordinary parameter first.\
15238 \ func_stripname_result=${3}\
15239 \ func_stripname_result=${func_stripname_result#"${1}"}\
15240 \ func_stripname_result=${func_stripname_result%"${2}"}\
15241 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15242 && mv -f "$cfgfile.tmp" "$cfgfile" \
15243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15244 test 0 -eq $? || _lt_function_replace_fail=:
15247 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15248 func_split_long_opt ()\
15250 \ func_split_long_opt_name=${1%%=*}\
15251 \ func_split_long_opt_arg=${1#*=}\
15252 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15253 && mv -f "$cfgfile.tmp" "$cfgfile" \
15254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15255 test 0 -eq $? || _lt_function_replace_fail=:
15258 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15259 func_split_short_opt ()\
15261 \ func_split_short_opt_arg=${1#??}\
15262 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15263 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15264 && mv -f "$cfgfile.tmp" "$cfgfile" \
15265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15266 test 0 -eq $? || _lt_function_replace_fail=:
15269 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15273 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15274 \ *) func_lo2o_result=${1} ;;\
15276 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15277 && mv -f "$cfgfile.tmp" "$cfgfile" \
15278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15279 test 0 -eq $? || _lt_function_replace_fail=:
15282 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15285 func_xform_result=${1%.*}.lo\
15286 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15287 && mv -f "$cfgfile.tmp" "$cfgfile" \
15288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15289 test 0 -eq $? || _lt_function_replace_fail=:
15292 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15295 func_arith_result=$(( $* ))\
15296 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15297 && mv -f "$cfgfile.tmp" "$cfgfile" \
15298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15299 test 0 -eq $? || _lt_function_replace_fail=:
15302 sed -e '/^func_len ()$/,/^} # func_len /c\
15305 func_len_result=${#1}\
15306 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15307 && mv -f "$cfgfile.tmp" "$cfgfile" \
15308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15309 test 0 -eq $? || _lt_function_replace_fail=:
15313 if test x"$lt_shell_append" = xyes; then
15314 sed -e '/^func_append ()$/,/^} # func_append /c\
15317 eval "${1}+=\\${2}"\
15318 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15319 && mv -f "$cfgfile.tmp" "$cfgfile" \
15320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15321 test 0 -eq $? || _lt_function_replace_fail=:
15324 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15325 func_append_quoted ()\
15327 \ func_quote_for_eval "${2}"\
15328 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15329 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15330 && mv -f "$cfgfile.tmp" "$cfgfile" \
15331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15332 test 0 -eq $? || _lt_function_replace_fail=:
15335 # Save a `func_append' function call where possible by direct use of '+='
15336 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15337 && mv -f "$cfgfile.tmp" "$cfgfile" \
15338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339 test 0 -eq $? || _lt_function_replace_fail=:
15341 # Save a `func_append' function call even when '+=' is not available
15342 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15343 && mv -f "$cfgfile.tmp" "$cfgfile" \
15344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15345 test 0 -eq $? || _lt_function_replace_fail=:
15348 if test x"$_lt_function_replace_fail" = x":"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15350 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15354 mv -f "$cfgfile" "$ofile" ||
15355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15359 "libpng-config":F) chmod +x libpng-config ;;
15367 ac_clean_files=$ac_clean_files_save
15369 test $ac_write_fail = 0 ||
15370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15373 # configure is writing to config.log, and then calls config.status.
15374 # config.status does its own redirection, appending to config.log.
15375 # Unfortunately, on DOS this fails, as config.log is still kept open
15376 # by configure, so config.status won't be able to write to it; its
15377 # output is simply discarded. So we exec the FD to /dev/null,
15378 # effectively closing config.log, so it can be properly (re)opened and
15379 # appended to by config.status. When coming back to configure, we
15380 # need to make the FD available again.
15381 if test "$no_create" != yes; then
15383 ac_config_status_args=
15384 test "$silent" = yes &&
15385 ac_config_status_args="$ac_config_status_args --quiet"
15387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15390 # would make configure fail if this is the last instruction.
15391 $ac_cs_success || as_fn_exit 1
15393 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15395 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}