2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libpng 1.2.50.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: png-mng-implement@lists.sourceforge.net about your
235 $0: system, including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='libpng'
703 PACKAGE_TARNAME='libpng'
704 PACKAGE_VERSION='1.2.50'
705 PACKAGE_STRING='libpng 1.2.50'
706 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
709 ac_unique_file="pngget.c"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
757 HAVE_LD_VERSION_SCRIPT_FALSE
758 HAVE_LD_VERSION_SCRIPT_TRUE
810 MAINTAINER_MODE_FALSE
820 INSTALL_STRIP_PROGRAM
862 program_transform_name
875 enable_option_checking
876 enable_maintainer_mode
877 enable_dependency_tracking
888 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 ac_unrecognized_opts=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name=s,x,x,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_$ac_useropt"
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1015 eval enable_$ac_useropt=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1205 -site=* | --site=* | --sit=*)
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1245 eval with_$ac_useropt=\$ac_optarg ;;
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1261 eval with_$ac_useropt=no ;;
1264 # Obsolete; use --with-x.
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) as_fn_error "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information."
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error "missing argument to $ac_option"
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1314 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1332 # Be sure to have absolute directory names.
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1345 target=$target_alias
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1352 If a cross compiler is detected then cross compile mode will be used." >&2
1353 elif test "x$build_alias" != "x$host_alias"; then
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361 test "$silent" = yes && exec 6>/dev/null
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error "pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1404 ac_srcdir_defaulted=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures libpng 1.2.50 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of libpng 1.2.50:";;
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-maintainer-mode enable make rules and dependencies not useful
1517 (and sometimes confusing) to the casual installer
1518 --disable-dependency-tracking speeds up one-time build
1519 --enable-dependency-tracking do not reject slow dependency extractors
1520 --enable-shared[=PKGS] build shared libraries [default=yes]
1521 --enable-static[=PKGS] build static libraries [default=yes]
1522 --enable-fast-install[=PKGS]
1523 optimize for fast installation [default=yes]
1524 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-pic try to use only PIC/non-PIC objects [default=use
1532 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1534 --with-binconfigs Generate shell libpng-config scripts as well as
1535 pkg-config data [default=yes]
1536 --with-libpng-compat Generate the obsolete libpng.so library
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1615 libpng configure 1.2.50
1616 generated by GNU Autoconf 2.65
1618 Copyright (C) 2009 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } >/dev/null && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 as_fn_set_status $ac_retval
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext conftest$ac_exeext
1711 if { { ac_try="$ac_link"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest$ac_exeext && {
1730 test "$cross_compiling" = yes ||
1731 $as_test_x conftest$ac_exeext
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742 # interfere with the next link command; also delete a directory that is
1743 # left behind by Apple's compiler. We do this before executing the actions.
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_link
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1767 if ac_fn_c_try_compile "$LINENO"; then :
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 } # ac_fn_c_check_header_compile
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_link"
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799 { { case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_try") 2>&5
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; }; }; then :
1811 $as_echo "$as_me: program exited with status $ac_status" >&5
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=$ac_status
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 as_fn_set_status $ac_retval
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1846 # include <limits.h>
1848 # include <assert.h>
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1875 if ac_fn_c_try_link "$LINENO"; then :
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 } # ac_fn_c_check_func
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1895 ac_fn_c_check_header_mongrel ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 $as_echo_n "(cached) " >&6
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1919 ac_header_compiler=no
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1935 ac_header_preproc=no
1937 rm -f conftest.err conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ## ------------------------------------------------------ ##
1962 ## Report this to png-mng-implement@lists.sourceforge.net ##
1963 ## ------------------------------------------------------ ##
1965 ) | sed "s/^/$as_me: WARNING: /" >&2
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1973 eval "$3=\$ac_header_compiler"
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 } # ac_fn_c_check_header_mongrel
1983 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984 # -------------------------------------------
1985 # Tests whether TYPE exists after having included INCLUDES, setting cache
1986 # variable VAR accordingly.
1987 ac_fn_c_check_type ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 } # ac_fn_c_check_type
2036 cat >config.log <<_ACEOF
2037 This file contains any messages produced by compilers while
2038 running configure, to aid debugging if configure makes a mistake.
2040 It was created by libpng $as_me 1.2.50, which was
2041 generated by GNU Autoconf 2.65. Invocation command line was
2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2063 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2066 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2067 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2068 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 $as_echo "PATH: $as_dir"
2093 # Keep a trace of the command line.
2094 # Strip out --no-create and --no-recursion so they do not pile up.
2095 # Strip out --silent because we don't want to record it for future runs.
2096 # Also quote any args containing shell meta-characters.
2097 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_must_keep_next=false
2107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109 | -silent | --silent | --silen | --sile | --sil)
2112 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 as_fn_append ac_configure_args1 " '$ac_arg'"
2118 if test $ac_must_keep_next = true; then
2119 ac_must_keep_next=false # Got value, back to normal.
2122 *=* | --config-cache | -C | -disable-* | --disable-* \
2123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125 | -with-* | --with-* | -without-* | --without-* | --x)
2126 case "$ac_configure_args0 " in
2127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2130 -* ) ac_must_keep_next=true ;;
2133 as_fn_append ac_configure_args " '$ac_arg'"
2138 { ac_configure_args0=; unset ac_configure_args0;}
2139 { ac_configure_args1=; unset ac_configure_args1;}
2141 # When interrupted or exit'd, cleanup temporary files, and complete
2142 # config.log. We remove comments because anyway the quotes in there
2143 # would cause problems or look ugly.
2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146 trap 'exit_status=$?
2147 # Save into config.log some information that might help in debugging.
2152 ## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##
2157 # The following way of writing the cache mishandles newlines in values,
2159 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2160 eval ac_val=\$$ac_var
2164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2168 _ | IFS | as_nl) ;; #(
2169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2170 *) { eval $ac_var=; unset $ac_var;} ;;
2175 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176 *${as_nl}ac_space=\ *)
2178 "s/'\''/'\''\\\\'\'''\''/g;
2179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2190 ## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##
2195 for ac_var in $ac_subst_vars
2197 eval ac_val=\$$ac_var
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 $as_echo "$ac_var='\''$ac_val'\''"
2205 if test -n "$ac_subst_files"; then
2207 ## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##
2212 for ac_var in $ac_subst_files
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -s confdefs.h; then
2233 test "$ac_signal" != 0 &&
2234 $as_echo "$as_me: caught signal $ac_signal"
2235 $as_echo "$as_me: exit $exit_status"
2237 rm -f core *.core core.conftest.* &&
2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241 for ac_signal in 1 2 13 15; do
2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2249 $as_echo "/* confdefs.h */" > confdefs.h
2251 # Predefined preprocessor variables.
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_NAME "$PACKAGE_NAME"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_STRING "$PACKAGE_STRING"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_URL "$PACKAGE_URL"
2278 # Let the site file select an alternate cache file if it wants to.
2279 # Prefer an explicitly selected file to automatically selected ones.
2282 if test -n "$CONFIG_SITE"; then
2283 ac_site_file1=$CONFIG_SITE
2284 elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293 test "x$ac_site_file" = xNONE && continue
2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297 sed 's/^/| /' "$ac_site_file" >&5
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2319 # Check that the precious variables saved in the cache have kept the same
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x $ac_old_val`
2341 ac_new_val_w=`echo x $ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345 ac_cache_corrupted=:
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 am__api_version='1.11'
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391 for ac_t in install-sh install.sh shtool; do
2392 if test -f "$ac_dir/$ac_t"; then
2394 ac_install_sh="$ac_aux_dir/$ac_t -c"
2399 if test -z "$ac_aux_dir"; then
2400 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412 # Find a good install program. We prefer a C program (faster),
2413 # so one script is as good as another. But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439 ./ | .// | /[cC]/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2459 rm -rf conftest.one conftest.two conftest.dir
2460 echo one > conftest.one
2461 echo two > conftest.two
2463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464 test -s conftest.one && test -s conftest.two &&
2465 test -s conftest.dir/conftest.one &&
2466 test -s conftest.dir/conftest.two
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 rm -rf conftest.one conftest.two conftest.dir
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 INSTALL=$ac_install_sh
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2509 echo timestamp > conftest.file
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name. Accept space and tab only in the latter.
2515 *[\\\"\#\$\&\'\`$am_lf]*)
2516 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2520 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2523 # Do `set' in a subshell so we don't clobber the current shell's
2524 # arguments. Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530 if test "$*" = "X"; then
2532 set X `ls -t "$srcdir/configure" conftest.file`
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2546 test "$2" = conftest.file
2552 as_fn_error "newly created file is older than distributed files!
2553 Check your system clock" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 test "$program_prefix" != NONE &&
2558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559 # Use a double $ so make ignores it.
2560 test "$program_suffix" != NONE &&
2561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562 # Double any \ or $.
2563 # By default was `s,x,x', remove it if useless.
2564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2567 # expand $ac_aux_dir to an absolute path
2568 am_aux_dir=`cd $ac_aux_dir && pwd`
2570 if test x"${MISSING+set}" != xset; then
2573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2578 # Use eval to expand $SHELL
2579 if eval "$MISSING --run true"; then
2580 am_missing_run="$MISSING --run "
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2587 if test x"${install_sh}" != xset; then
2590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2592 install_sh="\${SHELL} $am_aux_dir/install-sh"
2596 # Installed binaries are usually stripped using `strip' when the user
2597 # run `make install-strip'. However `strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the `STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_STRIP+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$STRIP"; then
2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2640 if test -z "$ac_cv_prog_STRIP"; then
2642 # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$ac_ct_STRIP"; then
2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_STRIP="strip"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2678 if test "x$ac_ct_STRIP" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2690 STRIP="$ac_cv_prog_STRIP"
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698 if test -z "$MKDIR_P"; then
2699 if test "${ac_cv_path_mkdir+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2706 test -z "$as_dir" && as_dir=.
2707 for ac_prog in mkdir gmkdir; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711 'mkdir (GNU coreutils) '* | \
2712 'mkdir (coreutils) '* | \
2713 'mkdir (fileutils) '4.1*)
2714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724 test -d ./--version && rmdir ./--version
2725 if test "${ac_cv_path_mkdir+set}" = set; then
2726 MKDIR_P="$ac_cv_path_mkdir -p"
2728 # As a last resort, use the slow shell script. Don't cache a
2729 # value for MKDIR_P within a source directory, because that will
2730 # break other packages using the cache if that directory is
2731 # removed, or if the value is a relative name.
2732 MKDIR_P="$ac_install_sh -d"
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736 $as_echo "$MKDIR_P" >&6; }
2740 [\\/$]* | ?:[\\/]*) ;;
2741 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2744 for ac_prog in gawk mawk nawk awk
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_AWK+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2753 if test -n "$AWK"; then
2754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_AWK="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$AWK"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2783 test -n "$AWK" && break
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2791 $as_echo_n "(cached) " >&6
2793 cat >conftest.make <<\_ACEOF
2796 @echo '@@@%%%=$(MAKE)=@@@%%%'
2798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2801 eval ac_cv_prog_make_${ac_make}_set=yes;;
2803 eval ac_cv_prog_make_${ac_make}_set=no;;
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 SET_MAKE="MAKE=${MAKE-make}"
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2824 rmdir .tst 2>/dev/null
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828 # is not polluted with repeated "-I."
2829 am__isrc=' -I$(srcdir)'
2830 # test to see if srcdir already configured
2831 if test -f $srcdir/config.status; then
2832 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838 if (cygpath --version) >/dev/null 2>/dev/null; then
2839 CYGPATH_W='cygpath -w'
2846 # Define the identity of the package.
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE "$PACKAGE"
2856 cat >>confdefs.h <<_ACEOF
2857 #define VERSION "$VERSION"
2860 # Some tools Automake needs.
2862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2876 # We need awk for the "check" target. The system "awk" is bad on
2878 # Always define AMTAR for backward compatibility.
2880 AMTAR=${AMTAR-"${am_missing_run}tar"}
2882 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2890 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2891 # Check whether --enable-maintainer-mode was given.
2892 if test "${enable_maintainer_mode+set}" = set; then :
2893 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2895 USE_MAINTAINER_MODE=no
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2899 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2900 if test $USE_MAINTAINER_MODE = yes; then
2901 MAINTAINER_MODE_TRUE=
2902 MAINTAINER_MODE_FALSE='#'
2904 MAINTAINER_MODE_TRUE='#'
2905 MAINTAINER_MODE_FALSE=
2908 MAINT=$MAINTAINER_MODE_TRUE
2912 PNGLIB_VERSION=1.2.50
2919 ac_config_headers="$ac_config_headers config.h"
2922 # Checks for programs.
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$ac_cv_prog_CC"; then
2969 # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_CC="gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999 $as_echo "$ac_ct_CC" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3020 if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CC="${ac_tool_prefix}cc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3061 if test -z "$CC"; then
3062 # Extract the first word of "cc", so it can be a program name with args.
3063 set dummy cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_CC+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081 ac_prog_rejected=yes
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test $ac_prog_rejected = yes; then
3093 # We found a bogon in the path, so make sure we never use it.
3094 set dummy $ac_cv_prog_CC
3096 if test $# != 0; then
3097 # We chose a different compiler from the bogus one.
3098 # However, it has the same basename, so the bogon will be chosen
3099 # first if we set CC to just the basename; use the full file name.
3101 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 for ac_prog in cl.exe
3121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3158 test -n "$CC" && break
3161 if test -z "$CC"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$ac_ct_CC"; then
3173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_ac_ct_CC="$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$ac_ct_CC" && break
3205 if test "x$ac_ct_CC" = x; then
3208 case $cross_compiling:$ac_tool_warned in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details." "$LINENO" 5; }
3226 # Provide some information about the compiler.
3227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 for ac_option in --version -v -V -qversion; do
3231 { { ac_try="$ac_compiler $ac_option >&5"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3240 if test -s conftest.err; then
3242 ... rest of stderr output deleted ...
3243 10q' conftest.err >conftest.er1
3244 cat conftest.er1 >&5
3246 rm -f conftest.er1 conftest.err
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275 for ac_file in $ac_files
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284 if { { ac_try="$ac_link_default"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_link_default") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3300 for ac_file in $ac_files ''
3302 test -f "$ac_file" || continue
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307 # We found the default executable, but exeext='' is most
3311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 # We set ac_cv_exeext here because the later test for it is not
3316 # safe: cross compilers may not add the suffix if given an `-o'
3317 # argument, so we may need to know it at that point already.
3318 # Even if this section looks crufty: it has the advantage of
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3330 if test -z "$ac_file"; then :
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 { as_fn_set_status 77
3339 as_fn_error "C compiler cannot create executables
3340 See \`config.log' for more details." "$LINENO" 5; }; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3346 $as_echo_n "checking for C compiler default output file name... " >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 ac_exeext=$ac_cv_exeext
3351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3352 ac_clean_files=$ac_clean_files_save
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354 $as_echo_n "checking for suffix of executables... " >&6; }
3355 if { { ac_try="$ac_link"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3368 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 for ac_file in conftest.exe conftest conftest.*; do
3371 test -f "$ac_file" || continue
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error "cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." "$LINENO" 5; }
3385 rm -f conftest conftest$ac_cv_exeext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387 $as_echo "$ac_cv_exeext" >&6; }
3389 rm -f conftest.$ac_ext
3390 EXEEXT=$ac_cv_exeext
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3398 FILE *f = fopen ("conftest.out", "w");
3399 return ferror (f) || fclose (f) != 0;
3405 ac_clean_files="$ac_clean_files conftest.out"
3406 # Check that the compiler produces executables we can run. If not, either
3407 # the compiler is broken, or we cross compile.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3409 $as_echo_n "checking whether we are cross compiling... " >&6; }
3410 if test "$cross_compiling" != yes; then
3411 { { ac_try="$ac_link"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_link") 2>&5
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }
3422 if { ac_try='./conftest$ac_cv_exeext'
3423 { { case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_try") 2>&5
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; }; then
3435 if test "$cross_compiling" = maybe; then
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error "cannot run C compiled programs.
3441 If you meant to cross compile, use \`--host'.
3442 See \`config.log' for more details." "$LINENO" 5; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447 $as_echo "$cross_compiling" >&6; }
3449 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3450 ac_clean_files=$ac_clean_files_save
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452 $as_echo_n "checking for suffix of object files... " >&6; }
3453 if test "${ac_cv_objext+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3467 rm -f conftest.o conftest.obj
3468 if { { ac_try="$ac_compile"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compile") 2>&5
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 for ac_file in conftest.o conftest.obj conftest.*; do
3480 test -f "$ac_file" || continue;
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error "cannot compute suffix of object files: cannot compile
3494 See \`config.log' for more details." "$LINENO" 5; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3537 ac_test_CFLAGS=${CFLAGS+set}
3538 ac_save_CFLAGS=$CFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3541 if test "${ac_cv_prog_cc_g+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 ac_save_c_werror_flag=$ac_c_werror_flag
3545 ac_c_werror_flag=yes
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_c_try_compile "$LINENO"; then :
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601 $as_echo "$ac_cv_prog_cc_g" >&6; }
3602 if test "$ac_test_CFLAGS" = set; then
3603 CFLAGS=$ac_save_CFLAGS
3604 elif test $ac_cv_prog_cc_g = yes; then
3605 if test "$GCC" = yes; then
3611 if test "$GCC" = yes; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_cv_prog_cc_c89=no
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3628 #include <sys/types.h>
3629 #include <sys/stat.h>
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3644 s = g (p, va_arg (v,int));
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std. */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659 inside strings and character constants. */
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 CC="$ac_save_CC $ac_arg"
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_prog_cc_c89=$ac_arg
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 rm -f conftest.$ac_ext
3692 case "x$ac_cv_prog_cc_c89" in
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 DEPDIR="${am__leading_dot}deps"
3715 ac_config_commands="$ac_config_commands depfiles"
3718 am_make=${MAKE-make}
3719 cat > confinc << 'END'
3721 @echo this is the am__doit target
3724 # If we don't find an include directive, just comment out the code.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3726 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3730 # First try GNU make style include.
3731 echo "include confinc" > confmf
3732 # Ignore all kinds of additional output from `make'.
3733 case `$am_make -s -f confmf 2> /dev/null` in #(
3734 *the\ am__doit\ target*)
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742 echo '.include "confinc"' > confmf
3743 case `$am_make -s -f confmf 2> /dev/null` in #(
3744 *the\ am__doit\ target*)
3745 am__include=.include
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3754 $as_echo "$_am_result" >&6; }
3755 rm -f confinc confmf
3757 # Check whether --enable-dependency-tracking was given.
3758 if test "${enable_dependency_tracking+set}" = set; then :
3759 enableval=$enable_dependency_tracking;
3762 if test "x$enable_dependency_tracking" != xno; then
3763 am_depcomp="$ac_aux_dir/depcomp"
3766 if test "x$enable_dependency_tracking" != xno; then
3776 depcc="$CC" am_compiler_list=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=$am__obj \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3884 am_cv_CC_dependencies_compiler_type=none
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_FALSE='#'
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3903 # Make sure we can run config.sub.
3904 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3905 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3908 $as_echo_n "checking build system type... " >&6; }
3909 if test "${ac_cv_build+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3912 ac_build_alias=$build_alias
3913 test "x$ac_build_alias" = x &&
3914 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3915 test "x$ac_build_alias" = x &&
3916 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3918 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3922 $as_echo "$ac_cv_build" >&6; }
3923 case $ac_cv_build in
3925 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3928 ac_save_IFS=$IFS; IFS='-'
3934 # Remember, the first character of IFS is used to create $*,
3935 # except with old shells:
3938 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3942 $as_echo_n "checking host system type... " >&6; }
3943 if test "${ac_cv_host+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3946 if test "x$host_alias" = x; then
3947 ac_cv_host=$ac_cv_build
3949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3950 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3955 $as_echo "$ac_cv_host" >&6; }
3958 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3961 ac_save_IFS=$IFS; IFS='-'
3967 # Remember, the first character of IFS is used to create $*,
3968 # except with old shells:
3971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3975 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3976 if test "${ac_cv_path_SED+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3979 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3980 for ac_i in 1 2 3 4 5 6 7; do
3981 ac_script="$ac_script$as_nl$ac_script"
3983 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3984 { ac_script=; unset ac_script;}
3985 if test -z "$SED"; then
3986 ac_path_SED_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in sed gsed; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3997 # Check for GNU ac_path_SED and select it if it is found.
3998 # Check for GNU $ac_path_SED
3999 case `"$ac_path_SED" --version 2>&1` in
4001 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4004 $as_echo_n 0123456789 >"conftest.in"
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo '' >> "conftest.nl"
4011 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 as_fn_arith $ac_count + 1 && ac_count=$as_val
4014 if test $ac_count -gt ${ac_path_SED_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_SED="$ac_path_SED"
4017 ac_path_SED_max=$ac_count
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 $ac_path_SED_found && break 3
4030 if test -z "$ac_cv_path_SED"; then
4031 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4039 $as_echo "$ac_cv_path_SED" >&6; }
4040 SED="$ac_cv_path_SED"
4043 test -z "$SED" && SED=sed
4044 Xsed="$SED -e 1s/^X//"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4057 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4058 if test "${ac_cv_path_GREP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4061 if test -z "$GREP"; then
4062 ac_path_GREP_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in grep ggrep; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4072 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4073 # Check for GNU ac_path_GREP and select it if it is found.
4074 # Check for GNU $ac_path_GREP
4075 case `"$ac_path_GREP" --version 2>&1` in
4077 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4080 $as_echo_n 0123456789 >"conftest.in"
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 $as_echo 'GREP' >> "conftest.nl"
4087 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 as_fn_arith $ac_count + 1 && ac_count=$as_val
4090 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_GREP="$ac_path_GREP"
4093 ac_path_GREP_max=$ac_count
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101 $ac_path_GREP_found && break 3
4106 if test -z "$ac_cv_path_GREP"; then
4107 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110 ac_cv_path_GREP=$GREP
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4115 $as_echo "$ac_cv_path_GREP" >&6; }
4116 GREP="$ac_cv_path_GREP"
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4120 $as_echo_n "checking for egrep... " >&6; }
4121 if test "${ac_cv_path_EGREP+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4125 then ac_cv_path_EGREP="$GREP -E"
4127 if test -z "$EGREP"; then
4128 ac_path_EGREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in egrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4139 # Check for GNU ac_path_EGREP and select it if it is found.
4140 # Check for GNU $ac_path_EGREP
4141 case `"$ac_path_EGREP" --version 2>&1` in
4143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4146 $as_echo_n 0123456789 >"conftest.in"
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'EGREP' >> "conftest.nl"
4153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_EGREP="$ac_path_EGREP"
4159 ac_path_EGREP_max=$ac_count
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 $ac_path_EGREP_found && break 3
4172 if test -z "$ac_cv_path_EGREP"; then
4173 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176 ac_cv_path_EGREP=$EGREP
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4182 $as_echo "$ac_cv_path_EGREP" >&6; }
4183 EGREP="$ac_cv_path_EGREP"
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4187 $as_echo_n "checking for fgrep... " >&6; }
4188 if test "${ac_cv_path_FGREP+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4192 then ac_cv_path_FGREP="$GREP -F"
4194 if test -z "$FGREP"; then
4195 ac_path_FGREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in fgrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4206 # Check for GNU ac_path_FGREP and select it if it is found.
4207 # Check for GNU $ac_path_FGREP
4208 case `"$ac_path_FGREP" --version 2>&1` in
4210 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4213 $as_echo_n 0123456789 >"conftest.in"
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo 'FGREP' >> "conftest.nl"
4220 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
4223 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_FGREP="$ac_path_FGREP"
4226 ac_path_FGREP_max=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 $ac_path_FGREP_found && break 3
4239 if test -z "$ac_cv_path_FGREP"; then
4240 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243 ac_cv_path_FGREP=$FGREP
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4249 $as_echo "$ac_cv_path_FGREP" >&6; }
4250 FGREP="$ac_cv_path_FGREP"
4253 test -z "$GREP" && GREP=grep
4273 # Check whether --with-gnu-ld was given.
4274 if test "${with_gnu_ld+set}" = set; then :
4275 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4281 if test "$GCC" = yes; then
4282 # Check if gcc -print-prog-name=ld gives a path.
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4284 $as_echo_n "checking for ld used by $CC... " >&6; }
4287 # gcc leaves a trailing carriage return which upsets mingw
4288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4293 # Accept absolute paths.
4295 re_direlt='/[^/][^/]*/\.\./'
4296 # Canonicalize the pathname of ld
4297 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4298 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4299 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4301 test -z "$LD" && LD="$ac_prog"
4304 # If it fails, then pretend we aren't using GCC.
4308 # If it is relative, then search for the first ld in PATH.
4312 elif test "$with_gnu_ld" = yes; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4314 $as_echo_n "checking for GNU ld... " >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4317 $as_echo_n "checking for non-GNU ld... " >&6; }
4319 if test "${lt_cv_path_LD+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$LD"; then
4323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4324 for ac_dir in $PATH; do
4326 test -z "$ac_dir" && ac_dir=.
4327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4328 lt_cv_path_LD="$ac_dir/$ac_prog"
4329 # Check to see if the program is GNU ld. I'd rather use --version,
4330 # but apparently some variants of GNU ld only accept -v.
4331 # Break only if it was the GNU/non-GNU ld that we prefer.
4332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4333 *GNU* | *'with BFD'*)
4334 test "$with_gnu_ld" != no && break
4337 test "$with_gnu_ld" != yes && break
4344 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4349 if test -n "$LD"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4351 $as_echo "$LD" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4356 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4359 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4363 case `$LD -v 2>&1 </dev/null` in
4364 *GNU* | *'with BFD'*)
4365 lt_cv_prog_gnu_ld=yes
4368 lt_cv_prog_gnu_ld=no
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4373 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4374 with_gnu_ld=$lt_cv_prog_gnu_ld
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4390 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4391 # On Suns, sometimes $CPP names a directory.
4392 if test -n "$CPP" && test -d "$CPP"; then
4395 if test -z "$CPP"; then
4396 if test "${ac_cv_prog_CPP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 # Double quotes because CPP needs to be expanded
4400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4403 for ac_c_preproc_warn_flag in '' yes
4405 # Use a header file that comes with gcc, so configuring glibc
4406 # with a fresh cross-compiler works.
4407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4408 # <limits.h> exists even on freestanding compilers.
4409 # On the NeXT, cc -E runs the code through the compiler's parser,
4410 # not just through cpp. "Syntax error" is here to catch this case.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4414 # include <limits.h>
4416 # include <assert.h>
4420 if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: fails on valid input.
4426 rm -f conftest.err conftest.$ac_ext
4428 # OK, works on sane cases. Now check whether nonexistent headers
4429 # can be detected and how.
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <ac_nonexistent.h>
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4435 # Broken: success on invalid input.
4438 # Passes both tests.
4442 rm -f conftest.err conftest.$ac_ext
4445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4446 rm -f conftest.err conftest.$ac_ext
4447 if $ac_preproc_ok; then :
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4460 $as_echo "$CPP" >&6; }
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 # include <limits.h>
4475 # include <assert.h>
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: fails on valid input.
4485 rm -f conftest.err conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <ac_nonexistent.h>
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494 # Broken: success on invalid input.
4497 # Passes both tests.
4501 rm -f conftest.err conftest.$ac_ext
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4512 See \`config.log' for more details." "$LINENO" 5; }
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}sed; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_SED+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -n "$SED"; then
4530 ac_cv_prog_SED="$SED" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_SED="${ac_tool_prefix}sed"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 if test -n "$SED"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4552 $as_echo "$SED" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4560 if test -z "$ac_cv_prog_SED"; then
4562 # Extract the first word of "sed", so it can be a program name with args.
4563 set dummy sed; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_SED+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$ac_ct_SED"; then
4570 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_SED="sed"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4590 if test -n "$ac_ct_SED"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4592 $as_echo "$ac_ct_SED" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4598 if test "x$ac_ct_SED" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4610 SED="$ac_cv_prog_SED"
4613 enable_win32_dll=yes
4616 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}as; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_AS+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$AS"; then
4626 ac_cv_prog_AS="$AS" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_AS="${ac_tool_prefix}as"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$AS"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4648 $as_echo "$AS" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_AS"; then
4658 # Extract the first word of "as", so it can be a program name with args.
4659 set dummy as; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$ac_ct_AS"; then
4666 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_AS="as"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4686 if test -n "$ac_ct_AS"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4688 $as_echo "$ac_ct_AS" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_AS" = x; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4709 if test -n "$ac_tool_prefix"; then
4710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4717 if test -n "$DLLTOOL"; then
4718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 DLLTOOL=$ac_cv_prog_DLLTOOL
4738 if test -n "$DLLTOOL"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4740 $as_echo "$DLLTOOL" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4748 if test -z "$ac_cv_prog_DLLTOOL"; then
4749 ac_ct_DLLTOOL=$DLLTOOL
4750 # Extract the first word of "dlltool", so it can be a program name with args.
4751 set dummy dlltool; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$ac_ct_DLLTOOL"; then
4758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4778 if test -n "$ac_ct_DLLTOOL"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4780 $as_echo "$ac_ct_DLLTOOL" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4786 if test "x$ac_ct_DLLTOOL" = x; then
4789 case $cross_compiling:$ac_tool_warned in
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4795 DLLTOOL=$ac_ct_DLLTOOL
4798 DLLTOOL="$ac_cv_prog_DLLTOOL"
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4809 if test -n "$OBJDUMP"; then
4810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 OBJDUMP=$ac_cv_prog_OBJDUMP
4830 if test -n "$OBJDUMP"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4832 $as_echo "$OBJDUMP" >&6; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4840 if test -z "$ac_cv_prog_OBJDUMP"; then
4841 ac_ct_OBJDUMP=$OBJDUMP
4842 # Extract the first word of "objdump", so it can be a program name with args.
4843 set dummy objdump; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4849 if test -n "$ac_ct_OBJDUMP"; then
4850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4870 if test -n "$ac_ct_OBJDUMP"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4872 $as_echo "$ac_ct_OBJDUMP" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4878 if test "x$ac_ct_OBJDUMP" = x; then
4881 case $cross_compiling:$ac_tool_warned in
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4887 OBJDUMP=$ac_ct_OBJDUMP
4890 OBJDUMP="$ac_cv_prog_OBJDUMP"
4896 test -z "$AS" && AS=as
4902 test -z "$DLLTOOL" && DLLTOOL=dlltool
4908 test -z "$OBJDUMP" && OBJDUMP=objdump
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4918 $as_echo_n "checking whether ln -s works... " >&6; }
4920 if test "$LN_S" = "ln -s"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4925 $as_echo "no, using $LN_S" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4929 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4931 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4933 $as_echo_n "(cached) " >&6
4935 cat >conftest.make <<\_ACEOF
4938 @echo '@@@%%%=$(MAKE)=@@@%%%'
4940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4943 eval ac_cv_prog_make_${ac_make}_set=yes;;
4945 eval ac_cv_prog_make_${ac_make}_set=no;;
4949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 $as_echo "yes" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 SET_MAKE="MAKE=${MAKE-make}"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4967 macro_version='2.2.6b'
4968 macro_revision='1.3017'
4982 ltmain="$ac_aux_dir/ltmain.sh"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4985 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4986 if test "${lt_cv_path_NM+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 if test -n "$NM"; then
4990 # Let the user override the test.
4993 lt_nm_to_check="${ac_tool_prefix}nm"
4994 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4995 lt_nm_to_check="$lt_nm_to_check nm"
4997 for lt_tmp_nm in $lt_nm_to_check; do
4998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4999 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5001 test -z "$ac_dir" && ac_dir=.
5002 tmp_nm="$ac_dir/$lt_tmp_nm"
5003 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5004 # Check to see if the nm accepts a BSD-compat flag.
5005 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5006 # nm: unknown option "B" ignored
5007 # Tru64's nm complains that /dev/null is an invalid object file
5008 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5009 */dev/null* | *'Invalid file or object type'*)
5010 lt_cv_path_NM="$tmp_nm -B"
5014 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5016 lt_cv_path_NM="$tmp_nm -p"
5020 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5021 continue # so that we can try to find one that supports BSD flags
5030 : ${lt_cv_path_NM=no}
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5034 $as_echo "$lt_cv_path_NM" >&6; }
5035 if test "$lt_cv_path_NM" != "no"; then
5038 # Didn't find any BSD compatible name lister, look for dumpbin.
5039 if test -n "$ac_tool_prefix"; then
5040 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$DUMPBIN"; then
5050 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 DUMPBIN=$ac_cv_prog_DUMPBIN
5070 if test -n "$DUMPBIN"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5072 $as_echo "$DUMPBIN" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$DUMPBIN" && break
5082 if test -z "$DUMPBIN"; then
5083 ac_ct_DUMPBIN=$DUMPBIN
5084 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5086 # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_DUMPBIN"; then
5094 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5114 if test -n "$ac_ct_DUMPBIN"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5116 $as_echo "$ac_ct_DUMPBIN" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 test -n "$ac_ct_DUMPBIN" && break
5126 if test "x$ac_ct_DUMPBIN" = x; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5135 DUMPBIN=$ac_ct_DUMPBIN
5140 if test "$DUMPBIN" != ":"; then
5144 test -z "$NM" && NM=nm
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5152 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5153 if test "${lt_cv_nm_interface+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 lt_cv_nm_interface="BSD nm"
5157 echo "int some_variable = 0;" > conftest.$ac_ext
5158 (eval echo "\"\$as_me:5158: $ac_compile\"" >&5)
5159 (eval "$ac_compile" 2>conftest.err)
5160 cat conftest.err >&5
5161 (eval echo "\"\$as_me:5161: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5162 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5163 cat conftest.err >&5
5164 (eval echo "\"\$as_me:5164: output\"" >&5)
5165 cat conftest.out >&5
5166 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5167 lt_cv_nm_interface="MS dumpbin"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5172 $as_echo "$lt_cv_nm_interface" >&6; }
5174 # find the maximum length of command line arguments
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5176 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5177 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5185 # On DJGPP, this test can blow up pretty badly due to problems in libc
5186 # (any single argument exceeding 2000 bytes causes a buffer overrun
5187 # during glob expansion). Even if it were fixed, the result of this
5188 # check would be larger than it should be.
5189 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5193 # Under GNU Hurd, this test is not required because there is
5194 # no limit to the length of command line arguments.
5195 # Libtool will interpret -1 as no limit whatsoever
5196 lt_cv_sys_max_cmd_len=-1;
5199 cygwin* | mingw* | cegcc*)
5200 # On Win9x/ME, this test blows up -- it succeeds, but takes
5201 # about 5 minutes as the teststring grows exponentially.
5202 # Worse, since 9x/ME are not pre-emptively multitasking,
5203 # you end up with a "frozen" computer, even though with patience
5204 # the test eventually succeeds (with a max line length of 256k).
5205 # Instead, let's just punt: use the minimum linelength reported by
5206 # all of the supported platforms: 8192 (on NT/2K/XP).
5207 lt_cv_sys_max_cmd_len=8192;
5211 # On AmigaOS with pdksh, this test takes hours, literally.
5212 # So we just punt and use a minimum line length of 8192.
5213 lt_cv_sys_max_cmd_len=8192;
5216 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217 # This has been around since 386BSD, at least. Likely further.
5218 if test -x /sbin/sysctl; then
5219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220 elif test -x /usr/sbin/sysctl; then
5221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5225 # And add a safety zone
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232 lt_cv_sys_max_cmd_len=196608
5236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5238 # nice to cause kernel panics so lets avoid the loop below.
5239 # First set a reasonable default.
5240 lt_cv_sys_max_cmd_len=16384
5242 if test -x /sbin/sysconfig; then
5243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5249 lt_cv_sys_max_cmd_len=102400
5251 sysv5* | sco5v6* | sysv4.2uw2*)
5252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5253 if test -n "$kargmax"; then
5254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5256 lt_cv_sys_max_cmd_len=32768
5260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5261 if test -n "$lt_cv_sys_max_cmd_len"; then
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265 # Make teststring a little bigger before we do anything with it.
5266 # a 1K string should be a reasonable start.
5267 for i in 1 2 3 4 5 6 7 8 ; do
5268 teststring=$teststring$teststring
5270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271 # If test is not a shell built-in, we'll probably end up computing a
5272 # maximum length that is only half of the actual maximum length, but
5274 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5275 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5276 test $i != 17 # 1/2 MB should be enough
5279 teststring=$teststring$teststring
5281 # Only check the string length outside the loop.
5282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5284 # Add a significant safety factor because C++ compilers can tack on
5285 # massive amounts of additional arguments before passing them to the
5286 # linker. It appears as though 1/2 is a usable value.
5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5294 if test -n $lt_cv_sys_max_cmd_len ; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5299 $as_echo "none" >&6; }
5301 max_cmd_len=$lt_cv_sys_max_cmd_len
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5314 # Try some XSI features
5317 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5319 && eval 'test $(( 1 + 1 )) -eq 2 \
5320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5323 $as_echo "$xsi_shell" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5331 && lt_shell_append=yes
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5333 $as_echo "$lt_shell_append" >&6; }
5336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5346 # test EBCDIC or ASCII
5347 case `echo X|tr X '\101'` in
5348 A) # ASCII based system
5349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5350 lt_SP2NL='tr \040 \012'
5351 lt_NL2SP='tr \015\012 \040\040'
5353 *) # EBCDIC based system
5354 lt_SP2NL='tr \100 \n'
5355 lt_NL2SP='tr \r\n \100\100'
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 lt_cv_ld_reload_flag='-r'
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5379 *) reload_flag=" $reload_flag" ;;
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384 if test "$GCC" = yes; then
5385 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$OBJDUMP"; then
5409 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 OBJDUMP=$ac_cv_prog_OBJDUMP
5429 if test -n "$OBJDUMP"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5431 $as_echo "$OBJDUMP" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5439 if test -z "$ac_cv_prog_OBJDUMP"; then
5440 ac_ct_OBJDUMP=$OBJDUMP
5441 # Extract the first word of "objdump", so it can be a program name with args.
5442 set dummy objdump; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 if test -n "$ac_ct_OBJDUMP"; then
5449 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5469 if test -n "$ac_ct_OBJDUMP"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5471 $as_echo "$ac_ct_OBJDUMP" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5477 if test "x$ac_ct_OBJDUMP" = x; then
5480 case $cross_compiling:$ac_tool_warned in
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5486 OBJDUMP=$ac_ct_OBJDUMP
5489 OBJDUMP="$ac_cv_prog_OBJDUMP"
5492 test -z "$OBJDUMP" && OBJDUMP=objdump
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5500 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5501 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 lt_cv_file_magic_cmd='$MAGIC_CMD'
5505 lt_cv_file_magic_test_file=
5506 lt_cv_deplibs_check_method='unknown'
5507 # Need to set the preceding variable on all platforms that support
5508 # interlibrary dependencies.
5509 # 'none' -- dependencies not supported.
5510 # `unknown' -- same as none, but documents that we really don't know.
5511 # 'pass_all' -- all dependencies passed with no checks.
5512 # 'test_compile' -- check by making test program.
5513 # 'file_magic [[regex]]' -- check by looking for files in library path
5514 # which responds to the $file_magic_cmd with a given extended regex.
5515 # If you have `file' or equivalent on your system and you're not sure
5516 # whether `pass_all' will *always* work, you probably want this one.
5520 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5529 lt_cv_file_magic_cmd='/usr/bin/file -L'
5530 lt_cv_file_magic_test_file=/shlib/libc.so
5534 # func_win32_libid is a shell function defined in ltmain.sh
5535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536 lt_cv_file_magic_cmd='func_win32_libid'
5540 # Base MSYS/MinGW do not provide the 'file' command needed by
5541 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5542 # unless we find 'file', for example because we are cross-compiling.
5543 if ( file / ) >/dev/null 2>&1; then
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5548 lt_cv_file_magic_cmd='$OBJDUMP -f'
5553 # use the weaker test based on 'objdump'. See mingw*.
5554 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 darwin* | rhapsody*)
5559 lt_cv_deplibs_check_method=pass_all
5562 freebsd* | dragonfly*)
5563 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566 # Not sure whether the presence of OpenBSD here was a mistake.
5567 # Let's accept both of them until this is cleared up.
5568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569 lt_cv_file_magic_cmd=/usr/bin/file
5570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5582 hpux10.20* | hpux11*)
5583 lt_cv_file_magic_cmd=/usr/bin/file
5586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5605 irix5* | irix6* | nonstopux*)
5607 *-32|*"-32 ") libmagic=32-bit;;
5608 *-n32|*"-n32 ") libmagic=N32;;
5609 *-64|*"-64 ") libmagic=64-bit;;
5610 *) libmagic=never-match;;
5612 lt_cv_deplibs_check_method=pass_all
5615 # This must be Linux ELF.
5616 linux* | k*bsd*-gnu)
5617 lt_cv_deplibs_check_method=pass_all
5621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5630 lt_cv_file_magic_cmd=/usr/bin/file
5631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5635 lt_cv_deplibs_check_method=pass_all
5639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646 osf3* | osf4* | osf5*)
5647 lt_cv_deplibs_check_method=pass_all
5651 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_deplibs_check_method=pass_all
5658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5659 lt_cv_deplibs_check_method=pass_all
5663 case $host_vendor in
5665 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]'
5666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5669 lt_cv_deplibs_check_method=pass_all
5672 lt_cv_file_magic_cmd='/bin/file'
5673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5676 lt_cv_file_magic_cmd='/bin/file'
5677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5678 lt_cv_file_magic_test_file=/lib/libc.so
5681 lt_cv_deplibs_check_method=pass_all
5684 lt_cv_deplibs_check_method=pass_all
5690 lt_cv_deplibs_check_method=pass_all
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}ar; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_AR+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 if test -n "$AR"; then
5721 ac_cv_prog_AR="$AR" # Let the user override the test.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_prog_AR="${ac_tool_prefix}ar"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 if test -n "$AR"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5743 $as_echo "$AR" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5751 if test -z "$ac_cv_prog_AR"; then
5753 # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5783 $as_echo "$ac_ct_AR" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5789 if test "x$ac_ct_AR" = x; then
5792 case $cross_compiling:$ac_tool_warned in
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5804 test -z "$AR" && AR=ar
5805 test -z "$AR_FLAGS" && AR_FLAGS=cru
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_prog_STRIP+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$STRIP"; then
5826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 STRIP=$ac_cv_prog_STRIP
5846 if test -n "$STRIP"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848 $as_echo "$STRIP" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5856 if test -z "$ac_cv_prog_STRIP"; then
5858 # Extract the first word of "strip", so it can be a program name with args.
5859 set dummy strip; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -n "$ac_ct_STRIP"; then
5866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_STRIP="strip"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886 if test -n "$ac_ct_STRIP"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888 $as_echo "$ac_ct_STRIP" >&6; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5894 if test "x$ac_ct_STRIP" = x; then
5897 case $cross_compiling:$ac_tool_warned in
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5906 STRIP="$ac_cv_prog_STRIP"
5909 test -z "$STRIP" && STRIP=:
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 if test -n "$RANLIB"; then
5925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947 $as_echo "$RANLIB" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5955 if test -z "$ac_cv_prog_RANLIB"; then
5956 ac_ct_RANLIB=$RANLIB
5957 # Extract the first word of "ranlib", so it can be a program name with args.
5958 set dummy ranlib; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if test -n "$ac_ct_RANLIB"; then
5965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_ac_ct_RANLIB="ranlib"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985 if test -n "$ac_ct_RANLIB"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987 $as_echo "$ac_ct_RANLIB" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5993 if test "x$ac_ct_RANLIB" = x; then
5996 case $cross_compiling:$ac_tool_warned in
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6002 RANLIB=$ac_ct_RANLIB
6005 RANLIB="$ac_cv_prog_RANLIB"
6008 test -z "$RANLIB" && RANLIB=:
6015 # Determine commands to create old-style static archives.
6016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017 old_postinstall_cmds='chmod 644 $oldlib'
6018 old_postuninstall_cmds=
6020 if test -n "$RANLIB"; then
6023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6065 # If no C compiler was specified, use CC.
6068 # If no C compiler flags were specified, use CFLAGS.
6069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6071 # Allow CC to be a program name with arguments.
6075 # Check for command to grab the raw symbol name followed by C symbol from nm.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6082 # These are sane defaults that work on at least a few old systems.
6083 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6085 # Character class describing NM global symbol codes.
6086 symcode='[BCDEGRST]'
6088 # Regexp to match symbols that can be accessed directly from C.
6089 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6091 # Define system-specific variables.
6096 cygwin* | mingw* | pw32* | cegcc*)
6097 symcode='[ABCDGISTW]'
6100 if test "$host_cpu" = ia64; then
6101 symcode='[ABCDEGRST]'
6105 symcode='[BCDEGRST]'
6108 symcode='[BCDEGQRST]'
6119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6127 # If we're using GNU nm, then use its standard symbol codes.
6128 case `$NM -V 2>&1` in
6129 *GNU* | *'with BFD'*)
6130 symcode='[ABCDGIRSTW]' ;;
6133 # Transform an extracted symbol line into a proper C declaration.
6134 # Some systems (esp. on ia64) link data and code symbols differently,
6135 # so use this general approach.
6136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6138 # Transform an extracted symbol line into symbol name and symbol address
6139 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6140 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'"
6142 # Handle CRLF in mingw tool chain
6146 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6150 # Try without a prefix underscore, then with it.
6151 for ac_symprfx in "" "_"; do
6153 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154 symxfrm="\\1 $ac_symprfx\\2 \\2"
6156 # Write the raw and C identifiers.
6157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158 # Fake it for dumpbin and say T for any non-static function
6159 # and D for any global variable.
6160 # Also find C++ and __fastcall symbols from MSVC++,
6161 # which start with @ or ?.
6162 lt_cv_sys_global_symbol_pipe="$AWK '"\
6163 " {last_section=section; section=\$ 3};"\
6164 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165 " \$ 0!~/External *\|/{next};"\
6166 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6167 " {if(hide[section]) next};"\
6168 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6169 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6170 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6171 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6172 " ' prfx=^$ac_symprfx"
6174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6177 # Check to see that the pipe works correctly.
6181 cat > conftest.$ac_ext <<_LT_EOF
6186 void nm_test_func(void);
6187 void nm_test_func(void){}
6191 int main(){nm_test_var='a';nm_test_func();return(0);}
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 # Now try to grab the symbols.
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6202 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; } && test -s "$nlist"; then
6206 # Try sorting and uniquifying the output.
6207 if sort "$nlist" | uniq > "$nlist"T; then
6208 mv -f "$nlist"T "$nlist"
6213 # Make sure that we snagged all the symbols we need.
6214 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6215 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6216 cat <<_LT_EOF > conftest.$ac_ext
6222 # Now generate the symbol file.
6223 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6225 cat <<_LT_EOF >> conftest.$ac_ext
6227 /* The mapping between symbol names and symbols. */
6232 lt__PROGRAM__LTX_preloaded_symbols[] =
6234 { "@PROGRAM@", (void *) 0 },
6236 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6237 cat <<\_LT_EOF >> conftest.$ac_ext
6241 /* This works around a problem in FreeBSD linker */
6242 #ifdef FREEBSD_WORKAROUND
6243 static const void *lt_preloaded_setup() {
6244 return lt__PROGRAM__LTX_preloaded_symbols;
6252 # Now try linking the two files.
6253 mv conftest.$ac_objext conftstm.$ac_objext
6254 lt_save_LIBS="$LIBS"
6255 lt_save_CFLAGS="$CFLAGS"
6256 LIBS="conftstm.$ac_objext"
6257 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6259 (eval $ac_link) 2>&5
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6265 LIBS="$lt_save_LIBS"
6266 CFLAGS="$lt_save_CFLAGS"
6268 echo "cannot find nm_test_func in $nlist" >&5
6271 echo "cannot find nm_test_var in $nlist" >&5
6274 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6277 echo "$progname: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 rm -rf conftest* conftst*
6282 # Do not use the global_symbol_pipe unless it works.
6283 if test "$pipe_works" = yes; then
6286 lt_cv_sys_global_symbol_pipe=
6292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6293 lt_cv_sys_global_symbol_to_cdecl=
6295 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6297 $as_echo "failed" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6300 $as_echo "ok" >&6; }
6325 # Check whether --enable-libtool-lock was given.
6326 if test "${enable_libtool_lock+set}" = set; then :
6327 enableval=$enable_libtool_lock;
6330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6332 # Some flags need to be propagated to the compiler or linker for good
6336 # Find out which ABI we are using.
6337 echo 'int i;' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6355 # Find out which ABI we are using.
6356 echo '#line 6356 "configure"' > conftest.$ac_ext
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358 (eval $ac_compile) 2>&5
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 if test "$lt_cv_prog_gnu_ld" = yes; then
6363 case `/usr/bin/file conftest.$ac_objext` in
6365 LD="${LD-ld} -melf32bsmip"
6368 LD="${LD-ld} -melf32bmipn32"
6371 LD="${LD-ld} -melf64bmip"
6375 case `/usr/bin/file conftest.$ac_objext` in
6391 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6392 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6393 # Find out which ABI we are using.
6394 echo 'int i;' > conftest.$ac_ext
6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396 (eval $ac_compile) 2>&5
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; }; then
6400 case `/usr/bin/file conftest.o` in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_i386_fbsd"
6407 LD="${LD-ld} -m elf_i386"
6409 ppc64-*linux*|powerpc64-*linux*)
6410 LD="${LD-ld} -m elf32ppclinux"
6413 LD="${LD-ld} -m elf_s390"
6416 LD="${LD-ld} -m elf32_sparc"
6422 x86_64-*kfreebsd*-gnu)
6423 LD="${LD-ld} -m elf_x86_64_fbsd"
6426 LD="${LD-ld} -m elf_x86_64"
6428 ppc*-*linux*|powerpc*-*linux*)
6429 LD="${LD-ld} -m elf64ppc"
6431 s390*-*linux*|s390*-*tpf*)
6432 LD="${LD-ld} -m elf64_s390"
6435 LD="${LD-ld} -m elf64_sparc"
6445 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6446 SAVE_CFLAGS="$CFLAGS"
6447 CFLAGS="$CFLAGS -belf"
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6449 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6450 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6454 ac_cpp='$CPP $CPPFLAGS'
6455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6470 if ac_fn_c_try_link "$LINENO"; then :
6471 lt_cv_cc_needs_belf=yes
6473 lt_cv_cc_needs_belf=no
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6485 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6486 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6487 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6488 CFLAGS="$SAVE_CFLAGS"
6492 # Find out which ABI we are using.
6493 echo 'int i;' > conftest.$ac_ext
6494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6495 (eval $ac_compile) 2>&5
6497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498 test $ac_status = 0; }; then
6499 case `/usr/bin/file conftest.o` in
6501 case $lt_cv_prog_gnu_ld in
6502 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6504 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6516 need_locks="$enable_libtool_lock"
6520 rhapsody* | darwin*)
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -n "$DSYMUTIL"; then
6530 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6550 if test -n "$DSYMUTIL"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6552 $as_echo "$DSYMUTIL" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6560 if test -z "$ac_cv_prog_DSYMUTIL"; then
6561 ac_ct_DSYMUTIL=$DSYMUTIL
6562 # Extract the first word of "dsymutil", so it can be a program name with args.
6563 set dummy dsymutil; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 if test -n "$ac_ct_DSYMUTIL"; then
6570 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6590 if test -n "$ac_ct_DSYMUTIL"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6592 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6598 if test "x$ac_ct_DSYMUTIL" = x; then
6601 case $cross_compiling:$ac_tool_warned in
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6607 DSYMUTIL=$ac_ct_DSYMUTIL
6610 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$NMEDIT"; then
6622 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 NMEDIT=$ac_cv_prog_NMEDIT
6642 if test -n "$NMEDIT"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6644 $as_echo "$NMEDIT" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6652 if test -z "$ac_cv_prog_NMEDIT"; then
6653 ac_ct_NMEDIT=$NMEDIT
6654 # Extract the first word of "nmedit", so it can be a program name with args.
6655 set dummy nmedit; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$ac_ct_NMEDIT"; then
6662 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6682 if test -n "$ac_ct_NMEDIT"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6684 $as_echo "$ac_ct_NMEDIT" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6690 if test "x$ac_ct_NMEDIT" = x; then
6693 case $cross_compiling:$ac_tool_warned in
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6699 NMEDIT=$ac_ct_NMEDIT
6702 NMEDIT="$ac_cv_prog_NMEDIT"
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_LIPO+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$LIPO"; then
6714 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 LIPO=$ac_cv_prog_LIPO
6734 if test -n "$LIPO"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6736 $as_echo "$LIPO" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6744 if test -z "$ac_cv_prog_LIPO"; then
6746 # Extract the first word of "lipo", so it can be a program name with args.
6747 set dummy lipo; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$ac_ct_LIPO"; then
6754 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_ac_ct_LIPO="lipo"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6774 if test -n "$ac_ct_LIPO"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6776 $as_echo "$ac_ct_LIPO" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6782 if test "x$ac_ct_LIPO" = x; then
6785 case $cross_compiling:$ac_tool_warned in
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6794 LIPO="$ac_cv_prog_LIPO"
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}otool; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$OTOOL"; then
6806 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 OTOOL=$ac_cv_prog_OTOOL
6826 if test -n "$OTOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6828 $as_echo "$OTOOL" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6836 if test -z "$ac_cv_prog_OTOOL"; then
6838 # Extract the first word of "otool", so it can be a program name with args.
6839 set dummy otool; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$ac_ct_OTOOL"; then
6846 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_ac_ct_OTOOL="otool"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6866 if test -n "$ac_ct_OTOOL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6868 $as_echo "$ac_ct_OTOOL" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6874 if test "x$ac_ct_OTOOL" = x; then
6877 case $cross_compiling:$ac_tool_warned in
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6886 OTOOL="$ac_cv_prog_OTOOL"
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$OTOOL64"; then
6898 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 OTOOL64=$ac_cv_prog_OTOOL64
6918 if test -n "$OTOOL64"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6920 $as_echo "$OTOOL64" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6928 if test -z "$ac_cv_prog_OTOOL64"; then
6929 ac_ct_OTOOL64=$OTOOL64
6930 # Extract the first word of "otool64", so it can be a program name with args.
6931 set dummy otool64; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6937 if test -n "$ac_ct_OTOOL64"; then
6938 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_OTOOL64="otool64"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6958 if test -n "$ac_ct_OTOOL64"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6960 $as_echo "$ac_ct_OTOOL64" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$ac_ct_OTOOL64" = x; then
6969 case $cross_compiling:$ac_tool_warned in
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6975 OTOOL64=$ac_ct_OTOOL64
6978 OTOOL64="$ac_cv_prog_OTOOL64"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7008 $as_echo_n "checking for -single_module linker flag... " >&6; }
7009 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7012 lt_cv_apple_cc_single_mod=no
7013 if test -z "${LT_MULTI_MODULE}"; then
7014 # By default we will add the -single_module flag. You can override
7015 # by either setting the environment variable LT_MULTI_MODULE
7016 # non-empty at configure time, or by adding -multi_module to the
7018 rm -rf libconftest.dylib*
7019 echo "int foo(void){return 1;}" > conftest.c
7020 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7021 -dynamiclib -Wl,-single_module conftest.c" >&5
7022 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7023 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7025 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7026 lt_cv_apple_cc_single_mod=yes
7028 cat conftest.err >&5
7030 rm -rf libconftest.dylib*
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7035 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7037 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7038 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7041 lt_cv_ld_exported_symbols_list=no
7042 save_LDFLAGS=$LDFLAGS
7043 echo "_main" > conftest.sym
7044 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 lt_cv_ld_exported_symbols_list=yes
7059 lt_cv_ld_exported_symbols_list=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LDFLAGS="$save_LDFLAGS"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7067 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7069 rhapsody* | darwin1.[012])
7070 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7073 darwin*) # darwin 5.x on
7074 # if running on 10.5 or later, the deployment target defaults
7075 # to the OS version, if on x86, and 10.4, the deployment
7076 # target defaults to 10.4. Don't you love it?
7077 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7078 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7087 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7088 _lt_dar_single_mod='$single_module'
7090 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7091 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7093 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7095 if test "$DSYMUTIL" != ":"; then
7096 _lt_dsymutil='~$DSYMUTIL $lib || :'
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7105 $as_echo_n "checking for ANSI C header files... " >&6; }
7106 if test "${ac_cv_header_stdc+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 ac_cv_header_stdc=yes
7127 ac_cv_header_stdc=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 if test $ac_cv_header_stdc = yes; then
7132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7139 $EGREP "memchr" >/dev/null 2>&1; then :
7142 ac_cv_header_stdc=no
7148 if test $ac_cv_header_stdc = yes; then
7149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "free" >/dev/null 2>&1; then :
7159 ac_cv_header_stdc=no
7165 if test $ac_cv_header_stdc = yes; then
7166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7167 if test "$cross_compiling" = yes; then :
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7174 #if ((' ' & 0x0FF) == 0x020)
7175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7178 # define ISLOWER(c) \
7179 (('a' <= (c) && (c) <= 'i') \
7180 || ('j' <= (c) && (c) <= 'r') \
7181 || ('s' <= (c) && (c) <= 'z'))
7182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7190 for (i = 0; i < 256; i++)
7191 if (XOR (islower (i), ISLOWER (i))
7192 || toupper (i) != TOUPPER (i))
7197 if ac_fn_c_try_run "$LINENO"; then :
7200 ac_cv_header_stdc=no
7202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7203 conftest.$ac_objext conftest.beam conftest.$ac_ext
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7209 $as_echo "$ac_cv_header_stdc" >&6; }
7210 if test $ac_cv_header_stdc = yes; then
7212 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7218 inttypes.h stdint.h unistd.h
7220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7223 eval as_val=\$$as_ac_Header
7224 if test "x$as_val" = x""yes; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 for ac_header in dlfcn.h
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7238 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7257 # Check whether --enable-shared was given.
7258 if test "${enable_shared+set}" = set; then :
7259 enableval=$enable_shared; p=${PACKAGE-default}
7261 yes) enable_shared=yes ;;
7262 no) enable_shared=no ;;
7265 # Look at the argument we got. We use all the common list separators.
7266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7267 for pkg in $enableval; do
7269 if test "X$pkg" = "X$p"; then
7288 # Check whether --enable-static was given.
7289 if test "${enable_static+set}" = set; then :
7290 enableval=$enable_static; p=${PACKAGE-default}
7292 yes) enable_static=yes ;;
7293 no) enable_static=no ;;
7296 # Look at the argument we got. We use all the common list separators.
7297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7298 for pkg in $enableval; do
7300 if test "X$pkg" = "X$p"; then
7320 # Check whether --with-pic was given.
7321 if test "${with_pic+set}" = set; then :
7322 withval=$with_pic; pic_mode="$withval"
7328 test -z "$pic_mode" && pic_mode=default
7336 # Check whether --enable-fast-install was given.
7337 if test "${enable_fast_install+set}" = set; then :
7338 enableval=$enable_fast_install; p=${PACKAGE-default}
7340 yes) enable_fast_install=yes ;;
7341 no) enable_fast_install=no ;;
7343 enable_fast_install=no
7344 # Look at the argument we got. We use all the common list separators.
7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346 for pkg in $enableval; do
7348 if test "X$pkg" = "X$p"; then
7349 enable_fast_install=yes
7356 enable_fast_install=yes
7369 # This can be used to rebuild libtool when needed
7370 LIBTOOL_DEPS="$ltmain"
7372 # Always use our own libtool.
7373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7399 test -z "$LN_S" && LN_S="ln -s"
7414 if test -n "${ZSH_VERSION+set}" ; then
7415 setopt NO_GLOB_SUBST
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7419 $as_echo_n "checking for objdir... " >&6; }
7420 if test "${lt_cv_objdir+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 rm -f .libs 2>/dev/null
7424 mkdir .libs 2>/dev/null
7425 if test -d .libs; then
7428 # MS-DOS does not allow filenames that begin with a dot.
7431 rmdir .libs 2>/dev/null
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7434 $as_echo "$lt_cv_objdir" >&6; }
7435 objdir=$lt_cv_objdir
7441 cat >>confdefs.h <<_ACEOF
7442 #define LT_OBJDIR "$lt_cv_objdir/"
7463 # AIX sometimes has problems with the GCC collect2 program. For some
7464 # reason, if we set the COLLECT_NAMES environment variable, the problems
7465 # vanish in a puff of smoke.
7466 if test "X${COLLECT_NAMES+set}" != Xset; then
7468 export COLLECT_NAMES
7473 # Sed substitution that helps us do robust quoting. It backslashifies
7474 # metacharacters that are still active within double-quoted strings.
7475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7477 # Same as above, but do not quote variable references.
7478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7480 # Sed substitution to delay expansion of an escaped shell variable in a
7481 # double_quote_subst'ed string.
7482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7484 # Sed substitution to delay expansion of an escaped single quote.
7485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7487 # Sed substitution to avoid accidental globbing in evaled expressions
7488 no_glob_subst='s/\*/\\\*/g'
7492 can_build_shared=yes
7494 # All known linkers require a `.a' archive for static linking (except MSVC,
7495 # which needs '.lib').
7498 with_gnu_ld="$lt_cv_prog_gnu_ld"
7501 old_CFLAGS="$CFLAGS"
7503 # Set sane defaults for various variables
7504 test -z "$CC" && CC=cc
7505 test -z "$LTCC" && LTCC=$CC
7506 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7507 test -z "$LD" && LD=ld
7508 test -z "$ac_objext" && ac_objext=o
7510 for cc_temp in $compiler""; do
7512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7521 # Only perform the check for file, if the check method requires it
7522 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7523 case $deplibs_check_method in
7525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7527 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7528 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7536 lt_save_MAGIC_CMD="$MAGIC_CMD"
7537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7539 for ac_dir in $ac_dummy; do
7541 test -z "$ac_dir" && ac_dir=.
7542 if test -f $ac_dir/${ac_tool_prefix}file; then
7543 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7544 if test -n "$file_magic_test_file"; then
7545 case $deplibs_check_method in
7547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7550 $EGREP "$file_magic_regex" > /dev/null; then
7555 *** Warning: the command libtool uses to detect shared libraries,
7556 *** $file_magic_cmd, produces output that libtool cannot recognize.
7557 *** The result is that libtool may fail to recognize shared libraries
7558 *** as such. This will affect the creation of libtool libraries that
7559 *** depend on shared libraries, but programs linked with such libtool
7560 *** libraries will work regardless of this problem. Nevertheless, you
7561 *** may want to report the problem to your system manager and/or to
7562 *** bug-libtool@gnu.org
7572 MAGIC_CMD="$lt_save_MAGIC_CMD"
7577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7578 if test -n "$MAGIC_CMD"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7580 $as_echo "$MAGIC_CMD" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7590 if test -z "$lt_cv_path_MAGIC_CMD"; then
7591 if test -n "$ac_tool_prefix"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7593 $as_echo_n "checking for file... " >&6; }
7594 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7599 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7602 lt_save_MAGIC_CMD="$MAGIC_CMD"
7603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7604 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7605 for ac_dir in $ac_dummy; do
7607 test -z "$ac_dir" && ac_dir=.
7608 if test -f $ac_dir/file; then
7609 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7610 if test -n "$file_magic_test_file"; then
7611 case $deplibs_check_method in
7613 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7615 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7616 $EGREP "$file_magic_regex" > /dev/null; then
7621 *** Warning: the command libtool uses to detect shared libraries,
7622 *** $file_magic_cmd, produces output that libtool cannot recognize.
7623 *** The result is that libtool may fail to recognize shared libraries
7624 *** as such. This will affect the creation of libtool libraries that
7625 *** depend on shared libraries, but programs linked with such libtool
7626 *** libraries will work regardless of this problem. Nevertheless, you
7627 *** may want to report the problem to your system manager and/or to
7628 *** bug-libtool@gnu.org
7638 MAGIC_CMD="$lt_save_MAGIC_CMD"
7643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7644 if test -n "$MAGIC_CMD"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7646 $as_echo "$MAGIC_CMD" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7662 # Use C for the default configuration in the libtool script
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 # Source file extension for C test sources.
7675 # Object file extension for compiled C test sources.
7679 # Code to be used in simple compile tests
7680 lt_simple_compile_test_code="int some_variable = 0;"
7682 # Code to be used in simple link tests
7683 lt_simple_link_test_code='int main(){return(0);}'
7691 # If no C compiler was specified, use CC.
7694 # If no C compiler flags were specified, use CFLAGS.
7695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7697 # Allow CC to be a program name with arguments.
7700 # Save the default compiler, since it gets overwritten when the other
7701 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7702 compiler_DEFAULT=$CC
7704 # save warnings/boilerplate of simple test code
7705 ac_outfile=conftest.$ac_objext
7706 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7708 _lt_compiler_boilerplate=`cat conftest.err`
7711 ac_outfile=conftest.$ac_objext
7712 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7714 _lt_linker_boilerplate=`cat conftest.err`
7718 if test -n "$compiler"; then
7720 lt_prog_compiler_no_builtin_flag=
7722 if test "$GCC" = yes; then
7723 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7726 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7727 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7730 lt_cv_prog_compiler_rtti_exceptions=no
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733 lt_compiler_flag="-fno-rtti -fno-exceptions"
7734 # Insert the option either (1) after the last *FLAGS variable, or
7735 # (2) before a word containing "conftest.", or (3) at the end.
7736 # Note that $ac_compile itself does not contain backslashes and begins
7737 # with a dollar sign (not a hyphen), so the echo should work correctly.
7738 # The option is referenced via a variable to avoid confusing sed.
7739 lt_compile=`echo "$ac_compile" | $SED \
7740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742 -e 's:$: $lt_compiler_flag:'`
7743 (eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
7744 (eval "$lt_compile" 2>conftest.err)
7746 cat conftest.err >&5
7747 echo "$as_me:7747: \$? = $ac_status" >&5
7748 if (exit $ac_status) && test -s "$ac_outfile"; then
7749 # The compiler can only warn and ignore the option if not recognized
7750 # So say no if there are warnings other than the usual output.
7751 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7754 lt_cv_prog_compiler_rtti_exceptions=yes
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7761 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7763 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7764 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7776 lt_prog_compiler_wl=
7777 lt_prog_compiler_pic=
7778 lt_prog_compiler_static=
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7781 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7783 if test "$GCC" = yes; then
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_static='-static'
7789 # All AIX code is PIC.
7790 if test "$host_cpu" = ia64; then
7791 # AIX 5 now supports IA64 processor
7792 lt_prog_compiler_static='-Bstatic'
7799 # see comment about AmigaOS4 .so support
7800 lt_prog_compiler_pic='-fPIC'
7803 # FIXME: we need at least 68020 code to build shared libraries, but
7804 # adding the `-m68020' flag to GCC prevents building anything better,
7806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7812 # PIC is the default for these OSes.
7815 mingw* | cygwin* | pw32* | os2* | cegcc*)
7816 # This hack is so that the source file can tell whether it is being
7817 # built for inclusion in a dll (and should export symbols for example).
7818 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7819 # (--disable-auto-import) libraries
7820 lt_prog_compiler_pic='-DDLL_EXPORT'
7823 darwin* | rhapsody*)
7824 # PIC is the default on this platform
7825 # Common symbols not allowed in MH_DYLIB files
7826 lt_prog_compiler_pic='-fno-common'
7830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7832 # sets the default TLS model and affects inlining.
7838 lt_prog_compiler_pic='-fPIC'
7844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7845 # Instead, we relocate shared libraries at runtime.
7849 # Just because we use GCC doesn't mean we suddenly get shared libraries
7850 # on systems that don't support them.
7851 lt_prog_compiler_can_build_shared=no
7856 # QNX uses GNU C++, but need to define -shared option too, otherwise
7858 lt_prog_compiler_pic='-fPIC -shared'
7862 if test -d /usr/nec; then
7863 lt_prog_compiler_pic=-Kconform_pic
7868 lt_prog_compiler_pic='-fPIC'
7872 # PORTME Check for flag to pass linker flags through the system compiler.
7875 lt_prog_compiler_wl='-Wl,'
7876 if test "$host_cpu" = ia64; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7884 mingw* | cygwin* | pw32* | os2* | cegcc*)
7885 # This hack is so that the source file can tell whether it is being
7886 # built for inclusion in a dll (and should export symbols for example).
7887 lt_prog_compiler_pic='-DDLL_EXPORT'
7890 hpux9* | hpux10* | hpux11*)
7891 lt_prog_compiler_wl='-Wl,'
7892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7899 lt_prog_compiler_pic='+Z'
7902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7903 lt_prog_compiler_static='${wl}-a ${wl}archive'
7906 irix5* | irix6* | nonstopux*)
7907 lt_prog_compiler_wl='-Wl,'
7908 # PIC (with -KPIC) is the default.
7909 lt_prog_compiler_static='-non_shared'
7912 linux* | k*bsd*-gnu)
7913 case $cc_basename in
7914 # old Intel for x86_64 which still supported -KPIC.
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-KPIC'
7918 lt_prog_compiler_static='-static'
7920 # icc used to be incompatible with GCC.
7921 # ICC 10 doesn't accept -KPIC any more.
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='-fPIC'
7925 lt_prog_compiler_static='-static'
7927 # Lahey Fortran 8.1.
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='--shared'
7931 lt_prog_compiler_static='--static'
7933 pgcc* | pgf77* | pgf90* | pgf95*)
7934 # Portland Group compilers (*not* the Pentium gcc compiler,
7935 # which looks to be a dead project)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-fpic'
7938 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_wl='-Wl,'
7942 # All Alpha code is PIC.
7943 lt_prog_compiler_static='-non_shared'
7946 # IBM XL C 8.0/Fortran 10.1 on PPC
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-qpic'
7949 lt_prog_compiler_static='-qstaticlink'
7952 case `$CC -V 2>&1 | sed 5q` in
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl='-Wl,'
7960 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_wl=''
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7976 # QNX uses GNU C++, but need to define -shared option too, otherwise
7978 lt_prog_compiler_pic='-fPIC -shared'
7981 osf3* | osf4* | osf5*)
7982 lt_prog_compiler_wl='-Wl,'
7983 # All OSF/1 code is PIC.
7984 lt_prog_compiler_static='-non_shared'
7988 lt_prog_compiler_static='-non_shared'
7992 lt_prog_compiler_pic='-KPIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 case $cc_basename in
7996 lt_prog_compiler_wl='-Qoption ld ';;
7998 lt_prog_compiler_wl='-Wl,';;
8003 lt_prog_compiler_wl='-Qoption ld '
8004 lt_prog_compiler_pic='-PIC'
8005 lt_prog_compiler_static='-Bstatic'
8008 sysv4 | sysv4.2uw2* | sysv4.3*)
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8015 if test -d /usr/nec ;then
8016 lt_prog_compiler_pic='-Kconform_pic'
8017 lt_prog_compiler_static='-Bstatic'
8021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_can_build_shared=no
8033 lt_prog_compiler_pic='-pic'
8034 lt_prog_compiler_static='-Bstatic'
8038 lt_prog_compiler_can_build_shared=no
8044 # For platforms which do not support PIC, -DPIC is meaningless:
8046 lt_prog_compiler_pic=
8049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8053 $as_echo "$lt_prog_compiler_pic" >&6; }
8061 # Check to make sure the PIC flag actually works.
8063 if test -n "$lt_prog_compiler_pic"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8065 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8066 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8069 lt_cv_prog_compiler_pic_works=no
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8073 # Insert the option either (1) after the last *FLAGS variable, or
8074 # (2) before a word containing "conftest.", or (3) at the end.
8075 # Note that $ac_compile itself does not contain backslashes and begins
8076 # with a dollar sign (not a hyphen), so the echo should work correctly.
8077 # The option is referenced via a variable to avoid confusing sed.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
8082 (eval echo "\"\$as_me:8082: $lt_compile\"" >&5)
8083 (eval "$lt_compile" 2>conftest.err)
8085 cat conftest.err >&5
8086 echo "$as_me:8086: \$? = $ac_status" >&5
8087 if (exit $ac_status) && test -s "$ac_outfile"; then
8088 # The compiler can only warn and ignore the option if not recognized
8089 # So say no if there are warnings other than the usual output.
8090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8093 lt_cv_prog_compiler_pic_works=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8100 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8102 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8103 case $lt_prog_compiler_pic in
8105 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8108 lt_prog_compiler_pic=
8109 lt_prog_compiler_can_build_shared=no
8120 # Check to make sure the static flag actually works.
8122 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8124 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8125 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8128 lt_cv_prog_compiler_static_works=no
8129 save_LDFLAGS="$LDFLAGS"
8130 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8131 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8133 # The linker can only warn and ignore the option if not recognized
8134 # So say no if there are warnings
8135 if test -s conftest.err; then
8136 # Append any errors to the config.log.
8137 cat conftest.err 1>&5
8138 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140 if diff conftest.exp conftest.er2 >/dev/null; then
8141 lt_cv_prog_compiler_static_works=yes
8144 lt_cv_prog_compiler_static_works=yes
8148 LDFLAGS="$save_LDFLAGS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8152 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8154 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8157 lt_prog_compiler_static=
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8168 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 lt_cv_prog_compiler_c_o=no
8172 $RM -r conftest 2>/dev/null
8176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8178 lt_compiler_flag="-o out/conftest2.$ac_objext"
8179 # Insert the option either (1) after the last *FLAGS variable, or
8180 # (2) before a word containing "conftest.", or (3) at the end.
8181 # Note that $ac_compile itself does not contain backslashes and begins
8182 # with a dollar sign (not a hyphen), so the echo should work correctly.
8183 lt_compile=`echo "$ac_compile" | $SED \
8184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8186 -e 's:$: $lt_compiler_flag:'`
8187 (eval echo "\"\$as_me:8187: $lt_compile\"" >&5)
8188 (eval "$lt_compile" 2>out/conftest.err)
8190 cat out/conftest.err >&5
8191 echo "$as_me:8191: \$? = $ac_status" >&5
8192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8194 # The compiler can only warn and ignore the option if not recognized
8195 # So say no if there are warnings
8196 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8199 lt_cv_prog_compiler_c_o=yes
8204 # SGI C++ compiler will create directory out/ii_files/ for
8205 # template instantiation
8206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8207 $RM out/* && rmdir out
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8214 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 lt_cv_prog_compiler_c_o=no
8227 $RM -r conftest 2>/dev/null
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8233 lt_compiler_flag="-o out/conftest2.$ac_objext"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>out/conftest.err)
8245 cat out/conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_c_o=yes
8259 # SGI C++ compiler will create directory out/ii_files/ for
8260 # template instantiation
8261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262 $RM out/* && rmdir out
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8274 hard_links="nottested"
8275 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8276 # do not overwrite the value of need_locks provided by the user
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8278 $as_echo_n "checking if we can lock with hard links... " >&6; }
8281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8283 ln conftest.a conftest.b 2>&5 || hard_links=no
8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8286 $as_echo "$hard_links" >&6; }
8287 if test "$hard_links" = no; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8289 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8302 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8305 allow_undefined_flag=
8306 always_export_symbols=no
8308 archive_expsym_cmds=
8309 compiler_needs_object=no
8310 enable_shared_with_static_runtimes=no
8311 export_dynamic_flag_spec=
8312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8313 hardcode_automatic=no
8315 hardcode_direct_absolute=no
8316 hardcode_libdir_flag_spec=
8317 hardcode_libdir_flag_spec_ld=
8318 hardcode_libdir_separator=
8320 hardcode_shlibpath_var=unsupported
8322 link_all_deplibs=unknown
8325 old_archive_from_new_cmds=
8326 old_archive_from_expsyms_cmds=
8327 thread_safe_flag_spec=
8328 whole_archive_flag_spec=
8329 # include_expsyms should be a list of space-separated symbols to be *always*
8330 # included in the symbol list
8332 # exclude_expsyms can be an extended regexp of symbols to exclude
8333 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8335 # as well as any symbol that contains `d'.
8336 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8338 # platforms (ab)use it in PIC code, but their linkers get confused if
8339 # the symbol is explicitly referenced. Since portable code cannot
8340 # rely on this symbol name, it's probably fine to never include it in
8341 # preloaded symbol tables.
8342 # Exclude shared library initialization/finalization symbols.
8343 extract_expsyms_cmds=
8346 cygwin* | mingw* | pw32* | cegcc*)
8347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8348 # When not using gcc, we currently assume that we are using
8349 # Microsoft Visual C++.
8350 if test "$GCC" != yes; then
8355 # we just hope/assume this is gcc and not c89 (= MSVC++)
8364 if test "$with_gnu_ld" = yes; then
8365 # If archive_cmds runs LD, not CC, wlarc should be empty
8368 # Set some defaults for GNU ld with shared library support. These
8369 # are reset later if shared libraries are not supported. Putting them
8370 # here allows them to be overridden if necessary.
8371 runpath_var=LD_RUN_PATH
8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373 export_dynamic_flag_spec='${wl}--export-dynamic'
8374 # ancient GNU ld didn't support --whole-archive et. al.
8375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8378 whole_archive_flag_spec=
8380 supports_anon_versioning=no
8381 case `$LD -v 2>&1` in
8382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8385 *\ 2.11.*) ;; # other 2.11 versions
8386 *) supports_anon_versioning=yes ;;
8389 # See if GNU ld supports shared libraries.
8392 # On AIX/PPC, the GNU linker is very broken
8393 if test "$host_cpu" != ia64; then
8397 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8398 *** to be unable to reliably create shared libraries on AIX.
8399 *** Therefore, libtool is disabling shared libraries support. If you
8400 *** really care for shared libraries, you may want to modify your PATH
8401 *** so that a non-GNU linker is found, and then restart.
8410 # see comment about AmigaOS4 .so support
8411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412 archive_expsym_cmds=''
8415 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)'
8416 hardcode_libdir_flag_spec='-L$libdir'
8417 hardcode_minus_L=yes
8423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8424 allow_undefined_flag=unsupported
8425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8426 # support --undefined. This deserves some investigation. FIXME
8427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8433 cygwin* | mingw* | pw32* | cegcc*)
8434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8435 # as there is no search path for DLLs.
8436 hardcode_libdir_flag_spec='-L$libdir'
8437 allow_undefined_flag=unsupported
8438 always_export_symbols=no
8439 enable_shared_with_static_runtimes=yes
8440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8444 # If the export-symbols file already is a .def file (1st line
8445 # is EXPORTS), use it as is; otherwise, prepend...
8446 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8447 cp $export_symbols $output_objdir/$soname.def;
8449 echo EXPORTS > $output_objdir/$soname.def;
8450 cat $export_symbols >> $output_objdir/$soname.def;
8452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8460 hardcode_shlibpath_var=no
8461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8462 export_dynamic_flag_spec='${wl}-E'
8463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8464 # Instead, shared libraries are loaded at an image base (0x10000000 by
8465 # default) and relocated if they conflict, which is a slow very memory
8466 # consuming and fragmenting process. To avoid this, we pick a random,
8467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8470 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'
8473 gnu* | linux* | tpf* | k*bsd*-gnu)
8475 if test "$host_os" = linux-dietlibc; then
8476 case $cc_basename in
8477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8481 && test "$tmp_diet" = no
8484 tmp_sharedflag='-shared'
8485 case $cc_basename,$host_cpu in
8486 pgcc*) # Portland Group C compiler
8487 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8488 tmp_addflag=' $pic_flag'
8490 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8491 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8492 tmp_addflag=' $pic_flag -Mnomain' ;;
8493 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8494 tmp_addflag=' -i_dynamic' ;;
8495 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8496 tmp_addflag=' -i_dynamic -nofor_main' ;;
8497 ifc* | ifort*) # Intel Fortran compiler
8498 tmp_addflag=' -nofor_main' ;;
8499 lf95*) # Lahey Fortran 8.1
8500 whole_archive_flag_spec=
8501 tmp_sharedflag='--shared' ;;
8502 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8503 tmp_sharedflag='-qmkshrobj'
8506 case `$CC -V 2>&1 | sed 5q` in
8507 *Sun\ C*) # Sun C 5.9
8508 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8509 compiler_needs_object=yes
8510 tmp_sharedflag='-G' ;;
8511 *Sun\ F*) # Sun Fortran 8.3
8512 tmp_sharedflag='-G' ;;
8514 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516 if test "x$supports_anon_versioning" = xyes; then
8517 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8519 echo "local: *; };" >> $output_objdir/$libname.ver~
8520 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8523 case $cc_basename in
8525 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8526 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8527 hardcode_libdir_flag_spec=
8528 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8529 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8530 if test "x$supports_anon_versioning" = xyes; then
8531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8533 echo "local: *; };" >> $output_objdir/$libname.ver~
8534 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8545 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8554 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8559 *** create shared libraries on Solaris systems. Therefore, libtool
8560 *** is disabling shared libraries support. We urge you to upgrade GNU
8561 *** binutils to release 2.9.1 or newer. Another option is to modify
8562 *** your PATH or compiler configuration so that the native linker is
8563 *** used, and then restart.
8566 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8575 case `$LD -v 2>&1` in
8576 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8580 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8581 *** reliably create shared libraries on SCO systems. Therefore, libtool
8582 *** is disabling shared libraries support. We urge you to upgrade GNU
8583 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8584 *** your PATH or compiler configuration so that the native linker is
8585 *** used, and then restart.
8590 # For security reasons, it is highly recommended that you always
8591 # use absolute paths for naming shared libraries, and exclude the
8592 # DT_RUNPATH tag from executables and libraries. But doing so
8593 # requires that you compile everything twice, which is a pain.
8594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609 hardcode_shlibpath_var=no
8613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 if test "$ld_shlibs" = no; then
8624 hardcode_libdir_flag_spec=
8625 export_dynamic_flag_spec=
8626 whole_archive_flag_spec=
8629 # PORTME fill in a description of your system's linker (not GNU ld)
8632 allow_undefined_flag=unsupported
8633 always_export_symbols=yes
8634 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'
8635 # Note: this linker hardcodes the directories in LIBPATH if there
8636 # are no directories specified by -L.
8637 hardcode_minus_L=yes
8638 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8639 # Neither direct hardcoding nor static linking is supported with a
8641 hardcode_direct=unsupported
8646 if test "$host_cpu" = ia64; then
8647 # On IA64, the linker does run time linking by default, so we don't
8648 # have to do anything special.
8649 aix_use_runtimelinking=no
8650 exp_sym_flag='-Bexport'
8653 # If we're using GNU nm, then we don't want the "-C" option.
8654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8655 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8656 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8658 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'
8660 aix_use_runtimelinking=no
8662 # Test if we are trying to use run time linking or normal
8663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8664 # need to do runtime linking.
8665 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8666 for ld_flag in $LDFLAGS; do
8667 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8668 aix_use_runtimelinking=yes
8675 exp_sym_flag='-bexport'
8676 no_entry_flag='-bnoentry'
8679 # When large executables or shared objects are built, AIX ld can
8680 # have problems creating the table of contents. If linking a library
8681 # or program results in "error TOC overflow" add -mminimal-toc to
8682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8687 hardcode_direct_absolute=yes
8688 hardcode_libdir_separator=':'
8689 link_all_deplibs=yes
8690 file_list_spec='${wl}-f,'
8692 if test "$GCC" = yes; then
8693 case $host_os in aix4.[012]|aix4.[012].*)
8694 # We only want to do this on AIX 4.2 and lower, the check
8695 # below for broken collect2 doesn't work under 4.3+
8696 collect2name=`${CC} -print-prog-name=collect2`
8697 if test -f "$collect2name" &&
8698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8700 # We have reworked collect2
8703 # We have old collect2
8704 hardcode_direct=unsupported
8705 # It fails to find uninstalled libraries when the uninstalled
8706 # path is not listed in the libpath. Setting hardcode_minus_L
8707 # to unsupported forces relinking
8708 hardcode_minus_L=yes
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_libdir_separator=
8714 shared_flag='-shared'
8715 if test "$aix_use_runtimelinking" = yes; then
8716 shared_flag="$shared_flag "'${wl}-G'
8720 if test "$host_cpu" = ia64; then
8721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722 # chokes on -Wl,-G. The following line is correct:
8725 if test "$aix_use_runtimelinking" = yes; then
8726 shared_flag='${wl}-G'
8728 shared_flag='${wl}-bM:SRE'
8733 export_dynamic_flag_spec='${wl}-bexpall'
8734 # It seems that -bexpall does not export symbols beginning with
8735 # underscore (_), so it is better to generate a list of symbols to export.
8736 always_export_symbols=yes
8737 if test "$aix_use_runtimelinking" = yes; then
8738 # Warning - without using the other runtime loading flags (-brtl),
8739 # -berok will link without error, but may produce a broken library.
8740 allow_undefined_flag='-berok'
8741 # Determine the default libpath from the value encoded in an
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8754 if ac_fn_c_try_link "$LINENO"; then :
8756 lt_aix_libpath_sed='
8757 /Import File Strings/,/^$/ {
8763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8764 # Check for a 64-bit object if we didn't find anything.
8765 if test -z "$aix_libpath"; then
8766 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8769 rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8776 if test "$host_cpu" = ia64; then
8777 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778 allow_undefined_flag="-z nodefs"
8779 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"
8781 # Determine the default libpath from the value encoded in an
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8794 if ac_fn_c_try_link "$LINENO"; then :
8796 lt_aix_libpath_sed='
8797 /Import File Strings/,/^$/ {
8803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8804 # Check for a 64-bit object if we didn't find anything.
8805 if test -z "$aix_libpath"; then
8806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8814 # Warning - without using the other run time loading flags,
8815 # -berok will link without error, but may produce a broken library.
8816 no_undefined_flag=' ${wl}-bernotok'
8817 allow_undefined_flag=' ${wl}-berok'
8818 # Exported symbols can be pulled into shared objects from archives
8819 whole_archive_flag_spec='$convenience'
8820 archive_cmds_need_lc=yes
8821 # This is similar to how AIX traditionally builds its shared libraries.
8822 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'
8830 # see comment about AmigaOS4 .so support
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds=''
8835 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)'
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8843 export_dynamic_flag_spec=-rdynamic
8846 cygwin* | mingw* | pw32* | cegcc*)
8847 # When not using gcc, we currently assume that we are using
8848 # Microsoft Visual C++.
8849 # hardcode_libdir_flag_spec is actually meaningless, as there is
8850 # no search path for DLLs.
8851 hardcode_libdir_flag_spec=' '
8852 allow_undefined_flag=unsupported
8853 # Tell ltmain to make .lib files, not .a files.
8855 # Tell ltmain to make .dll files, not .so files.
8857 # FIXME: Setting linknames here is a bad hack.
8858 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8859 # The linker will automatically build a .lib file if we build a DLL.
8860 old_archive_from_new_cmds='true'
8861 # FIXME: Should let the user specify the lib program.
8862 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8863 fix_srcfile_path='`cygpath -w "$srcfile"`'
8864 enable_shared_with_static_runtimes=yes
8867 darwin* | rhapsody*)
8870 archive_cmds_need_lc=no
8872 hardcode_automatic=yes
8873 hardcode_shlibpath_var=unsupported
8874 whole_archive_flag_spec=''
8875 link_all_deplibs=yes
8876 allow_undefined_flag="$_lt_dar_allow_undefined"
8877 case $cc_basename in
8878 ifort*) _lt_dar_can_shared=yes ;;
8879 *) _lt_dar_can_shared=$GCC ;;
8881 if test "$_lt_dar_can_shared" = "yes"; then
8882 output_verbose_link_cmd=echo
8883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8885 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}"
8886 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}"
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_shlibpath_var=no
8904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8905 # support. Future versions do this automatically, but an explicit c++rt0.o
8906 # does not break anything, and helps significantly (at the cost of a little
8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8910 hardcode_libdir_flag_spec='-R$libdir'
8912 hardcode_shlibpath_var=no
8915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8919 hardcode_minus_L=yes
8920 hardcode_shlibpath_var=no
8923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8924 freebsd* | dragonfly*)
8925 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8926 hardcode_libdir_flag_spec='-R$libdir'
8928 hardcode_shlibpath_var=no
8932 if test "$GCC" = yes; then
8933 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8935 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'
8937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938 hardcode_libdir_separator=:
8941 # hardcode_minus_L: Not really in the search PATH,
8942 # but as the default location of the library.
8943 hardcode_minus_L=yes
8944 export_dynamic_flag_spec='${wl}-E'
8948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8953 if test "$with_gnu_ld" = no; then
8954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8955 hardcode_libdir_flag_spec_ld='+b $libdir'
8956 hardcode_libdir_separator=:
8958 hardcode_direct_absolute=yes
8959 export_dynamic_flag_spec='${wl}-E'
8960 # hardcode_minus_L: Not really in the search PATH,
8961 # but as the default location of the library.
8962 hardcode_minus_L=yes
8967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8970 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992 if test "$with_gnu_ld" = no; then
8993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8994 hardcode_libdir_separator=:
8999 hardcode_shlibpath_var=no
9003 hardcode_direct_absolute=yes
9004 export_dynamic_flag_spec='${wl}-E'
9006 # hardcode_minus_L: Not really in the search PATH,
9007 # but as the default location of the library.
9008 hardcode_minus_L=yes
9014 irix5* | irix6* | nonstopux*)
9015 if test "$GCC" = yes; then
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9017 # Try to use the -exported_symbol ld option, if it does not
9018 # work, assume that -exports_file does not work either and
9019 # implicitly export all symbols.
9020 save_LDFLAGS="$LDFLAGS"
9021 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LDFLAGS="$save_LDFLAGS"
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9037 archive_cmds_need_lc='no'
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 hardcode_libdir_separator=:
9041 link_all_deplibs=yes
9045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9050 hardcode_libdir_flag_spec='-R$libdir'
9052 hardcode_shlibpath_var=no
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 hardcode_libdir_separator=:
9060 hardcode_shlibpath_var=no
9067 if test -f /usr/libexec/ld.so; then
9069 hardcode_shlibpath_var=no
9070 hardcode_direct_absolute=yes
9071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9075 export_dynamic_flag_spec='${wl}-E'
9078 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-R$libdir'
9083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_minus_L=yes
9096 allow_undefined_flag=unsupported
9097 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'
9098 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9102 if test "$GCC" = yes; then
9103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9104 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9106 allow_undefined_flag=' -expect_unresolved \*'
9107 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9109 archive_cmds_need_lc='no'
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 hardcode_libdir_separator=:
9114 osf4* | osf5*) # as osf3* with the addition of -msym flag
9115 if test "$GCC" = yes; then
9116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 allow_undefined_flag=' -expect_unresolved \*'
9121 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9122 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~
9123 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9125 # Both c and cxx compiler support -rpath directly
9126 hardcode_libdir_flag_spec='-rpath $libdir'
9128 archive_cmds_need_lc='no'
9129 hardcode_libdir_separator=:
9133 no_undefined_flag=' -z defs'
9134 if test "$GCC" = yes; then
9136 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9138 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9140 case `$CC -V 2>&1` in
9143 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9149 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9155 hardcode_libdir_flag_spec='-R$libdir'
9156 hardcode_shlibpath_var=no
9158 solaris2.[0-5] | solaris2.[0-5].*) ;;
9160 # The compiler driver will combine and reorder linker options,
9161 # but understands `-z linker_flag'. GCC discards it without `$wl',
9162 # but is careful enough not to reorder.
9163 # Supported since Solaris 2.6 (maybe 2.5.1?)
9164 if test "$GCC" = yes; then
9165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9171 link_all_deplibs=yes
9175 if test "x$host_vendor" = xsequent; then
9176 # Use $CC to link under sequent, because it throws in some extra .o
9177 # files that make .init and .fini sections work.
9178 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9182 hardcode_libdir_flag_spec='-L$libdir'
9184 hardcode_minus_L=yes
9185 hardcode_shlibpath_var=no
9189 case $host_vendor in
9191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_direct=yes # is this really true???
9195 ## LD is ld it makes a PLAMLIB
9196 ## CC just makes a GrossModule.
9197 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9198 reload_cmds='$CC -r -o $output$reload_objs'
9202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9206 runpath_var='LD_RUN_PATH'
9207 hardcode_shlibpath_var=no
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_shlibpath_var=no
9213 export_dynamic_flag_spec='-Bexport'
9217 if test -d /usr/nec; then
9218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_shlibpath_var=no
9220 runpath_var=LD_RUN_PATH
9221 hardcode_runpath_var=yes
9226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9227 no_undefined_flag='${wl}-z,text'
9228 archive_cmds_need_lc=no
9229 hardcode_shlibpath_var=no
9230 runpath_var='LD_RUN_PATH'
9232 if test "$GCC" = yes; then
9233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 sysv5* | sco3.2v5* | sco5v6*)
9242 # Note: We can NOT use -z defs as we might desire, because we do not
9243 # link with -lc, and that would cause any symbols used from libc to
9244 # always be unresolved, which means just about no library would
9245 # ever link correctly. If we're not using GNU ld we use -z text
9246 # though, which does catch some bad symbols but isn't as heavy-handed
9248 no_undefined_flag='${wl}-z,text'
9249 allow_undefined_flag='${wl}-z,nodefs'
9250 archive_cmds_need_lc=no
9251 hardcode_shlibpath_var=no
9252 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9253 hardcode_libdir_separator=':'
9254 link_all_deplibs=yes
9255 export_dynamic_flag_spec='${wl}-Bexport'
9256 runpath_var='LD_RUN_PATH'
9258 if test "$GCC" = yes; then
9259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_shlibpath_var=no
9278 if test x$host_vendor = xsni; then
9280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9281 export_dynamic_flag_spec='${wl}-Blargedynsym'
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9288 $as_echo "$ld_shlibs" >&6; }
9289 test "$ld_shlibs" = no && can_build_shared=no
9291 with_gnu_ld=$with_gnu_ld
9308 # Do we need to explicitly link libc?
9310 case "x$archive_cmds_need_lc" in
9312 # Assume -lc should be added
9313 archive_cmds_need_lc=yes
9315 if test "$enable_shared" = yes && test "$GCC" = yes; then
9316 case $archive_cmds in
9318 # FIXME: we may have to deal with multi-command sequences.
9321 # Test whether the compiler implicitly links with -lc since on some
9322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9323 # to ld, don't add -lc before -lgcc.
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9330 (eval $ac_compile) 2>&5
9332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333 test $ac_status = 0; } 2>conftest.err; then
9336 libobjs=conftest.$ac_objext
9338 wl=$lt_prog_compiler_wl
9339 pic_flag=$lt_prog_compiler_pic
9345 lt_save_allow_undefined_flag=$allow_undefined_flag
9346 allow_undefined_flag=
9347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9348 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351 test $ac_status = 0; }
9353 archive_cmds_need_lc=no
9355 archive_cmds_need_lc=yes
9357 allow_undefined_flag=$lt_save_allow_undefined_flag
9359 cat conftest.err 1>&5
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9363 $as_echo "$archive_cmds_need_lc" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9527 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9529 if test "$GCC" = yes; then
9531 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9532 *) lt_awk_arg="/^libraries:/" ;;
9534 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9535 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9536 # if the path contains ";" then we assume it to be the separator
9537 # otherwise default to the standard path separator (i.e. ":") - it is
9538 # assumed that no part of a normal pathname contains ";" but that should
9539 # okay in the real world where ";" in dirpaths is itself problematic.
9540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9542 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9544 # Ok, now we have the path, separated by spaces, we can step through it
9545 # and add multilib dir if necessary.
9546 lt_tmp_lt_search_path_spec=
9547 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9548 for lt_sys_path in $lt_search_path_spec; do
9549 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9552 test -d "$lt_sys_path" && \
9553 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9556 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9557 BEGIN {RS=" "; FS="/|\n";} {
9560 for (lt_i = NF; lt_i > 0; lt_i--) {
9561 if ($lt_i != "" && $lt_i != ".") {
9562 if ($lt_i == "..") {
9565 if (lt_count == 0) {
9566 lt_foo="/" $lt_i lt_foo;
9573 if (lt_foo != "") { lt_freq[lt_foo]++; }
9574 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9576 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9581 libname_spec='lib$name'
9589 shlibpath_overrides_runpath=unknown
9591 dynamic_linker="$host_os ld.so"
9592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9593 need_lib_prefix=unknown
9594 hardcode_into_libs=no
9596 # when you set need_version to no, make sure it does not cause -set_version
9597 # flags to be left without arguments
9598 need_version=unknown
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9604 shlibpath_var=LIBPATH
9606 # AIX 3 has no versioning support, so we append a major version to the name.
9607 soname_spec='${libname}${release}${shared_ext}$major'
9614 hardcode_into_libs=yes
9615 if test "$host_cpu" = ia64; then
9616 # AIX 5 supports IA64
9617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9618 shlibpath_var=LD_LIBRARY_PATH
9620 # With GCC up to 2.95.x, collect2 would create an import file
9621 # for dependence libraries. The import file would start with
9622 # the line `#! .'. This would cause the generated library to
9623 # depend on `.', always an invalid library. This was fixed in
9624 # development snapshots of GCC prior to 3.0.
9626 aix4 | aix4.[01] | aix4.[01].*)
9627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9629 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9637 # soname into executable. Probably we can add versioning support to
9638 # collect2, so additional links can be useful in future.
9639 if test "$aix_use_runtimelinking" = yes; then
9640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9641 # instead of lib<name>.a to let people know that these are not
9642 # typical AIX shared libraries.
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 # We preserve .a as extension for shared libraries through AIX4.2
9646 # and later when we are not doing run time linking.
9647 library_names_spec='${libname}${release}.a $libname.a'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LIBPATH
9657 # Since July 2007 AmigaOS4 officially supports .so libraries.
9658 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 library_names_spec='$libname.ixlibrary $libname.a'
9663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9664 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9670 library_names_spec='${libname}${shared_ext}'
9671 dynamic_linker="$host_os ld.so"
9672 shlibpath_var=LIBRARY_PATH
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9684 # the default ld.so.conf also contains /usr/contrib/lib and
9685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9686 # libtool to hard-code these into programs
9689 cygwin* | mingw* | pw32* | cegcc*)
9690 version_type=windows
9695 case $GCC,$host_os in
9696 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9697 library_names_spec='$libname.dll.a'
9698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9699 postinstall_cmds='base_file=`basename \${file}`~
9700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9701 dldir=$destdir/`dirname \$dlpath`~
9702 test -d \$dldir || mkdir -p \$dldir~
9703 $install_prog $dir/$dlname \$dldir/$dlname~
9704 chmod a+x \$dldir/$dlname~
9705 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9706 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9709 dlpath=$dir/\$dldll~
9711 shlibpath_overrides_runpath=yes
9715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9720 # MinGW DLLs use traditional 'lib' prefix
9721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9724 # It is most probably a Windows format PATH printed by
9725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9726 # path with ; separators, and with drive letters. We can handle the
9727 # drive letters (cygwin fileutils understands them), so leave them,
9728 # especially as we might pass files found there to a mingw objdump,
9729 # which wouldn't understand a cygwinified path. Ahh.
9730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9736 # pw32 DLLs use 'pw' prefix rather than 'lib'
9737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9746 dynamic_linker='Win32 ld.exe'
9747 # FIXME: first we should search . and the directory the executable is in
9751 darwin* | rhapsody*)
9752 dynamic_linker="$host_os dyld"
9756 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9757 soname_spec='${libname}${release}${major}$shared_ext'
9758 shlibpath_overrides_runpath=yes
9759 shlibpath_var=DYLD_LIBRARY_PATH
9760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9779 freebsd* | dragonfly*)
9780 # DragonFly does not have aout. When/if they implement a new
9781 # versioning mechanism, adjust this.
9782 if test -x /usr/bin/objformat; then
9783 objformat=`/usr/bin/objformat`
9786 freebsd[123]*) objformat=aout ;;
9790 version_type=freebsd-$objformat
9791 case $version_type in
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9802 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9807 freebsd3.[01]* | freebsdelf3.[01]*)
9808 shlibpath_overrides_runpath=yes
9809 hardcode_into_libs=yes
9811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9813 shlibpath_overrides_runpath=no
9814 hardcode_into_libs=yes
9816 *) # from 4.6 on, and DragonFly
9817 shlibpath_overrides_runpath=yes
9818 hardcode_into_libs=yes
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 hardcode_into_libs=yes
9833 hpux9* | hpux10* | hpux11*)
9834 # Give a soname corresponding to the major version so that dld.sl refuses to
9835 # link against other versions.
9842 hardcode_into_libs=yes
9843 dynamic_linker="$host_os dld.so"
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 if test "X$HPUX_IA64_MODE" = X32; then
9849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9857 hardcode_into_libs=yes
9858 dynamic_linker="$host_os dld.sl"
9859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9868 dynamic_linker="$host_os dld.sl"
9869 shlibpath_var=SHLIB_PATH
9870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9876 postinstall_cmds='chmod 555 $lib'
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=no
9888 hardcode_into_libs=yes
9891 irix5* | irix6* | nonstopux*)
9893 nonstopux*) version_type=nonstopux ;;
9895 if test "$lt_cv_prog_gnu_ld" = yes; then
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9906 irix5* | nonstopux*)
9910 case $LD in # libtool.m4 will add one of these switches to LD
9911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9912 libsuff= shlibsuff= libmagic=32-bit;;
9913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9914 libsuff=32 shlibsuff=N32 libmagic=N32;;
9915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9917 *) libsuff= shlibsuff= libmagic=never-match;;
9921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9922 shlibpath_overrides_runpath=no
9923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9925 hardcode_into_libs=yes
9928 # No shared lib support for Linux oldld, aout, or coff.
9929 linux*oldld* | linux*aout* | linux*coff*)
9933 # This must be Linux ELF.
9934 linux* | k*bsd*-gnu)
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=no
9943 # Some binutils ld are patched to set DT_RUNPATH
9944 save_LDFLAGS=$LDFLAGS
9946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9961 shlibpath_overrides_runpath=yes
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LDFLAGS=$save_LDFLAGS
9969 # This implies no fast_install, which is unacceptable.
9970 # Some rework will be needed to allow for fast_install
9971 # before this can be enabled.
9972 hardcode_into_libs=yes
9974 # Append ld.so.conf contents to the search path
9975 if test -f /etc/ld.so.conf; then
9976 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;/^$/d' | tr '\n' ' '`
9977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9980 # We used to test for /lib/ld.so.1 and disable shared libraries on
9981 # powerpc, because MkLinux only supported shared libraries with the
9982 # GNU dynamic linker. Since this was broken with cross compilers,
9983 # most powerpc-linux boxes support dynamic linking these days and
9984 # people can always --disable-shared, the test was removed, and we
9985 # assume the GNU/Linux dynamic linker is in use.
9986 dynamic_linker='GNU/Linux ld.so'
9993 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9996 dynamic_linker='NetBSD (a.out) ld.so'
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 dynamic_linker='NetBSD ld.elf_so'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 hardcode_into_libs=yes
10023 dynamic_linker='ldqnx.so'
10028 sys_lib_dlsearch_path_spec="/usr/lib"
10030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10032 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10033 *) need_version=no ;;
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10040 openbsd2.[89] | openbsd2.[89].*)
10041 shlibpath_overrides_runpath=no
10044 shlibpath_overrides_runpath=yes
10048 shlibpath_overrides_runpath=yes
10053 libname_spec='$name'
10056 library_names_spec='$libname${shared_ext} $libname.a'
10057 dynamic_linker='OS/2 ld.exe'
10058 shlibpath_var=LIBPATH
10061 osf3* | osf4* | osf5*)
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10085 # ldd complains unless libraries are executable
10086 postinstall_cmds='chmod +x $lib'
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes
10095 if test "$with_gnu_ld" = yes; then
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 case $host_vendor in
10108 shlibpath_overrides_runpath=no
10110 runpath_var=LD_RUN_PATH
10118 shlibpath_overrides_runpath=no
10119 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10125 if test -d /usr/nec ;then
10127 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10128 soname_spec='$libname${shared_ext}.$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10134 version_type=freebsd-elf
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=yes
10141 hardcode_into_libs=yes
10142 if test "$with_gnu_ld" = yes; then
10143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10145 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10148 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10152 sys_lib_dlsearch_path_spec='/usr/lib'
10156 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=no
10163 hardcode_into_libs=yes
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10178 $as_echo "$dynamic_linker" >&6; }
10179 test "$dynamic_linker" = no && can_build_shared=no
10181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10182 if test "$GCC" = yes; then
10183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10187 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10190 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10280 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10282 if test -n "$hardcode_libdir_flag_spec" ||
10283 test -n "$runpath_var" ||
10284 test "X$hardcode_automatic" = "Xyes" ; then
10286 # We can hardcode non-existent directories.
10287 if test "$hardcode_direct" != no &&
10288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10289 # have to relink, otherwise we might link with an installed library
10290 # when we should be linking with a yet-to-be-installed one
10291 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10292 test "$hardcode_minus_L" != no; then
10293 # Linking always hardcodes the temporary library directory.
10294 hardcode_action=relink
10296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10297 hardcode_action=immediate
10300 # We cannot hardcode anything, or else we can only hardcode existing
10302 hardcode_action=unsupported
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10305 $as_echo "$hardcode_action" >&6; }
10307 if test "$hardcode_action" = relink ||
10308 test "$inherit_rpath" = yes; then
10309 # Fast installation is not supported
10310 enable_fast_install=no
10311 elif test "$shlibpath_overrides_runpath" = yes ||
10312 test "$enable_shared" = no; then
10313 # Fast installation is not necessary
10314 enable_fast_install=needless
10322 if test "x$enable_dlopen" != xyes; then
10323 enable_dlopen=unknown
10324 enable_dlopen_self=unknown
10325 enable_dlopen_self_static=unknown
10332 lt_cv_dlopen="load_add_on"
10334 lt_cv_dlopen_self=yes
10337 mingw* | pw32* | cegcc*)
10338 lt_cv_dlopen="LoadLibrary"
10343 lt_cv_dlopen="dlopen"
10348 # if libdl is installed we need to link against it
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10354 ac_check_lib_save_LIBS=$LIBS
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 ac_cv_lib_dl_dlopen=yes
10377 ac_cv_lib_dl_dlopen=no
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10385 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10389 lt_cv_dlopen="dyld"
10391 lt_cv_dlopen_self=yes
10398 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10399 if test "x$ac_cv_func_shl_load" = x""yes; then :
10400 lt_cv_dlopen="shl_load"
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10403 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10407 ac_check_lib_save_LIBS=$LIBS
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10422 return shl_load ();
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 ac_cv_lib_dld_shl_load=yes
10430 ac_cv_lib_dld_shl_load=no
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10437 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10438 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10441 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10442 if test "x$ac_cv_func_dlopen" = x""yes; then :
10443 lt_cv_dlopen="dlopen"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10446 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10447 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 ac_check_lib_save_LIBS=$LIBS
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10455 /* Override any GCC internal prototype to avoid an error.
10456 Use char because int might match the return type of a GCC
10457 builtin and then its argument prototype would still apply. */
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 ac_cv_lib_dl_dlopen=yes
10473 ac_cv_lib_dl_dlopen=no
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10480 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10481 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10485 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10486 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10489 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-lsvld $LIBS"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10494 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10509 if ac_fn_c_try_link "$LINENO"; then :
10510 ac_cv_lib_svld_dlopen=yes
10512 ac_cv_lib_svld_dlopen=no
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10519 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10520 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10524 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10525 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10528 ac_check_lib_save_LIBS=$LIBS
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10543 return dld_link ();
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 ac_cv_lib_dld_dld_link=yes
10551 ac_cv_lib_dld_dld_link=no
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10558 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10559 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10560 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10581 if test "x$lt_cv_dlopen" != xno; then
10587 case $lt_cv_dlopen in
10589 save_CPPFLAGS="$CPPFLAGS"
10590 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10592 save_LDFLAGS="$LDFLAGS"
10593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10596 LIBS="$lt_cv_dlopen_libs $LIBS"
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10599 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10600 if test "${lt_cv_dlopen_self+set}" = set; then :
10601 $as_echo_n "(cached) " >&6
10603 if test "$cross_compiling" = yes; then :
10604 lt_cv_dlopen_self=cross
10606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607 lt_status=$lt_dlunknown
10608 cat > conftest.$ac_ext <<_LT_EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10619 # define LT_DLGLOBAL RTLD_GLOBAL
10622 # define LT_DLGLOBAL DL_GLOBAL
10624 # define LT_DLGLOBAL 0
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629 find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10635 # define LT_DLLAZY_OR_NOW DL_LAZY
10638 # define LT_DLLAZY_OR_NOW RTLD_NOW
10641 # define LT_DLLAZY_OR_NOW DL_NOW
10643 # define LT_DLLAZY_OR_NOW 0
10650 void fnord() { int i=42;}
10653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10654 int status = $lt_dlunknown;
10658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10660 /* dlclose (self); */
10668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10669 (eval $ac_link) 2>&5
10671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10673 (./conftest; exit; ) >&5 2>/dev/null
10675 case x$lt_status in
10676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10681 # compilation failed
10682 lt_cv_dlopen_self=no
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10690 $as_echo "$lt_cv_dlopen_self" >&6; }
10692 if test "x$lt_cv_dlopen_self" = xyes; then
10693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10696 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10699 if test "$cross_compiling" = yes; then :
10700 lt_cv_dlopen_self_static=cross
10702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10703 lt_status=$lt_dlunknown
10704 cat > conftest.$ac_ext <<_LT_EOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10715 # define LT_DLGLOBAL RTLD_GLOBAL
10718 # define LT_DLGLOBAL DL_GLOBAL
10720 # define LT_DLGLOBAL 0
10724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10725 find out it does not work in some platform. */
10726 #ifndef LT_DLLAZY_OR_NOW
10728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10731 # define LT_DLLAZY_OR_NOW DL_LAZY
10734 # define LT_DLLAZY_OR_NOW RTLD_NOW
10737 # define LT_DLLAZY_OR_NOW DL_NOW
10739 # define LT_DLLAZY_OR_NOW 0
10746 void fnord() { int i=42;}
10749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10750 int status = $lt_dlunknown;
10754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10755 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10756 /* dlclose (self); */
10764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10765 (eval $ac_link) 2>&5
10767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10769 (./conftest; exit; ) >&5 2>/dev/null
10771 case x$lt_status in
10772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10774 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10777 # compilation failed
10778 lt_cv_dlopen_self_static=no
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10786 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10789 CPPFLAGS="$save_CPPFLAGS"
10790 LDFLAGS="$save_LDFLAGS"
10795 case $lt_cv_dlopen_self in
10796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10797 *) enable_dlopen_self=unknown ;;
10800 case $lt_cv_dlopen_self_static in
10801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10802 *) enable_dlopen_self_static=unknown ;;
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10825 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10826 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10830 $as_echo "yes" >&6; }
10832 # FIXME - insert some real tests, host_os isn't really good enough
10835 if test -n "$STRIP" ; then
10836 striplib="$STRIP -x"
10837 old_striplib="$STRIP -S"
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10839 $as_echo "yes" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10863 # Report which library types will actually be built
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10865 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10867 $as_echo "$can_build_shared" >&6; }
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10870 $as_echo_n "checking whether to build shared libraries... " >&6; }
10871 test "$can_build_shared" = "no" && enable_shared=no
10873 # On AIX, shared libraries and static libraries use the same namespace, and
10874 # are all built from PIC.
10877 test "$enable_shared" = yes && enable_static=no
10878 if test -n "$RANLIB"; then
10879 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10880 postinstall_cmds='$RANLIB $lib'
10885 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10886 test "$enable_shared" = yes && enable_static=no
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10891 $as_echo "$enable_shared" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10894 $as_echo_n "checking whether to build static libraries... " >&6; }
10895 # Make sure either enable_shared or enable_static is yes.
10896 test "$enable_shared" = yes || enable_static=yes
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10898 $as_echo "$enable_static" >&6; }
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10924 ac_config_commands="$ac_config_commands libtool"
10929 # Only expand once:
10933 # Checks for header files.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10935 $as_echo_n "checking for ANSI C header files... " >&6; }
10936 if test "${ac_cv_header_stdc+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #include <stdlib.h>
10942 #include <stdarg.h>
10943 #include <string.h>
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 ac_cv_header_stdc=yes
10957 ac_cv_header_stdc=no
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 if test $ac_cv_header_stdc = yes; then
10962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 #include <string.h>
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969 $EGREP "memchr" >/dev/null 2>&1; then :
10972 ac_cv_header_stdc=no
10978 if test $ac_cv_header_stdc = yes; then
10979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 #include <stdlib.h>
10985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10986 $EGREP "free" >/dev/null 2>&1; then :
10989 ac_cv_header_stdc=no
10995 if test $ac_cv_header_stdc = yes; then
10996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10997 if test "$cross_compiling" = yes; then :
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11003 #include <stdlib.h>
11004 #if ((' ' & 0x0FF) == 0x020)
11005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11008 # define ISLOWER(c) \
11009 (('a' <= (c) && (c) <= 'i') \
11010 || ('j' <= (c) && (c) <= 'r') \
11011 || ('s' <= (c) && (c) <= 'z'))
11012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11020 for (i = 0; i < 256; i++)
11021 if (XOR (islower (i), ISLOWER (i))
11022 || toupper (i) != TOUPPER (i))
11027 if ac_fn_c_try_run "$LINENO"; then :
11030 ac_cv_header_stdc=no
11032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11033 conftest.$ac_objext conftest.beam conftest.$ac_ext
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11039 $as_echo "$ac_cv_header_stdc" >&6; }
11040 if test $ac_cv_header_stdc = yes; then
11042 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11046 for ac_header in malloc.h stdlib.h string.h strings.h
11048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11050 eval as_val=\$$as_ac_Header
11051 if test "x$as_val" = x""yes; then :
11052 cat >>confdefs.h <<_ACEOF
11053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11061 # Checks for typedefs, structures, and compiler characteristics.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11063 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11064 if test "${ac_cv_c_const+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11073 /* FIXME: Include the comments suggested by Paul. */
11074 #ifndef __cplusplus
11075 /* Ultrix mips cc rejects this. */
11076 typedef int charset[2];
11078 /* SunOS 4.1.1 cc rejects this. */
11079 char const *const *pcpcc;
11081 /* NEC SVR4.0.2 mips cc rejects this. */
11082 struct point {int x, y;};
11083 static struct point const zero = {0,0};
11084 /* AIX XL C 1.02.0.0 rejects this.
11085 It does not let you subtract one const X* pointer from another in
11086 an arm of an if-expression whose if-part is not a constant
11088 const char *g = "string";
11089 pcpcc = &g + (g ? g-g : 0);
11090 /* HPUX 7.0 cc rejects these. */
11092 ppc = (char**) pcpcc;
11093 pcpcc = (char const *const *) ppc;
11094 { /* SCO 3.2v4 cc rejects this. */
11096 char const *s = 0 ? (char *) 0 : (char const *) 0;
11101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11102 int x[] = {25, 17};
11103 const int *foo = &x[0];
11106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11107 typedef const int *iptr;
11111 { /* AIX XL C 1.02.0.0 rejects this saying
11112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11113 struct s { int j; const int *ap[3]; };
11114 struct s *b; b->j = 5;
11116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11117 const int foo = 10;
11118 if (!foo) return 0;
11120 return !cs[0] && !zero.x;
11127 if ac_fn_c_try_compile "$LINENO"; then :
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11135 $as_echo "$ac_cv_c_const" >&6; }
11136 if test $ac_cv_c_const = no; then
11138 $as_echo "#define const /**/" >>confdefs.h
11142 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11143 if test "x$ac_cv_type_size_t" = x""yes; then :
11147 cat >>confdefs.h <<_ACEOF
11148 #define size_t unsigned int
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11154 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11155 if test "${ac_cv_struct_tm+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160 #include <sys/types.h>
11167 int *p = &tm.tm_sec;
11173 if ac_fn_c_try_compile "$LINENO"; then :
11174 ac_cv_struct_tm=time.h
11176 ac_cv_struct_tm=sys/time.h
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11181 $as_echo "$ac_cv_struct_tm" >&6; }
11182 if test $ac_cv_struct_tm = sys/time.h; then
11184 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11189 # Checks for library functions.
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11191 $as_echo_n "checking for working strtod... " >&6; }
11192 if test "${ac_cv_func_strtod+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11195 if test "$cross_compiling" = yes; then :
11196 ac_cv_func_strtod=no
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11201 $ac_includes_default
11209 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11210 char *string = " +69";
11213 value = strtod (string, &term);
11214 if (value != 69 || term != (string + 4))
11219 /* Under Solaris 2.4, strtod returns the wrong value for the
11220 terminating character under some conditions. */
11221 char *string = "NaN";
11223 strtod (string, &term);
11224 if (term != string && *(term - 1) == 0)
11231 if ac_fn_c_try_run "$LINENO"; then :
11232 ac_cv_func_strtod=yes
11234 ac_cv_func_strtod=no
11236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11237 conftest.$ac_objext conftest.beam conftest.$ac_ext
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11242 $as_echo "$ac_cv_func_strtod" >&6; }
11243 if test $ac_cv_func_strtod = no; then
11244 case " $LIBOBJS " in
11245 *" strtod.$ac_objext "* ) ;;
11246 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11250 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11251 if test "x$ac_cv_func_pow" = x""yes; then :
11255 if test $ac_cv_func_pow = no; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11257 $as_echo_n "checking for pow in -lm... " >&6; }
11258 if test "${ac_cv_lib_m_pow+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11261 ac_check_lib_save_LIBS=$LIBS
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 ac_cv_lib_m_pow=yes
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11291 $as_echo "$ac_cv_lib_m_pow" >&6; }
11292 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11296 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11303 for ac_func in memset
11305 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
11306 if test "x$ac_cv_func_memset" = x""yes; then :
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_MEMSET 1
11312 as_fn_error "memset not found in libc" "$LINENO" 5
11318 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11319 if test "x$ac_cv_func_pow" = x""yes; then :
11320 cat >>confdefs.h <<_ACEOF
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11326 $as_echo_n "checking for pow in -lm... " >&6; }
11327 if test "${ac_cv_lib_m_pow+set}" = set; then :
11328 $as_echo_n "(cached) " >&6
11330 ac_check_lib_save_LIBS=$LIBS
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_lib_m_pow=yes
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_lib_save_LIBS
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11360 $as_echo "$ac_cv_lib_m_pow" >&6; }
11361 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11362 cat >>confdefs.h <<_ACEOF
11363 #define HAVE_LIBM 1
11369 as_fn_error "cannot find pow" "$LINENO" 5
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
11376 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
11377 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11380 ac_check_lib_save_LIBS=$LIBS
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11391 char zlibVersion ();
11395 return zlibVersion ();
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_z_zlibVersion=yes
11403 ac_cv_lib_z_zlibVersion=no
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
11410 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
11411 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
11412 cat >>confdefs.h <<_ACEOF
11413 #define HAVE_LIBZ 1
11419 as_fn_error "zlib not installed" "$LINENO" 5
11425 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE;;
11427 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
11430 $as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433 #include "$srcdir/pnggccrd.c"
11442 if ac_fn_c_try_compile "$LINENO"; then :
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449 LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
11457 $as_echo_n "checking if libraries can be versioned... " >&6; }
11458 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
11459 if test "$GLD"; then
11460 have_ld_version_script=yes
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11462 $as_echo "yes" >&6; }
11464 have_ld_version_script=no
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
11468 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
11470 if test "$have_ld_version_script" = "yes"; then
11471 HAVE_LD_VERSION_SCRIPT_TRUE=
11472 HAVE_LD_VERSION_SCRIPT_FALSE='#'
11474 HAVE_LD_VERSION_SCRIPT_TRUE='#'
11475 HAVE_LD_VERSION_SCRIPT_FALSE=
11479 if test "$have_ld_version_script" = "yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
11481 $as_echo_n "checking for symbol prefix... " >&6; }
11482 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
11483 | ${CPP-${CC-gcc} -E} - 2>&1 \
11484 | ${EGREP-grep} "^PREFIX=" \
11485 | ${SED-sed} "s:^PREFIX=::"`
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
11488 $as_echo "$SYMBOL_PREFIX" >&6; }
11491 # Substitutions for .in files
11497 # Additional arguments (and substitutions)
11498 # Allow the pkg-config directory to be set
11500 # Check whether --with-pkgconfigdir was given.
11501 if test "${with_pkgconfigdir+set}" = set; then :
11502 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
11504 pkgconfigdir='${libdir}/pkgconfig'
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
11510 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
11512 # Make the *-config binary config scripts optional
11514 # Check whether --with-binconfigs was given.
11515 if test "${with_binconfigs+set}" = set; then :
11516 withval=$with_binconfigs; if test "${withval}" = no; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
11519 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
11521 binconfigs='${binconfigs}'
11524 binconfigs='${binconfigs}'
11529 # Allow the old version number library, libpng.so, to be removed from
11532 # Check whether --with-libpng-compat was given.
11533 if test "${with_libpng_compat+set}" = set; then :
11534 withval=$with_libpng_compat; if test "${withval}" = no; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng.so will not be built" >&5
11537 $as_echo "$as_me: libpng.so will not be built" >&6;}
11539 compatlib=libpng.la
11542 compatlib=libpng.la
11547 # Config files, substituting as above
11548 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
11550 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
11553 cat >confcache <<\_ACEOF
11554 # This file is a shell script that caches the results of configure
11555 # tests run on this system so they can be shared between configure
11556 # scripts and configure runs, see configure's option --config-cache.
11557 # It is not useful on other systems. If it contains results you don't
11558 # want to keep, you may remove or edit it.
11560 # config.status only pays attention to the cache file if you give it
11561 # the --recheck option to rerun configure.
11563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11565 # following values.
11569 # The following way of writing the cache mishandles newlines in values,
11570 # but we know of no workaround that is simple, portable, and efficient.
11571 # So, we kill variables containing newlines.
11572 # Ultrix sh set writes to stderr and can't be redirected directly,
11573 # and sets the high bit in the cache file unless we assign to the vars.
11575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11576 eval ac_val=\$$ac_var
11580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11584 _ | IFS | as_nl) ;; #(
11585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11586 *) { eval $ac_var=; unset $ac_var;} ;;
11592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11593 *${as_nl}ac_space=\ *)
11594 # `set' does not quote correctly, so add quotes: double-quote
11595 # substitution turns \\\\ into \\, and sed turns \\ into \.
11598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11601 # `set' quotes correctly as required by POSIX, so do not add quotes.
11602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11616 if test -w "$cache_file"; then
11617 test "x$cache_file" != "x/dev/null" &&
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11619 $as_echo "$as_me: updating cache $cache_file" >&6;}
11620 cat confcache >$cache_file
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629 # Let make expand exec_prefix.
11630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11632 DEFS=-DHAVE_CONFIG_H
11636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11637 # 1. Remove the extension, and $U if already installed.
11638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11641 # will be set to the directory where LIBOBJS objects are built.
11642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11645 LIBOBJS=$ac_libobjs
11647 LTLIBOBJS=$ac_ltlibobjs
11650 if test -n "$EXEEXT"; then
11652 am__EXEEXT_FALSE='#'
11654 am__EXEEXT_TRUE='#'
11658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11659 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11663 as_fn_error "conditional \"AMDEP\" was never defined.
11664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11667 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11670 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
11671 as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
11672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11675 : ${CONFIG_STATUS=./config.status}
11677 ac_clean_files_save=$ac_clean_files
11678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11684 # Generated by $as_me.
11685 # Run this file to recreate the current configuration.
11686 # Compiler output produced by configure, useful for debugging
11687 # configure, is in config.log if it exists.
11690 ac_cs_recheck=false
11693 SHELL=\${CONFIG_SHELL-$SHELL}
11696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11697 ## -------------------- ##
11698 ## M4sh Initialization. ##
11699 ## -------------------- ##
11701 # Be more Bourne compatible
11702 DUALCASE=1; export DUALCASE # for MKS sh
11703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707 # is contrary to our usage. Disable this feature.
11708 alias -g '${1+"$@"}'='"$@"'
11709 setopt NO_GLOB_SUBST
11711 case `(set -o) 2>/dev/null` in #(
11723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11727 # Prefer a ksh shell builtin over an external printf program on Solaris,
11728 # but without wasting forks for bash or zsh.
11729 if test -z "$BASH_VERSION$ZSH_VERSION" \
11730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11731 as_echo='print -r --'
11732 as_echo_n='print -rn --'
11733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11734 as_echo='printf %s\n'
11735 as_echo_n='printf %s'
11737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11739 as_echo_n='/usr/ucb/echo -n'
11741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11742 as_echo_n_body='eval
11746 expr "X$arg" : "X\\(.*\\)$as_nl";
11747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11751 export as_echo_n_body
11752 as_echo_n='sh -c $as_echo_n_body as_echo'
11754 export as_echo_body
11755 as_echo='sh -c $as_echo_body as_echo'
11758 # The user is always right.
11759 if test "${PATH_SEPARATOR+set}" != set; then
11761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11769 # We need space, tab and new line, in precisely that order. Quoting is
11770 # there to prevent editors from complaining about space-tab.
11771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11772 # splitting by setting IFS to empty value.)
11775 # Find who we are. Look in the path if we contain no directory separator.
11777 *[\\/]* ) as_myself=$0 ;;
11778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11782 test -z "$as_dir" && as_dir=.
11783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11789 # We did not find ourselves, most probably we were run as `sh COMMAND'
11790 # in which case we are not to be found in the path.
11791 if test "x$as_myself" = x; then
11794 if test ! -f "$as_myself"; then
11795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11799 # Unset variables that we do not need and which cause bugs (e.g. in
11800 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11801 # suppresses any "Segmentation fault" message there. '((' could
11802 # trigger a bug in pdksh 5.2.14.
11803 for as_var in BASH_ENV ENV MAIL MAILPATH
11804 do eval test x\${$as_var+set} = xset \
11805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11821 # as_fn_error ERROR [LINENO LOG_FD]
11822 # ---------------------------------
11823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11825 # script with status $?, using 1 if that was 0.
11828 as_status=$?; test $as_status -eq 0 && as_status=1
11830 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11833 $as_echo "$as_me: error: $1" >&2
11834 as_fn_exit $as_status
11838 # as_fn_set_status STATUS
11839 # -----------------------
11840 # Set $? to STATUS, without forking.
11841 as_fn_set_status ()
11844 } # as_fn_set_status
11846 # as_fn_exit STATUS
11847 # -----------------
11848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11852 as_fn_set_status $1
11858 # Portably unset VAR.
11861 { eval $1=; unset $1;}
11863 as_unset=as_fn_unset
11864 # as_fn_append VAR VALUE
11865 # ----------------------
11866 # Append the text in VALUE to the end of the definition contained in VAR. Take
11867 # advantage of any shell optimizations that allow amortized linear growth over
11868 # repeated appends, instead of the typical quadratic growth present in naive
11870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11871 eval 'as_fn_append ()
11882 # as_fn_arith ARG...
11883 # ------------------
11884 # Perform arithmetic evaluation on the ARGs, and store the result in the
11885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11886 # must be portable across $(()) and expr.
11887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11888 eval 'as_fn_arith ()
11895 as_val=`expr "$@" || test $? -eq 1`
11900 if expr a : '\(a\)' >/dev/null 2>&1 &&
11901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11908 as_basename=basename
11913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11919 as_me=`$as_basename -- "$0" ||
11920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11921 X"$0" : 'X\(//\)$' \| \
11922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11924 sed '/^.*\/\([^/][^/]*\)\/*$/{
11938 # Avoid depending upon Character Ranges.
11939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11942 as_cr_digits='0123456789'
11943 as_cr_alnum=$as_cr_Letters$as_cr_digits
11945 ECHO_C= ECHO_N= ECHO_T=
11946 case `echo -n x` in #(((((
11948 case `echo 'xy\c'` in
11949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11958 rm -f conf$$ conf$$.exe conf$$.file
11959 if test -d conf$$.dir; then
11960 rm -f conf$$.dir/conf$$.file
11963 mkdir conf$$.dir 2>/dev/null
11965 if (echo >conf$$.file) 2>/dev/null; then
11966 if ln -s conf$$.file conf$$ 2>/dev/null; then
11968 # ... but there are two gotchas:
11969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11971 # In both cases, we have to default to `cp -p'.
11972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11974 elif ln conf$$.file conf$$ 2>/dev/null; then
11982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983 rmdir conf$$.dir 2>/dev/null
11988 # Create "$as_dir" as a directory, including parents if necessary.
11993 -*) as_dir=./$as_dir;;
11995 test -d "$as_dir" || eval $as_mkdir_p || {
11999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12000 *) as_qdir=$as_dir;;
12002 as_dirs="'$as_qdir' $as_dirs"
12003 as_dir=`$as_dirname -- "$as_dir" ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005 X"$as_dir" : 'X\(//\)[^/]' \| \
12006 X"$as_dir" : 'X\(//\)$' \| \
12007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12008 $as_echo X"$as_dir" |
12009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12013 /^X\(\/\/\)[^/].*/{
12026 test -d "$as_dir" && break
12028 test -z "$as_dirs" || eval "mkdir $as_dirs"
12029 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12033 if mkdir -p . 2>/dev/null; then
12034 as_mkdir_p='mkdir -p "$as_dir"'
12036 test -d ./-p && rmdir ./-p
12040 if test -x / >/dev/null 2>&1; then
12041 as_test_x='test -x'
12043 if ls -dL / >/dev/null 2>&1; then
12050 if test -d "$1"; then
12056 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12057 ???[sx]*):;;*)false;;esac;fi
12061 as_executable_p=$as_test_x
12063 # Sed expression to map a string onto a valid CPP name.
12064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12066 # Sed expression to map a string onto a valid variable name.
12067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12071 ## ----------------------------------- ##
12072 ## Main body of $CONFIG_STATUS script. ##
12073 ## ----------------------------------- ##
12075 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078 # Save the log message, to keep $0 and so on meaningful, and to
12079 # report actual input values of CONFIG_FILES etc. instead of their
12080 # values after options handling.
12082 This file was extended by libpng $as_me 1.2.50, which was
12083 generated by GNU Autoconf 2.65. Invocation command line was
12085 CONFIG_FILES = $CONFIG_FILES
12086 CONFIG_HEADERS = $CONFIG_HEADERS
12087 CONFIG_LINKS = $CONFIG_LINKS
12088 CONFIG_COMMANDS = $CONFIG_COMMANDS
12091 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12096 case $ac_config_files in *"
12097 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12100 case $ac_config_headers in *"
12101 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106 # Files that config.status was made for.
12107 config_files="$ac_config_files"
12108 config_headers="$ac_config_headers"
12109 config_commands="$ac_config_commands"
12113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115 \`$as_me' instantiates files and other configuration actions
12116 from templates according to the current configuration. Unless the files
12117 and actions are specified as TAGs, all are instantiated by default.
12119 Usage: $0 [OPTION]... [TAG]...
12121 -h, --help print this help, then exit
12122 -V, --version print version number and configuration settings, then exit
12123 --config print configuration, then exit
12124 -q, --quiet, --silent
12125 do not print progress messages
12126 -d, --debug don't remove temporary files
12127 --recheck update $as_me by reconfiguring in the same conditions
12128 --file=FILE[:TEMPLATE]
12129 instantiate the configuration file FILE
12130 --header=FILE[:TEMPLATE]
12131 instantiate the configuration header FILE
12133 Configuration files:
12136 Configuration headers:
12139 Configuration commands:
12142 Report bugs to <png-mng-implement@lists.sourceforge.net>."
12145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12148 libpng config.status 1.2.50
12149 configured by $0, generated by GNU Autoconf 2.65,
12150 with options \\"\$ac_cs_config\\"
12152 Copyright (C) 2009 Free Software Foundation, Inc.
12153 This config.status script is free software; the Free Software Foundation
12154 gives unlimited permission to copy, distribute and modify it."
12161 test -n "\$AWK" || AWK=awk
12164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12165 # The default lists apply if the user does not specify any file.
12171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12183 # Handling of the options.
12184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12187 $as_echo "$ac_cs_version"; exit ;;
12188 --config | --confi | --conf | --con | --co | --c )
12189 $as_echo "$ac_cs_config"; exit ;;
12190 --debug | --debu | --deb | --de | --d | -d )
12192 --file | --fil | --fi | --f )
12195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12197 as_fn_append CONFIG_FILES " '$ac_optarg'"
12198 ac_need_defaults=false;;
12199 --header | --heade | --head | --hea )
12202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12204 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12205 ac_need_defaults=false;;
12207 # Conflict between --help and --header
12208 as_fn_error "ambiguous option: \`$1'
12209 Try \`$0 --help' for more information.";;
12210 --help | --hel | -h )
12211 $as_echo "$ac_cs_usage"; exit ;;
12212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12216 # This is an error.
12217 -*) as_fn_error "unrecognized option: \`$1'
12218 Try \`$0 --help' for more information." ;;
12220 *) as_fn_append ac_config_targets " $1"
12221 ac_need_defaults=false ;;
12227 ac_configure_extra_args=
12229 if $ac_cs_silent; then
12231 ac_configure_extra_args="$ac_configure_extra_args --silent"
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 if \$ac_cs_recheck; then
12237 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12240 CONFIG_SHELL='$SHELL'
12241 export CONFIG_SHELL
12246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12251 ## Running $as_me. ##
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12261 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12264 # The HP-UX ksh and POSIX shell print the target directory to stdout
12265 # if CDPATH is set.
12266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12268 sed_quote_subst='$sed_quote_subst'
12269 double_quote_subst='$double_quote_subst'
12270 delay_variable_subst='$delay_variable_subst'
12271 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12272 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12273 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12274 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12275 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12276 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12277 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12278 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12279 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12280 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12281 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12282 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12283 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12284 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12285 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12286 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12287 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12288 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12289 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12290 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12291 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12292 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12293 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12294 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12295 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12296 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12297 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12298 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12299 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12300 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12301 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12302 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12303 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12304 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12305 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12306 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12307 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12308 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12309 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12310 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12311 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12312 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12313 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12314 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12315 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12318 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12319 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12320 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12321 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12322 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12323 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12324 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12325 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12326 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12327 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12328 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12329 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12330 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12331 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12332 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12333 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12334 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12335 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12336 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12338 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12339 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12340 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12341 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12342 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12343 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12344 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12345 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12346 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12347 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12348 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12349 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12350 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12351 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12352 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12353 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12354 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12355 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12356 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12357 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12358 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12359 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12360 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12361 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12362 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12363 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12364 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12365 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12366 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12367 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12368 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12369 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12370 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12371 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12372 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12373 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12374 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12375 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12376 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12377 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12378 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12379 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12380 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12382 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12383 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12384 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12385 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12386 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12387 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12388 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12389 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12390 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12393 LTCFLAGS='$LTCFLAGS'
12394 compiler='$compiler_DEFAULT'
12396 # Quote evaled strings.
12407 deplibs_check_method \
12416 lt_cv_sys_global_symbol_pipe \
12417 lt_cv_sys_global_symbol_to_cdecl \
12418 lt_cv_sys_global_symbol_to_c_name_address \
12419 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12422 lt_prog_compiler_no_builtin_flag \
12423 lt_prog_compiler_wl \
12424 lt_prog_compiler_pic \
12425 lt_prog_compiler_static \
12426 lt_cv_prog_compiler_c_o \
12434 export_dynamic_flag_spec \
12435 whole_archive_flag_spec \
12436 compiler_needs_object \
12438 allow_undefined_flag \
12439 no_undefined_flag \
12440 hardcode_libdir_flag_spec \
12441 hardcode_libdir_flag_spec_ld \
12442 hardcode_libdir_separator \
12447 variables_saved_for_relink \
12449 library_names_spec \
12454 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12455 *[\\\\\\\`\\"\\\$]*)
12456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12464 # Double-quote double-evaled strings.
12465 for var in reload_cmds \
12466 old_postinstall_cmds \
12467 old_postuninstall_cmds \
12469 extract_expsyms_cmds \
12470 old_archive_from_new_cmds \
12471 old_archive_from_expsyms_cmds \
12473 archive_expsym_cmds \
12475 module_expsym_cmds \
12476 export_symbols_cmds \
12479 postuninstall_cmds \
12481 sys_lib_search_path_spec \
12482 sys_lib_dlsearch_path_spec; do
12483 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12484 *[\\\\\\\`\\"\\\$]*)
12485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12493 # Fix-up fallback echo if it was mangled by the above quoting rules.
12495 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12499 ac_aux_dir='$ac_aux_dir'
12500 xsi_shell='$xsi_shell'
12501 lt_shell_append='$lt_shell_append'
12503 # See if we are running on zsh, and set the options which allow our
12504 # commands through without removal of \ escapes INIT.
12505 if test -n "\${ZSH_VERSION+set}" ; then
12506 setopt NO_GLOB_SUBST
12512 TIMESTAMP='$TIMESTAMP'
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12523 # Handling of arguments.
12524 for ac_config_target in $ac_config_targets
12526 case $ac_config_target in
12527 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12528 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12529 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12530 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12531 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
12532 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
12534 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12539 # If the user did not use the arguments to specify the items to instantiate,
12540 # then the envvar interface is used. Set only those that are not.
12541 # We use the long form for the default assignment because of an extremely
12542 # bizarre bug on SunOS 4.1.3.
12543 if $ac_need_defaults; then
12544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12549 # Have a temporary directory for convenience. Make it in the build tree
12550 # simply because there is no reason against having it here, and in addition,
12551 # creating and moving files from /tmp can sometimes cause problems.
12552 # Hook for its removal unless debugging.
12553 # Note that there is a small window in which the directory will not be cleaned:
12554 # after its creation but before its name has been assigned to `$tmp'.
12558 trap 'exit_status=$?
12559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12561 trap 'as_fn_exit 1' 1 2 13 15
12563 # Create a (secure) tmp directory for tmp files.
12566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12567 test -n "$tmp" && test -d "$tmp"
12570 tmp=./conf$$-$RANDOM
12571 (umask 077 && mkdir "$tmp")
12572 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12574 # Set up the scripts for CONFIG_FILES section.
12575 # No need to generate them if there are no CONFIG_FILES.
12576 # This happens for instance with `./config.status config.h'.
12577 if test -n "$CONFIG_FILES"; then
12580 ac_cr=`echo X | tr X '\015'`
12581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12582 # But we know of no other shell where ac_cr would be empty at this
12583 # point, so we can use a bashism as a fallback.
12584 if test "x$ac_cr" = x; then
12585 eval ac_cr=\$\'\\r\'
12587 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12591 ac_cs_awk_cr=$ac_cr
12594 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12599 echo "cat >conf$$subs.awk <<_ACEOF" &&
12600 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12602 } >conf$$subs.sh ||
12603 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12604 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12606 for ac_last_try in false false false false false :; do
12607 . ./conf$$subs.sh ||
12608 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12610 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12611 if test $ac_delim_n = $ac_delim_num; then
12613 elif $ac_last_try; then
12614 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12619 rm -f conf$$subs.sh
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12626 s/^/S["/; s/!.*/"]=/
12636 s/\(.\{148\}\)..*/\1/
12638 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12650 s/\(.\{148\}\)..*/\1/
12652 s/["\\]/\\&/g; s/^/"/; s/$/"/
12656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12661 ' <conf$$subs.awk | sed '
12666 ' >>$CONFIG_STATUS || ac_write_fail=1
12667 rm -f conf$$subs.awk
12668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12670 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12671 for (key in S) S_is_set[key] = 1
12677 nfields = split(line, field, "@")
12679 len = length(field[1])
12680 for (i = 2; i < nfields; i++) {
12682 keylen = length(key)
12683 if (S_is_set[key]) {
12685 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12686 len += length(value) + length(field[++i])
12697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12703 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12708 # trailing colons and then remove the whole line if VPATH becomes empty
12709 # (actually we leave an empty line to preserve line numbers).
12710 if test "x$srcdir" = x.; then
12711 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12712 s/:*\$(srcdir):*/:/
12713 s/:*\${srcdir}:*/:/
12715 s/^\([^=]*=[ ]*\):*/\1/
12721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12722 fi # test -n "$CONFIG_FILES"
12724 # Set up the scripts for CONFIG_HEADERS section.
12725 # No need to generate them if there are no CONFIG_HEADERS.
12726 # This happens for instance with `./config.status Makefile'.
12727 if test -n "$CONFIG_HEADERS"; then
12728 cat >"$tmp/defines.awk" <<\_ACAWK ||
12732 # Transform confdefs.h into an awk script `defines.awk', embedded as
12733 # here-document in config.status, that substitutes the proper values into
12734 # config.h.in to produce config.h.
12736 # Create a delimiter string that does not exist in confdefs.h, to ease
12737 # handling of long lines.
12739 for ac_last_try in false false :; do
12740 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12741 if test -z "$ac_t"; then
12743 elif $ac_last_try; then
12744 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12750 # For the awk script, D is an array of macro values keyed by name,
12751 # likewise P contains macro parameters if any. Preserve backslash
12752 # newline sequences.
12754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12756 s/.\{148\}/&'"$ac_delim"'/g
12759 s/^[ ]*#[ ]*define[ ][ ]*/ /
12766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12768 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12773 D["\1"]=" \3\\\\\\n"\\/p
12775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12780 s/.\{148\}/&'"$ac_delim"'/g
12785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12790 ' <confdefs.h | sed '
12791 s/'"$ac_delim"'/"\\\
12792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12795 for (key in D) D_is_set[key] = 1
12798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12800 split(line, arg, " ")
12801 if (arg[1] == "#") {
12805 defundef = substr(arg[1], 2)
12808 split(mac1, mac2, "(") #)
12810 prefix = substr(line, 1, index(line, defundef) - 1)
12811 if (D_is_set[macro]) {
12812 # Preserve the white space surrounding the "#".
12813 print prefix "define", macro P[macro] D[macro]
12816 # Replace #undef with comments. This is necessary, for example,
12817 # in the case of _POSIX_SOURCE, which is predefined and required
12818 # on some systems where configure will not decide to define it.
12819 if (defundef == "undef") {
12820 print "/*", prefix defundef, macro, "*/"
12828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12829 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12830 fi # test -n "$CONFIG_HEADERS"
12833 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12838 :[FHLC]) ac_mode=$ac_tag; continue;;
12840 case $ac_mode$ac_tag in
12842 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12843 :[FH]-) ac_tag=-:-;;
12844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12861 -) ac_f="$tmp/stdin";;
12862 *) # Look for the file first in the build tree, then in the source tree
12863 # (if the path is not absolute). The absolute path cannot be DOS-style,
12864 # because $ac_f cannot contain `:'.
12868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12870 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12872 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12873 as_fn_append ac_file_inputs " '$ac_f'"
12876 # Let's still pretend it is `configure' which instantiates (i.e., don't
12877 # use $as_me), people would be surprised to read:
12878 # /* config.h. Generated by config.status. */
12879 configure_input='Generated from '`
12880 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12882 if test x"$ac_file" != x-; then
12883 configure_input="$ac_file. $configure_input"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12885 $as_echo "$as_me: creating $ac_file" >&6;}
12887 # Neutralize special characters interpreted by sed in replacement strings.
12888 case $configure_input in #(
12889 *\&* | *\|* | *\\* )
12890 ac_sed_conf_input=`$as_echo "$configure_input" |
12891 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12892 *) ac_sed_conf_input=$configure_input;;
12896 *:-:* | *:-) cat >"$tmp/stdin" \
12897 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12902 ac_dir=`$as_dirname -- "$ac_file" ||
12903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12904 X"$ac_file" : 'X\(//\)[^/]' \| \
12905 X"$ac_file" : 'X\(//\)$' \| \
12906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12907 $as_echo X"$ac_file" |
12908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12912 /^X\(\/\/\)[^/].*/{
12925 as_dir="$ac_dir"; as_fn_mkdir_p
12929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12932 # A ".." for each directory in $ac_dir_suffix.
12933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12934 case $ac_top_builddir_sub in
12935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12939 ac_abs_top_builddir=$ac_pwd
12940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12941 # for backward compatibility:
12942 ac_top_builddir=$ac_top_build_prefix
12945 .) # We are building in place.
12947 ac_top_srcdir=$ac_top_builddir_sub
12948 ac_abs_top_srcdir=$ac_pwd ;;
12949 [\\/]* | ?:[\\/]* ) # Absolute name.
12950 ac_srcdir=$srcdir$ac_dir_suffix;
12951 ac_top_srcdir=$srcdir
12952 ac_abs_top_srcdir=$srcdir ;;
12953 *) # Relative name.
12954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12955 ac_top_srcdir=$ac_top_build_prefix$srcdir
12956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12969 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12971 ac_MKDIR_P=$MKDIR_P
12973 [\\/$]* | ?:[\\/]* ) ;;
12974 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12979 # If the template does not know about datarootdir, expand it.
12980 # FIXME: This hack should be removed a few years after 2.60.
12981 ac_datarootdir_hack=; ac_datarootdir_seen=
12992 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12993 *datarootdir*) ac_datarootdir_seen=yes;;
12994 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12996 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12999 ac_datarootdir_hack='
13000 s&@datadir@&$datadir&g
13001 s&@docdir@&$docdir&g
13002 s&@infodir@&$infodir&g
13003 s&@localedir@&$localedir&g
13004 s&@mandir@&$mandir&g
13005 s&\\\${datarootdir}&$datarootdir&g' ;;
13009 # Neutralize VPATH when `$srcdir' = `.'.
13010 # Shell code in configure.ac might set extrasub.
13011 # FIXME: do we really want to maintain this feature?
13012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013 ac_sed_extra="$ac_vpsub
13016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13019 s|@configure_input@|$ac_sed_conf_input|;t t
13020 s&@top_builddir@&$ac_top_builddir_sub&;t t
13021 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13022 s&@srcdir@&$ac_srcdir&;t t
13023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13024 s&@top_srcdir@&$ac_top_srcdir&;t t
13025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13026 s&@builddir@&$ac_builddir&;t t
13027 s&@abs_builddir@&$ac_abs_builddir&;t t
13028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13029 s&@INSTALL@&$ac_INSTALL&;t t
13030 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13031 $ac_datarootdir_hack
13033 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13034 || as_fn_error "could not create $ac_file" "$LINENO" 5
13036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13037 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13038 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13040 which seems to be undefined. Please make sure it is defined." >&5
13041 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13042 which seems to be undefined. Please make sure it is defined." >&2;}
13046 -) cat "$tmp/out" && rm -f "$tmp/out";;
13047 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13049 || as_fn_error "could not create $ac_file" "$LINENO" 5
13055 if test x"$ac_file" != x-; then
13057 $as_echo "/* $configure_input */" \
13058 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13059 } >"$tmp/config.h" \
13060 || as_fn_error "could not create $ac_file" "$LINENO" 5
13061 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13063 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13066 mv "$tmp/config.h" "$ac_file" \
13067 || as_fn_error "could not create $ac_file" "$LINENO" 5
13070 $as_echo "/* $configure_input */" \
13071 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13072 || as_fn_error "could not create -" "$LINENO" 5
13074 # Compute "$ac_file"'s index in $config_headers.
13077 for _am_header in $config_headers :; do
13078 case $_am_header in
13079 $_am_arg | $_am_arg:* )
13082 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13085 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13086 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13087 X"$_am_arg" : 'X\(//\)[^/]' \| \
13088 X"$_am_arg" : 'X\(//\)$' \| \
13089 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13090 $as_echo X"$_am_arg" |
13091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13095 /^X\(\/\/\)[^/].*/{
13107 s/.*/./; q'`/stamp-h$_am_stamp_count
13110 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13111 $as_echo "$as_me: executing $ac_file commands" >&6;}
13116 case $ac_file$ac_mode in
13117 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13118 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13119 # are listed without --file. Let's play safe and only enable the eval
13120 # if we detect the quoting.
13121 case $CONFIG_FILES in
13122 *\'*) eval set x "$CONFIG_FILES" ;;
13123 *) set x $CONFIG_FILES ;;
13128 # Strip MF so we end up with the name of the file.
13129 mf=`echo "$mf" | sed -e 's/:.*$//'`
13130 # Check whether this is an Automake generated Makefile or not.
13131 # We used to match only the files named `Makefile.in', but
13132 # some people rename them; so instead we look at the file content.
13133 # Grep'ing the first line is not enough: some people post-process
13134 # each Makefile.in and add a new line on top of each file to say so.
13135 # Grep'ing the whole file is not good either: AIX grep has a line
13136 # limit of 2048, but all sed's we know have understand at least 4000.
13137 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13138 dirpart=`$as_dirname -- "$mf" ||
13139 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13140 X"$mf" : 'X\(//\)[^/]' \| \
13141 X"$mf" : 'X\(//\)$' \| \
13142 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13148 /^X\(\/\/\)[^/].*/{
13164 # Extract the definition of DEPDIR, am__include, and am__quote
13165 # from the Makefile without running `make'.
13166 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13167 test -z "$DEPDIR" && continue
13168 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13169 test -z "am__include" && continue
13170 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13171 # When using ansi2knr, U may be empty or an underscore; expand it
13172 U=`sed -n 's/^U = //p' < "$mf"`
13173 # Find all dependency output files, they are included files with
13174 # $(DEPDIR) in their names. We invoke sed twice because it is the
13175 # simplest approach to changing $(DEPDIR) to its actual value in the
13177 for file in `sed -n "
13178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13180 # Make sure the directory exists.
13181 test -f "$dirpart/$file" && continue
13182 fdir=`$as_dirname -- "$file" ||
13183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13184 X"$file" : 'X\(//\)[^/]' \| \
13185 X"$file" : 'X\(//\)$' \| \
13186 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13187 $as_echo X"$file" |
13188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13192 /^X\(\/\/\)[^/].*/{
13205 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13206 # echo "creating $dirpart/$file"
13207 echo '# dummy' > "$dirpart/$file"
13214 # See if we are running on zsh, and set the options which allow our
13215 # commands through without removal of \ escapes.
13216 if test -n "${ZSH_VERSION+set}" ; then
13217 setopt NO_GLOB_SUBST
13220 cfgfile="${ofile}T"
13221 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13224 cat <<_LT_EOF >> "$cfgfile"
13227 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13228 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13230 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13232 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13233 # 2006, 2007, 2008 Free Software Foundation, Inc.
13234 # Written by Gordon Matzigkeit, 1996
13236 # This file is part of GNU Libtool.
13238 # GNU Libtool is free software; you can redistribute it and/or
13239 # modify it under the terms of the GNU General Public License as
13240 # published by the Free Software Foundation; either version 2 of
13241 # the License, or (at your option) any later version.
13243 # As a special exception to the GNU General Public License,
13244 # if you distribute this file as part of a program or library that
13245 # is built using GNU Libtool, you may include this file under the
13246 # same distribution terms that you use for the rest of that program.
13248 # GNU Libtool is distributed in the hope that it will be useful,
13249 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13250 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13251 # GNU General Public License for more details.
13253 # You should have received a copy of the GNU General Public License
13254 # along with GNU Libtool; see the file COPYING. If not, a copy
13255 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13256 # obtained by writing to the Free Software Foundation, Inc.,
13257 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13260 # The names of the tagged configurations supported by this script.
13263 # ### BEGIN LIBTOOL CONFIG
13265 # A sed program that does not truncate output.
13268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13269 Xsed="\$SED -e 1s/^X//"
13271 # A grep program that handles long lines.
13277 # A literal string matcher.
13280 # Assembler program.
13283 # DLL creation program.
13286 # Object dumper program.
13289 # Which release of libtool.m4 was used?
13290 macro_version=$macro_version
13291 macro_revision=$macro_revision
13293 # Whether or not to build shared libraries.
13294 build_libtool_libs=$enable_shared
13296 # Whether or not to build static libraries.
13297 build_old_libs=$enable_static
13299 # What type of objects to build.
13302 # Whether or not to optimize for fast installation.
13303 fast_install=$enable_fast_install
13306 host_alias=$host_alias
13310 # The build system.
13311 build_alias=$build_alias
13315 # A BSD- or MS-compatible name lister.
13318 # Whether we need soft or hard links.
13321 # What is the maximum length of a command?
13322 max_cmd_len=$max_cmd_len
13324 # Object file suffix (normally "o").
13327 # Executable file suffix (normally "").
13330 # whether the shell understands "unset".
13333 # turn spaces into newlines.
13336 # turn newlines into spaces.
13339 # How to create reloadable object files.
13340 reload_flag=$lt_reload_flag
13341 reload_cmds=$lt_reload_cmds
13343 # Method to check whether dependent libraries are shared objects.
13344 deplibs_check_method=$lt_deplibs_check_method
13346 # Command to use when deplibs_check_method == "file_magic".
13347 file_magic_cmd=$lt_file_magic_cmd
13351 AR_FLAGS=$lt_AR_FLAGS
13353 # A symbol stripping program.
13356 # Commands used to install an old-style archive.
13358 old_postinstall_cmds=$lt_old_postinstall_cmds
13359 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13364 # LTCC compiler flags.
13365 LTCFLAGS=$lt_CFLAGS
13367 # Take the output of nm and produce a listing of raw symbols and C names.
13368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13370 # Transform the output of nm in a proper C declaration.
13371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13373 # Transform the output of nm in a C name address pair.
13374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13376 # Transform the output of nm in a C name address pair when lib prefix is needed.
13377 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13379 # The name of the directory that contains temporary libtool files.
13382 # Shell to use when invoking shell scripts.
13385 # An echo program that does not interpret backslashes.
13388 # Used to examine libraries when file_magic_cmd begins with "file".
13389 MAGIC_CMD=$MAGIC_CMD
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13394 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13395 DSYMUTIL=$lt_DSYMUTIL
13397 # Tool to change global to local symbols on Mac OS X.
13400 # Tool to manipulate fat objects and archives on Mac OS X.
13403 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13406 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13407 OTOOL64=$lt_OTOOL64
13409 # Old archive suffix (normally "a").
13412 # Shared library suffix (normally ".so").
13413 shrext_cmds=$lt_shrext_cmds
13415 # The commands to extract the exported symbol list from a shared archive.
13416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13418 # Variables whose values should be saved in libtool wrapper scripts and
13419 # restored at link time.
13420 variables_saved_for_relink=$lt_variables_saved_for_relink
13422 # Do we need the "lib" prefix for modules?
13423 need_lib_prefix=$need_lib_prefix
13425 # Do we need a version for libraries?
13426 need_version=$need_version
13428 # Library versioning type.
13429 version_type=$version_type
13431 # Shared library runtime path variable.
13432 runpath_var=$runpath_var
13434 # Shared library path variable.
13435 shlibpath_var=$shlibpath_var
13437 # Is shlibpath searched before the hard-coded library search path?
13438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13440 # Format of library name prefix.
13441 libname_spec=$lt_libname_spec
13443 # List of archive names. First name is the real one, the rest are links.
13444 # The last name is the one that the linker finds with -lNAME
13445 library_names_spec=$lt_library_names_spec
13447 # The coded name of the library, if different from the real name.
13448 soname_spec=$lt_soname_spec
13450 # Command to use after installation of a shared archive.
13451 postinstall_cmds=$lt_postinstall_cmds
13453 # Command to use after uninstallation of a shared archive.
13454 postuninstall_cmds=$lt_postuninstall_cmds
13456 # Commands used to finish a libtool library installation in a directory.
13457 finish_cmds=$lt_finish_cmds
13459 # As "finish_cmds", except a single script fragment to be evaled but
13461 finish_eval=$lt_finish_eval
13463 # Whether we should hardcode library paths into libraries.
13464 hardcode_into_libs=$hardcode_into_libs
13466 # Compile-time system search path for libraries.
13467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13469 # Run-time system search path for libraries.
13470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13472 # Whether dlopen is supported.
13473 dlopen_support=$enable_dlopen
13475 # Whether dlopen of programs is supported.
13476 dlopen_self=$enable_dlopen_self
13478 # Whether dlopen of statically linked programs is supported.
13479 dlopen_self_static=$enable_dlopen_self_static
13481 # Commands to strip libraries.
13482 old_striplib=$lt_old_striplib
13483 striplib=$lt_striplib
13486 # The linker used to build libraries.
13489 # Commands used to build an old-style archive.
13490 old_archive_cmds=$lt_old_archive_cmds
13492 # A language specific compiler.
13495 # Is the compiler the GNU compiler?
13498 # Compiler flag to turn off builtin functions.
13499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13501 # How to pass a linker flag through the compiler.
13502 wl=$lt_lt_prog_compiler_wl
13504 # Additional compiler flags for building library objects.
13505 pic_flag=$lt_lt_prog_compiler_pic
13507 # Compiler flag to prevent dynamic linking.
13508 link_static_flag=$lt_lt_prog_compiler_static
13510 # Does compiler simultaneously support -c and -o options?
13511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13513 # Whether or not to add -lc for building shared libraries.
13514 build_libtool_need_lc=$archive_cmds_need_lc
13516 # Whether or not to disallow shared libs when runtime libs are static.
13517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13519 # Compiler flag to allow reflexive dlopens.
13520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13522 # Compiler flag to generate shared objects directly from archives.
13523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13525 # Whether the compiler copes with passing no objects directly.
13526 compiler_needs_object=$lt_compiler_needs_object
13528 # Create an old-style archive from a shared archive.
13529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13531 # Create a temporary old-style archive to link instead of a shared archive.
13532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13534 # Commands used to build a shared archive.
13535 archive_cmds=$lt_archive_cmds
13536 archive_expsym_cmds=$lt_archive_expsym_cmds
13538 # Commands used to build a loadable module if different from building
13539 # a shared archive.
13540 module_cmds=$lt_module_cmds
13541 module_expsym_cmds=$lt_module_expsym_cmds
13543 # Whether we are building with GNU ld or not.
13544 with_gnu_ld=$lt_with_gnu_ld
13546 # Flag that allows shared libraries with undefined symbols to be built.
13547 allow_undefined_flag=$lt_allow_undefined_flag
13549 # Flag that enforces no undefined symbols.
13550 no_undefined_flag=$lt_no_undefined_flag
13552 # Flag to hardcode \$libdir into a binary during linking.
13553 # This must work even if \$libdir does not exist
13554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13556 # If ld is used when linking, flag to hardcode \$libdir into a binary
13557 # during linking. This must work even if \$libdir does not exist.
13558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13560 # Whether we need a single "-rpath" flag with a separated argument.
13561 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13564 # DIR into the resulting binary.
13565 hardcode_direct=$hardcode_direct
13567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13568 # DIR into the resulting binary and the resulting library dependency is
13569 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13570 # library is relocated.
13571 hardcode_direct_absolute=$hardcode_direct_absolute
13573 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13574 # into the resulting binary.
13575 hardcode_minus_L=$hardcode_minus_L
13577 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13578 # into the resulting binary.
13579 hardcode_shlibpath_var=$hardcode_shlibpath_var
13581 # Set to "yes" if building a shared library automatically hardcodes DIR
13582 # into the library and all subsequent libraries and executables linked
13584 hardcode_automatic=$hardcode_automatic
13586 # Set to yes if linker adds runtime paths of dependent libraries
13587 # to runtime path list.
13588 inherit_rpath=$inherit_rpath
13590 # Whether libtool must link a program against all its dependency libraries.
13591 link_all_deplibs=$link_all_deplibs
13593 # Fix the shell variable \$srcfile for the compiler.
13594 fix_srcfile_path=$lt_fix_srcfile_path
13596 # Set to "yes" if exported symbols are required.
13597 always_export_symbols=$always_export_symbols
13599 # The commands to list exported symbols.
13600 export_symbols_cmds=$lt_export_symbols_cmds
13602 # Symbols that should not be listed in the preloaded symbols.
13603 exclude_expsyms=$lt_exclude_expsyms
13605 # Symbols that must always be exported.
13606 include_expsyms=$lt_include_expsyms
13608 # Commands necessary for linking programs (against libraries) with templates.
13609 prelink_cmds=$lt_prelink_cmds
13611 # Specify filename containing input files.
13612 file_list_spec=$lt_file_list_spec
13614 # How to hardcode a shared library path into an executable.
13615 hardcode_action=$hardcode_action
13617 # ### END LIBTOOL CONFIG
13623 cat <<\_LT_EOF >> "$cfgfile"
13624 # AIX sometimes has problems with the GCC collect2 program. For some
13625 # reason, if we set the COLLECT_NAMES environment variable, the problems
13626 # vanish in a puff of smoke.
13627 if test "X${COLLECT_NAMES+set}" != Xset; then
13629 export COLLECT_NAMES
13636 ltmain="$ac_aux_dir/ltmain.sh"
13639 # We use sed instead of cat because bash on DJGPP gets confused if
13640 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13641 # text mode, it properly converts lines to CR/LF. This bash problem
13642 # is reportedly fixed, but why not run on old versions too?
13643 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13644 || (rm -f "$cfgfile"; exit 1)
13648 cat << \_LT_EOF >> "$cfgfile"
13650 # func_dirname file append nondir_replacement
13651 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13652 # otherwise set result to NONDIR_REPLACEMENT.
13656 */*) func_dirname_result="${1%/*}${2}" ;;
13657 * ) func_dirname_result="${3}" ;;
13661 # func_basename file
13664 func_basename_result="${1##*/}"
13667 # func_dirname_and_basename file append nondir_replacement
13668 # perform func_basename and func_dirname in a single function
13670 # dirname: Compute the dirname of FILE. If nonempty,
13671 # add APPEND to the result, otherwise set result
13672 # to NONDIR_REPLACEMENT.
13673 # value returned in "$func_dirname_result"
13674 # basename: Compute filename of FILE.
13675 # value retuned in "$func_basename_result"
13676 # Implementation must be kept synchronized with func_dirname
13677 # and func_basename. For efficiency, we do not delegate to
13678 # those functions but instead duplicate the functionality here.
13679 func_dirname_and_basename ()
13682 */*) func_dirname_result="${1%/*}${2}" ;;
13683 * ) func_dirname_result="${3}" ;;
13685 func_basename_result="${1##*/}"
13688 # func_stripname prefix suffix name
13689 # strip PREFIX and SUFFIX off of NAME.
13690 # PREFIX and SUFFIX must not contain globbing or regex special
13691 # characters, hashes, percent signs, but SUFFIX may contain a leading
13692 # dot (in which case that matches only a dot).
13695 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13696 # positional parameters, so assign one to ordinary parameter first.
13697 func_stripname_result=${3}
13698 func_stripname_result=${func_stripname_result#"${1}"}
13699 func_stripname_result=${func_stripname_result%"${2}"}
13705 func_opt_split_opt=${1%%=*}
13706 func_opt_split_arg=${1#*=}
13713 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13714 *) func_lo2o_result=${1} ;;
13718 # func_xform libobj-or-source
13721 func_xform_result=${1%.*}.lo
13724 # func_arith arithmetic-term...
13727 func_arith_result=$(( $* ))
13731 # STRING may not start with a hyphen.
13734 func_len_result=${#1}
13739 *) # Bourne compatible functions.
13740 cat << \_LT_EOF >> "$cfgfile"
13742 # func_dirname file append nondir_replacement
13743 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13744 # otherwise set result to NONDIR_REPLACEMENT.
13747 # Extract subdirectory from the argument.
13748 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13749 if test "X$func_dirname_result" = "X${1}"; then
13750 func_dirname_result="${3}"
13752 func_dirname_result="$func_dirname_result${2}"
13756 # func_basename file
13759 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13763 # func_stripname prefix suffix name
13764 # strip PREFIX and SUFFIX off of NAME.
13765 # PREFIX and SUFFIX must not contain globbing or regex special
13766 # characters, hashes, percent signs, but SUFFIX may contain a leading
13767 # dot (in which case that matches only a dot).
13768 # func_strip_suffix prefix name
13772 .*) func_stripname_result=`$ECHO "X${3}" \
13773 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13774 *) func_stripname_result=`$ECHO "X${3}" \
13775 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13780 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13781 my_sed_long_arg='1s/^-[^=]*=//'
13786 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13787 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13793 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13796 # func_xform libobj-or-source
13799 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13802 # func_arith arithmetic-term...
13805 func_arith_result=`expr "$@"`
13809 # STRING may not start with a hyphen.
13812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13818 case $lt_shell_append in
13820 cat << \_LT_EOF >> "$cfgfile"
13822 # func_append var value
13823 # Append VALUE to the end of shell variable VAR.
13831 cat << \_LT_EOF >> "$cfgfile"
13833 # func_append var value
13834 # Append VALUE to the end of shell variable VAR.
13845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13846 || (rm -f "$cfgfile"; exit 1)
13848 mv -f "$cfgfile" "$ofile" ||
13849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13853 "libpng-config":F) chmod +x libpng-config ;;
13861 ac_clean_files=$ac_clean_files_save
13863 test $ac_write_fail = 0 ||
13864 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13867 # configure is writing to config.log, and then calls config.status.
13868 # config.status does its own redirection, appending to config.log.
13869 # Unfortunately, on DOS this fails, as config.log is still kept open
13870 # by configure, so config.status won't be able to write to it; its
13871 # output is simply discarded. So we exec the FD to /dev/null,
13872 # effectively closing config.log, so it can be properly (re)opened and
13873 # appended to by config.status. When coming back to configure, we
13874 # need to make the FD available again.
13875 if test "$no_create" != yes; then
13877 ac_config_status_args=
13878 test "$silent" = yes &&
13879 ac_config_status_args="$ac_config_status_args --quiet"
13881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13884 # would make configure fail if this is the last instruction.
13885 $ac_cs_success || as_fn_exit $?
13887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13889 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}