2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for libpng 1.2.34.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x
; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var
in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
144 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me
=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x
; then
176 if (eval ":") 2>/dev
/null
; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev
/null
; then
242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
243 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir
=.
249 for as_base
in sh bash ksh sh5
; do
250 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
257 for as_shell
in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
279 CONFIG_SHELL
=$as_shell
281 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix
*) set -o posix
;;
307 as_func_ret_success
() {
310 as_func_ret_failure
() {
315 if as_func_success
; then
319 echo as_func_success failed.
322 if as_func_failure
; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success
; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure
; then
336 echo as_func_ret_failure succeeded.
339 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x
; then
364 for as_var
in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no
; then
373 echo This
script requires a shell
more modern than all the
374 echo shells that I found on your system. Please
install a
375 echo modern shell
, or manually run the
script under such a
376 echo shell
if you
do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug
-autoconf@gnu.org about your system
,
438 echo including any error possibly output before this message.
439 echo This can
help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x
"$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
494 ECHO_C
= ECHO_N
= ECHO_T
=
498 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
504 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
511 rm -f conf$$ conf$$.exe conf$$.
file
512 if test -d conf$$.dir
; then
513 rm -f conf$$.dir
/conf$$.
file
516 mkdir conf$$.dir
2>/dev
/null
518 if (echo >conf$$.
file) 2>/dev
/null
; then
519 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
527 elif ln conf$$.
file conf$$
2>/dev
/null
; then
535 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
536 rmdir conf$$.dir
2>/dev
/null
538 if mkdir -p .
2>/dev
/null
; then
541 test -d .
/-p && rmdir .
/-p
545 if test -x / >/dev
/null
2>&1; then
548 if ls -dL / >/dev
/null
2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p
=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL
=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X
--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X
--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X
--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset
; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
640 for dir
in $PATH /usr
/ucb
; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho
; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin
/ksh
|| test -f /bin
/ksh
$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL
=/bin
/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
681 SHELL
="$CONFIG_SHELL"
683 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string
=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev
/null
6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix
=/usr
/local
737 ac_config_libobj_dir
=.
743 SHELL
=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME
='libpng'
747 PACKAGE_TARNAME
='libpng'
748 PACKAGE_VERSION
='1.2.34'
749 PACKAGE_STRING
='libpng 1.2.34'
750 PACKAGE_BUGREPORT
='png-mng-implement@lists.sourceforge.net'
752 ac_unique_file
="pngget.c"
753 # Factoring default headers for most tests.
754 ac_includes_default
="\
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
766 # ifdef HAVE_STDLIB_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
798 program_transform_name
840 INSTALL_STRIP_PROGRAM
850 MAINTAINER_MODE_FALSE
900 HAVE_LD_VERSION_SCRIPT_TRUE
901 HAVE_LD_VERSION_SCRIPT_FALSE
913 enable_option_checking
914 enable_maintainer_mode
915 enable_dependency_tracking
926 ac_precious_vars
='build_alias
937 # Initialize some variables set by options.
939 ac_init_version
=false
940 ac_unrecognized_opts
=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name
=s
,x
,x
,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir
='${exec_prefix}/bin'
966 sbindir
='${exec_prefix}/sbin'
967 libexecdir
='${exec_prefix}/libexec'
968 datarootdir
='${prefix}/share'
969 datadir
='${datarootdir}'
970 sysconfdir
='${prefix}/etc'
971 sharedstatedir
='${prefix}/com'
972 localstatedir
='${prefix}/var'
973 includedir
='${prefix}/include'
974 oldincludedir
='/usr/include'
975 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir
='${datarootdir}/info'
981 libdir
='${exec_prefix}/lib'
982 localedir
='${datarootdir}/locale'
983 mandir
='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\
$ac_option
997 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev
=build_alias
;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file
=config.cache
;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=no
;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir
=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir
=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_
$ac_useropt"
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval enable_
$ac_useropt=\
$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev
=exec_prefix
;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix
=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help
=long
;;
1098 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1099 ac_init_help
=recursive
;;
1100 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1101 ac_init_help
=short
;;
1103 -host | --host | --hos | --ho)
1104 ac_prev
=host_alias
;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias
=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 htmldir
=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev
=includedir
;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir
=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir
=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir
=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev
=libexecdir
;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir
=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev
=localedir
;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir
=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev
=localstatedir
;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir
=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir
=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev
=oldincludedir
;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir
=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix
=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev
=program_prefix
;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix
=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev
=program_suffix
;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix
=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev
=program_transform_name
;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name
=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir
=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 sbindir
=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1236 ac_prev
=sharedstatedir
;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 sharedstatedir
=$ac_optarg ;;
1243 -site | --site | --sit)
1245 -site=* | --site=* | --sit=*)
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir
=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev
=sysconfdir
;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir
=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev
=target_alias
;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias
=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version
=: ;;
1272 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_useropt_orig
=$ac_useropt
1278 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep
=', ';;
1286 eval with_
$ac_useropt=\
$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1329 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val
=\$
$ac_var
1370 # Remove trailing slashes.
1373 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\
$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$
]* | ?
:[\\/]* ) continue;;
1379 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted
=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir
=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted
=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456 { (exit 1); exit 1; }; }
1458 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461 { (exit 1); exit 1; }; }
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var
in $ac_precious_vars; do
1474 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1475 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1476 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1477 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures libpng 1.2.34 to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1550 --build=BUILD configure
for building on BUILD
[guessed
]
1551 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short
| recursive
) echo "Configuration of libpng 1.2.34:";;
1562 --disable-option-checking ignore unrecognized
--enable/--with options
1563 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1564 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1565 --enable-maintainer-mode enable make rules and dependencies not useful
1566 (and sometimes confusing
) to the casual installer
1567 --disable-dependency-tracking speeds up one
-time build
1568 --enable-dependency-tracking do not reject slow dependency extractors
1569 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1570 --enable-static[=PKGS
] build static libraries
[default
=yes]
1571 --enable-fast-install[=PKGS
]
1572 optimize
for fast installation
[default
=yes]
1573 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1576 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1577 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1578 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1579 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1581 --with-pkgconfigdir Use the specified pkgconfig dir
(default is
1583 --with-binconfigs Generate shell libpng
-config scripts as well as
1584 pkg
-config data
[default
=yes]
1585 --with-libpng-compat Generate the obsolete libpng.so library
1588 Some influential environment variables
:
1589 CC C compiler
command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1592 nonstandard directory
<lib dir
>
1593 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1594 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1595 you have headers
in a nonstandard directory
<include dir
>
1598 Use these variables to override the choices made by
`configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1631 .) # We are building in place.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1664 libpng configure 1.2.34
1665 generated by GNU Autoconf 2.62
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by libpng $as_me 1.2.34, which was
1679 generated by GNU Autoconf 2.62. Invocation command line was
1691 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1692 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1693 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1694 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1695 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1697 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1698 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1700 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1701 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1702 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1703 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1704 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1705 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1706 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 $as_echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808 *) $as_unset $ac_var ;;
1813 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1833 for ac_var in $ac_subst_vars
1835 eval ac_val=\$$ac_var
1837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 $as_echo "$ac_var='\''$ac_val'\''"
1843 if test -n "$ac_subst_files"; then
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1850 for ac_var in $ac_subst_files
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 $as_echo "$ac_var='\''$ac_val'\''"
1861 if test -s confdefs.h; then
1871 test "$ac_signal" != 0 &&
1872 $as_echo "$as_me: caught signal $ac_signal"
1873 $as_echo "$as_me: exit $exit_status"
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1887 # Predefined preprocessor variables.
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer an explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 ac_site_file1=$CONFIG_SITE
1920 elif test "x$prefix" != xNONE; then
1921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
1924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
1927 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1929 test "x$ac_site_file" = xNONE && continue
1930 if test -r "$ac_site_file"; then
1931 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1966 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1970 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x
$ac_old_val`
1977 ac_new_val_w=`echo x
$ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1981 ac_cache_corrupted=:
1983 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2007 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044 am__api_version='1.10'
2047 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2064 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077 # Find a good install program. We prefer a C program (faster),
2078 # so one script is as good as another. But avoid the broken or
2079 # incompatible versions:
2080 # SysV /etc/install, /usr/sbin/install
2081 # SunOS /usr/etc/install
2082 # IRIX /sbin/install
2084 # AmigaOS /C/install, which installs bootblocks on floppy discs
2085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2088 # OS/2's system install, which has a completely different semantic
2089 # ./install, which can be erroneously created by make from ./install.sh.
2090 # Reject install programs that cannot install multiple files.
2091 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2093 if test -z "$INSTALL"; then
2094 if test "${ac_cv_path_install+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 # Account for people who put trailing slashes in PATH elements.
2104 ./ | .// | /cC/* | \
2105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2124 rm -rf conftest.one conftest.two conftest.dir
2125 echo one > conftest.one
2126 echo two > conftest.two
2128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2129 test -s conftest.one && test -s conftest.two &&
2130 test -s conftest.dir/conftest.one &&
2131 test -s conftest.dir/conftest.two
2133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2146 rm -rf conftest.one conftest.two conftest.dir
2149 if test "${ac_cv_path_install+set}" = set; then
2150 INSTALL=$ac_cv_path_install
2152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for INSTALL within a source directory, because that will
2154 # break other packages using the cache if that directory is
2155 # removed, or if the value is a relative name.
2156 INSTALL=$ac_install_sh
2159 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2160 $as_echo "$INSTALL" >&6; }
2162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2163 # It thinks the first close brace ends the variable substitution.
2164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2170 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2171 $as_echo_n "checking whether build environment is sane... " >&6; }
2174 echo timestamp > conftest.file
2175 # Do `set' in a subshell so we don't clobber the current shell
's
2176 # arguments. Must try -L first in case configure is actually a
2177 # symlink; some systems play weird games with the mod time of symlinks
2178 # (eg FreeBSD returns the mod time of the symlink's containing
2181 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2182 if test "$*" = "X"; then
2184 set X
`ls -t $srcdir/configure conftest.file`
2187 if test "$*" != "X $srcdir/configure conftest.file" \
2188 && test "$*" != "X conftest.file $srcdir/configure"; then
2190 # If neither matched, then we have a broken ls. This can happen
2191 # if, for instance, CONFIG_SHELL is bash and it inherits a
2192 # broken ls alias from the environment. This has actually
2193 # happened. Such a system could not be considered "sane".
2194 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2195 alias in your environment" >&5
2196 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&2;}
2198 { (exit 1); exit 1; }; }
2201 test "$2" = conftest.
file
2207 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208 Check your system clock" >&5
2209 $as_echo "$as_me: error: newly created file is older than distributed files!
2210 Check your system clock" >&2;}
2211 { (exit 1); exit 1; }; }
2213 { $as_echo "$as_me:$LINENO: result: yes" >&5
2214 $as_echo "yes" >&6; }
2215 test "$program_prefix" != NONE
&&
2216 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2217 # Use a double $ so make ignores it.
2218 test "$program_suffix" != NONE
&&
2219 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2220 # Double any \ or $.
2221 # By default was `s,x,x', remove it if useless.
2222 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2223 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2225 # expand $ac_aux_dir to an absolute path
2226 am_aux_dir
=`cd $ac_aux_dir && pwd`
2228 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
2229 # Use eval to expand $SHELL
2230 if eval "$MISSING --run true"; then
2231 am_missing_run
="$MISSING --run "
2234 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2235 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2238 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2239 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2240 if test -z "$MKDIR_P"; then
2241 if test "${ac_cv_path_mkdir+set}" = set; then
2242 $as_echo_n "(cached) " >&6
2244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2245 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2248 test -z "$as_dir" && as_dir
=.
2249 for ac_prog
in mkdir gmkdir
; do
2250 for ac_exec_ext
in '' $ac_executable_extensions; do
2251 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2252 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2253 'mkdir (GNU coreutils) '* | \
2254 'mkdir (coreutils) '* | \
2255 'mkdir (fileutils) '4.1*)
2256 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2266 if test "${ac_cv_path_mkdir+set}" = set; then
2267 MKDIR_P
="$ac_cv_path_mkdir -p"
2269 # As a last resort, use the slow shell script. Don't cache a
2270 # value for MKDIR_P within a source directory, because that will
2271 # break other packages using the cache if that directory is
2272 # removed, or if the value is a relative name.
2273 test -d .
/--version && rmdir .
/--version
2274 MKDIR_P
="$ac_install_sh -d"
2277 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2278 $as_echo "$MKDIR_P" >&6; }
2282 [\\/$
]* | ?
:[\\/]*) ;;
2283 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2286 for ac_prog
in gawk mawk nawk
awk
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy
$ac_prog; ac_word
=$2
2290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_AWK+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2295 if test -n "$AWK"; then
2296 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir
=.
2303 for ac_exec_ext
in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_AWK
="$ac_prog"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 if test -n "$AWK"; then
2317 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2318 $as_echo "$AWK" >&6; }
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2325 test -n "$AWK" && break
2328 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2329 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2331 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2332 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
2333 $as_echo_n "(cached) " >&6
2335 cat >conftest.
make <<\_ACEOF
2338 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2343 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2345 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2349 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2350 { $as_echo "$as_me:$LINENO: result: yes" >&5
2351 $as_echo "yes" >&6; }
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2356 SET_MAKE
="MAKE=${MAKE-make}"
2359 rm -rf .tst
2>/dev
/null
2360 mkdir .tst
2>/dev
/null
2361 if test -d .tst
; then
2366 rmdir .tst
2>/dev
/null
2368 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2369 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2370 # is not polluted with repeated "-I."
2371 am__isrc
=' -I$(srcdir)'
2372 # test to see if srcdir already configured
2373 if test -f $srcdir/config.status
; then
2374 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2375 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2376 { (exit 1); exit 1; }; }
2380 # test whether we have cygpath
2381 if test -z "$CYGPATH_W"; then
2382 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2383 CYGPATH_W
='cygpath -w'
2390 # Define the identity of the package.
2395 cat >>confdefs.h
<<_ACEOF
2396 #define PACKAGE "$PACKAGE"
2400 cat >>confdefs.h
<<_ACEOF
2401 #define VERSION "$VERSION"
2404 # Some tools Automake needs.
2406 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2409 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2412 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2415 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2418 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2420 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'. However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no
; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_STRIP+set}" = set; then
2433 $as_echo_n "(cached) " >&6
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir
=.
2443 for ac_exec_ext
in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 STRIP
=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2460 { $as_echo "$as_me:$LINENO: result: no" >&5
2461 $as_echo "no" >&6; }
2466 if test -z "$ac_cv_prog_STRIP"; then
2468 # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip
; ac_word
=$2
2470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir
=.
2483 for ac_exec_ext
in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_STRIP
="strip"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2504 if test "x$ac_ct_STRIP" = x
; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned
=yes ;;
2520 STRIP
="$ac_cv_prog_STRIP"
2524 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2526 # We need awk for the "check" target. The system "awk" is bad on
2528 # Always define AMTAR for backward compatibility.
2530 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2532 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2538 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2539 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2540 # Check whether --enable-maintainer-mode was given.
2541 if test "${enable_maintainer_mode+set}" = set; then
2542 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2544 USE_MAINTAINER_MODE
=no
2547 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2549 if test $USE_MAINTAINER_MODE = yes; then
2550 MAINTAINER_MODE_TRUE
=
2551 MAINTAINER_MODE_FALSE
='#'
2553 MAINTAINER_MODE_TRUE
='#'
2554 MAINTAINER_MODE_FALSE
=
2557 MAINT
=$MAINTAINER_MODE_TRUE
2561 PNGLIB_VERSION
=1.2.34
2568 ac_config_headers
="$ac_config_headers config.h"
2571 # Checks for programs.
2573 ac_cpp
='$CPP $CPPFLAGS'
2574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC
="$CC" # Let the user override the test.
2588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir
=.
2593 for ac_exec_ext
in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2610 { $as_echo "$as_me:$LINENO: result: no" >&5
2611 $as_echo "no" >&6; }
2616 if test -z "$ac_cv_prog_CC"; then
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619 set dummy gcc
; ac_word
=$2
2620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir
=.
2633 for ac_exec_ext
in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_ac_ct_CC
="gcc"
2636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2646 if test -n "$ac_ct_CC"; then
2647 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648 $as_echo "$ac_ct_CC" >&6; }
2650 { $as_echo "$as_me:$LINENO: result: no" >&5
2651 $as_echo "no" >&6; }
2654 if test "x$ac_ct_CC" = x
; then
2657 case $cross_compiling:$ac_tool_warned in
2659 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet. If you think this
2661 configuration is useful to you, please write to autoconf@gnu.org." >&5
2662 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665 ac_tool_warned
=yes ;;
2673 if test -z "$CC"; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2676 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_CC+set}" = set; then
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC
="$CC" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 if test -n "$CC"; then
2704 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2707 { $as_echo "$as_me:$LINENO: result: no" >&5
2708 $as_echo "no" >&6; }
2714 if test -z "$CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716 set dummy cc
; ac_word
=$2
2717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC
="$CC" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2734 ac_prog_rejected
=yes
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test $ac_prog_rejected = yes; then
2746 # We found a bogon in the path, so make sure we never use it.
2747 set dummy
$ac_cv_prog_CC
2749 if test $# != 0; then
2750 # We chose a different compiler from the bogus one.
2751 # However, it has the same basename, so the bogon will be chosen
2752 # first if we set CC to just the basename; use the full file name.
2754 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2764 { $as_echo "$as_me:$LINENO: result: no" >&5
2765 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
2772 for ac_prog
in cl.exe
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC
="$CC" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$CC"; then
2803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$CC" && break
2814 if test -z "$CC"; then
2816 for ac_prog
in cl.exe
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy
$ac_prog; ac_word
=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_CC
="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$ac_ct_CC" && break
2858 if test "x$ac_ct_CC" = x
; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet. If you think this
2865 configuration is useful to you, please write to autoconf@gnu.org." >&5
2866 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869 ac_tool_warned
=yes ;;
2878 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&5
2880 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2881 See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2884 # Provide some information about the compiler.
2885 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2888 { (ac_try
="$ac_compiler --version >&5"
2890 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler --version >&5") 2>&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -v >&5"
2901 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2902 *) ac_try_echo
=$ac_try;;
2904 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2905 $as_echo "$ac_try_echo") >&5
2906 (eval "$ac_compiler -v >&5") 2>&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910 { (ac_try
="$ac_compiler -V >&5"
2912 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916 $as_echo "$ac_try_echo") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2942 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2943 $as_echo_n "checking for C compiler default output file name... " >&6; }
2944 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # The possible output files:
2947 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2950 for ac_file in $ac_files
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2959 if { (ac_try="$ac_link_default"
2961 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2962 *) ac_try_echo
=$ac_try;;
2964 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2965 $as_echo "$ac_try_echo") >&5
2966 (eval "$ac_link_default") 2>&5
2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2973 # so that the user can short-circuit this test for compilers unknown to
2975 for ac_file
in $ac_files ''
2977 test -f "$ac_file" || continue
2979 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
2982 # We found the default executable, but exeext='' is most
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2988 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
3000 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3006 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3007 $as_echo "$ac_file" >&6; }
3008 if test -z "$ac_file"; then
3009 $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.
$ac_ext >&5
3012 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3013 See \`config.log' for more details." >&5
3014 $as_echo "$as_me: error: C compiler cannot create executables
3015 See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3019 ac_exeext
=$ac_cv_exeext
3021 # Check that the compiler produces executables we can run. If not, either
3022 # the compiler is broken, or we cross compile.
3023 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3024 $as_echo_n "checking whether the C compiler works... " >&6; }
3025 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3026 # If not cross compiling, check that we can run a simple program.
3027 if test "$cross_compiling" != yes; then
3028 if { ac_try
='./$ac_file'
3029 { (case "(($ac_try" in
3030 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3034 $as_echo "$ac_try_echo") >&5
3035 (eval "$ac_try") 2>&5
3037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 if test "$cross_compiling" = maybe; then
3044 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3045 If you meant to cross compile, use \`--host'.
3046 See \`config.log' for more details.
" >&5
3047 $as_echo "$as_me: error
: cannot run C compiled programs.
3048 If you meant to cross compile
, use \
`--host'.
3049 See \`config.log
' for more details." >&2;}
3050 { (exit 1); exit 1; }; }
3054 { $as_echo "$as_me:$LINENO: result: yes" >&5
3055 $as_echo "yes" >&6; }
3057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058 ac_clean_files=$ac_clean_files_save
3059 # Check that the compiler produces executables we can run. If not, either
3060 # the compiler is broken, or we cross compile.
3061 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3062 $as_echo_n "checking whether we are cross compiling... " >&6; }
3063 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3064 $as_echo "$cross_compiling" >&6; }
3066 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { (ac_try="$ac_link"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074 $as_echo "$ac_try_echo") >&5
3075 (eval "$ac_link") 2>&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; then
3079 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3080 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3083 for ac_file
in conftest.exe conftest conftest.
*; do
3084 test -f "$ac_file" || continue
3086 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3087 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3094 See \`config.log' for more details." >&5
3095 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3100 rm -f conftest
$ac_cv_exeext
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.
$ac_ext
3105 EXEEXT
=$ac_cv_exeext
3107 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3108 $as_echo_n "checking for suffix of object files... " >&6; }
3109 if test "${ac_cv_objext+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.o conftest.obj
3128 if { (ac_try
="$ac_compile"
3130 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_compile") 2>&5
3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; then
3139 for ac_file in conftest.o conftest.obj conftest.*; do
3140 test -f "$ac_file" || continue;
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3152 See \`config.log
' for more details." >&5
3153 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details.
" >&2;}
3155 { (exit 1); exit 1; }; }
3158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3160 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3161 $as_echo "$ac_cv_objext" >&6; }
3162 OBJEXT=$ac_cv_objext
3164 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3165 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167 $as_echo_n "(cached
) " >&6
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3194 $as_echo "$ac_try_echo") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3207 $as_echo "$as_me: failed program was
:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219 if test $ac_compiler_gnu = yes; then
3224 ac_test_CFLAGS=${CFLAGS+set}
3225 ac_save_CFLAGS=$CFLAGS
3226 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3227 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 $as_echo_n "(cached
) " >&6
3231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3270 $as_echo "$as_me: failed program was
:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3296 $as_echo "$ac_try_echo") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3309 $as_echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3349 $as_echo "$as_me: failed program was
:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3364 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3365 $as_echo "$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3375 if test "$GCC" = yes; then
3381 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3382 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3383 if test "${ac_cv_prog_cc_c89+set}" = set; then
3384 $as_echo_n "(cached
) " >&6
3386 ac_cv_prog_cc_c89=no
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3412 s = g (p, va_arg (v,int));
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std. */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427 inside strings and character constants. */
3429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431 int test (int i, double x);
3432 struct s1 {int (*f) (int a);};
3433 struct s2 {int (*f) (double a);};
3434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3467 ac_cv_prog_cc_c89=$ac_arg
3469 $as_echo "$as_me: failed program was
:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext
3476 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3478 rm -f conftest.$ac_ext
3483 case "x
$ac_cv_prog_cc_c89" in
3485 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3486 $as_echo "none needed
" >&6; } ;;
3488 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3489 $as_echo "unsupported
" >&6; } ;;
3491 CC="$CC $ac_cv_prog_cc_c89"
3492 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 DEPDIR="${am__leading_dot}deps
"
3504 ac_config_commands="$ac_config_commands depfiles
"
3507 am_make=${MAKE-make}
3508 cat > confinc << 'END'
3513 # If we don't find an include directive, just comment out the code.
3514 { $as_echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3515 $as_echo_n "checking
for style of include used by
$am_make...
" >&6; }
3519 # First try GNU make style include.
3520 echo "include confinc" > confmf
3521 # We grep out `Entering directory' and `Leaving directory'
3522 # messages which can occur if `w' ends up in MAKEFLAGS.
3523 # In particular we don't look at `^make:' because GNU make might
3524 # be invoked under some other name (usually "gmake"), in which
3525 # case it prints its new name instead of `make'.
3526 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3531 # Now try BSD make style include.
3532 if test "$am__include" = "#"; then
3533 echo '.include "confinc"' > confmf
3534 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3535 am__include
=.include
3542 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3543 $as_echo "$_am_result" >&6; }
3544 rm -f confinc confmf
3546 # Check whether --enable-dependency-tracking was given.
3547 if test "${enable_dependency_tracking+set}" = set; then
3548 enableval
=$enable_dependency_tracking;
3551 if test "x$enable_dependency_tracking" != xno
; then
3552 am_depcomp
="$ac_aux_dir/depcomp"
3555 if test "x$enable_dependency_tracking" != xno; then
3565 depcc
="$CC" am_compiler_list
=
3567 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 $as_echo_n "checking dependency style of $depcc... " >&6; }
3569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3591 am_cv_CC_dependencies_compiler_type
=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595 for depmode
in $am_compiler_list; do
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3604 for i
in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub
/conftst
$i.h
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes
; then
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode
=$depmode \
3628 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3629 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3630 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3631 >/dev
/null
2>conftest.err
&&
3632 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3633 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3634 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3635 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err
||
3644 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type
=$depmode
3654 am_cv_CC_dependencies_compiler_type
=none
3658 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3659 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3660 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3666 am__fastdepCC_FALSE
='#'
3668 am__fastdepCC_TRUE
='#'
3669 am__fastdepCC_FALSE
=
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3675 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677 { (exit 1); exit 1; }; }
3679 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3680 $as_echo_n "checking build system type... " >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 ac_build_alias
=$build_alias
3685 test "x$ac_build_alias" = x
&&
3686 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x
&&
3688 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690 { (exit 1); exit 1; }; }
3691 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694 { (exit 1); exit 1; }; }
3697 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 $as_echo "$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3701 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3703 { (exit 1); exit 1; }; };;
3706 ac_save_IFS
=$IFS; IFS
='-'
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3716 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3719 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3720 $as_echo_n "checking host system type... " >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3724 if test "x$host_alias" = x
; then
3725 ac_cv_host
=$ac_cv_build
3727 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730 { (exit 1); exit 1; }; }
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 $as_echo "$ac_cv_host" >&6; }
3738 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3740 { (exit 1); exit 1; }; };;
3743 ac_save_IFS
=$IFS; IFS
='-'
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3753 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3756 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758 if test "${ac_cv_path_SED+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3761 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3762 for ac_i
in 1 2 3 4 5 6 7; do
3763 ac_script
="$ac_script$as_nl$ac_script"
3765 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
3766 $as_unset ac_script
|| ac_script
=
3767 if test -z "$SED"; then
3768 ac_path_SED_found
=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir
=.
3775 for ac_prog
in sed gsed
; do
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3779 # Check for GNU ac_path_SED and select it if it is found.
3780 # Check for GNU $ac_path_SED
3781 case `"$ac_path_SED" --version 2>&1` in
3783 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3786 $as_echo_n 0123456789 >"conftest.in"
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo '' >> "conftest.nl"
3793 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3794 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3795 ac_count
=`expr $ac_count + 1`
3796 if test $ac_count -gt ${ac_path_SED_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_SED
="$ac_path_SED"
3799 ac_path_SED_max
=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3804 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3807 $ac_path_SED_found && break 3
3812 if test -z "$ac_cv_path_SED"; then
3813 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3814 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3815 { (exit 1); exit 1; }; }
3822 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3823 $as_echo "$ac_cv_path_SED" >&6; }
3824 SED
="$ac_cv_path_SED"
3827 test -z "$SED" && SED
=sed
3828 Xsed
="$SED -e 1s/^X//"
3840 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842 if test "${ac_cv_path_GREP+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found
=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3852 test -z "$as_dir" && as_dir
=.
3853 for ac_prog
in grep ggrep
; do
3854 for ac_exec_ext
in '' $ac_executable_extensions; do
3855 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3861 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3864 $as_echo_n 0123456789 >"conftest.in"
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3872 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3873 ac_count
=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP
="$ac_path_GREP"
3877 ac_path_GREP_max
=$ac_count
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3882 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3885 $ac_path_GREP_found && break 3
3890 if test -z "$ac_cv_path_GREP"; then
3891 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3896 ac_cv_path_GREP
=$GREP
3900 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3901 $as_echo "$ac_cv_path_GREP" >&6; }
3902 GREP
="$ac_cv_path_GREP"
3905 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3906 $as_echo_n "checking for egrep... " >&6; }
3907 if test "${ac_cv_path_EGREP+set}" = set; then
3908 $as_echo_n "(cached) " >&6
3910 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3911 then ac_cv_path_EGREP
="$GREP -E"
3913 if test -z "$EGREP"; then
3914 ac_path_EGREP_found
=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3917 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3920 test -z "$as_dir" && as_dir
=.
3921 for ac_prog
in egrep; do
3922 for ac_exec_ext
in '' $ac_executable_extensions; do
3923 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927 case `"$ac_path_EGREP" --version 2>&1` in
3929 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3932 $as_echo_n 0123456789 >"conftest.in"
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 $as_echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3940 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3941 ac_count
=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP
="$ac_path_EGREP"
3945 ac_path_EGREP_max
=$ac_count
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3950 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3953 $ac_path_EGREP_found && break 3
3958 if test -z "$ac_cv_path_EGREP"; then
3959 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3960 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3961 { (exit 1); exit 1; }; }
3964 ac_cv_path_EGREP
=$EGREP
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3970 $as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP
="$ac_cv_path_EGREP"
3974 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3975 $as_echo_n "checking for fgrep... " >&6; }
3976 if test "${ac_cv_path_FGREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3979 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
3980 then ac_cv_path_FGREP
="$GREP -F"
3982 if test -z "$FGREP"; then
3983 ac_path_FGREP_found
=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_prog
in fgrep
; do
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3994 # Check for GNU ac_path_FGREP and select it if it is found.
3995 # Check for GNU $ac_path_FGREP
3996 case `"$ac_path_FGREP" --version 2>&1` in
3998 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4001 $as_echo_n 0123456789 >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'FGREP' >> "conftest.nl"
4008 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4010 ac_count
=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_FGREP
="$ac_path_FGREP"
4014 ac_path_FGREP_max
=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4022 $ac_path_FGREP_found && break 3
4027 if test -z "$ac_cv_path_FGREP"; then
4028 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4033 ac_cv_path_FGREP
=$FGREP
4038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4039 $as_echo "$ac_cv_path_FGREP" >&6; }
4040 FGREP
="$ac_cv_path_FGREP"
4043 test -z "$GREP" && GREP
=grep
4063 # Check whether --with-gnu-ld was given.
4064 if test "${with_gnu_ld+set}" = set; then
4065 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
4071 if test "$GCC" = yes; then
4072 # Check if gcc -print-prog-name=ld gives a path.
4073 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4074 $as_echo_n "checking for ld used by $CC... " >&6; }
4077 # gcc leaves a trailing carriage return which upsets mingw
4078 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4083 # Accept absolute paths.
4085 re_direlt
='/[^/][^/]*/\.\./'
4086 # Canonicalize the pathname of ld
4087 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
4089 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4091 test -z "$LD" && LD
="$ac_prog"
4094 # If it fails, then pretend we aren't using GCC.
4098 # If it is relative, then search for the first ld in PATH.
4102 elif test "$with_gnu_ld" = yes; then
4103 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4104 $as_echo_n "checking for GNU ld... " >&6; }
4106 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107 $as_echo_n "checking for non-GNU ld... " >&6; }
4109 if test "${lt_cv_path_LD+set}" = set; then
4110 $as_echo_n "(cached) " >&6
4112 if test -z "$LD"; then
4113 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4114 for ac_dir
in $PATH; do
4116 test -z "$ac_dir" && ac_dir
=.
4117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4118 lt_cv_path_LD
="$ac_dir/$ac_prog"
4119 # Check to see if the program is GNU ld. I'd rather use --version,
4120 # but apparently some variants of GNU ld only accept -v.
4121 # Break only if it was the GNU/non-GNU ld that we prefer.
4122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4123 *GNU
* | *'with BFD'*)
4124 test "$with_gnu_ld" != no
&& break
4127 test "$with_gnu_ld" != yes && break
4134 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4139 if test -n "$LD"; then
4140 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4141 $as_echo "$LD" >&6; }
4143 { $as_echo "$as_me:$LINENO: result: no" >&5
4144 $as_echo "no" >&6; }
4146 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4147 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4148 { (exit 1); exit 1; }; }
4149 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4150 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4155 case `$LD -v 2>&1 </dev/null` in
4156 *GNU
* | *'with BFD'*)
4157 lt_cv_prog_gnu_ld
=yes
4160 lt_cv_prog_gnu_ld
=no
4164 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4166 with_gnu_ld
=$lt_cv_prog_gnu_ld
4177 ac_cpp
='$CPP $CPPFLAGS'
4178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4181 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4187 if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4191 # Double quotes because CPP needs to be expanded
4192 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4195 for ac_c_preproc_warn_flag
in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.
$ac_ext <<_ACEOF
4206 cat confdefs.h
>>conftest.
$ac_ext
4207 cat >>conftest.
$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4210 # include <limits.h>
4212 # include <assert.h>
4216 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4218 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222 $as_echo "$ac_try_echo") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4235 $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 # Broken: fails on valid input.
4242 rm -f conftest.err conftest.$ac_ext
4244 # OK, works on sane cases. Now check whether nonexistent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4254 if { (ac_try="$ac_cpp conftest.$ac_ext"
4256 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4257 *) ac_try_echo
=$ac_try;;
4259 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev
/null
&& {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4271 # Broken: success on invalid input.
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4277 # Passes both tests.
4282 rm -f conftest.err conftest.
$ac_ext
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.
$ac_ext
4287 if $ac_preproc_ok; then
4299 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4300 $as_echo "$CPP" >&6; }
4302 for ac_c_preproc_warn_flag
in '' yes
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4317 # include <limits.h>
4319 # include <assert.h>
4323 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4325 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } >/dev/null && {
4337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4342 $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 # Broken: fails on valid input.
4349 rm -f conftest.err conftest.$ac_ext
4351 # OK, works on sane cases. Now check whether nonexistent headers
4352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4361 if { (ac_try="$ac_cpp conftest.$ac_ext"
4363 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4364 *) ac_try_echo
=$ac_try;;
4366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4367 $as_echo "$ac_try_echo") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1
>conftest.err
4372 cat conftest.err
>&5
4373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev
/null
&& {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4378 # Broken: success on invalid input.
4381 $as_echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4384 # Passes both tests.
4389 rm -f conftest.err conftest.
$ac_ext
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.
$ac_ext
4394 if $ac_preproc_ok; then
4397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4405 ac_cpp
='$CPP $CPPFLAGS'
4406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4412 set dummy
${ac_tool_prefix}sed; ac_word
=$2
4413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_SED+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4418 if test -n "$SED"; then
4419 ac_cv_prog_SED
="$SED" # Let the user override the test.
4421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir
=.
4426 for ac_exec_ext
in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_SED
="${ac_tool_prefix}sed"
4429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 if test -n "$SED"; then
4440 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4441 $as_echo "$SED" >&6; }
4443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$ac_cv_prog_SED"; then
4451 # Extract the first word of "sed", so it can be a program name with args.
4452 set dummy
sed; ac_word
=$2
4453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$ac_ct_SED"; then
4459 ac_cv_prog_ac_ct_SED
="$ac_ct_SED" # Let the user override the test.
4461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir
=.
4466 for ac_exec_ext
in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_SED
="sed"
4469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 ac_ct_SED
=$ac_cv_prog_ac_ct_SED
4479 if test -n "$ac_ct_SED"; then
4480 { $as_echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4481 $as_echo "$ac_ct_SED" >&6; }
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484 $as_echo "no" >&6; }
4487 if test "x$ac_ct_SED" = x
; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4493 whose name does not start with the host triplet. If you think this
4494 configuration is useful to you, please write to autoconf@gnu.org." >&5
4495 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4496 whose name does not start with the host triplet. If you think this
4497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4498 ac_tool_warned
=yes ;;
4503 SED
="$ac_cv_prog_SED"
4506 enable_win32_dll
=yes
4509 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4512 set dummy
${ac_tool_prefix}as
; ac_word
=$2
4513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_AS+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$AS"; then
4519 ac_cv_prog_AS
="$AS" # Let the user override the test.
4521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir
=.
4526 for ac_exec_ext
in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_AS
="${ac_tool_prefix}as"
4529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 if test -n "$AS"; then
4540 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4541 $as_echo "$AS" >&6; }
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544 $as_echo "no" >&6; }
4549 if test -z "$ac_cv_prog_AS"; then
4551 # Extract the first word of "as", so it can be a program name with args.
4552 set dummy as
; ac_word
=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4558 if test -n "$ac_ct_AS"; then
4559 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
4561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir
=.
4566 for ac_exec_ext
in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_AS
="as"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
4579 if test -n "$ac_ct_AS"; then
4580 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4581 $as_echo "$ac_ct_AS" >&6; }
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4587 if test "x$ac_ct_AS" = x
; then
4590 case $cross_compiling:$ac_tool_warned in
4592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4593 whose name does not start with the host triplet. If you think this
4594 configuration is useful to you, please write to autoconf@gnu.org." >&5
4595 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4596 whose name does not start with the host triplet. If you think this
4597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4598 ac_tool_warned
=yes ;;
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4608 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
4609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$DLLTOOL"; then
4615 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
4617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir
=.
4622 for ac_exec_ext
in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 DLLTOOL
=$ac_cv_prog_DLLTOOL
4635 if test -n "$DLLTOOL"; then
4636 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4637 $as_echo "$DLLTOOL" >&6; }
4639 { $as_echo "$as_me:$LINENO: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_DLLTOOL"; then
4646 ac_ct_DLLTOOL
=$DLLTOOL
4647 # Extract the first word of "dlltool", so it can be a program name with args.
4648 set dummy dlltool
; ac_word
=$2
4649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_DLLTOOL"; then
4655 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
4675 if test -n "$ac_ct_DLLTOOL"; then
4676 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4677 $as_echo "$ac_ct_DLLTOOL" >&6; }
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_DLLTOOL" = x
; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4689 whose name does not start with the host triplet. If you think this
4690 configuration is useful to you, please write to autoconf@gnu.org." >&5
4691 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4692 whose name does not start with the host triplet. If you think this
4693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4694 ac_tool_warned
=yes ;;
4696 DLLTOOL
=$ac_ct_DLLTOOL
4699 DLLTOOL
="$ac_cv_prog_DLLTOOL"
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4704 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
4705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 if test -n "$OBJDUMP"; then
4711 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
4713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir
=.
4718 for ac_exec_ext
in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
4721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 OBJDUMP
=$ac_cv_prog_OBJDUMP
4731 if test -n "$OBJDUMP"; then
4732 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4733 $as_echo "$OBJDUMP" >&6; }
4735 { $as_echo "$as_me:$LINENO: result: no" >&5
4736 $as_echo "no" >&6; }
4741 if test -z "$ac_cv_prog_OBJDUMP"; then
4742 ac_ct_OBJDUMP
=$OBJDUMP
4743 # Extract the first word of "objdump", so it can be a program name with args.
4744 set dummy objdump
; ac_word
=$2
4745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$ac_ct_OBJDUMP"; then
4751 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
4761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
4771 if test -n "$ac_ct_OBJDUMP"; then
4772 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4773 $as_echo "$ac_ct_OBJDUMP" >&6; }
4775 { $as_echo "$as_me:$LINENO: result: no" >&5
4776 $as_echo "no" >&6; }
4779 if test "x$ac_ct_OBJDUMP" = x
; then
4782 case $cross_compiling:$ac_tool_warned in
4784 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&5
4787 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned
=yes ;;
4792 OBJDUMP
=$ac_ct_OBJDUMP
4795 OBJDUMP
="$ac_cv_prog_OBJDUMP"
4801 test -z "$AS" && AS
=as
4807 test -z "$DLLTOOL" && DLLTOOL
=dlltool
4813 test -z "$OBJDUMP" && OBJDUMP
=objdump
4821 # Find a good install program. We prefer a C program (faster),
4822 # so one script is as good as another. But avoid the broken or
4823 # incompatible versions:
4824 # SysV /etc/install, /usr/sbin/install
4825 # SunOS /usr/etc/install
4826 # IRIX /sbin/install
4828 # AmigaOS /C/install, which installs bootblocks on floppy discs
4829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4832 # OS/2's system install, which has a completely different semantic
4833 # ./install, which can be erroneously created by make from ./install.sh.
4834 # Reject install programs that cannot install multiple files.
4835 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4836 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4837 if test -z "$INSTALL"; then
4838 if test "${ac_cv_path_install+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir
=.
4846 # Account for people who put trailing slashes in PATH elements.
4848 .
/ | .
// | /cC
/* | \
4849 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
4850 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4853 # OSF1 and SCO ODT 3.0 have their own names for install.
4854 # Don't use installbsd from OSF since it installs stuff as root
4856 for ac_prog
in ginstall scoinst
install; do
4857 for ac_exec_ext
in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4859 if test $ac_prog = install &&
4860 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4861 # AIX install. It has an incompatible calling convention.
4863 elif test $ac_prog = install &&
4864 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4865 # program-specific install script used by HP pwplus--don't use.
4868 rm -rf conftest.one conftest.two conftest.dir
4869 echo one
> conftest.one
4870 echo two
> conftest.two
4872 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4873 test -s conftest.one
&& test -s conftest.two
&&
4874 test -s conftest.dir
/conftest.one
&&
4875 test -s conftest.dir
/conftest.two
4877 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4890 rm -rf conftest.one conftest.two conftest.dir
4893 if test "${ac_cv_path_install+set}" = set; then
4894 INSTALL
=$ac_cv_path_install
4896 # As a last resort, use the slow shell script. Don't cache a
4897 # value for INSTALL within a source directory, because that will
4898 # break other packages using the cache if that directory is
4899 # removed, or if the value is a relative name.
4900 INSTALL
=$ac_install_sh
4903 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4904 $as_echo "$INSTALL" >&6; }
4906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4907 # It thinks the first close brace ends the variable substitution.
4908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4912 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4914 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4915 $as_echo_n "checking whether ln -s works... " >&6; }
4917 if test "$LN_S" = "ln -s"; then
4918 { $as_echo "$as_me:$LINENO: result: yes" >&5
4919 $as_echo "yes" >&6; }
4921 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4922 $as_echo "no, using $LN_S" >&6; }
4925 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4926 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4928 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4929 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
4930 $as_echo_n "(cached) " >&6
4932 cat >conftest.
make <<\_ACEOF
4935 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4938 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4940 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4942 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4946 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4947 { $as_echo "$as_me:$LINENO: result: yes" >&5
4948 $as_echo "yes" >&6; }
4951 { $as_echo "$as_me:$LINENO: result: no" >&5
4952 $as_echo "no" >&6; }
4953 SET_MAKE
="MAKE=${MAKE-make}"
4958 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4959 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4964 macro_version
='2.2.3a'
4965 macro_revision
='1.2971'
4979 ltmain
="$ac_aux_dir/ltmain.sh"
4981 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4982 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4983 if test "${lt_cv_path_NM+set}" = set; then
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$NM"; then
4987 # Let the user override the test.
4990 lt_nm_to_check
="${ac_tool_prefix}nm"
4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4992 lt_nm_to_check
="$lt_nm_to_check nm"
4994 for lt_tmp_nm
in $lt_nm_to_check; do
4995 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4996 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4998 test -z "$ac_dir" && ac_dir
=.
4999 tmp_nm
="$ac_dir/$lt_tmp_nm"
5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5001 # Check to see if the nm accepts a BSD-compat flag.
5002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5003 # nm: unknown option "B" ignored
5004 # Tru64's nm complains that /dev/null is an invalid object file
5005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5006 */dev
/null
* | *'Invalid file or object type'*)
5007 lt_cv_path_NM
="$tmp_nm -B"
5011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5013 lt_cv_path_NM
="$tmp_nm -p"
5017 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5018 continue # so that we can try to find one that supports BSD flags
5027 : ${lt_cv_path_NM=no}
5030 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5031 $as_echo "$lt_cv_path_NM" >&6; }
5032 if test "$lt_cv_path_NM" != "no"; then
5035 # Didn't find any BSD compatible name lister, look for dumpbin.
5036 if test -n "$ac_tool_prefix"; then
5037 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir
=.
5054 for ac_exec_ext
in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 DUMPBIN
=$ac_cv_prog_DUMPBIN
5067 if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5069 $as_echo "$DUMPBIN" >&6; }
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5076 test -n "$DUMPBIN" && break
5079 if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN
=$DUMPBIN
5081 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy
$ac_prog; ac_word
=$2
5085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir
=.
5098 for ac_exec_ext
in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5111 if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5113 $as_echo "$ac_ct_DUMPBIN" >&6; }
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5120 test -n "$ac_ct_DUMPBIN" && break
5123 if test "x$ac_ct_DUMPBIN" = x
; then
5126 case $cross_compiling:$ac_tool_warned in
5128 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5129 whose name does not start with the host triplet. If you think this
5130 configuration is useful to you, please write to autoconf@gnu.org." >&5
5131 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5132 whose name does not start with the host triplet. If you think this
5133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5134 ac_tool_warned
=yes ;;
5136 DUMPBIN
=$ac_ct_DUMPBIN
5141 if test "$DUMPBIN" != ":"; then
5145 test -z "$NM" && NM
=nm
5152 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5153 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5154 if test "${lt_cv_nm_interface+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5157 lt_cv_nm_interface
="BSD nm"
5158 echo "int some_variable = 0;" > conftest.
$ac_ext
5159 (eval echo "\"\$as_me:5159: $ac_compile\"" >&5)
5160 (eval "$ac_compile" 2>conftest.err
)
5161 cat conftest.err
>&5
5162 (eval echo "\"\$as_me:5162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5164 cat conftest.err
>&5
5165 (eval echo "\"\$as_me:5165: output\"" >&5)
5166 cat conftest.out
>&5
5167 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5168 lt_cv_nm_interface
="MS dumpbin"
5172 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5173 $as_echo "$lt_cv_nm_interface" >&6; }
5175 # find the maximum length of command line arguments
5176 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5177 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5178 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5186 # On DJGPP, this test can blow up pretty badly due to problems in libc
5187 # (any single argument exceeding 2000 bytes causes a buffer overrun
5188 # during glob expansion). Even if it were fixed, the result of this
5189 # check would be larger than it should be.
5190 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5194 # Under GNU Hurd, this test is not required because there is
5195 # no limit to the length of command line arguments.
5196 # Libtool will interpret -1 as no limit whatsoever
5197 lt_cv_sys_max_cmd_len
=-1;
5201 # On Win9x/ME, this test blows up -- it succeeds, but takes
5202 # about 5 minutes as the teststring grows exponentially.
5203 # Worse, since 9x/ME are not pre-emptively multitasking,
5204 # you end up with a "frozen" computer, even though with patience
5205 # the test eventually succeeds (with a max line length of 256k).
5206 # Instead, let's just punt: use the minimum linelength reported by
5207 # all of the supported platforms: 8192 (on NT/2K/XP).
5208 lt_cv_sys_max_cmd_len
=8192;
5212 # On AmigaOS with pdksh, this test takes hours, literally.
5213 # So we just punt and use a minimum line length of 8192.
5214 lt_cv_sys_max_cmd_len
=8192;
5217 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5218 # This has been around since 386BSD, at least. Likely further.
5219 if test -x /sbin
/sysctl
; then
5220 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5221 elif test -x /usr
/sbin
/sysctl
; then
5222 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5224 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5226 # And add a safety zone
5227 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5233 lt_cv_sys_max_cmd_len
=196608
5237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5239 # nice to cause kernel panics so lets avoid the loop below.
5240 # First set a reasonable default.
5241 lt_cv_sys_max_cmd_len
=16384
5243 if test -x /sbin
/sysconfig
; then
5244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5245 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5250 lt_cv_sys_max_cmd_len
=102400
5252 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5253 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5254 if test -n "$kargmax"; then
5255 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5257 lt_cv_sys_max_cmd_len
=32768
5261 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5262 if test -n "$lt_cv_sys_max_cmd_len"; then
5263 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5266 # Make teststring a little bigger before we do anything with it.
5267 # a 1K string should be a reasonable start.
5268 for i
in 1 2 3 4 5 6 7 8 ; do
5269 teststring
=$teststring$teststring
5271 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5272 # If test is not a shell built-in, we'll probably end up computing a
5273 # maximum length that is only half of the actual maximum length, but
5275 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5276 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
5277 test $i != 17 # 1/2 MB should be enough
5280 teststring
=$teststring$teststring
5282 # Only check the string length outside the loop.
5283 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5285 # Add a significant safety factor because C++ compilers can tack on
5286 # massive amounts of additional arguments before passing them to the
5287 # linker. It appears as though 1/2 is a usable value.
5288 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5295 if test -n $lt_cv_sys_max_cmd_len ; then
5296 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5299 { $as_echo "$as_me:$LINENO: result: none" >&5
5300 $as_echo "none" >&6; }
5302 max_cmd_len
=$lt_cv_sys_max_cmd_len
5313 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5315 # Try some XSI features
5318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5320 && eval 'test $(( 1 + 1 )) -eq 2 \
5321 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5323 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5324 $as_echo "$xsi_shell" >&6; }
5327 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5330 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5332 && lt_shell_append
=yes
5333 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5334 $as_echo "$lt_shell_append" >&6; }
5337 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
5347 # test EBCDIC or ASCII
5348 case `echo X|tr X '\101'` in
5349 A
) # ASCII based system
5350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5351 lt_SP2NL
='tr \040 \012'
5352 lt_NL2SP
='tr \015\012 \040\040'
5354 *) # EBCDIC based system
5355 lt_SP2NL
='tr \100 \n'
5356 lt_NL2SP
='tr \r\n \100\100'
5368 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5369 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5370 if test "${lt_cv_ld_reload_flag+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5373 lt_cv_ld_reload_flag
='-r'
5375 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5377 reload_flag
=$lt_cv_ld_reload_flag
5378 case $reload_flag in
5380 *) reload_flag
=" $reload_flag" ;;
5382 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5385 if test "$GCC" = yes; then
5386 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5388 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5402 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5403 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5404 if test "${lt_cv_deplibs_check_method+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5407 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5408 lt_cv_file_magic_test_file
=
5409 lt_cv_deplibs_check_method
='unknown'
5410 # Need to set the preceding variable on all platforms that support
5411 # interlibrary dependencies.
5412 # 'none' -- dependencies not supported.
5413 # `unknown' -- same as none, but documents that we really don't know.
5414 # 'pass_all' -- all dependencies passed with no checks.
5415 # 'test_compile' -- check by making test program.
5416 # 'file_magic [[regex]]' -- check by looking for files in library path
5417 # which responds to the $file_magic_cmd with a given extended regex.
5418 # If you have `file' or equivalent on your system and you're not sure
5419 # whether `pass_all' will *always* work, you probably want this one.
5423 lt_cv_deplibs_check_method
=pass_all
5427 lt_cv_deplibs_check_method
=pass_all
5431 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5432 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5433 lt_cv_file_magic_test_file
=/shlib
/libc.so
5437 # func_win32_libid is a shell function defined in ltmain.sh
5438 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd
='func_win32_libid'
5443 # Base MSYS/MinGW do not provide the 'file' command needed by
5444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5445 # unless we find 'file', for example because we are cross-compiling.
5446 if ( file / ) >/dev
/null
2>&1; then
5447 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd
='func_win32_libid'
5450 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5451 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5455 darwin
* | rhapsody
*)
5456 lt_cv_deplibs_check_method
=pass_all
5459 freebsd
* | dragonfly
*)
5460 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
5463 # Not sure whether the presence of OpenBSD here was a mistake.
5464 # Let's accept both of them until this is cleared up.
5465 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5466 lt_cv_file_magic_cmd
=/usr
/bin
/file
5467 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5471 lt_cv_deplibs_check_method
=pass_all
5476 lt_cv_deplibs_check_method
=pass_all
5479 hpux10.20
* | hpux11
*)
5480 lt_cv_file_magic_cmd
=/usr
/bin
/file
5483 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
5487 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]'
5488 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
5491 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5492 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
5502 irix5
* | irix6
* | nonstopux
*)
5504 *-32|*"-32 ") libmagic
=32-bit;;
5505 *-n32|*"-n32 ") libmagic
=N32
;;
5506 *-64|*"-64 ") libmagic
=64-bit;;
5507 *) libmagic
=never
-match;;
5509 lt_cv_deplibs_check_method
=pass_all
5512 # This must be Linux ELF.
5513 linux
* | k
*bsd
*-gnu)
5514 lt_cv_deplibs_check_method
=pass_all
5518 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
5519 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527 lt_cv_file_magic_cmd
=/usr
/bin
/file
5528 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5532 lt_cv_deplibs_check_method
=pass_all
5536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 osf3
* | osf4
* | osf5
*)
5544 lt_cv_deplibs_check_method
=pass_all
5548 lt_cv_deplibs_check_method
=pass_all
5552 lt_cv_deplibs_check_method
=pass_all
5555 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5556 lt_cv_deplibs_check_method
=pass_all
5560 case $host_vendor in
5562 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]'
5563 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5566 lt_cv_deplibs_check_method
=pass_all
5569 lt_cv_file_magic_cmd
='/bin/file'
5570 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5573 lt_cv_file_magic_cmd
='/bin/file'
5574 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5575 lt_cv_file_magic_test_file
=/lib
/libc.so
5578 lt_cv_deplibs_check_method
=pass_all
5581 lt_cv_deplibs_check_method
=pass_all
5587 lt_cv_deplibs_check_method
=pass_all
5592 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5593 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5594 file_magic_cmd
=$lt_cv_file_magic_cmd
5595 deplibs_check_method
=$lt_cv_deplibs_check_method
5596 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5609 if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5611 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_AR+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR
="$AR" # Let the user override the test.
5620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir
=.
5625 for ac_exec_ext
in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 if test -n "$AR"; then
5639 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5640 $as_echo "$AR" >&6; }
5642 { $as_echo "$as_me:$LINENO: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test -z "$ac_cv_prog_AR"; then
5650 # Extract the first word of "ar", so it can be a program name with args.
5651 set dummy
ar; ac_word
=$2
5652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5655 $as_echo_n "(cached) " >&6
5657 if test -n "$ac_ct_AR"; then
5658 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir
=.
5665 for ac_exec_ext
in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_ac_ct_AR
="ar"
5668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5678 if test -n "$ac_ct_AR"; then
5679 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5680 $as_echo "$ac_ct_AR" >&6; }
5682 { $as_echo "$as_me:$LINENO: result: no" >&5
5683 $as_echo "no" >&6; }
5686 if test "x$ac_ct_AR" = x
; then
5689 case $cross_compiling:$ac_tool_warned in
5691 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5692 whose name does not start with the host triplet. If you think this
5693 configuration is useful to you, please write to autoconf@gnu.org." >&5
5694 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5695 whose name does not start with the host triplet. If you think this
5696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5697 ac_tool_warned
=yes ;;
5705 test -z "$AR" && AR
=ar
5706 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5718 if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5720 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_STRIP+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5726 if test -n "$STRIP"; then
5727 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir
=.
5734 for ac_exec_ext
in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 STRIP
=$ac_cv_prog_STRIP
5747 if test -n "$STRIP"; then
5748 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5749 $as_echo "$STRIP" >&6; }
5751 { $as_echo "$as_me:$LINENO: result: no" >&5
5752 $as_echo "no" >&6; }
5757 if test -z "$ac_cv_prog_STRIP"; then
5759 # Extract the first word of "strip", so it can be a program name with args.
5760 set dummy strip
; ac_word
=$2
5761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir
=.
5774 for ac_exec_ext
in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_STRIP
="strip"
5777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5787 if test -n "$ac_ct_STRIP"; then
5788 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789 $as_echo "$ac_ct_STRIP" >&6; }
5791 { $as_echo "$as_me:$LINENO: result: no" >&5
5792 $as_echo "no" >&6; }
5795 if test "x$ac_ct_STRIP" = x
; then
5798 case $cross_compiling:$ac_tool_warned in
5800 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801 whose name does not start with the host triplet. If you think this
5802 configuration is useful to you, please write to autoconf@gnu.org." >&5
5803 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5804 whose name does not start with the host triplet. If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806 ac_tool_warned
=yes ;;
5811 STRIP
="$ac_cv_prog_STRIP"
5814 test -z "$STRIP" && STRIP
=:
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir
=.
5837 for ac_exec_ext
in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 RANLIB
=$ac_cv_prog_RANLIB
5850 if test -n "$RANLIB"; then
5851 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5852 $as_echo "$RANLIB" >&6; }
5854 { $as_echo "$as_me:$LINENO: result: no" >&5
5855 $as_echo "no" >&6; }
5860 if test -z "$ac_cv_prog_RANLIB"; then
5861 ac_ct_RANLIB
=$RANLIB
5862 # Extract the first word of "ranlib", so it can be a program name with args.
5863 set dummy ranlib
; ac_word
=$2
5864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$ac_ct_RANLIB"; then
5870 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir
=.
5877 for ac_exec_ext
in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5890 if test -n "$ac_ct_RANLIB"; then
5891 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5892 $as_echo "$ac_ct_RANLIB" >&6; }
5894 { $as_echo "$as_me:$LINENO: result: no" >&5
5895 $as_echo "no" >&6; }
5898 if test "x$ac_ct_RANLIB" = x
; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned
=yes ;;
5911 RANLIB
=$ac_ct_RANLIB
5914 RANLIB
="$ac_cv_prog_RANLIB"
5917 test -z "$RANLIB" && RANLIB
=:
5924 # Determine commands to create old-style static archives.
5925 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
5926 old_postinstall_cmds
='chmod 644 $oldlib'
5927 old_postuninstall_cmds
=
5929 if test -n "$RANLIB"; then
5932 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5935 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
5938 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
5974 # If no C compiler was specified, use CC.
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
5980 # Allow CC to be a program name with arguments.
5984 # Check for command to grab the raw symbol name followed by C symbol from nm.
5985 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5986 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5987 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5991 # These are sane defaults that work on at least a few old systems.
5992 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5994 # Character class describing NM global symbol codes.
5995 symcode
='[BCDEGRST]'
5997 # Regexp to match symbols that can be accessed directly from C.
5998 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6000 # Define system-specific variables.
6005 cygwin
* | mingw
* | pw32
*)
6006 symcode
='[ABCDGISTW]'
6009 if test "$host_cpu" = ia64
; then
6010 symcode
='[ABCDEGRST]'
6014 symcode
='[BCDEGRST]'
6017 symcode
='[BCDEGQRST]'
6028 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU
* | *'with BFD'*)
6039 symcode
='[ABCDGIRSTW]' ;;
6042 # Transform an extracted symbol line into a proper C declaration.
6043 # Some systems (esp. on ia64) link data and code symbols differently,
6044 # so use this general approach.
6045 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6047 # Transform an extracted symbol line into symbol name and symbol address
6048 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049 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'"
6051 # Handle CRLF in mingw tool chain
6055 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6059 # Try without a prefix underscore, then with it.
6060 for ac_symprfx
in "" "_"; do
6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6065 # Write the raw and C identifiers.
6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067 # Fake it for dumpbin and say T for any non-static function
6068 # and D for any global variable.
6069 # Also find C++ and __fastcall symbols from MSVC++,
6070 # which start with @ or ?.
6071 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6072 " {last_section=section; section=\$ 3};"\
6073 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074 " \$ 0!~/External *\|/{next};"\
6075 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6076 " {if(hide[section]) next};"\
6077 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6078 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6079 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6080 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6081 " ' prfx=^$ac_symprfx"
6083 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6086 # Check to see that the pipe works correctly.
6090 cat > conftest.
$ac_ext <<_LT_EOF
6095 void nm_test_func(void);
6096 void nm_test_func(void){}
6100 int main(){nm_test_var='a';nm_test_func();return(0);}
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104 (eval $ac_compile) 2>&5
6106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; then
6108 # Now try to grab the symbols.
6110 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6111 (eval $NM conftest.
$ac_objext \
| $lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && test -s "$nlist"; then
6115 # Try sorting and uniquifying the output.
6116 if sort "$nlist" | uniq > "$nlist"T
; then
6117 mv -f "$nlist"T
"$nlist"
6122 # Make sure that we snagged all the symbols we need.
6123 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6124 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6125 cat <<_LT_EOF > conftest.$ac_ext
6131 # Now generate the symbol file.
6132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6134 cat <<_LT_EOF >> conftest.$ac_ext
6136 /* The mapping between symbol names and symbols. */
6141 lt__PROGRAM__LTX_preloaded_symbols[] =
6143 { "@PROGRAM@", (void *) 0 },
6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
6146 cat <<\_LT_EOF
>> conftest.
$ac_ext
6150 /* This works around a problem
in FreeBSD linker
*/
6151 #ifdef FREEBSD_WORKAROUND
6152 static const void
*lt_preloaded_setup
() {
6153 return lt__PROGRAM__LTX_preloaded_symbols
;
6161 # Now try linking the two files.
6162 mv conftest.
$ac_objext conftstm.
$ac_objext
6163 lt_save_LIBS
="$LIBS"
6164 lt_save_CFLAGS
="$CFLAGS"
6165 LIBS
="conftstm.$ac_objext"
6166 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6174 LIBS
="$lt_save_LIBS"
6175 CFLAGS
="$lt_save_CFLAGS"
6177 echo "cannot find nm_test_func in $nlist" >&5
6180 echo "cannot find nm_test_var in $nlist" >&5
6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186 echo "$progname: failed program was:" >&5
6187 cat conftest.
$ac_ext >&5
6189 rm -rf conftest
* conftst
*
6191 # Do not use the global_symbol_pipe unless it works.
6192 if test "$pipe_works" = yes; then
6195 lt_cv_sys_global_symbol_pipe
=
6201 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202 lt_cv_sys_global_symbol_to_cdecl
=
6204 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6205 { $as_echo "$as_me:$LINENO: result: failed" >&5
6206 $as_echo "failed" >&6; }
6208 { $as_echo "$as_me:$LINENO: result: ok" >&5
6209 $as_echo "ok" >&6; }
6234 # Check whether --enable-libtool-lock was given.
6235 if test "${enable_libtool_lock+set}" = set; then
6236 enableval
=$enable_libtool_lock;
6239 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6241 # Some flags need to be propagated to the compiler or linker for good
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.
$ac_ext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>&5
6250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6264 # Find out which ABI we are using.
6265 echo '#line 6265 "configure"' > conftest.
$ac_ext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6274 LD
="${LD-ld} -melf32bsmip"
6277 LD
="${LD-ld} -melf32bmipn32"
6280 LD
="${LD-ld} -melf64bmip"
6284 case `/usr/bin/file conftest.$ac_objext` in
6300 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
6301 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.
$ac_ext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>&5
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; then
6309 case `/usr/bin/file conftest.o` in
6312 x86_64
-*kfreebsd
*-gnu)
6313 LD
="${LD-ld} -m elf_i386_fbsd"
6316 LD
="${LD-ld} -m elf_i386"
6318 ppc64
-*linux
*|powerpc64
-*linux
*)
6319 LD
="${LD-ld} -m elf32ppclinux"
6322 LD
="${LD-ld} -m elf_s390"
6325 LD
="${LD-ld} -m elf32_sparc"
6331 x86_64
-*kfreebsd
*-gnu)
6332 LD
="${LD-ld} -m elf_x86_64_fbsd"
6335 LD
="${LD-ld} -m elf_x86_64"
6337 ppc
*-*linux
*|powerpc
*-*linux
*)
6338 LD
="${LD-ld} -m elf64ppc"
6340 s390
*-*linux
*|s390
*-*tpf
*)
6341 LD
="${LD-ld} -m elf64_s390"
6344 LD
="${LD-ld} -m elf64_sparc"
6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355 SAVE_CFLAGS
="$CFLAGS"
6356 CFLAGS
="$CFLAGS -belf"
6357 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6358 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359 if test "${lt_cv_cc_needs_belf+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6363 ac_cpp
='$CPP $CPPFLAGS'
6364 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6383 rm -f conftest.
$ac_objext conftest
$ac_exeext
6384 if { (ac_try
="$ac_link"
6386 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391 (eval "$ac_link") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext && {
6401 test "$cross_compiling" = yes ||
6402 $as_test_x conftest$ac_exeext
6404 lt_cv_cc_needs_belf=yes
6406 $as_echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 lt_cv_cc_needs_belf=no
6412 rm -rf conftest.dSYM
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6423 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6424 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6426 CFLAGS="$SAVE_CFLAGS"
6430 # Find out which ABI we are using.
6431 echo 'int i;' > conftest.$ac_ext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 case `/usr
/bin
/file conftest.o
` in
6439 case $lt_cv_prog_gnu_ld in
6440 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6442 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6454 need_locks="$enable_libtool_lock"
6458 rhapsody* | darwin*)
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$DSYMUTIL"; then
6468 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6488 if test -n "$DSYMUTIL"; then
6489 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6490 $as_echo "$DSYMUTIL" >&6; }
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_DSYMUTIL"; then
6499 ac_ct_DSYMUTIL=$DSYMUTIL
6500 # Extract the first word of "dsymutil", so it can be a program name with args.
6501 set dummy dsymutil; ac_word=$2
6502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$ac_ct_DSYMUTIL"; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6528 if test -n "$ac_ct_DSYMUTIL"; then
6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6530 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_DSYMUTIL" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542 whose name does not start with the host triplet. If you think this
6543 configuration is useful to you, please write to autoconf@gnu.org." >&5
6544 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545 whose name does not start with the host triplet. If you think this
6546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547 ac_tool_warned=yes ;;
6549 DSYMUTIL=$ac_ct_DSYMUTIL
6552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6563 if test -n "$NMEDIT"; then
6564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 NMEDIT=$ac_cv_prog_NMEDIT
6584 if test -n "$NMEDIT"; then
6585 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6586 $as_echo "$NMEDIT" >&6; }
6588 { $as_echo "$as_me:$LINENO: result: no" >&5
6589 $as_echo "no" >&6; }
6594 if test -z "$ac_cv_prog_NMEDIT"; then
6595 ac_ct_NMEDIT=$NMEDIT
6596 # Extract the first word of "nmedit", so it can be a program name with args.
6597 set dummy nmedit; ac_word=$2
6598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$ac_ct_NMEDIT"; then
6604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6624 if test -n "$ac_ct_NMEDIT"; then
6625 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6626 $as_echo "$ac_ct_NMEDIT" >&6; }
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629 $as_echo "no" >&6; }
6632 if test "x$ac_ct_NMEDIT" = x; then
6635 case $cross_compiling:$ac_tool_warned in
6637 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet. If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&5
6640 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet. If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643 ac_tool_warned=yes ;;
6645 NMEDIT=$ac_ct_NMEDIT
6648 NMEDIT="$ac_cv_prog_NMEDIT"
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if test "${ac_cv_prog_LIPO+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$LIPO"; then
6660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 LIPO=$ac_cv_prog_LIPO
6680 if test -n "$LIPO"; then
6681 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6682 $as_echo "$LIPO" >&6; }
6684 { $as_echo "$as_me:$LINENO: result: no" >&5
6685 $as_echo "no" >&6; }
6690 if test -z "$ac_cv_prog_LIPO"; then
6692 # Extract the first word of "lipo", so it can be a program name with args.
6693 set dummy lipo; ac_word=$2
6694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$ac_ct_LIPO"; then
6700 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_ac_ct_LIPO="lipo"
6710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6720 if test -n "$ac_ct_LIPO"; then
6721 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6722 $as_echo "$ac_ct_LIPO" >&6; }
6724 { $as_echo "$as_me:$LINENO: result: no" >&5
6725 $as_echo "no" >&6; }
6728 if test "x$ac_ct_LIPO" = x; then
6731 case $cross_compiling:$ac_tool_warned in
6733 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734 whose name does not start with the host triplet. If you think this
6735 configuration is useful to you, please write to autoconf@gnu.org." >&5
6736 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6737 whose name does not start with the host triplet. If you think this
6738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6739 ac_tool_warned=yes ;;
6744 LIPO="$ac_cv_prog_LIPO"
6763 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6764 $as_echo_n "checking for -single_module linker flag... " >&6; }
6765 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6768 lt_cv_apple_cc_single_mod=no
6769 if test -z "${LT_MULTI_MODULE}"; then
6770 # By default we will add the -single_module flag. You can override
6771 # by either setting the environment variable LT_MULTI_MODULE
6772 # non-empty at configure time, or by adding -multi_module to the
6774 rm -rf libconftest.dylib*
6775 echo "int foo(void){return 1;}" > conftest.c
6776 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6777 -dynamiclib -Wl,-single_module conftest.c" >&5
6778 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6779 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6781 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6782 lt_cv_apple_cc_single_mod=yes
6784 cat conftest.err >&5
6786 rm -rf libconftest.dylib*
6790 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6791 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6792 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6793 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6794 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6795 $as_echo_n "(cached) " >&6
6797 lt_cv_ld_exported_symbols_list=no
6798 save_LDFLAGS=$LDFLAGS
6799 echo "_main" > conftest.sym
6800 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (ac_try="$ac_link"
6819 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6820 *) ac_try_echo
=$ac_try;;
6822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_link") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest
$ac_exeext && {
6834 test "$cross_compiling" = yes ||
6835 $as_test_x conftest
$ac_exeext
6837 lt_cv_ld_exported_symbols_list
=yes
6839 $as_echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.
$ac_ext >&5
6842 lt_cv_ld_exported_symbols_list
=no
6845 rm -rf conftest.dSYM
6846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6847 conftest
$ac_exeext conftest.
$ac_ext
6848 LDFLAGS
="$save_LDFLAGS"
6851 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6852 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6854 rhapsody
* | darwin1.
[012])
6855 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
6857 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6858 darwin
*) # darwin 5.x on
6859 # if running on 10.5 or later, the deployment target defaults
6860 # to the OS version, if on x86, and 10.4, the deployment
6861 # target defaults to 10.4. Don't you love it?
6862 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6863 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6864 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
6866 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6868 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
6872 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6873 _lt_dar_single_mod
='$single_module'
6875 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6876 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6878 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6880 if test "$DSYMUTIL" != ":"; then
6881 _lt_dsymutil
='~$DSYMUTIL $lib || :'
6889 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6890 $as_echo_n "checking for ANSI C header files... " >&6; }
6891 if test "${ac_cv_header_stdc+set}" = set; then
6892 $as_echo_n "(cached) " >&6
6894 cat >conftest.
$ac_ext <<_ACEOF
6897 cat confdefs.h
>>conftest.
$ac_ext
6898 cat >>conftest.
$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6913 rm -f conftest.
$ac_objext
6914 if { (ac_try
="$ac_compile"
6916 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6920 $as_echo "$ac_try_echo") >&5
6921 (eval "$ac_compile") 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest.$ac_objext; then
6931 ac_cv_header_stdc=yes
6933 $as_echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_header_stdc=no
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 if test $ac_cv_header_stdc = yes; then
6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then
6956 ac_cv_header_stdc=no
6962 if test $ac_cv_header_stdc = yes; then
6963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "free" >/dev/null 2>&1; then
6977 ac_cv_header_stdc=no
6983 if test $ac_cv_header_stdc = yes; then
6984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6985 if test "$cross_compiling" = yes; then
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6996 #if ((' ' & 0x0FF) == 0x020)
6997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7000 # define ISLOWER(c) \
7001 (('a' <= (c) && (c) <= 'i') \
7002 || ('j' <= (c) && (c) <= 'r') \
7003 || ('s' <= (c) && (c) <= 'z'))
7004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7012 for (i = 0; i < 256; i++)
7013 if (XOR (islower (i), ISLOWER (i))
7014 || toupper (i) != TOUPPER (i))
7019 rm -f conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7022 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7023 *) ac_try_echo
=$ac_try;;
7025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>&5
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7031 { (case "(($ac_try" in
7032 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7036 $as_echo "$ac_try_echo") >&5
7037 (eval "$ac_try") 2>&5
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7043 $as_echo "$as_me: program exited with status $ac_status" >&5
7044 $as_echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_header_stdc=no
7050 rm -rf conftest.dSYM
7051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7058 $as_echo "$ac_cv_header_stdc" >&6; }
7059 if test $ac_cv_header_stdc = yes; then
7061 cat >>confdefs.h <<\_ACEOF
7062 #define STDC_HEADERS 1
7067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7078 inttypes.h stdint.h unistd.h
7080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7082 $as_echo_n "checking for $ac_header... " >&6; }
7083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7084 $as_echo_n "(cached) " >&6
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7094 #include <$ac_header>
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7099 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7100 *) ac_try_echo
=$ac_try;;
7102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7103 $as_echo "$ac_try_echo") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1
>conftest.err
7108 cat conftest.err
>&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.
$ac_objext; then
7114 eval "$as_ac_Header=yes"
7116 $as_echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 eval "$as_ac_Header=no"
7122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7124 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7125 $as_echo "$as_val"'`
7126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 if test `eval 'as_val=${'$as_ac_Header'}
7129 $as_echo "$as_val"'` = yes; then
7130 cat >>confdefs.h
<<_ACEOF
7131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 for ac_header
in dlfcn.h
7142 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7144 $as_echo_n "checking for $ac_header... " >&6; }
7145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 $as_echo_n "(cached) " >&6
7148 cat >conftest.
$ac_ext <<_ACEOF
7151 cat confdefs.h
>>conftest.
$ac_ext
7152 cat >>conftest.
$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7156 #include <$ac_header>
7158 rm -f conftest.
$ac_objext
7159 if { (ac_try
="$ac_compile"
7161 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165 $as_echo "$ac_try_echo") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 eval "$as_ac_Header=yes"
7178 $as_echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 eval "$as_ac_Header=no"
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 ac_res=`eval 'as_val=${'$as_ac_Header'}
7187 $as_echo "$as_val"'`
7188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7189 $as_echo "$ac_res" >&6; }
7190 if test `eval 'as_val=${'$as_ac_Header'}
7191 $as_echo "$as_val"'` = yes; then
7192 cat >>confdefs.h <<_ACEOF
7193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210 # Check whether --enable-shared was given.
7211 if test "${enable_shared+set}" = set; then
7212 enableval=$enable_shared; p=${PACKAGE-default}
7214 yes) enable_shared=yes ;;
7215 no) enable_shared=no ;;
7218 # Look at the argument we got. We use all the common list separators.
7219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7220 for pkg in $enableval; do
7222 if test "X$pkg" = "X$p"; then
7241 # Check whether --enable-static was given.
7242 if test "${enable_static+set}" = set; then
7243 enableval=$enable_static; p=${PACKAGE-default}
7245 yes) enable_static=yes ;;
7246 no) enable_static=no ;;
7249 # Look at the argument we got. We use all the common list separators.
7250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7251 for pkg in $enableval; do
7253 if test "X$pkg" = "X$p"; then
7273 # Check whether --with-pic was given.
7274 if test "${with_pic+set}" = set; then
7275 withval=$with_pic; pic_mode="$withval"
7281 test -z "$pic_mode" && pic_mode=default
7289 # Check whether --enable-fast-install was given.
7290 if test "${enable_fast_install+set}" = set; then
7291 enableval=$enable_fast_install; p=${PACKAGE-default}
7293 yes) enable_fast_install=yes ;;
7294 no) enable_fast_install=no ;;
7296 enable_fast_install=no
7297 # Look at the argument we got. We use all the common list separators.
7298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299 for pkg in $enableval; do
7301 if test "X$pkg" = "X$p"; then
7302 enable_fast_install=yes
7309 enable_fast_install=yes
7322 # This can be used to rebuild libtool when needed
7323 LIBTOOL_DEPS="$ltmain"
7325 # Always use our own libtool.
7326 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7352 test -z "$LN_S" && LN_S="ln -s"
7367 if test -n "${ZSH_VERSION+set}" ; then
7368 setopt NO_GLOB_SUBST
7371 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7372 $as_echo_n "checking for objdir... " >&6; }
7373 if test "${lt_cv_objdir+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7376 rm -f .libs 2>/dev/null
7377 mkdir .libs 2>/dev/null
7378 if test -d .libs; then
7381 # MS-DOS does not allow filenames that begin with a dot.
7384 rmdir .libs 2>/dev/null
7386 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7387 $as_echo "$lt_cv_objdir" >&6; }
7388 objdir=$lt_cv_objdir
7394 cat >>confdefs.h <<_ACEOF
7395 #define LT_OBJDIR "$lt_cv_objdir/"
7416 # AIX sometimes has problems with the GCC collect2 program. For some
7417 # reason, if we set the COLLECT_NAMES environment variable, the problems
7418 # vanish in a puff of smoke.
7419 if test "X${COLLECT_NAMES+set}" != Xset; then
7421 export COLLECT_NAMES
7426 # Sed substitution that helps us do robust quoting. It backslashifies
7427 # metacharacters that are still active within double-quoted strings.
7428 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
7430 # Same as above, but do not quote variable references.
7431 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
7433 # Sed substitution to delay expansion of an escaped shell variable in a
7434 # double_quote_subst'ed string.
7435 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7437 # Sed substitution to delay expansion of an escaped single quote.
7438 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7440 # Sed substitution to avoid accidental globbing in evaled expressions
7441 no_glob_subst='s/\*/\\\*/g'
7445 can_build_shared=yes
7447 # All known linkers require a `.a' archive for static linking (except MSVC,
7448 # which needs '.lib').
7451 with_gnu_ld="$lt_cv_prog_gnu_ld"
7454 old_CFLAGS="$CFLAGS"
7456 # Set sane defaults for various variables
7457 test -z "$CC" && CC=cc
7458 test -z "$LTCC" && LTCC=$CC
7459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7460 test -z "$LD" && LD=ld
7461 test -z "$ac_objext" && ac_objext=o
7463 for cc_temp in $compiler""; do
7465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7471 cc_basename=`$ECHO "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
7474 # Only perform the check for file, if the check method requires it
7475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7476 case $deplibs_check_method in
7478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7479 { $as_echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
7480 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
7481 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7482 $as_echo_n "(cached
) " >&6
7486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7489 lt_save_MAGIC_CMD="$MAGIC_CMD"
7490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7491 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7492 for ac_dir in $ac_dummy; do
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f $ac_dir/${ac_tool_prefix}file; then
7496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7497 if test -n "$file_magic_test_file"; then
7498 case $deplibs_check_method in
7500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7503 $EGREP "$file_magic_regex" > /dev/null; then
7508 *** Warning: the command libtool uses to detect shared libraries,
7509 *** $file_magic_cmd, produces output that libtool cannot recognize.
7510 *** The result is that libtool may fail to recognize shared libraries
7511 *** as such. This will affect the creation of libtool libraries that
7512 *** depend on shared libraries, but programs linked with such libtool
7513 *** libraries will work regardless of this problem. Nevertheless, you
7514 *** may want to report the problem to your system manager and/or to
7515 *** bug-libtool@gnu.org
7525 MAGIC_CMD="$lt_save_MAGIC_CMD"
7530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531 if test -n "$MAGIC_CMD"; then
7532 { $as_echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
7533 $as_echo "$MAGIC_CMD" >&6; }
7535 { $as_echo "$as_me:$LINENO: result
: no
" >&5
7536 $as_echo "no
" >&6; }
7543 if test -z "$lt_cv_path_MAGIC_CMD"; then
7544 if test -n "$ac_tool_prefix"; then
7545 { $as_echo "$as_me:$LINENO: checking
for file" >&5
7546 $as_echo_n "checking
for file...
" >&6; }
7547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7548 $as_echo_n "(cached
) " >&6
7552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7555 lt_save_MAGIC_CMD="$MAGIC_CMD"
7556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7558 for ac_dir in $ac_dummy; do
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f $ac_dir/file; then
7562 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7563 if test -n "$file_magic_test_file"; then
7564 case $deplibs_check_method in
7566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569 $EGREP "$file_magic_regex" > /dev/null; then
7574 *** Warning: the command libtool uses to detect shared libraries,
7575 *** $file_magic_cmd, produces output that libtool cannot recognize.
7576 *** The result is that libtool may fail to recognize shared libraries
7577 *** as such. This will affect the creation of libtool libraries that
7578 *** depend on shared libraries, but programs linked with such libtool
7579 *** libraries will work regardless of this problem. Nevertheless, you
7580 *** may want to report the problem to your system manager and/or to
7581 *** bug-libtool@gnu.org
7591 MAGIC_CMD="$lt_save_MAGIC_CMD"
7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597 if test -n "$MAGIC_CMD"; then
7598 { $as_echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
7599 $as_echo "$MAGIC_CMD" >&6; }
7601 { $as_echo "$as_me:$LINENO: result
: no
" >&5
7602 $as_echo "no
" >&6; }
7615 # Use C for the default configuration in the libtool script
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625 # Source file extension for C test sources.
7628 # Object file extension for compiled C test sources.
7632 # Code to be used in simple compile tests
7633 lt_simple_compile_test_code="int some_variable
= 0;"
7635 # Code to be used in simple link tests
7636 lt_simple_link_test_code='int main(){return(0);}'
7644 # If no C compiler was specified, use CC.
7647 # If no C compiler flags were specified, use CFLAGS.
7648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7650 # Allow CC to be a program name with arguments.
7653 # Save the default compiler, since it gets overwritten when the other
7654 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7655 compiler_DEFAULT=$CC
7657 # save warnings/boilerplate of simple test code
7658 ac_outfile=conftest.$ac_objext
7659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661 _lt_compiler_boilerplate=`cat conftest.err`
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_linker_boilerplate=`cat conftest.err`
7671 if test -n "$compiler"; then
7673 lt_prog_compiler_no_builtin_flag=
7675 if test "$GCC" = yes; then
7676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7678 { $as_echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
7679 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 $as_echo_n "(cached
) " >&6
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.
", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\
$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$?
= $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7713 { $as_echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7729 lt_prog_compiler_wl=
7730 lt_prog_compiler_pic=
7731 lt_prog_compiler_static=
7733 { $as_echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
7734 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
7736 if test "$GCC" = yes; then
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_static='-static'
7742 # All AIX code is PIC.
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7752 # see comment about AmigaOS4 .so support
7753 lt_prog_compiler_pic='-fPIC'
7756 # FIXME: we need at least 68020 code to build shared libraries, but
7757 # adding the `-m68020' flag to GCC prevents building anything better,
7759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7765 # PIC is the default for these OSes.
7768 mingw* | cygwin* | pw32* | os2*)
7769 # This hack is so that the source file can tell whether it is being
7770 # built for inclusion in a dll (and should export symbols for example).
7771 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7772 # (--disable-auto-import) libraries
7773 lt_prog_compiler_pic='-DDLL_EXPORT'
7776 darwin* | rhapsody*)
7777 # PIC is the default on this platform
7778 # Common symbols not allowed in MH_DYLIB files
7779 lt_prog_compiler_pic='-fno-common'
7783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7790 lt_prog_compiler_pic='-fPIC'
7796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7797 # Instead, we relocate shared libraries at runtime.
7801 # Just because we use GCC doesn't mean we suddenly get shared libraries
7802 # on systems that don't support them.
7803 lt_prog_compiler_can_build_shared=no
7808 # QNX uses GNU C++, but need to define -shared option too, otherwise
7810 lt_prog_compiler_pic='-fPIC -shared'
7814 if test -d /usr/nec; then
7815 lt_prog_compiler_pic=-Kconform_pic
7820 lt_prog_compiler_pic='-fPIC'
7824 # PORTME Check for flag to pass linker flags through the system compiler.
7827 lt_prog_compiler_wl='-Wl,'
7828 if test "$host_cpu" = ia64; then
7829 # AIX 5 now supports IA64 processor
7830 lt_prog_compiler_static='-Bstatic'
7832 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7836 mingw* | cygwin* | pw32* | os2*)
7837 # This hack is so that the source file can tell whether it is being
7838 # built for inclusion in a dll (and should export symbols for example).
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7842 hpux9* | hpux10* | hpux11*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7851 lt_prog_compiler_pic='+Z'
7854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855 lt_prog_compiler_static='${wl}-a ${wl}archive'
7858 irix5* | irix6* | nonstopux*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC (with -KPIC) is the default.
7861 lt_prog_compiler_static='-non_shared'
7864 linux* | k*bsd*-gnu)
7865 case $cc_basename in
7866 icc* | ecc* | ifort*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-static'
7871 pgcc* | pgf77* | pgf90* | pgf95*)
7872 # Portland Group compilers (*not* the Pentium gcc compiler,
7873 # which looks to be a dead project)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-fpic'
7876 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl='-Wl,'
7880 # All Alpha code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7884 # IBM XL C 8.0/Fortran 10.1 on PPC
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-qpic'
7887 lt_prog_compiler_static='-qstaticlink'
7890 case `$CC -V 2>&1 | sed 5q` in
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl='-Wl,'
7898 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_wl=''
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7914 # QNX uses GNU C++, but need to define -shared option too, otherwise
7916 lt_prog_compiler_pic='-fPIC -shared'
7919 osf3* | osf4* | osf5*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # All OSF/1 code is PIC.
7922 lt_prog_compiler_static='-non_shared'
7926 lt_prog_compiler_static='-non_shared'
7930 lt_prog_compiler_pic='-KPIC'
7931 lt_prog_compiler_static='-Bstatic'
7932 case $cc_basename in
7934 lt_prog_compiler_wl='-Qoption ld ';;
7936 lt_prog_compiler_wl='-Wl,';;
7941 lt_prog_compiler_wl='-Qoption ld '
7942 lt_prog_compiler_pic='-PIC'
7943 lt_prog_compiler_static='-Bstatic'
7946 sysv4 | sysv4.2uw2* | sysv4.3*)
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7953 if test -d /usr/nec ;then
7954 lt_prog_compiler_pic='-Kconform_pic'
7955 lt_prog_compiler_static='-Bstatic'
7959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_can_build_shared=no
7971 lt_prog_compiler_pic='-pic'
7972 lt_prog_compiler_static='-Bstatic'
7976 lt_prog_compiler_can_build_shared=no
7982 # For platforms which do not support PIC, -DPIC is meaningless:
7984 lt_prog_compiler_pic=
7987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7990 { $as_echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
7991 $as_echo "$lt_prog_compiler_pic" >&6; }
7999 # Check to make sure the PIC flag actually works.
8001 if test -n "$lt_prog_compiler_pic"; then
8002 { $as_echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8003 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8004 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8005 $as_echo_n "(cached
) " >&6
8007 lt_cv_prog_compiler_pic_works=no
8008 ac_outfile=conftest.$ac_objext
8009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8011 # Insert the option either (1) after the last *FLAGS variable, or
8012 # (2) before a word containing "conftest.
", or (3) at the end.
8013 # Note that $ac_compile itself does not contain backslashes and begins
8014 # with a dollar sign (not a hyphen), so the echo should work correctly.
8015 # The option is referenced via a variable to avoid confusing sed.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\
$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>conftest.err)
8023 cat conftest.err >&5
8024 echo "$as_me:8024: \$?
= $ac_status" >&5
8025 if (exit $ac_status) && test -s "$ac_outfile"; then
8026 # The compiler can only warn and ignore the option if not recognized
8027 # So say no if there are warnings other than the usual output.
8028 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8031 lt_cv_prog_compiler_pic_works=yes
8037 { $as_echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_pic_works" >&5
8038 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8040 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8041 case $lt_prog_compiler_pic in
8043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8046 lt_prog_compiler_pic=
8047 lt_prog_compiler_can_build_shared=no
8058 # Check to make sure the static flag actually works.
8060 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8061 { $as_echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8062 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8063 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8064 $as_echo_n "(cached
) " >&6
8066 lt_cv_prog_compiler_static_works=no
8067 save_LDFLAGS="$LDFLAGS"
8068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8071 # The linker can only warn and ignore the option if not recognized
8072 # So say no if there are warnings
8073 if test -s conftest.err; then
8074 # Append any errors to the config.log.
8075 cat conftest.err 1>&5
8076 $ECHO "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8078 if diff conftest.exp conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_static_works=yes
8082 lt_cv_prog_compiler_static_works=yes
8086 LDFLAGS="$save_LDFLAGS"
8089 { $as_echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_static_works" >&5
8090 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8092 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8095 lt_prog_compiler_static=
8104 { $as_echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8105 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8106 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8107 $as_echo_n "(cached
) " >&6
8109 lt_cv_prog_compiler_c_o=no
8110 $RM -r conftest 2>/dev/null
8114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8116 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.
", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 lt_compile=`echo "$ac_compile" | $SED \
8122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8124 -e 's:$: $lt_compiler_flag:'`
8125 (eval echo "\"\
$as_me:8125: $lt_compile\"" >&5)
8126 (eval "$lt_compile" 2>out/conftest.err)
8128 cat out/conftest.err >&5
8129 echo "$as_me:8129: \$?
= $ac_status" >&5
8130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings
8134 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_c_o=yes
8142 # SGI C++ compiler will create directory out/ii_files/ for
8143 # template instantiation
8144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8145 $RM out/* && rmdir out
8151 { $as_echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
8152 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8159 { $as_echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8160 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8161 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8162 $as_echo_n "(cached
) " >&6
8164 lt_cv_prog_compiler_c_o=no
8165 $RM -r conftest 2>/dev/null
8169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.
", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 lt_compile=`echo "$ac_compile" | $SED \
8177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179 -e 's:$: $lt_compiler_flag:'`
8180 (eval echo "\"\
$as_me:8180: $lt_compile\"" >&5)
8181 (eval "$lt_compile" 2>out/conftest.err)
8183 cat out/conftest.err >&5
8184 echo "$as_me:8184: \$?
= $ac_status" >&5
8185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings
8189 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_c_o=yes
8197 # SGI C++ compiler will create directory out/ii_files/ for
8198 # template instantiation
8199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8200 $RM out/* && rmdir out
8206 { $as_echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
8207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8212 hard_links="nottested
"
8213 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8214 # do not overwrite the value of need_locks provided by the user
8215 { $as_echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
8216 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
8219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8221 ln conftest.a conftest.b 2>&5 || hard_links=no
8222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8223 { $as_echo "$as_me:$LINENO: result
: $hard_links" >&5
8224 $as_echo "$hard_links" >&6; }
8225 if test "$hard_links" = no; then
8226 { $as_echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
8227 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
8239 { $as_echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
8240 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
8243 allow_undefined_flag=
8244 always_export_symbols=no
8246 archive_expsym_cmds=
8247 compiler_needs_object=no
8248 enable_shared_with_static_runtimes=no
8249 export_dynamic_flag_spec=
8250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8251 hardcode_automatic=no
8253 hardcode_direct_absolute=no
8254 hardcode_libdir_flag_spec=
8255 hardcode_libdir_flag_spec_ld=
8256 hardcode_libdir_separator=
8258 hardcode_shlibpath_var=unsupported
8260 link_all_deplibs=unknown
8263 old_archive_from_new_cmds=
8264 old_archive_from_expsyms_cmds=
8265 thread_safe_flag_spec=
8266 whole_archive_flag_spec=
8267 # include_expsyms should be a list of space-separated symbols to be *always*
8268 # included in the symbol list
8270 # exclude_expsyms can be an extended regexp of symbols to exclude
8271 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8272 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8273 # as well as any symbol that contains `d'.
8274 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8276 # platforms (ab)use it in PIC code, but their linkers get confused if
8277 # the symbol is explicitly referenced. Since portable code cannot
8278 # rely on this symbol name, it's probably fine to never include it in
8279 # preloaded symbol tables.
8280 # Exclude shared library initialization/finalization symbols.
8281 extract_expsyms_cmds=
8284 cygwin* | mingw* | pw32*)
8285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8286 # When not using gcc, we currently assume that we are using
8287 # Microsoft Visual C++.
8288 if test "$GCC" != yes; then
8293 # we just hope/assume this is gcc and not c89 (= MSVC++)
8302 if test "$with_gnu_ld" = yes; then
8303 # If archive_cmds runs LD, not CC, wlarc should be empty
8306 # Set some defaults for GNU ld with shared library support. These
8307 # are reset later if shared libraries are not supported. Putting them
8308 # here allows them to be overridden if necessary.
8309 runpath_var=LD_RUN_PATH
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 export_dynamic_flag_spec='${wl}--export-dynamic'
8312 # ancient GNU ld didn't support --whole-archive et. al.
8313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8316 whole_archive_flag_spec=
8318 supports_anon_versioning=no
8319 case `$LD -v 2>&1` in
8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323 *\ 2.11.*) ;; # other 2.11 versions
8324 *) supports_anon_versioning=yes ;;
8327 # See if GNU ld supports shared libraries.
8330 # On AIX/PPC, the GNU linker is very broken
8331 if test "$host_cpu" != ia64; then
8335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336 *** to be unable to reliably create shared libraries on AIX.
8337 *** Therefore, libtool is disabling shared libraries support. If you
8338 *** really care for shared libraries, you may want to modify your PATH
8339 *** so that a non-GNU linker is found, and then restart.
8348 # see comment about AmigaOS4 .so support
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds=''
8353 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)'
8354 hardcode_libdir_flag_spec
='-L$libdir'
8355 hardcode_minus_L
=yes
8361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
8362 allow_undefined_flag
=unsupported
8363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8364 # support --undefined. This deserves some investigation. FIXME
8365 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 cygwin
* | mingw
* | pw32
*)
8372 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8373 # as there is no search path for DLLs.
8374 hardcode_libdir_flag_spec
='-L$libdir'
8375 allow_undefined_flag
=unsupported
8376 always_export_symbols
=no
8377 enable_shared_with_static_runtimes
=yes
8378 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8380 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
8381 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8382 # If the export-symbols file already is a .def file (1st line
8383 # is EXPORTS), use it as is; otherwise, prepend...
8384 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8385 cp $export_symbols $output_objdir/$soname.def;
8387 echo EXPORTS > $output_objdir/$soname.def;
8388 cat $export_symbols >> $output_objdir/$soname.def;
8390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8398 hardcode_shlibpath_var
=no
8399 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8400 export_dynamic_flag_spec
='${wl}-E'
8401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8402 # Instead, shared libraries are loaded at an image base (0x10000000 by
8403 # default) and relocated if they conflict, which is a slow very memory
8404 # consuming and fragmenting process. To avoid this, we pick a random,
8405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8407 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8408 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'
8411 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8413 if test "$host_os" = linux
-dietlibc; then
8414 case $cc_basename in
8415 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8418 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
8419 && test "$tmp_diet" = no
8422 tmp_sharedflag
='-shared'
8423 case $cc_basename,$host_cpu in
8424 pgcc
*) # Portland Group C compiler
8425 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'
8426 tmp_addflag
=' $pic_flag'
8428 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8429 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'
8430 tmp_addflag
=' $pic_flag -Mnomain' ;;
8431 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8432 tmp_addflag
=' -i_dynamic' ;;
8433 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8434 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8435 ifc
* | ifort
*) # Intel Fortran compiler
8436 tmp_addflag
=' -nofor_main' ;;
8437 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8438 tmp_sharedflag
='-qmkshrobj'
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ C
*) # Sun C 5.9
8443 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'
8444 compiler_needs_object
=yes
8445 tmp_sharedflag
='-G' ;;
8446 *Sun\ F
*) # Sun Fortran 8.3
8447 tmp_sharedflag
='-G' ;;
8449 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 if test "x$supports_anon_versioning" = xyes
; then
8452 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8454 echo "local: *; };" >> $output_objdir/$libname.ver~
8455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8458 case $cc_basename in
8460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8461 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8462 hardcode_libdir_flag_spec
=
8463 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8464 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8465 if test "x$supports_anon_versioning" = xyes
; then
8466 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8468 echo "local: *; };" >> $output_objdir/$libname.ver~
8469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8479 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
8480 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8483 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
8493 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8494 *** create shared libraries on Solaris systems. Therefore, libtool
8495 *** is disabling shared libraries support. We urge you to upgrade GNU
8496 *** binutils to release 2.9.1 or newer. Another option is to modify
8497 *** your PATH or compiler configuration so that the native linker is
8498 *** used, and then restart.
8501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
8502 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8509 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8510 case `$LD -v 2>&1` in
8511 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
8515 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8516 *** reliably create shared libraries on SCO systems. Therefore, libtool
8517 *** is disabling shared libraries support. We urge you to upgrade GNU
8518 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8519 *** your PATH or compiler configuration so that the native linker is
8520 *** used, and then restart.
8525 # For security reasons, it is highly recommended that you always
8526 # use absolute paths for naming shared libraries, and exclude the
8527 # DT_RUNPATH tag from executables and libraries. But doing so
8528 # requires that you compile everything twice, which is a pain.
8529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
8530 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8531 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8541 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_shlibpath_var
=no
8548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
8549 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8557 if test "$ld_shlibs" = no
; then
8559 hardcode_libdir_flag_spec
=
8560 export_dynamic_flag_spec
=
8561 whole_archive_flag_spec
=
8564 # PORTME fill in a description of your system's linker (not GNU ld)
8567 allow_undefined_flag
=unsupported
8568 always_export_symbols
=yes
8569 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'
8570 # Note: this linker hardcodes the directories in LIBPATH if there
8571 # are no directories specified by -L.
8572 hardcode_minus_L
=yes
8573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8574 # Neither direct hardcoding nor static linking is supported with a
8576 hardcode_direct
=unsupported
8581 if test "$host_cpu" = ia64
; then
8582 # On IA64, the linker does run time linking by default, so we don't
8583 # have to do anything special.
8584 aix_use_runtimelinking
=no
8585 exp_sym_flag
='-Bexport'
8588 # If we're using GNU nm, then we don't want the "-C" option.
8589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8590 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
8591 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'
8593 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'
8595 aix_use_runtimelinking
=no
8597 # Test if we are trying to use run time linking or normal
8598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8599 # need to do runtime linking.
8600 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8601 for ld_flag
in $LDFLAGS; do
8602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8603 aix_use_runtimelinking
=yes
8610 exp_sym_flag
='-bexport'
8611 no_entry_flag
='-bnoentry'
8614 # When large executables or shared objects are built, AIX ld can
8615 # have problems creating the table of contents. If linking a library
8616 # or program results in "error TOC overflow" add -mminimal-toc to
8617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8622 hardcode_direct_absolute
=yes
8623 hardcode_libdir_separator
=':'
8624 link_all_deplibs
=yes
8625 file_list_spec
='${wl}-f,'
8627 if test "$GCC" = yes; then
8628 case $host_os in aix4.
[012]|aix4.
[012].
*)
8629 # We only want to do this on AIX 4.2 and lower, the check
8630 # below for broken collect2 doesn't work under 4.3+
8631 collect2name
=`${CC} -print-prog-name=collect2`
8632 if test -f "$collect2name" &&
8633 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
8635 # We have reworked collect2
8638 # We have old collect2
8639 hardcode_direct
=unsupported
8640 # It fails to find uninstalled libraries when the uninstalled
8641 # path is not listed in the libpath. Setting hardcode_minus_L
8642 # to unsupported forces relinking
8643 hardcode_minus_L
=yes
8644 hardcode_libdir_flag_spec
='-L$libdir'
8645 hardcode_libdir_separator
=
8649 shared_flag
='-shared'
8650 if test "$aix_use_runtimelinking" = yes; then
8651 shared_flag
="$shared_flag "'${wl}-G'
8655 if test "$host_cpu" = ia64
; then
8656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8657 # chokes on -Wl,-G. The following line is correct:
8660 if test "$aix_use_runtimelinking" = yes; then
8661 shared_flag
='${wl}-G'
8663 shared_flag
='${wl}-bM:SRE'
8668 # It seems that -bexpall does not export symbols beginning with
8669 # underscore (_), so it is better to generate a list of symbols to export.
8670 always_export_symbols
=yes
8671 if test "$aix_use_runtimelinking" = yes; then
8672 # Warning - without using the other runtime loading flags (-brtl),
8673 # -berok will link without error, but may produce a broken library.
8674 allow_undefined_flag
='-berok'
8675 # Determine the default libpath from the value encoded in an
8677 cat >conftest.
$ac_ext <<_ACEOF
8680 cat confdefs.h
>>conftest.
$ac_ext
8681 cat >>conftest.
$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8692 rm -f conftest.
$ac_objext conftest
$ac_exeext
8693 if { (ac_try
="$ac_link"
8695 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700 (eval "$ac_link") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext && {
8710 test "$cross_compiling" = yes ||
8711 $as_test_x conftest$ac_exeext
8714 lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8721 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
8722 # Check for a 64-bit object if we didn't find anything.
8723 if test -z "$aix_libpath"; then
8724 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8733 rm -rf conftest.dSYM
8734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735 conftest$ac_exeext conftest.$ac_ext
8736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739 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"
8741 if test "$host_cpu" = ia64; then
8742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743 allow_undefined_flag="-z nodefs"
8744 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"
8746 # Determine the default libpath from the value encoded in an
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8766 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8767 *) ac_try_echo
=$ac_try;;
8769 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8770 $as_echo "$ac_try_echo") >&5
8771 (eval "$ac_link") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1
>conftest.err
8775 cat conftest.err
>&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest
$ac_exeext && {
8781 test "$cross_compiling" = yes ||
8782 $as_test_x conftest
$ac_exeext
8785 lt_aix_libpath_sed
='
8786 /Import File Strings/,/^$/ {
8792 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793 # Check for a 64-bit object if we didn't find anything.
8794 if test -z "$aix_libpath"; then
8795 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.
$ac_ext >&5
8804 rm -rf conftest.dSYM
8805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8806 conftest
$ac_exeext conftest.
$ac_ext
8807 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8809 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8810 # Warning - without using the other run time loading flags,
8811 # -berok will link without error, but may produce a broken library.
8812 no_undefined_flag
=' ${wl}-bernotok'
8813 allow_undefined_flag
=' ${wl}-berok'
8814 # Exported symbols can be pulled into shared objects from archives
8815 whole_archive_flag_spec
='$convenience'
8816 archive_cmds_need_lc
=yes
8817 # This is similar to how AIX traditionally builds its shared libraries.
8818 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'
8826 # see comment about AmigaOS4 .so support
8827 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds
=''
8831 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)'
8832 hardcode_libdir_flag_spec
='-L$libdir'
8833 hardcode_minus_L
=yes
8839 export_dynamic_flag_spec
=-rdynamic
8842 cygwin
* | mingw
* | pw32
*)
8843 # When not using gcc, we currently assume that we are using
8844 # Microsoft Visual C++.
8845 # hardcode_libdir_flag_spec is actually meaningless, as there is
8846 # no search path for DLLs.
8847 hardcode_libdir_flag_spec
=' '
8848 allow_undefined_flag
=unsupported
8849 # Tell ltmain to make .lib files, not .a files.
8851 # Tell ltmain to make .dll files, not .so files.
8853 # FIXME: Setting linknames here is a bad hack.
8854 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8855 # The linker will automatically build a .lib file if we build a DLL.
8856 old_archive_from_new_cmds
='true'
8857 # FIXME: Should let the user specify the lib program.
8858 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8859 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8860 enable_shared_with_static_runtimes
=yes
8863 darwin
* | rhapsody
*)
8866 archive_cmds_need_lc
=no
8868 hardcode_automatic
=yes
8869 hardcode_shlibpath_var
=unsupported
8870 whole_archive_flag_spec
=''
8871 link_all_deplibs
=yes
8872 allow_undefined_flag
="$_lt_dar_allow_undefined"
8873 if test "$GCC" = "yes"; then
8874 output_verbose_link_cmd
=echo
8875 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8876 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8877 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}"
8878 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}"
8887 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec
='-L$libdir'
8889 hardcode_shlibpath_var
=no
8896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8897 # support. Future versions do this automatically, but an explicit c++rt0.o
8898 # does not break anything, and helps significantly (at the cost of a little
8901 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8902 hardcode_libdir_flag_spec
='-R$libdir'
8904 hardcode_shlibpath_var
=no
8907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8909 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_minus_L
=yes
8912 hardcode_shlibpath_var
=no
8915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8916 freebsd
* | dragonfly
*)
8917 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8918 hardcode_libdir_flag_spec
='-R$libdir'
8920 hardcode_shlibpath_var
=no
8924 if test "$GCC" = yes; then
8925 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'
8927 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'
8929 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8930 hardcode_libdir_separator
=:
8933 # hardcode_minus_L: Not really in the search PATH,
8934 # but as the default location of the library.
8935 hardcode_minus_L
=yes
8936 export_dynamic_flag_spec
='${wl}-E'
8940 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8941 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8945 if test "$with_gnu_ld" = no
; then
8946 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8947 hardcode_libdir_flag_spec_ld
='+b $libdir'
8948 hardcode_libdir_separator
=:
8950 hardcode_direct_absolute
=yes
8951 export_dynamic_flag_spec
='${wl}-E'
8952 # hardcode_minus_L: Not really in the search PATH,
8953 # but as the default location of the library.
8954 hardcode_minus_L
=yes
8959 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8962 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8968 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8980 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8984 if test "$with_gnu_ld" = no
; then
8985 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8986 hardcode_libdir_separator
=:
8991 hardcode_shlibpath_var
=no
8995 hardcode_direct_absolute
=yes
8996 export_dynamic_flag_spec
='${wl}-E'
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L
=yes
9006 irix5
* | irix6
* | nonstopux
*)
9007 if test "$GCC" = yes; then
9008 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'
9009 # Try to use the -exported_symbol ld option, if it does not
9010 # work, assume that -exports_file does not work either and
9011 # implicitly export all symbols.
9012 save_LDFLAGS
="$LDFLAGS"
9013 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9014 cat >conftest.
$ac_ext <<_ACEOF
9017 rm -f conftest.
$ac_objext conftest
$ac_exeext
9018 if { (ac_try
="$ac_link"
9020 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024 $as_echo "$ac_try_echo") >&5
9025 (eval "$ac_link") 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9038 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'
9041 $as_echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9047 rm -rf conftest.dSYM
9048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LDFLAGS="$save_LDFLAGS"
9052 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'
9053 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'
9055 archive_cmds_need_lc='no'
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 hardcode_libdir_separator=:
9059 link_all_deplibs=yes
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9068 hardcode_libdir_flag_spec='-R$libdir'
9070 hardcode_shlibpath_var=no
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_shlibpath_var=no
9085 if test -f /usr/libexec/ld.so; then
9087 hardcode_shlibpath_var=no
9088 hardcode_direct_absolute=yes
9089 if test -z "`echo __ELF__
| $CC -E - | $GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093 export_dynamic_flag_spec='${wl}-E'
9096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 allow_undefined_flag=unsupported
9115 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'
9116 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9120 if test "$GCC" = yes; then
9121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9122 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'
9124 allow_undefined_flag=' -expect_unresolved \*'
9125 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'
9127 archive_cmds_need_lc='no'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 hardcode_libdir_separator=:
9132 osf4* | osf5*) # as osf3* with the addition of -msym flag
9133 if test "$GCC" = yes; then
9134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135 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'
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138 allow_undefined_flag=' -expect_unresolved \*'
9139 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'
9140 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~
9141 $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'
9143 # Both c and cxx compiler support -rpath directly
9144 hardcode_libdir_flag_spec='-rpath $libdir'
9146 archive_cmds_need_lc='no'
9147 hardcode_libdir_separator=:
9151 no_undefined_flag=' -z defs'
9152 if test "$GCC" = yes; then
9154 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9156 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9158 case `$CC -V 2>&1` in
9161 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9167 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9169 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 hardcode_shlibpath_var=no
9176 solaris2.[0-5] | solaris2.[0-5].*) ;;
9178 # The compiler driver will combine and reorder linker options,
9179 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9180 # but is careful enough not to reorder.
9181 # Supported since Solaris 2.6 (maybe 2.5.1?)
9182 if test "$GCC" = yes; then
9183 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9185 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9189 link_all_deplibs
=yes
9193 if test "x$host_vendor" = xsequent
; then
9194 # Use $CC to link under sequent, because it throws in some extra .o
9195 # files that make .init and .fini sections work.
9196 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec
='-L$libdir'
9202 hardcode_minus_L
=yes
9203 hardcode_shlibpath_var
=no
9207 case $host_vendor in
9209 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct
=yes # is this really true???
9213 ## LD is ld it makes a PLAMLIB
9214 ## CC just makes a GrossModule.
9215 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9216 reload_cmds
='$CC -r -o $output$reload_objs'
9220 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9224 runpath_var
='LD_RUN_PATH'
9225 hardcode_shlibpath_var
=no
9229 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_shlibpath_var
=no
9231 export_dynamic_flag_spec
='-Bexport'
9235 if test -d /usr
/nec
; then
9236 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var
=no
9238 runpath_var
=LD_RUN_PATH
9239 hardcode_runpath_var
=yes
9244 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9245 no_undefined_flag
='${wl}-z,text'
9246 archive_cmds_need_lc
=no
9247 hardcode_shlibpath_var
=no
9248 runpath_var
='LD_RUN_PATH'
9250 if test "$GCC" = yes; then
9251 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 sysv5
* | sco3.2v5
* | sco5v6
*)
9260 # Note: We can NOT use -z defs as we might desire, because we do not
9261 # link with -lc, and that would cause any symbols used from libc to
9262 # always be unresolved, which means just about no library would
9263 # ever link correctly. If we're not using GNU ld we use -z text
9264 # though, which does catch some bad symbols but isn't as heavy-handed
9266 no_undefined_flag
='${wl}-z,text'
9267 allow_undefined_flag
='${wl}-z,nodefs'
9268 archive_cmds_need_lc
=no
9269 hardcode_shlibpath_var
=no
9270 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9271 hardcode_libdir_separator
=':'
9272 link_all_deplibs
=yes
9273 export_dynamic_flag_spec
='${wl}-Bexport'
9274 runpath_var
='LD_RUN_PATH'
9276 if test "$GCC" = yes; then
9277 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_libdir_flag_spec
='-L$libdir'
9288 hardcode_shlibpath_var
=no
9296 if test x
$host_vendor = xsni
; then
9298 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9299 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9305 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9306 $as_echo "$ld_shlibs" >&6; }
9307 test "$ld_shlibs" = no
&& can_build_shared
=no
9309 with_gnu_ld
=$with_gnu_ld
9326 # Do we need to explicitly link libc?
9328 case "x$archive_cmds_need_lc" in
9330 # Assume -lc should be added
9331 archive_cmds_need_lc
=yes
9333 if test "$enable_shared" = yes && test "$GCC" = yes; then
9334 case $archive_cmds in
9336 # FIXME: we may have to deal with multi-command sequences.
9339 # Test whether the compiler implicitly links with -lc since on some
9340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9341 # to ld, don't add -lc before -lgcc.
9342 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9343 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9345 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9348 (eval $ac_compile) 2>&5
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } 2>conftest.err
; then
9354 libobjs
=conftest.
$ac_objext
9356 wl
=$lt_prog_compiler_wl
9357 pic_flag
=$lt_prog_compiler_pic
9363 lt_save_allow_undefined_flag
=$allow_undefined_flag
9364 allow_undefined_flag
=
9365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9366 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }
9371 archive_cmds_need_lc
=no
9373 archive_cmds_need_lc
=yes
9375 allow_undefined_flag
=$lt_save_allow_undefined_flag
9377 cat conftest.err
1>&5
9380 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9381 $as_echo "$archive_cmds_need_lc" >&6; }
9544 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9547 if test "$GCC" = yes; then
9549 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9550 *) lt_awk_arg
="/^libraries:/" ;;
9552 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9553 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev
/null
; then
9554 # if the path contains ";" then we assume it to be the separator
9555 # otherwise default to the standard path separator (i.e. ":") - it is
9556 # assumed that no part of a normal pathname contains ";" but that should
9557 # okay in the real world where ";" in dirpaths is itself problematic.
9558 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9560 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9562 # Ok, now we have the path, separated by spaces, we can step through it
9563 # and add multilib dir if necessary.
9564 lt_tmp_lt_search_path_spec
=
9565 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9566 for lt_sys_path
in $lt_search_path_spec; do
9567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9568 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9570 test -d "$lt_sys_path" && \
9571 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9574 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9575 BEGIN {RS=" "; FS="/|\n";} {
9578 for (lt_i = NF; lt_i > 0; lt_i--) {
9579 if ($lt_i != "" && $lt_i != ".") {
9580 if ($lt_i == "..") {
9583 if (lt_count == 0) {
9584 lt_foo="/" $lt_i lt_foo;
9591 if (lt_foo != "") { lt_freq[lt_foo]++; }
9592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9594 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9596 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9599 libname_spec
='lib$name'
9607 shlibpath_overrides_runpath
=unknown
9609 dynamic_linker
="$host_os ld.so"
9610 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9611 need_lib_prefix
=unknown
9612 hardcode_into_libs
=no
9614 # when you set need_version to no, make sure it does not cause -set_version
9615 # flags to be left without arguments
9616 need_version
=unknown
9621 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9622 shlibpath_var
=LIBPATH
9624 # AIX 3 has no versioning support, so we append a major version to the name.
9625 soname_spec
='${libname}${release}${shared_ext}$major'
9632 hardcode_into_libs
=yes
9633 if test "$host_cpu" = ia64
; then
9634 # AIX 5 supports IA64
9635 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9636 shlibpath_var
=LD_LIBRARY_PATH
9638 # With GCC up to 2.95.x, collect2 would create an import file
9639 # for dependence libraries. The import file would start with
9640 # the line `#! .'. This would cause the generated library to
9641 # depend on `.', always an invalid library. This was fixed in
9642 # development snapshots of GCC prior to 3.0.
9644 aix4
| aix4.
[01] | aix4.
[01].
*)
9645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
9654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9655 # soname into executable. Probably we can add versioning support to
9656 # collect2, so additional links can be useful in future.
9657 if test "$aix_use_runtimelinking" = yes; then
9658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9659 # instead of lib<name>.a to let people know that these are not
9660 # typical AIX shared libraries.
9661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 # We preserve .a as extension for shared libraries through AIX4.2
9664 # and later when we are not doing run time linking.
9665 library_names_spec
='${libname}${release}.a $libname.a'
9666 soname_spec
='${libname}${release}${shared_ext}$major'
9668 shlibpath_var
=LIBPATH
9675 # Since July 2007 AmigaOS4 officially supports .so libraries.
9676 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 library_names_spec
='$libname.ixlibrary $libname.a'
9681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9682 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'
9688 library_names_spec
='${libname}${shared_ext}'
9689 dynamic_linker
="$host_os ld.so"
9690 shlibpath_var
=LIBRARY_PATH
9696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec
='${libname}${release}${shared_ext}$major'
9698 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9699 shlibpath_var
=LD_LIBRARY_PATH
9700 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9701 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9702 # the default ld.so.conf also contains /usr/contrib/lib and
9703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9704 # libtool to hard-code these into programs
9707 cygwin
* | mingw
* | pw32
*)
9708 version_type
=windows
9713 case $GCC,$host_os in
9714 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
9715 library_names_spec
='$libname.dll.a'
9716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9717 postinstall_cmds
='base_file=`basename \${file}`~
9718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9719 dldir=$destdir/`dirname \$dlpath`~
9720 test -d \$dldir || mkdir -p \$dldir~
9721 $install_prog $dir/$dlname \$dldir/$dlname~
9722 chmod a+x \$dldir/$dlname~
9723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9726 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9727 dlpath=$dir/\$dldll~
9729 shlibpath_overrides_runpath
=yes
9733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9734 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
9735 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9738 # MinGW DLLs use traditional 'lib' prefix
9739 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
9740 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
9742 # It is most probably a Windows format PATH printed by
9743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9744 # path with ; separators, and with drive letters. We can handle the
9745 # drive letters (cygwin fileutils understands them), so leave them,
9746 # especially as we might pass files found there to a mingw objdump,
9747 # which wouldn't understand a cygwinified path. Ahh.
9748 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9750 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9754 # pw32 DLLs use 'pw' prefix rather than 'lib'
9755 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
9761 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
9764 dynamic_linker
='Win32 ld.exe'
9765 # FIXME: first we should search . and the directory the executable is in
9769 darwin
* | rhapsody
*)
9770 dynamic_linker
="$host_os dyld"
9774 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9775 soname_spec
='${libname}${release}${major}$shared_ext'
9776 shlibpath_overrides_runpath
=yes
9777 shlibpath_var
=DYLD_LIBRARY_PATH
9778 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9780 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9781 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789 soname_spec
='${libname}${release}${shared_ext}$major'
9790 shlibpath_var
=LD_LIBRARY_PATH
9797 freebsd
* | dragonfly
*)
9798 # DragonFly does not have aout. When/if they implement a new
9799 # versioning mechanism, adjust this.
9800 if test -x /usr
/bin
/objformat
; then
9801 objformat
=`/usr/bin/objformat`
9804 freebsd
[123]*) objformat
=aout
;;
9808 version_type
=freebsd
-$objformat
9809 case $version_type in
9811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9816 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9820 shlibpath_var
=LD_LIBRARY_PATH
9823 shlibpath_overrides_runpath
=yes
9825 freebsd3.
[01]* | freebsdelf3.
[01]*)
9826 shlibpath_overrides_runpath
=yes
9827 hardcode_into_libs
=yes
9829 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9830 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9831 shlibpath_overrides_runpath
=no
9832 hardcode_into_libs
=yes
9834 *) # from 4.6 on, and DragonFly
9835 shlibpath_overrides_runpath
=yes
9836 hardcode_into_libs
=yes
9845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846 soname_spec
='${libname}${release}${shared_ext}$major'
9847 shlibpath_var
=LD_LIBRARY_PATH
9848 hardcode_into_libs
=yes
9851 hpux9
* | hpux10
* | hpux11
*)
9852 # Give a soname corresponding to the major version so that dld.sl refuses to
9853 # link against other versions.
9860 hardcode_into_libs
=yes
9861 dynamic_linker
="$host_os dld.so"
9862 shlibpath_var
=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec
='${libname}${release}${shared_ext}$major'
9866 if test "X$HPUX_IA64_MODE" = X32
; then
9867 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9869 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9871 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9875 hardcode_into_libs
=yes
9876 dynamic_linker
="$host_os dld.sl"
9877 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9878 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec
='${libname}${release}${shared_ext}$major'
9881 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9886 dynamic_linker
="$host_os dld.sl"
9887 shlibpath_var
=SHLIB_PATH
9888 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec
='${libname}${release}${shared_ext}$major'
9893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894 postinstall_cmds
='chmod 555 $lib'
9901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902 soname_spec
='${libname}${release}${shared_ext}$major'
9903 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9904 shlibpath_var
=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath
=no
9906 hardcode_into_libs
=yes
9909 irix5
* | irix6
* | nonstopux
*)
9911 nonstopux
*) version_type
=nonstopux
;;
9913 if test "$lt_cv_prog_gnu_ld" = yes; then
9921 soname_spec
='${libname}${release}${shared_ext}$major'
9922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9924 irix5
* | nonstopux
*)
9928 case $LD in # libtool.m4 will add one of these switches to LD
9929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930 libsuff
= shlibsuff
= libmagic
=32-bit;;
9931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9935 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
9939 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9940 shlibpath_overrides_runpath
=no
9941 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9943 hardcode_into_libs
=yes
9946 # No shared lib support for Linux oldld, aout, or coff.
9947 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9951 # This must be Linux ELF.
9952 linux
* | k
*bsd
*-gnu)
9956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec
='${libname}${release}${shared_ext}$major'
9958 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959 shlibpath_var
=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath
=no
9961 # Some binutils ld are patched to set DT_RUNPATH
9962 save_LDFLAGS
=$LDFLAGS
9964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9966 cat >conftest.
$ac_ext <<_ACEOF
9969 cat confdefs.h
>>conftest.
$ac_ext
9970 cat >>conftest.
$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9981 rm -f conftest.
$ac_objext conftest
$ac_exeext
9982 if { (ac_try
="$ac_link"
9984 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988 $as_echo "$ac_try_echo") >&5
9989 (eval "$ac_link") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest$ac_exeext && {
9999 test "$cross_compiling" = yes ||
10000 $as_test_x conftest$ac_exeext
10002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10003 shlibpath_overrides_runpath=yes
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10013 rm -rf conftest.dSYM
10014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS=$save_LDFLAGS
10017 libdir=$save_libdir
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
10026 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' ' '`
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10046 dynamic_linker='NetBSD (a.out) ld.so'
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 dynamic_linker='NetBSD ld.elf_so'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='ldqnx.so'
10078 sys_lib_dlsearch_path_spec="/usr/lib"
10080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10083 *) need_version=no ;;
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 if test -z "`echo __ELF__
| $CC -E - | $GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10090 openbsd2.[89] | openbsd2.[89].*)
10091 shlibpath_overrides_runpath=no
10094 shlibpath_overrides_runpath=yes
10098 shlibpath_overrides_runpath=yes
10103 libname_spec='$name'
10106 library_names_spec='$libname${shared_ext} $libname.a'
10107 dynamic_linker='OS/2 ld.exe'
10108 shlibpath_var=LIBPATH
10111 osf3* | osf4* | osf5*)
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 hardcode_into_libs=yes
10135 # ldd complains unless libraries are executable
10136 postinstall_cmds='chmod +x $lib'
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes
10145 if test "$with_gnu_ld" = yes; then
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_vendor in
10158 shlibpath_overrides_runpath=no
10160 runpath_var=LD_RUN_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10175 if test -d /usr/nec ;then
10177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10178 soname_spec='$libname${shared_ext}.$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 version_type=freebsd-elf
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10191 hardcode_into_libs=yes
10192 if test "$with_gnu_ld" = yes; then
10193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10202 sys_lib_dlsearch_path_spec='/usr/lib'
10206 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10210 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 hardcode_into_libs=yes
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10227 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 $as_echo "$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10236 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10237 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10239 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10240 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10329 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10330 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10332 if test -n "$hardcode_libdir_flag_spec" ||
10333 test -n "$runpath_var" ||
10334 test "X$hardcode_automatic" = "Xyes" ; then
10336 # We can hardcode non-existent directories.
10337 if test "$hardcode_direct" != no &&
10338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10339 # have to relink, otherwise we might link with an installed library
10340 # when we should be linking with a yet-to-be-installed one
10341 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10342 test "$hardcode_minus_L" != no; then
10343 # Linking always hardcodes the temporary library directory.
10344 hardcode_action=relink
10346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10347 hardcode_action=immediate
10350 # We cannot hardcode anything, or else we can only hardcode existing
10352 hardcode_action=unsupported
10354 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10355 $as_echo "$hardcode_action" >&6; }
10357 if test "$hardcode_action" = relink ||
10358 test "$inherit_rpath" = yes; then
10359 # Fast installation is not supported
10360 enable_fast_install=no
10361 elif test "$shlibpath_overrides_runpath" = yes ||
10362 test "$enable_shared" = no; then
10363 # Fast installation is not necessary
10364 enable_fast_install=needless
10372 if test "x$enable_dlopen" != xyes; then
10373 enable_dlopen=unknown
10374 enable_dlopen_self=unknown
10375 enable_dlopen_self_static=unknown
10382 lt_cv_dlopen="load_add_on"
10384 lt_cv_dlopen_self=yes
10388 lt_cv_dlopen="LoadLibrary"
10393 lt_cv_dlopen="dlopen"
10398 # if libdl is installed we need to link against it
10399 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10402 $as_echo_n "(cached) " >&6
10404 ac_check_lib_save_LIBS=$LIBS
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10432 *) ac_try_echo
=$ac_try;;
10434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10435 $as_echo "$ac_try_echo") >&5
10436 (eval "$ac_link") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1
>conftest.err
10440 cat conftest.err
>&5
10441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest
$ac_exeext && {
10446 test "$cross_compiling" = yes ||
10447 $as_test_x conftest
$ac_exeext
10449 ac_cv_lib_dl_dlopen
=yes
10451 $as_echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.
$ac_ext >&5
10454 ac_cv_lib_dl_dlopen
=no
10457 rm -rf conftest.dSYM
10458 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10459 conftest
$ac_exeext conftest.
$ac_ext
10460 LIBS
=$ac_check_lib_save_LIBS
10462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10464 if test $ac_cv_lib_dl_dlopen = yes; then
10465 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10468 lt_cv_dlopen
="dyld"
10470 lt_cv_dlopen_self
=yes
10477 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10478 $as_echo_n "checking for shl_load... " >&6; }
10479 if test "${ac_cv_func_shl_load+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10482 cat >conftest.
$ac_ext <<_ACEOF
10485 cat confdefs.h
>>conftest.
$ac_ext
10486 cat >>conftest.
$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10490 #define shl_load innocuous_shl_load
10492 /* System header to define __stub macros and hopefully few prototypes,
10493 which can conflict with char shl_load (); below.
10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10495 <limits.h> exists even on freestanding compilers. */
10498 # include <limits.h>
10500 # include <assert.h>
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined __stub_shl_load || defined __stub___shl_load
10522 return shl_load ();
10527 rm -f conftest.
$ac_objext conftest
$ac_exeext
10528 if { (ac_try
="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535 (eval "$ac_link") 2>conftest.er1
10537 grep -v '^ *+' conftest.er1 >conftest.err
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest$ac_exeext && {
10545 test "$cross_compiling" = yes ||
10546 $as_test_x conftest$ac_exeext
10548 ac_cv_func_shl_load=yes
10550 $as_echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_func_shl_load=no
10556 rm -rf conftest.dSYM
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10560 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10561 $as_echo "$ac_cv_func_shl_load" >&6; }
10562 if test $ac_cv_func_shl_load = yes; then
10563 lt_cv_dlopen="shl_load"
10565 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10566 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10567 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10570 ac_check_lib_save_LIBS=$LIBS
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10589 return shl_load ();
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (ac_try="$ac_link"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10598 *) ac_try_echo
=$ac_try;;
10600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10601 $as_echo "$ac_try_echo") >&5
10602 (eval "$ac_link") 2>conftest.er1
10604 grep -v '^ *+' conftest.er1
>conftest.err
10606 cat conftest.err
>&5
10607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest
$ac_exeext && {
10612 test "$cross_compiling" = yes ||
10613 $as_test_x conftest
$ac_exeext
10615 ac_cv_lib_dld_shl_load
=yes
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.
$ac_ext >&5
10620 ac_cv_lib_dld_shl_load
=no
10623 rm -rf conftest.dSYM
10624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10625 conftest
$ac_exeext conftest.
$ac_ext
10626 LIBS
=$ac_check_lib_save_LIBS
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630 if test $ac_cv_lib_dld_shl_load = yes; then
10631 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10633 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10634 $as_echo_n "checking for dlopen... " >&6; }
10635 if test "${ac_cv_func_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10638 cat >conftest.
$ac_ext <<_ACEOF
10641 cat confdefs.h
>>conftest.
$ac_ext
10642 cat >>conftest.
$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646 #define dlopen innocuous_dlopen
10648 /* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char dlopen (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10654 # include <limits.h>
10656 # include <assert.h>
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined __stub_dlopen || defined __stub___dlopen
10683 rm -f conftest.
$ac_objext conftest
$ac_exeext
10684 if { (ac_try
="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest$ac_exeext
10704 ac_cv_func_dlopen=yes
10706 $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_func_dlopen=no
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10716 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10717 $as_echo "$ac_cv_func_dlopen" >&6; }
10718 if test $ac_cv_func_dlopen = yes; then
10719 lt_cv_dlopen="dlopen"
10721 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10724 $as_echo_n "(cached) " >&6
10726 ac_check_lib_save_LIBS=$LIBS
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (ac_try="$ac_link"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10754 *) ac_try_echo
=$ac_try;;
10756 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10757 $as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1
>conftest.err
10762 cat conftest.err
>&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest
$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest
$ac_exeext
10771 ac_cv_lib_dl_dlopen
=yes
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.
$ac_ext >&5
10776 ac_cv_lib_dl_dlopen
=no
10779 rm -rf conftest.dSYM
10780 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10781 conftest
$ac_exeext conftest.
$ac_ext
10782 LIBS
=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10785 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786 if test $ac_cv_lib_dl_dlopen = yes; then
10787 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10789 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10790 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10794 ac_check_lib_save_LIBS
=$LIBS
10795 LIBS
="-lsvld $LIBS"
10796 cat >conftest.
$ac_ext <<_ACEOF
10799 cat confdefs.h
>>conftest.
$ac_ext
10800 cat >>conftest.
$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10818 rm -f conftest.
$ac_objext conftest
$ac_exeext
10819 if { (ac_try
="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10839 ac_cv_lib_svld_dlopen=yes
10841 $as_echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_lib_svld_dlopen=no
10847 rm -rf conftest.dSYM
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10853 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10854 if test $ac_cv_lib_svld_dlopen = yes; then
10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10857 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10858 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10862 ac_check_lib_save_LIBS=$LIBS
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10881 return dld_link ();
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10890 *) ac_try_echo
=$ac_try;;
10892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10893 $as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1
>conftest.err
10898 cat conftest.err
>&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest
$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest
$ac_exeext
10907 ac_cv_lib_dld_dld_link
=yes
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.
$ac_ext >&5
10912 ac_cv_lib_dld_dld_link
=no
10915 rm -rf conftest.dSYM
10916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10917 conftest
$ac_exeext conftest.
$ac_ext
10918 LIBS
=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922 if test $ac_cv_lib_dld_dld_link = yes; then
10923 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10944 if test "x$lt_cv_dlopen" != xno
; then
10950 case $lt_cv_dlopen in
10952 save_CPPFLAGS
="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10955 save_LDFLAGS
="$LDFLAGS"
10956 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10959 LIBS
="$lt_cv_dlopen_libs $LIBS"
10961 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10962 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963 if test "${lt_cv_dlopen_self+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self
=cross
10969 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10970 lt_status
=$lt_dlunknown
10971 cat > conftest.
$ac_ext <<_LT_EOF
10972 #line 10972 "configure"
10973 #include "confdefs.h"
10982 # define LT_DLGLOBAL RTLD_GLOBAL
10985 # define LT_DLGLOBAL DL_GLOBAL
10987 # define LT_DLGLOBAL 0
10991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993 #ifndef LT_DLLAZY_OR_NOW
10995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # define LT_DLLAZY_OR_NOW DL_NOW
11006 # define LT_DLLAZY_OR_NOW 0
11014 extern "C" void exit (int);
11017 void fnord() { int i=42;}
11020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11021 int status = $lt_dlunknown;
11025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11026 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11027 /* dlclose (self); */
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11040 (.
/conftest
; exit; ) >&5 2>/dev
/null
11042 case x
$lt_status in
11043 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11044 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11045 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11048 # compilation failed
11049 lt_cv_dlopen_self
=no
11056 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11057 $as_echo "$lt_cv_dlopen_self" >&6; }
11059 if test "x$lt_cv_dlopen_self" = xyes
; then
11060 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11061 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11062 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11063 if test "${lt_cv_dlopen_self_static+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11066 if test "$cross_compiling" = yes; then :
11067 lt_cv_dlopen_self_static
=cross
11069 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11070 lt_status
=$lt_dlunknown
11071 cat > conftest.
$ac_ext <<_LT_EOF
11072 #line 11072 "configure"
11073 #include "confdefs.h"
11082 # define LT_DLGLOBAL RTLD_GLOBAL
11085 # define LT_DLGLOBAL DL_GLOBAL
11087 # define LT_DLGLOBAL 0
11091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11092 find out it does not work in some platform. */
11093 #ifndef LT_DLLAZY_OR_NOW
11095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11098 # define LT_DLLAZY_OR_NOW DL_LAZY
11101 # define LT_DLLAZY_OR_NOW RTLD_NOW
11104 # define LT_DLLAZY_OR_NOW DL_NOW
11106 # define LT_DLLAZY_OR_NOW 0
11114 extern "C" void exit (int);
11117 void fnord() { int i=42;}
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127 /* dlclose (self); */
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11140 (.
/conftest
; exit; ) >&5 2>/dev
/null
11142 case x
$lt_status in
11143 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11144 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11145 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11148 # compilation failed
11149 lt_cv_dlopen_self_static
=no
11156 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11157 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11160 CPPFLAGS
="$save_CPPFLAGS"
11161 LDFLAGS
="$save_LDFLAGS"
11166 case $lt_cv_dlopen_self in
11167 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11168 *) enable_dlopen_self
=unknown
;;
11171 case $lt_cv_dlopen_self_static in
11172 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11173 *) enable_dlopen_self_static
=unknown
;;
11195 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11196 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11197 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
11198 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11199 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11200 { $as_echo "$as_me:$LINENO: result: yes" >&5
11201 $as_echo "yes" >&6; }
11203 # FIXME - insert some real tests, host_os isn't really good enough
11206 if test -n "$STRIP" ; then
11207 striplib
="$STRIP -x"
11208 old_striplib
="$STRIP -S"
11209 { $as_echo "$as_me:$LINENO: result: yes" >&5
11210 $as_echo "yes" >&6; }
11212 { $as_echo "$as_me:$LINENO: result: no" >&5
11213 $as_echo "no" >&6; }
11217 { $as_echo "$as_me:$LINENO: result: no" >&5
11218 $as_echo "no" >&6; }
11234 # Report which library types will actually be built
11235 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11236 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11237 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11238 $as_echo "$can_build_shared" >&6; }
11240 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11241 $as_echo_n "checking whether to build shared libraries... " >&6; }
11242 test "$can_build_shared" = "no" && enable_shared
=no
11244 # On AIX, shared libraries and static libraries use the same namespace, and
11245 # are all built from PIC.
11248 test "$enable_shared" = yes && enable_static
=no
11249 if test -n "$RANLIB"; then
11250 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11251 postinstall_cmds
='$RANLIB $lib'
11256 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11257 test "$enable_shared" = yes && enable_static
=no
11261 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11262 $as_echo "$enable_shared" >&6; }
11264 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11265 $as_echo_n "checking whether to build static libraries... " >&6; }
11266 # Make sure either enable_shared or enable_static is yes.
11267 test "$enable_shared" = yes || enable_static
=yes
11268 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11269 $as_echo "$enable_static" >&6; }
11276 ac_cpp
='$CPP $CPPFLAGS'
11277 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11295 ac_config_commands
="$ac_config_commands libtool"
11300 # Only expand once:
11304 # Checks for header files.
11305 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11306 $as_echo_n "checking for ANSI C header files... " >&6; }
11307 if test "${ac_cv_header_stdc+set}" = set; then
11308 $as_echo_n "(cached) " >&6
11310 cat >conftest.
$ac_ext <<_ACEOF
11313 cat confdefs.h
>>conftest.
$ac_ext
11314 cat >>conftest.
$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 #include <stdlib.h>
11317 #include <stdarg.h>
11318 #include <string.h>
11329 rm -f conftest.
$ac_objext
11330 if { (ac_try
="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336 $as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_cv_header_stdc=yes
11349 $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_cv_header_stdc=no
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 if test $ac_cv_header_stdc = yes; then
11358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <string.h>
11368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "memchr" >/dev/null 2>&1; then
11372 ac_cv_header_stdc=no
11378 if test $ac_cv_header_stdc = yes; then
11379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11380 cat >conftest.$ac_ext <<_ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 #include <stdlib.h>
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "free" >/dev/null 2>&1; then
11393 ac_cv_header_stdc=no
11399 if test $ac_cv_header_stdc = yes; then
11400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11401 if test "$cross_compiling" = yes; then
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11411 #include <stdlib.h>
11412 #if ((' ' & 0x0FF) == 0x020)
11413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11416 # define ISLOWER(c) \
11417 (('a' <= (c) && (c) <= 'i') \
11418 || ('j' <= (c) && (c) <= 'r') \
11419 || ('s' <= (c) && (c) <= 'z'))
11420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11428 for (i = 0; i < 256; i++)
11429 if (XOR (islower (i), ISLOWER (i))
11430 || toupper (i) != TOUPPER (i))
11435 rm -f conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11439 *) ac_try_echo
=$ac_try;;
11441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>&5
11445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11447 { (case "(($ac_try" in
11448 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452 $as_echo "$ac_try_echo") >&5
11453 (eval "$ac_try") 2>&5
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11459 $as_echo "$as_me: program exited with status $ac_status" >&5
11460 $as_echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ( exit $ac_status )
11464 ac_cv_header_stdc=no
11466 rm -rf conftest.dSYM
11467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11473 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11474 $as_echo "$ac_cv_header_stdc" >&6; }
11475 if test $ac_cv_header_stdc = yes; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define STDC_HEADERS 1
11487 for ac_header in malloc.h stdlib.h string.h strings.h
11489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 $as_echo_n "checking for $ac_header... " >&6; }
11493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 $as_echo_n "(cached) " >&6
11496 ac_res=`eval 'as_val=${'$as_ac_Header'}
11497 $as_echo "$as_val"'`
11498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11499 $as_echo "$ac_res" >&6; }
11501 # Is the header compilable?
11502 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 $as_echo_n "checking $ac_header usability... " >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11517 *) ac_try_echo
=$ac_try;;
11519 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11520 $as_echo "$ac_try_echo") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1
>conftest.err
11525 cat conftest.err
>&5
11526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.
$ac_objext; then
11531 ac_header_compiler
=yes
11533 $as_echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.
$ac_ext >&5
11536 ac_header_compiler
=no
11539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11540 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 $as_echo "$ac_header_compiler" >&6; }
11543 # Is the header present?
11544 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 $as_echo_n "checking $ac_header presence... " >&6; }
11546 cat >conftest.
$ac_ext <<_ACEOF
11549 cat confdefs.h
>>conftest.
$ac_ext
11550 cat >>conftest.
$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11554 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560 $as_echo "$ac_try_echo") >&5
11561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11563 grep -v '^ *+' conftest.er1 >conftest.err
11565 cat conftest.err >&5
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } >/dev/null && {
11568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11571 ac_header_preproc=yes
11573 $as_echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 ac_header_preproc=no
11579 rm -f conftest.err conftest.$ac_ext
11580 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581 $as_echo "$ac_header_preproc" >&6; }
11583 # So? What about this header?
11584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11590 ac_header_preproc=yes
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11600 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 ## ------------------------------------------------------ ##
11607 ## Report this to png-mng-implement@lists.sourceforge.net ##
11608 ## ------------------------------------------------------ ##
11610 ) | sed "s/^/$as_me: WARNING: /" >&2
11613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 $as_echo_n "checking for $ac_header... " >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 $as_echo_n "(cached) " >&6
11618 eval "$as_ac_Header=\$ac_header_preproc"
11620 ac_res=`eval 'as_val=${'$as_ac_Header'}
11621 $as_echo "$as_val"'`
11622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11623 $as_echo "$ac_res" >&6; }
11626 if test `eval 'as_val=${'$as_ac_Header'}
11627 $as_echo "$as_val"'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 # Checks for typedefs, structures, and compiler characteristics.
11638 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11639 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11640 if test "${ac_cv_c_const+set}" = set; then
11641 $as_echo_n "(cached) " >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11653 /* FIXME: Include the comments suggested by Paul. */
11654 #ifndef __cplusplus
11655 /* Ultrix mips cc rejects this. */
11656 typedef int charset[2];
11658 /* SunOS 4.1.1 cc rejects this. */
11659 char const *const *pcpcc;
11661 /* NEC SVR4.0.2 mips cc rejects this. */
11662 struct point {int x, y;};
11663 static struct point const zero = {0,0};
11664 /* AIX XL C 1.02.0.0 rejects this.
11665 It does not let you subtract one const X* pointer from another in
11666 an arm of an if-expression whose if-part is not a constant
11668 const char *g = "string";
11669 pcpcc = &g + (g ? g-g : 0);
11670 /* HPUX 7.0 cc rejects these. */
11672 ppc = (char**) pcpcc;
11673 pcpcc = (char const *const *) ppc;
11674 { /* SCO 3.2v4 cc rejects this. */
11676 char const *s = 0 ? (char *) 0 : (char const *) 0;
11681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11682 int x[] = {25, 17};
11683 const int *foo = &x[0];
11686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11687 typedef const int *iptr;
11691 { /* AIX XL C 1.02.0.0 rejects this saying
11692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11693 struct s { int j; const int *ap[3]; };
11694 struct s *b; b->j = 5;
11696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11697 const int foo = 10;
11698 if (!foo) return 0;
11700 return !cs[0] && !zero.x;
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11711 *) ac_try_echo
=$ac_try;;
11713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11714 $as_echo "$ac_try_echo") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1
>conftest.err
11719 cat conftest.err
>&5
11720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.
$ac_objext; then
11727 $as_echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.
$ac_ext >&5
11733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11735 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11736 $as_echo "$ac_cv_c_const" >&6; }
11737 if test $ac_cv_c_const = no
; then
11739 cat >>confdefs.h
<<\_ACEOF
11745 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11746 $as_echo_n "checking for size_t... " >&6; }
11747 if test "${ac_cv_type_size_t+set}" = set; then
11748 $as_echo_n "(cached) " >&6
11750 ac_cv_type_size_t
=no
11751 cat >conftest.
$ac_ext <<_ACEOF
11754 cat confdefs.h
>>conftest.
$ac_ext
11755 cat >>conftest.
$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 $ac_includes_default
11761 if (sizeof (size_t))
11767 rm -f conftest.
$ac_objext
11768 if { (ac_try
="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11795 if (sizeof ((size_t)))
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11805 *) ac_try_echo
=$ac_try;;
11807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11808 $as_echo "$ac_try_echo") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1
>conftest.err
11813 cat conftest.err
>&5
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.
$ac_objext; then
11821 $as_echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11824 ac_cv_type_size_t
=yes
11827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11837 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11838 $as_echo "$ac_cv_type_size_t" >&6; }
11839 if test $ac_cv_type_size_t = yes; then
11843 cat >>confdefs.h
<<_ACEOF
11844 #define size_t unsigned int
11849 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11850 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11851 if test "${ac_cv_struct_tm+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11854 cat >conftest.
$ac_ext <<_ACEOF
11857 cat confdefs.h
>>conftest.
$ac_ext
11858 cat >>conftest.
$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <sys/types.h>
11867 int *p = &tm.tm_sec;
11873 rm -f conftest.
$ac_objext
11874 if { (ac_try
="$ac_compile"
11875 case "(($ac_try" in
11876 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11880 $as_echo "$ac_try_echo") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest.$ac_objext; then
11891 ac_cv_struct_tm=time.h
11893 $as_echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_struct_tm=sys/time.h
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11902 $as_echo "$ac_cv_struct_tm" >&6; }
11903 if test $ac_cv_struct_tm = sys/time.h; then
11905 cat >>confdefs.h <<\_ACEOF
11906 #define TM_IN_SYS_TIME 1
11912 # Checks for library functions.
11913 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
11914 $as_echo_n "checking for working strtod... " >&6; }
11915 if test "${ac_cv_func_strtod+set}" = set; then
11916 $as_echo_n "(cached) " >&6
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_strtod=no
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 $ac_includes_default
11936 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11937 char *string = " +69";
11940 value = strtod (string, &term);
11941 if (value != 69 || term != (string + 4))
11946 /* Under Solaris 2.4, strtod returns the wrong value for the
11947 terminating character under some conditions. */
11948 char *string = "NaN";
11950 strtod (string, &term);
11951 if (term != string && *(term - 1) == 0)
11958 rm -f conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11962 *) ac_try_echo
=$ac_try;;
11964 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11965 $as_echo "$ac_try_echo") >&5
11966 (eval "$ac_link") 2>&5
11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11970 { (case "(($ac_try" in
11971 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_try") 2>&5
11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_func_strtod=yes
11982 $as_echo "$as_me: program exited with status $ac_status" >&5
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ( exit $ac_status )
11987 ac_cv_func_strtod=no
11989 rm -rf conftest.dSYM
11990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11995 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11996 $as_echo "$ac_cv_func_strtod" >&6; }
11997 if test $ac_cv_func_strtod = no; then
11998 case " $LIBOBJS " in
11999 *" strtod.$ac_objext "* ) ;;
12000 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12004 { $as_echo "$as_me:$LINENO: checking for pow" >&5
12005 $as_echo_n "checking for pow... " >&6; }
12006 if test "${ac_cv_func_pow+set}" = set; then
12007 $as_echo_n "(cached) " >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12017 #define pow innocuous_pow
12019 /* System header to define __stub macros and hopefully few prototypes,
12020 which can conflict with char pow (); below.
12021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022 <limits.h> exists even on freestanding compilers. */
12025 # include <limits.h>
12027 # include <assert.h>
12032 /* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12039 /* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042 #if defined __stub_pow || defined __stub___pow
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12058 *) ac_try_echo
=$ac_try;;
12060 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062 (eval "$ac_link") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1
>conftest.err
12066 cat conftest.err
>&5
12067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest
$ac_exeext && {
12072 test "$cross_compiling" = yes ||
12073 $as_test_x conftest
$ac_exeext
12077 $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.
$ac_ext >&5
12083 rm -rf conftest.dSYM
12084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12085 conftest
$ac_exeext conftest.
$ac_ext
12087 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12088 $as_echo "$ac_cv_func_pow" >&6; }
12090 if test $ac_cv_func_pow = no
; then
12091 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12092 $as_echo_n "checking for pow in -lm... " >&6; }
12093 if test "${ac_cv_lib_m_pow+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12096 ac_check_lib_save_LIBS
=$LIBS
12098 cat >conftest.
$ac_ext <<_ACEOF
12101 cat confdefs.h
>>conftest.
$ac_ext
12102 cat >>conftest.
$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12120 rm -f conftest.
$ac_objext conftest
$ac_exeext
12121 if { (ac_try
="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12141 ac_cv_lib_m_pow=yes
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12149 rm -rf conftest.dSYM
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12155 $as_echo "$ac_cv_lib_m_pow" >&6; }
12156 if test $ac_cv_lib_m_pow = yes; then
12159 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12160 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12168 for ac_func in memset
12170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12172 $as_echo_n "checking for $ac_func... " >&6; }
12173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 $as_echo_n "(cached) " >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184 #define $ac_func innocuous_$ac_func
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
12192 # include <limits.h>
12194 # include <assert.h>
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined __stub_$ac_func || defined __stub___$ac_func
12216 return $ac_func ();
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (ac_try="$ac_link"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12225 *) ac_try_echo
=$ac_try;;
12227 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12228 $as_echo "$ac_try_echo") >&5
12229 (eval "$ac_link") 2>conftest.er1
12231 grep -v '^ *+' conftest.er1
>conftest.err
12233 cat conftest.err
>&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } && {
12236 test -z "$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 } && test -s conftest
$ac_exeext && {
12239 test "$cross_compiling" = yes ||
12240 $as_test_x conftest
$ac_exeext
12242 eval "$as_ac_var=yes"
12244 $as_echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.
$ac_ext >&5
12247 eval "$as_ac_var=no"
12250 rm -rf conftest.dSYM
12251 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12252 conftest
$ac_exeext conftest.
$ac_ext
12254 ac_res
=`eval 'as_val=${'$as_ac_var'}
12255 $as_echo "$as_val"'`
12256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12257 $as_echo "$ac_res" >&6; }
12258 if test `eval 'as_val=${'$as_ac_var'}
12259 $as_echo "$as_val"'` = yes; then
12260 cat >>confdefs.h
<<_ACEOF
12261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 { { $as_echo "$as_me:$LINENO: error: memset not found in libc" >&5
12266 $as_echo "$as_me: error: memset not found in libc" >&2;}
12267 { (exit 1); exit 1; }; }
12274 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12276 $as_echo_n "checking for $ac_func... " >&6; }
12277 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12280 cat >conftest.
$ac_ext <<_ACEOF
12283 cat confdefs.h
>>conftest.
$ac_ext
12284 cat >>conftest.
$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288 #define $ac_func innocuous_$ac_func
12290 /* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12296 # include <limits.h>
12298 # include <assert.h>
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12310 /* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined __stub_$ac_func || defined __stub___$ac_func
12320 return $ac_func ();
12325 rm -f conftest.
$ac_objext conftest
$ac_exeext
12326 if { (ac_try
="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12332 $as_echo "$ac_try_echo") >&5
12333 (eval "$ac_link") 2>conftest.er1
12335 grep -v '^ *+' conftest.er1 >conftest.err
12337 cat conftest.err >&5
12338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest$ac_exeext && {
12343 test "$cross_compiling" = yes ||
12344 $as_test_x conftest$ac_exeext
12346 eval "$as_ac_var=yes"
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 eval "$as_ac_var=no"
12354 rm -rf conftest.dSYM
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12358 ac_res=`eval 'as_val=${'$as_ac_var'}
12359 $as_echo "$as_val"'`
12360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12361 $as_echo "$ac_res" >&6; }
12362 if test `eval 'as_val=${'$as_ac_var'}
12363 $as_echo "$as_val"'` = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12370 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12371 $as_echo_n "checking for pow in -lm... " >&6; }
12372 if test "${ac_cv_lib_m_pow+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12375 ac_check_lib_save_LIBS=$LIBS
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (ac_try="$ac_link"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12403 *) ac_try_echo
=$ac_try;;
12405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12406 $as_echo "$ac_try_echo") >&5
12407 (eval "$ac_link") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1
>conftest.err
12411 cat conftest.err
>&5
12412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest
$ac_exeext && {
12417 test "$cross_compiling" = yes ||
12418 $as_test_x conftest
$ac_exeext
12420 ac_cv_lib_m_pow
=yes
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.
$ac_ext >&5
12428 rm -rf conftest.dSYM
12429 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12430 conftest
$ac_exeext conftest.
$ac_ext
12431 LIBS
=$ac_check_lib_save_LIBS
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12434 $as_echo "$ac_cv_lib_m_pow" >&6; }
12435 if test $ac_cv_lib_m_pow = yes; then
12436 cat >>confdefs.h
<<_ACEOF
12437 #define HAVE_LIBM 1
12443 { { $as_echo "$as_me:$LINENO: error: cannot find pow" >&5
12444 $as_echo "$as_me: error: cannot find pow" >&2;}
12445 { (exit 1); exit 1; }; }
12452 { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
12453 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12454 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12457 ac_check_lib_save_LIBS
=$LIBS
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12472 char zlibVersion ();
12476 return zlibVersion ();
12481 rm -f conftest.
$ac_objext conftest
$ac_exeext
12482 if { (ac_try
="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488 $as_echo "$ac_try_echo") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext && {
12499 test "$cross_compiling" = yes ||
12500 $as_test_x conftest$ac_exeext
12502 ac_cv_lib_z_zlibVersion=yes
12504 $as_echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_cv_lib_z_zlibVersion=no
12510 rm -rf conftest.dSYM
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
12516 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12517 if test $ac_cv_lib_z_zlibVersion = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define HAVE_LIBZ 1
12525 { { $as_echo "$as_me:$LINENO: error: zlib not installed" >&5
12526 $as_echo "$as_me: error: zlib not installed" >&2;}
12527 { (exit 1); exit 1; }; }
12531 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12532 { $as_echo "$as_me:$LINENO: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
12533 $as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 #include "$srcdir/pnggccrd.c"
12549 rm -f conftest.$ac_objext
12550 if { (ac_try="$ac_compile"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12553 *) ac_try_echo
=$ac_try;;
12555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12556 $as_echo "$ac_try_echo") >&5
12557 (eval "$ac_compile") 2>conftest.er1
12559 grep -v '^ *+' conftest.er1
>conftest.err
12561 cat conftest.err
>&5
12562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } && {
12564 test -z "$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 } && test -s conftest.
$ac_objext; then
12567 { $as_echo "$as_me:$LINENO: result: yes" >&5
12568 $as_echo "yes" >&6; }
12571 $as_echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.
$ac_ext >&5
12574 { $as_echo "$as_me:$LINENO: result: no" >&5
12575 $as_echo "no" >&6; }
12576 LIBPNG_NO_MMX
=-DPNG_NO_MMX_CODE
12579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12580 LIBPNG_DEFINES
=$LIBPNG_DEFINES\
$LIBPNG_NO_MMX
12584 { $as_echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
12585 $as_echo_n "checking if libraries can be versioned... " >&6; }
12586 GLD
=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12587 if test "$GLD"; then
12588 have_ld_version_script
=yes
12589 { $as_echo "$as_me:$LINENO: result: yes" >&5
12590 $as_echo "yes" >&6; }
12592 have_ld_version_script
=no
12593 { $as_echo "$as_me:$LINENO: result: no" >&5
12594 $as_echo "no" >&6; }
12595 { $as_echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
12596 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12598 if test "$have_ld_version_script" = "yes"; then
12599 HAVE_LD_VERSION_SCRIPT_TRUE
=
12600 HAVE_LD_VERSION_SCRIPT_FALSE
='#'
12602 HAVE_LD_VERSION_SCRIPT_TRUE
='#'
12603 HAVE_LD_VERSION_SCRIPT_FALSE
=
12607 if test "$have_ld_version_script" = "yes"; then
12608 { $as_echo "$as_me:$LINENO: checking for symbol prefix" >&5
12609 $as_echo_n "checking for symbol prefix... " >&6; }
12610 SYMBOL_PREFIX
=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12611 | ${CPP-${CC-gcc} -E} - 2>&1 \
12612 | ${EGREP-grep} "^PREFIX=" \
12613 | ${SED-sed} "s:^PREFIX=::"`
12615 { $as_echo "$as_me:$LINENO: result: $SYMBOL_PREFIX" >&5
12616 $as_echo "$SYMBOL_PREFIX" >&6; }
12619 # Substitutions for .in files
12625 # Additional arguments (and substitutions)
12626 # Allow the pkg-config directory to be set
12628 # Check whether --with-pkgconfigdir was given.
12629 if test "${with_pkgconfigdir+set}" = set; then
12630 withval
=$with_pkgconfigdir; pkgconfigdir
=${withval}
12632 pkgconfigdir
='${libdir}/pkgconfig'
12637 { $as_echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
12638 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12640 # Make the *-config binary config scripts optional
12642 # Check whether --with-binconfigs was given.
12643 if test "${with_binconfigs+set}" = set; then
12644 withval
=$with_binconfigs; if test "${withval}" = no
; then
12646 { $as_echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
12647 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12649 binconfigs
='${binconfigs}'
12652 binconfigs
='${binconfigs}'
12657 # Allow the old version number library, libpng.so, to be removed from
12660 # Check whether --with-libpng-compat was given.
12661 if test "${with_libpng_compat+set}" = set; then
12662 withval
=$with_libpng_compat; if test "${withval}" = no
; then
12664 { $as_echo "$as_me:$LINENO: libpng.so will not be built" >&5
12665 $as_echo "$as_me: libpng.so will not be built" >&6;}
12667 compatlib
=libpng.la
12670 compatlib
=libpng.la
12675 # Config files, substituting as above
12676 ac_config_files
="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
12678 ac_config_files
="$ac_config_files libpng-config:scripts/libpng-config.in"
12681 cat >confcache
<<\_ACEOF
12682 # This file is a shell script that caches the results of configure
12683 # tests run on this system so they can be shared between configure
12684 # scripts and configure runs, see configure's option --config-cache.
12685 # It is not useful on other systems. If it contains results you don't
12686 # want to keep, you may remove or edit it.
12688 # config.status only pays attention to the cache file if you give it
12689 # the --recheck option to rerun configure.
12691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12693 # following values.
12697 # The following way of writing the cache mishandles newlines in values,
12698 # but we know of no workaround that is simple, portable, and efficient.
12699 # So, we kill variables containing newlines.
12700 # Ultrix sh set writes to stderr and can't be redirected directly,
12701 # and sets the high bit in the cache file unless we assign to the vars.
12703 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12704 eval ac_val
=\$
$ac_var
12708 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12709 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12712 _
| IFS
| as_nl
) ;; #(
12713 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
12714 *) $as_unset $ac_var ;;
12720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12721 *${as_nl}ac_space
=\
*)
12722 # `set' does not quote correctly, so add quotes (double-quote
12723 # substitution turns \\\\ into \\, and sed turns \\ into \).
12726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12729 # `set' quotes correctly as required by POSIX, so do not add quotes.
12730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12743 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12744 if test -w "$cache_file"; then
12745 test "x$cache_file" != "x/dev/null" &&
12746 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12747 $as_echo "$as_me: updating cache $cache_file" >&6;}
12748 cat confcache
>$cache_file
12750 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12751 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12756 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12757 # Let make expand exec_prefix.
12758 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12760 DEFS
=-DHAVE_CONFIG_H
12764 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12765 # 1. Remove the extension, and $U if already installed.
12766 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12767 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12769 # will be set to the directory where LIBOBJS objects are built.
12770 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12771 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12773 LIBOBJS
=$ac_libobjs
12775 LTLIBOBJS
=$ac_ltlibobjs
12778 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12779 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12780 Usually this means the macro was only invoked conditionally." >&5
12781 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12782 Usually this means the macro was only invoked conditionally." >&2;}
12783 { (exit 1); exit 1; }; }
12785 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12786 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12787 Usually this means the macro was only invoked conditionally." >&5
12788 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12789 Usually this means the macro was only invoked conditionally." >&2;}
12790 { (exit 1); exit 1; }; }
12792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12794 Usually this means the macro was only invoked conditionally." >&5
12795 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&2;}
12797 { (exit 1); exit 1; }; }
12799 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12800 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12801 Usually this means the macro was only invoked conditionally." >&5
12802 $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&2;}
12804 { (exit 1); exit 1; }; }
12807 : ${CONFIG_STATUS=./config.status}
12809 ac_clean_files_save
=$ac_clean_files
12810 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12811 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12812 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12813 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12815 # Generated by $as_me.
12816 # Run this file to recreate the current configuration.
12817 # Compiler output produced by configure, useful for debugging
12818 # configure, is in config.log if it exists.
12821 ac_cs_recheck=false
12823 SHELL=\${CONFIG_SHELL-$SHELL}
12826 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
12827 ## --------------------- ##
12828 ## M4sh Initialization. ##
12829 ## --------------------- ##
12831 # Be more Bourne compatible
12832 DUALCASE
=1; export DUALCASE
# for MKS sh
12833 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12837 # is contrary to our usage. Disable this feature.
12838 alias -g '${1+"$@"}'='"$@"'
12839 setopt NO_GLOB_SUBST
12841 case `(set -o) 2>/dev/null` in
12842 *posix
*) set -o posix
;;
12851 # Avoid depending upon Character Ranges.
12852 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12853 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12854 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12855 as_cr_digits
='0123456789'
12856 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12862 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12865 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12866 as_echo='printf %s
\n'
12867 as_echo_n='printf %s
'
12869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12870 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12871 as_echo_n='/usr
/ucb
/echo -n'
12873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12874 as_echo_n_body='eval
12878 expr "X$arg" : "X\\(.*\\)$as_nl";
12879 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12881 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12883 export as_echo_n_body
12884 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12886 export as_echo_body
12887 as_echo='sh
-c $as_echo_body as_echo
'
12890 # The user is always right.
12891 if test "${PATH_SEPARATOR+set}" != set; then
12893 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12894 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12899 # Support unset when possible.
12900 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12908 # We need space, tab and new line, in precisely that order. Quoting is
12909 # there to prevent editors from complaining about space-tab.
12910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12911 # splitting by setting IFS to empty value.)
12914 # Find who we are. Look in the path if we contain no directory separator.
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12921 test -z "$as_dir" && as_dir=.
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12928 # We did not find ourselves, most probably we were run as `sh COMMAND'
12929 # in which case we are not to be found in the path.
12930 if test "x$as_myself" = x
; then
12933 if test ! -f "$as_myself"; then
12934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12935 { (exit 1); exit 1; }
12938 # Work around bugs in pre-3.0 UWIN ksh.
12939 for as_var
in ENV MAIL MAILPATH
12940 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12952 # Required to use basename.
12953 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12960 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename
=basename
12967 # Name of the executable.
12968 as_me
=`$as_basename -- "$0" ||
12969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12970 X"$0" : 'X\(//\)$' \| \
12971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12973 sed '/^.*\/\([^/][^/]*\)\/*$/{
12992 as_lineno_1
=$LINENO
12993 as_lineno_2
=$LINENO
12994 test "x$as_lineno_1" != "x$as_lineno_2" &&
12995 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12998 # uniformly replaced by the line number. The first 'sed' inserts a
12999 # line-number line after each line using $LINENO; the second 'sed'
13000 # does the real work. The second script uses 'N' to pair each
13001 # line-number line with the line containing $LINENO, and appends
13002 # trailing '-' during substitution so that $LINENO is not a special
13003 # case at line end.
13004 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13005 # scripts with optimization help from Paolo Bonzini. Blame Lee
13006 # E. McMahon (1931-1989) for sed's syntax. :-)
13018 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13021 ' >$as_me.lineno
&&
13022 chmod +x
"$as_me.lineno" ||
13023 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13024 { (exit 1); exit 1; }; }
13026 # Don't try to exec as it changes $[0], causing all sort of problems
13027 # (the dirname of $[0] is not the place where we might find the
13028 # original and so on. Autoconf is especially sensitive to this).
13029 .
"./$as_me.lineno"
13030 # Exit status is that of the last command.
13035 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13041 ECHO_C
= ECHO_N
= ECHO_T
=
13042 case `echo -n x` in
13044 case `echo 'x\c'` in
13045 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13051 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13052 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13058 rm -f conf$$ conf$$.exe conf$$.
file
13059 if test -d conf$$.dir
; then
13060 rm -f conf$$.dir
/conf$$.
file
13063 mkdir conf$$.dir
2>/dev
/null
13065 if (echo >conf$$.
file) 2>/dev
/null
; then
13066 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13068 # ... but there are two gotchas:
13069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13071 # In both cases, we have to default to `cp -p'.
13072 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
13074 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13082 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13083 rmdir conf$$.dir
2>/dev
/null
13085 if mkdir -p .
2>/dev
/null
; then
13088 test -d .
/-p && rmdir .
/-p
13092 if test -x / >/dev
/null
2>&1; then
13093 as_test_x
='test -x'
13095 if ls -dL / >/dev
/null
2>&1; then
13102 if test -d "$1"; then
13108 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13109 ???[sx]*):;;*)false;;esac;fi
13113 as_executable_p
=$as_test_x
13115 # Sed expression to map a string onto a valid CPP name.
13116 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13118 # Sed expression to map a string onto a valid variable name.
13119 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13124 # Save the log message, to keep $[0] and so on meaningful, and to
13125 # report actual input values of CONFIG_FILES etc. instead of their
13126 # values after options handling.
13128 This file was extended by libpng $as_me 1.2.34, which was
13129 generated by GNU Autoconf 2.62. Invocation command line was
13131 CONFIG_FILES = $CONFIG_FILES
13132 CONFIG_HEADERS = $CONFIG_HEADERS
13133 CONFIG_LINKS = $CONFIG_LINKS
13134 CONFIG_COMMANDS = $CONFIG_COMMANDS
13137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 # Files that config.status was made for.
13144 config_files="$ac_config_files"
13145 config_headers="$ac_config_headers"
13146 config_commands="$ac_config_commands"
13150 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
13152 \`$as_me' instantiates files from templates according to the
13153 current configuration.
13155 Usage: $0 [OPTIONS] [FILE]...
13157 -h, --help print this help, then exit
13158 -V, --version print version number and configuration settings, then exit
13159 -q, --quiet do not print progress messages
13160 -d, --debug don't remove temporary files
13161 --recheck update $as_me by reconfiguring in the same conditions
13162 --file=FILE[:TEMPLATE]
13163 instantiate the configuration file FILE
13164 --header=FILE[:TEMPLATE]
13165 instantiate the configuration header FILE
13167 Configuration files:
13170 Configuration headers:
13173 Configuration commands:
13176 Report bugs to <bug-autoconf@gnu.org>."
13179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181 libpng config.status 1.2.34
13182 configured by $0, generated by GNU Autoconf 2.62,
13183 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13185 Copyright (C) 2008 Free Software Foundation, Inc.
13186 This config.status script is free software; the Free Software Foundation
13187 gives unlimited permission to copy, distribute and modify it."
13194 test -n "\$AWK" || AWK=awk
13197 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
13198 # The default lists apply if the user does not specify any file.
13204 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13205 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13216 # Handling of the options.
13217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13220 $as_echo "$ac_cs_version"; exit ;;
13221 --debug | --debu | --deb | --de | --d | -d )
13223 --file | --fil | --fi | --f )
13226 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13228 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
13229 ac_need_defaults
=false
;;
13230 --header | --heade | --head | --hea )
13233 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13235 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
13236 ac_need_defaults
=false
;;
13238 # Conflict between --help and --header
13239 { $as_echo "$as_me: error: ambiguous option: $1
13240 Try \`$0 --help' for more information." >&2
13241 { (exit 1); exit 1; }; };;
13242 --help | --hel | -h )
13243 $as_echo "$ac_cs_usage"; exit ;;
13244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13248 # This is an error.
13249 -*) { $as_echo "$as_me: error: unrecognized option: $1
13250 Try \`$0 --help' for more information." >&2
13251 { (exit 1); exit 1; }; } ;;
13253 *) ac_config_targets
="$ac_config_targets $1"
13254 ac_need_defaults
=false
;;
13260 ac_configure_extra_args
=
13262 if $ac_cs_silent; then
13264 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13269 if \$ac_cs_recheck; then
13270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13273 CONFIG_SHELL='$SHELL'
13274 export CONFIG_SHELL
13279 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
13283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13284 ## Running $as_me. ##
13290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13294 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13297 # The HP-UX ksh and POSIX shell print the target directory to stdout
13298 # if CDPATH is set.
13299 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13301 sed_quote_subst='$sed_quote_subst'
13302 double_quote_subst='$double_quote_subst'
13303 delay_variable_subst='$delay_variable_subst'
13304 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13305 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13306 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13307 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13308 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13309 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13310 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13311 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13312 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13313 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13314 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13315 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13316 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13317 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13318 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13319 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13320 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13321 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13322 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13323 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13324 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13325 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13326 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13327 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13328 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13329 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13330 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13331 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13332 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13333 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13334 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13335 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13336 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13337 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13338 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13339 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13340 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13341 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13343 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13345 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13346 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13347 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13348 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13349 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13350 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"`'
13351 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"`'
13352 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13353 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13354 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13355 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13356 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13357 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13358 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13359 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13360 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13361 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13362 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13363 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13364 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13365 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13366 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13367 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13368 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13369 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13370 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13373 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13376 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13377 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13380 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13381 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13382 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13383 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13384 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13385 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13386 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13387 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13388 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13389 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13390 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13391 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13392 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13393 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13394 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13396 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13397 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13399 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13400 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13401 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13402 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13403 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13404 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13405 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13406 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13407 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13408 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13409 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13413 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13414 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13415 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13417 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13418 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13419 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13420 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13421 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13424 LTCFLAGS='$LTCFLAGS'
13425 compiler='$compiler_DEFAULT'
13427 # Quote evaled strings.
13438 deplibs_check_method \
13447 lt_cv_sys_global_symbol_pipe \
13448 lt_cv_sys_global_symbol_to_cdecl \
13449 lt_cv_sys_global_symbol_to_c_name_address \
13450 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13453 lt_prog_compiler_no_builtin_flag \
13454 lt_prog_compiler_wl \
13455 lt_prog_compiler_pic \
13456 lt_prog_compiler_static \
13457 lt_cv_prog_compiler_c_o \
13463 export_dynamic_flag_spec \
13464 whole_archive_flag_spec \
13465 compiler_needs_object \
13467 allow_undefined_flag \
13468 no_undefined_flag \
13469 hardcode_libdir_flag_spec \
13470 hardcode_libdir_flag_spec_ld \
13471 hardcode_libdir_separator \
13476 variables_saved_for_relink \
13478 library_names_spec \
13483 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13484 *[\\\\\\\`\\"\\\$]*)
13485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13493 # Double-quote double-evaled strings.
13494 for var in reload_cmds \
13495 old_postinstall_cmds \
13496 old_postuninstall_cmds \
13498 extract_expsyms_cmds \
13499 old_archive_from_new_cmds \
13500 old_archive_from_expsyms_cmds \
13502 archive_expsym_cmds \
13504 module_expsym_cmds \
13505 export_symbols_cmds \
13508 postuninstall_cmds \
13510 sys_lib_search_path_spec \
13511 sys_lib_dlsearch_path_spec; do
13512 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13513 *[\\\\\\\`\\"\\\$]*)
13514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13522 # Fix-up fallback echo if it was mangled by the above quoting rules.
13524 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13528 ac_aux_dir='$ac_aux_dir'
13529 xsi_shell='$xsi_shell'
13530 lt_shell_append='$lt_shell_append'
13532 # See if we are running on zsh, and set the options which allow our
13533 # commands through without removal of \ escapes INIT.
13534 if test -n "\${ZSH_VERSION+set}" ; then
13535 setopt NO_GLOB_SUBST
13541 TIMESTAMP='$TIMESTAMP'
13550 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
13552 # Handling of arguments.
13553 for ac_config_target
in $ac_config_targets
13555 case $ac_config_target in
13556 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13557 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13558 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13559 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13560 "libpng.pc") CONFIG_FILES
="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
13561 "libpng-config") CONFIG_FILES
="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
13563 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13564 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13565 { (exit 1); exit 1; }; };;
13570 # If the user did not use the arguments to specify the items to instantiate,
13571 # then the envvar interface is used. Set only those that are not.
13572 # We use the long form for the default assignment because of an extremely
13573 # bizarre bug on SunOS 4.1.3.
13574 if $ac_need_defaults; then
13575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13580 # Have a temporary directory for convenience. Make it in the build tree
13581 # simply because there is no reason against having it here, and in addition,
13582 # creating and moving files from /tmp can sometimes cause problems.
13583 # Hook for its removal unless debugging.
13584 # Note that there is a small window in which the directory will not be cleaned:
13585 # after its creation but before its name has been assigned to `$tmp'.
13589 trap 'exit_status=$?
13590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13592 trap '{ (exit 1); exit 1; }' 1 2 13 15
13594 # Create a (secure) tmp directory for tmp files.
13597 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13598 test -n "$tmp" && test -d "$tmp"
13601 tmp
=.
/conf$$
-$RANDOM
13602 (umask 077 && mkdir "$tmp")
13605 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13606 { (exit 1); exit 1; }
13609 # Set up the scripts for CONFIG_FILES section.
13610 # No need to generate them if there are no CONFIG_FILES.
13611 # This happens for instance with `./config.status config.h'.
13612 if test -n "$CONFIG_FILES"; then
13617 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13621 ac_cs_awk_cr
=$ac_cr
13624 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13629 echo "cat >conf$$subs.awk <<_ACEOF" &&
13630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13632 } >conf$$subs.sh ||
13633 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13634 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13635 { (exit 1); exit 1; }; }
13636 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13638 for ac_last_try in false false false false false :; do
13639 . ./conf$$subs.sh ||
13640 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13641 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13642 { (exit 1); exit 1; }; }
13644 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13646 elif $ac_last_try; then
13647 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13648 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13649 { (exit 1); exit 1; }; }
13651 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13654 rm -f conf$$subs.sh
13656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13657 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13661 s/^/S["/; s
/!.
*/"]=/
13671 s/\(.\{148\}\).*/\1/
13673 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13678 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13685 s/\(.\{148\}\).*/\1/
13687 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13691 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13696 ' <conf$$subs.awk | sed '
13701 ' >>$CONFIG_STATUS || ac_write_fail=1
13702 rm -f conf$$subs.awk
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13706 for (key in S) S_is_set[key] = 1
13712 nfields = split(line, field, "@
")
13714 len = length(field[1])
13715 for (i = 2; i < nfields; i++) {
13717 keylen = length(key)
13718 if (S_is_set[key]) {
13720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13721 len += length(value) + length(field[++i])
13732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13734 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13737 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13738 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
13739 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
13740 { (exit 1); exit 1; }; }
13743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13745 # trailing colons and then remove the whole line if VPATH becomes empty
13746 # (actually we leave an empty line to preserve line numbers).
13747 if test "x
$srcdir" = x.; then
13748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13749 s/:*\$(srcdir):*/:/
13750 s/:*\${srcdir}:*/:/
13752 s/^\([^=]*=[ ]*\):*/\1/
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 fi # test -n "$CONFIG_FILES"
13761 # Set up the scripts for CONFIG_HEADERS section.
13762 # No need to generate them if there are no CONFIG_HEADERS.
13763 # This happens for instance with `./config.status Makefile'.
13764 if test -n "$CONFIG_HEADERS"; then
13765 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13769 # Transform confdefs.h into an awk script `defines.awk', embedded as
13770 # here-document in config.status, that substitutes the proper values into
13771 # config.h.in to produce config.h.
13773 # Create a delimiter string that does not exist in confdefs.h, to ease
13774 # handling of long lines.
13776 for ac_last_try in false false :; do
13777 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13778 if test -z "$ac_t"; then
13780 elif $ac_last_try; then
13781 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
13782 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
13783 { (exit 1); exit 1; }; }
13785 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13789 # For the awk script, D is an array of macro values keyed by name,
13790 # likewise P contains macro parameters if any. Preserve backslash
13791 # newline sequences.
13793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13795 s/.\{148\}/&'"$ac_delim"'/g
13798 s/^[ ]*#[ ]*define[ ][ ]*/ /
13805 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13807 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13812 D["\
1"]=" \
3\\\\\\n
"\\/p
13814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13819 s/.\{148\}/&'"$ac_delim"'/g
13824 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13827 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13829 ' <confdefs.h | sed '
13830 s/'"$ac_delim"'/"\\\
13831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 for (key in D) D_is_set[key] = 1
13837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13839 split(line, arg, " ")
13840 if (arg[1] == "#") {
13844 defundef
= substr
(arg
[1], 2)
13847 split(mac1
, mac2
, "(") #)
13849 if (D_is_set
[macro
]) {
13850 # Preserve the white space surrounding the "#".
13851 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13852 print prefix
"define", macro P
[macro
] D
[macro
]
13855 # Replace #undef with comments. This is necessary, for example,
13856 # in the case of _POSIX_SOURCE, which is predefined and required
13857 # on some systems where configure will not decide to define it.
13858 if (defundef
== "undef") {
13859 print
"/*", line
, "*/"
13867 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
13868 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13869 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13870 { (exit 1); exit 1; }; }
13871 fi # test -n "$CONFIG_HEADERS"
13874 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13879 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13881 case $ac_mode$ac_tag in
13883 :L
* | :C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13884 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13885 { (exit 1); exit 1; }; };;
13886 :[FH
]-) ac_tag
=-:-;;
13887 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13904 -) ac_f
="$tmp/stdin";;
13905 *) # Look for the file first in the build tree, then in the source tree
13906 # (if the path is not absolute). The absolute path cannot be DOS-style,
13907 # because $ac_f cannot contain `:'.
13911 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13913 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13914 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13915 { (exit 1); exit 1; }; };;
13917 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13918 ac_file_inputs
="$ac_file_inputs '$ac_f'"
13921 # Let's still pretend it is `configure' which instantiates (i.e., don't
13922 # use $as_me), people would be surprised to read:
13923 # /* config.h. Generated by config.status. */
13924 configure_input
='Generated from '`
13925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13927 if test x
"$ac_file" != x
-; then
13928 configure_input
="$ac_file. $configure_input"
13929 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13930 $as_echo "$as_me: creating $ac_file" >&6;}
13932 # Neutralize special characters interpreted by sed in replacement strings.
13933 case $configure_input in #(
13934 *\
&* | *\
|* | *\\* )
13935 ac_sed_conf_input
=`$as_echo "$configure_input" |
13936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13937 *) ac_sed_conf_input
=$configure_input;;
13941 *:-:* | *:-) cat >"$tmp/stdin" \
13942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13943 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13944 { (exit 1); exit 1; }; } ;;
13949 ac_dir
=`$as_dirname -- "$ac_file" ||
13950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13951 X"$ac_file" : 'X\(//\)[^/]' \| \
13952 X"$ac_file" : 'X\(//\)$' \| \
13953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13954 $as_echo X"$ac_file" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13959 /^X\(\/\/\)[^/].*/{
13974 -*) as_dir
=.
/$as_dir;;
13976 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13980 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13981 *) as_qdir
=$as_dir;;
13983 as_dirs
="'$as_qdir' $as_dirs"
13984 as_dir
=`$as_dirname -- "$as_dir" ||
13985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986 X"$as_dir" : 'X\(//\)[^/]' \| \
13987 X"$as_dir" : 'X\(//\)$' \| \
13988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13989 $as_echo X"$as_dir" |
13990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13994 /^X\(\/\/\)[^/].*/{
14007 test -d "$as_dir" && break
14009 test -z "$as_dirs" || eval "mkdir $as_dirs"
14010 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14011 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14012 { (exit 1); exit 1; }; }; }
14016 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14018 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14019 # A ".." for each directory in $ac_dir_suffix.
14020 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14021 case $ac_top_builddir_sub in
14022 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14023 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14026 ac_abs_top_builddir
=$ac_pwd
14027 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14028 # for backward compatibility:
14029 ac_top_builddir
=$ac_top_build_prefix
14032 .
) # We are building in place.
14034 ac_top_srcdir
=$ac_top_builddir_sub
14035 ac_abs_top_srcdir
=$ac_pwd ;;
14036 [\\/]* | ?
:[\\/]* ) # Absolute name.
14037 ac_srcdir
=$srcdir$ac_dir_suffix;
14038 ac_top_srcdir
=$srcdir
14039 ac_abs_top_srcdir
=$srcdir ;;
14040 *) # Relative name.
14041 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14042 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14043 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14045 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14055 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14056 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14058 ac_MKDIR_P
=$MKDIR_P
14060 [\\/$
]* | ?
:[\\/]* ) ;;
14061 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
14065 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14066 # If the template does not know about datarootdir, expand it.
14067 # FIXME: This hack should be removed a few years after 2.60.
14068 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14081 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14082 *datarootdir
*) ac_datarootdir_seen
=yes;;
14083 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
14084 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14085 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 ac_datarootdir_hack='
14089 s&@datadir@&$datadir&g
14090 s&@docdir@&$docdir&g
14091 s&@infodir@&$infodir&g
14092 s&@localedir@&$localedir&g
14093 s&@mandir@&$mandir&g
14094 s&\\\${datarootdir}&$datarootdir&g' ;;
14098 # Neutralize VPATH when `$srcdir' = `.'.
14099 # Shell code in configure.ac might set extrasub.
14100 # FIXME: do we really want to maintain this feature?
14101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102 ac_sed_extra="$ac_vpsub
14105 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14107 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
14108 s
|@configure_input@
|$ac_sed_conf_input|;t t
14109 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14110 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14111 s
&@srcdir@
&$ac_srcdir&;t t
14112 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14113 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14114 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14115 s
&@builddir@
&$ac_builddir&;t t
14116 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14117 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14118 s
&@INSTALL@
&$ac_INSTALL&;t t
14119 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
14120 $ac_datarootdir_hack
14122 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14123 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
14124 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
14125 { (exit 1); exit 1; }; }
14127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14128 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14130 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14131 which seems to be undefined. Please make sure it is defined." >&5
14132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14133 which seems to be undefined. Please make sure it is defined." >&2;}
14137 -) cat "$tmp/out" && rm -f "$tmp/out";;
14138 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14140 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14141 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14142 { (exit 1); exit 1; }; }
14148 if test x"$ac_file" != x-; then
14150 $as_echo "/* $configure_input */" \
14151 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14152 } >"$tmp/config.h" \
14153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14155 { (exit 1); exit 1; }; }
14156 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14157 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14158 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14161 mv "$tmp/config.h" "$ac_file" \
14162 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14163 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14164 { (exit 1); exit 1; }; }
14167 $as_echo "/* $configure_input */" \
14168 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14169 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14170 $as_echo "$as_me: error: could not create -" >&2;}
14171 { (exit 1); exit 1; }; }
14173 # Compute "$ac_file"'s index
in $config_headers.
14176 for _am_header
in $config_headers :; do
14177 case $_am_header in
14178 $_am_arg | $_am_arg:* )
14181 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
14184 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14185 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14186 X"$_am_arg" : 'X\(//\)[^/]' \| \
14187 X"$_am_arg" : 'X\(//\)$' \| \
14188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14189 $as_echo X"$_am_arg" |
14190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14194 /^X\(\/\/\)[^/].*/{
14206 s/.*/./; q'`/stamp
-h$_am_stamp_count
14209 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14210 $as_echo "$as_me: executing $ac_file commands" >&6;}
14215 case $ac_file$ac_mode in
14216 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
14217 # Strip MF so we end up with the name of the file.
14218 mf
=`echo "$mf" | sed -e 's/:.*$//'`
14219 # Check whether this is an Automake generated Makefile or not.
14220 # We used to match only the files named `Makefile.in', but
14221 # some people rename them; so instead we look at the file content.
14222 # Grep'ing the first line is not enough: some people post-process
14223 # each Makefile.in and add a new line on top of each file to say so.
14224 # Grep'ing the whole file is not good either: AIX grep has a line
14225 # limit of 2048, but all sed's we know have understand at least 4000.
14226 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
14227 dirpart
=`$as_dirname -- "$mf" ||
14228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14229 X"$mf" : 'X\(//\)[^/]' \| \
14230 X"$mf" : 'X\(//\)$' \| \
14231 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14237 /^X\(\/\/\)[^/].*/{
14253 # Extract the definition of DEPDIR, am__include, and am__quote
14254 # from the Makefile without running `make'.
14255 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
14256 test -z "$DEPDIR" && continue
14257 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
14258 test -z "am__include" && continue
14259 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
14260 # When using ansi2knr, U may be empty or an underscore; expand it
14261 U
=`sed -n 's/^U = //p' < "$mf"`
14262 # Find all dependency output files, they are included files with
14263 # $(DEPDIR) in their names. We invoke sed twice because it is the
14264 # simplest approach to changing $(DEPDIR) to its actual value in the
14266 for file in `sed -n "
14267 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14268 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14269 # Make sure the directory exists.
14270 test -f "$dirpart/$file" && continue
14271 fdir
=`$as_dirname -- "$file" ||
14272 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14273 X"$file" : 'X\(//\)[^/]' \| \
14274 X"$file" : 'X\(//\)$' \| \
14275 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14276 $as_echo X"$file" |
14277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14281 /^X\(\/\/\)[^/].*/{
14294 { as_dir
=$dirpart/$fdir
14296 -*) as_dir
=.
/$as_dir;;
14298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14302 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14303 *) as_qdir
=$as_dir;;
14305 as_dirs
="'$as_qdir' $as_dirs"
14306 as_dir
=`$as_dirname -- "$as_dir" ||
14307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14308 X"$as_dir" : 'X\(//\)[^/]' \| \
14309 X"$as_dir" : 'X\(//\)$' \| \
14310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14311 $as_echo X"$as_dir" |
14312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14316 /^X\(\/\/\)[^/].*/{
14329 test -d "$as_dir" && break
14331 test -z "$as_dirs" || eval "mkdir $as_dirs"
14332 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14333 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14334 { (exit 1); exit 1; }; }; }
14335 # echo "creating $dirpart/$file"
14336 echo '# dummy' > "$dirpart/$file"
14342 # See if we are running on zsh, and set the options which allow our
14343 # commands through without removal of \ escapes.
14344 if test -n "${ZSH_VERSION+set}" ; then
14345 setopt NO_GLOB_SUBST
14348 cfgfile
="${ofile}T"
14349 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14352 cat <<_LT_EOF >> "$cfgfile"
14355 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14356 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14358 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14361 # 2006, 2007, 2008 Free Software Foundation, Inc.
14362 # Written by Gordon Matzigkeit, 1996
14364 # This file is part of GNU Libtool.
14366 # GNU Libtool is free software; you can redistribute it and/or
14367 # modify it under the terms of the GNU General Public License as
14368 # published by the Free Software Foundation; either version 2 of
14369 # the License, or (at your option) any later version.
14371 # As a special exception to the GNU General Public License,
14372 # if you distribute this file as part of a program or library that
14373 # is built using GNU Libtool, you may include this file under the
14374 # same distribution terms that you use for the rest of that program.
14376 # GNU Libtool is distributed in the hope that it will be useful,
14377 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14378 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14379 # GNU General Public License for more details.
14381 # You should have received a copy of the GNU General Public License
14382 # along with GNU Libtool; see the file COPYING. If not, a copy
14383 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14384 # obtained by writing to the Free Software Foundation, Inc.,
14385 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14388 # The names of the tagged configurations supported by this script.
14391 # ### BEGIN LIBTOOL CONFIG
14393 # A sed program that does not truncate output.
14396 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14397 Xsed="\$SED -e 1s/^X//"
14399 # A grep program that handles long lines.
14405 # A literal string matcher.
14408 # Assembler program.
14411 # DLL creation program.
14414 # Object dumper program.
14417 # Which release of libtool.m4 was used?
14418 macro_version=$macro_version
14419 macro_revision=$macro_revision
14421 # Whether or not to build shared libraries.
14422 build_libtool_libs=$enable_shared
14424 # Whether or not to build static libraries.
14425 build_old_libs=$enable_static
14427 # What type of objects to build.
14430 # Whether or not to optimize for fast installation.
14431 fast_install=$enable_fast_install
14434 host_alias=$host_alias
14438 # The build system.
14439 build_alias=$build_alias
14443 # A BSD- or MS-compatible name lister.
14446 # Whether we need soft or hard links.
14449 # What is the maximum length of a command?
14450 max_cmd_len=$max_cmd_len
14452 # Object file suffix (normally "o").
14455 # Executable file suffix (normally "").
14458 # whether the shell understands "unset".
14461 # turn spaces into newlines.
14464 # turn newlines into spaces.
14467 # How to create reloadable object files.
14468 reload_flag=$lt_reload_flag
14469 reload_cmds=$lt_reload_cmds
14471 # Method to check whether dependent libraries are shared objects.
14472 deplibs_check_method=$lt_deplibs_check_method
14474 # Command to use when deplibs_check_method == "file_magic".
14475 file_magic_cmd=$lt_file_magic_cmd
14479 AR_FLAGS=$lt_AR_FLAGS
14481 # A symbol stripping program.
14484 # Commands used to install an old-style archive.
14486 old_postinstall_cmds=$lt_old_postinstall_cmds
14487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14492 # LTCC compiler flags.
14493 LTCFLAGS=$lt_CFLAGS
14495 # Take the output of nm and produce a listing of raw symbols and C names.
14496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14498 # Transform the output of nm in a proper C declaration.
14499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14501 # Transform the output of nm in a C name address pair.
14502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14504 # Transform the output of nm in a C name address pair when lib prefix is needed.
14505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14507 # The name of the directory that contains temporary libtool files.
14510 # Shell to use when invoking shell scripts.
14513 # An echo program that does not interpret backslashes.
14516 # Used to examine libraries when file_magic_cmd begins with "file".
14517 MAGIC_CMD=$MAGIC_CMD
14519 # Must we lock files when doing compilation?
14520 need_locks=$lt_need_locks
14522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14523 DSYMUTIL=$lt_DSYMUTIL
14525 # Tool to change global to local symbols on Mac OS X.
14528 # Tool to manipulate fat objects and archives on Mac OS X.
14531 # Old archive suffix (normally "a").
14534 # Shared library suffix (normally ".so").
14535 shrext_cmds=$lt_shrext_cmds
14537 # The commands to extract the exported symbol list from a shared archive.
14538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14540 # Variables whose values should be saved in libtool wrapper scripts and
14541 # restored at link time.
14542 variables_saved_for_relink=$lt_variables_saved_for_relink
14544 # Do we need the "lib" prefix for modules?
14545 need_lib_prefix=$need_lib_prefix
14547 # Do we need a version for libraries?
14548 need_version=$need_version
14550 # Library versioning type.
14551 version_type=$version_type
14553 # Shared library runtime path variable.
14554 runpath_var=$runpath_var
14556 # Shared library path variable.
14557 shlibpath_var=$shlibpath_var
14559 # Is shlibpath searched before the hard-coded library search path?
14560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14562 # Format of library name prefix.
14563 libname_spec=$lt_libname_spec
14565 # List of archive names. First name is the real one, the rest are links.
14566 # The last name is the one that the linker finds with -lNAME
14567 library_names_spec=$lt_library_names_spec
14569 # The coded name of the library, if different from the real name.
14570 soname_spec=$lt_soname_spec
14572 # Command to use after installation of a shared archive.
14573 postinstall_cmds=$lt_postinstall_cmds
14575 # Command to use after uninstallation of a shared archive.
14576 postuninstall_cmds=$lt_postuninstall_cmds
14578 # Commands used to finish a libtool library installation in a directory.
14579 finish_cmds=$lt_finish_cmds
14581 # As "finish_cmds", except a single script fragment to be evaled but
14583 finish_eval=$lt_finish_eval
14585 # Whether we should hardcode library paths into libraries.
14586 hardcode_into_libs=$hardcode_into_libs
14588 # Compile-time system search path for libraries.
14589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14591 # Run-time system search path for libraries.
14592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14594 # Whether dlopen is supported.
14595 dlopen_support=$enable_dlopen
14597 # Whether dlopen of programs is supported.
14598 dlopen_self=$enable_dlopen_self
14600 # Whether dlopen of statically linked programs is supported.
14601 dlopen_self_static=$enable_dlopen_self_static
14603 # Commands to strip libraries.
14604 old_striplib=$lt_old_striplib
14605 striplib=$lt_striplib
14608 # The linker used to build libraries.
14611 # Commands used to build an old-style archive.
14612 old_archive_cmds=$lt_old_archive_cmds
14614 # A language specific compiler.
14617 # Is the compiler the GNU compiler?
14620 # Compiler flag to turn off builtin functions.
14621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14623 # How to pass a linker flag through the compiler.
14624 wl=$lt_lt_prog_compiler_wl
14626 # Additional compiler flags for building library objects.
14627 pic_flag=$lt_lt_prog_compiler_pic
14629 # Compiler flag to prevent dynamic linking.
14630 link_static_flag=$lt_lt_prog_compiler_static
14632 # Does compiler simultaneously support -c and -o options?
14633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14635 # Whether or not to add -lc for building shared libraries.
14636 build_libtool_need_lc=$archive_cmds_need_lc
14638 # Whether or not to disallow shared libs when runtime libs are static.
14639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14641 # Compiler flag to allow reflexive dlopens.
14642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14644 # Compiler flag to generate shared objects directly from archives.
14645 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14647 # Whether the compiler copes with passing no objects directly.
14648 compiler_needs_object=$lt_compiler_needs_object
14650 # Create an old-style archive from a shared archive.
14651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14653 # Create a temporary old-style archive to link instead of a shared archive.
14654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14656 # Commands used to build a shared archive.
14657 archive_cmds=$lt_archive_cmds
14658 archive_expsym_cmds=$lt_archive_expsym_cmds
14660 # Commands used to build a loadable module if different from building
14661 # a shared archive.
14662 module_cmds=$lt_module_cmds
14663 module_expsym_cmds=$lt_module_expsym_cmds
14665 # Whether we are building with GNU ld or not.
14666 with_gnu_ld=$lt_with_gnu_ld
14668 # Flag that allows shared libraries with undefined symbols to be built.
14669 allow_undefined_flag=$lt_allow_undefined_flag
14671 # Flag that enforces no undefined symbols.
14672 no_undefined_flag=$lt_no_undefined_flag
14674 # Flag to hardcode \$libdir into a binary during linking.
14675 # This must work even if \$libdir does not exist
14676 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14678 # If ld is used when linking, flag to hardcode \$libdir into a binary
14679 # during linking. This must work even if \$libdir does not exist.
14680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14682 # Whether we need a single "-rpath" flag with a separated argument.
14683 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14685 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14686 # DIR into the resulting binary.
14687 hardcode_direct=$hardcode_direct
14689 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14690 # DIR into the resulting binary and the resulting library dependency is
14691 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14692 # library is relocated.
14693 hardcode_direct_absolute=$hardcode_direct_absolute
14695 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14696 # into the resulting binary.
14697 hardcode_minus_L=$hardcode_minus_L
14699 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14700 # into the resulting binary.
14701 hardcode_shlibpath_var=$hardcode_shlibpath_var
14703 # Set to "yes" if building a shared library automatically hardcodes DIR
14704 # into the library and all subsequent libraries and executables linked
14706 hardcode_automatic=$hardcode_automatic
14708 # Set to yes if linker adds runtime paths of dependent libraries
14709 # to runtime path list.
14710 inherit_rpath=$inherit_rpath
14712 # Whether libtool must link a program against all its dependency libraries.
14713 link_all_deplibs=$link_all_deplibs
14715 # Fix the shell variable \$srcfile for the compiler.
14716 fix_srcfile_path=$lt_fix_srcfile_path
14718 # Set to "yes" if exported symbols are required.
14719 always_export_symbols=$always_export_symbols
14721 # The commands to list exported symbols.
14722 export_symbols_cmds=$lt_export_symbols_cmds
14724 # Symbols that should not be listed in the preloaded symbols.
14725 exclude_expsyms=$lt_exclude_expsyms
14727 # Symbols that must always be exported.
14728 include_expsyms=$lt_include_expsyms
14730 # Commands necessary for linking programs (against libraries) with templates.
14731 prelink_cmds=$lt_prelink_cmds
14733 # Specify filename containing input files.
14734 file_list_spec=$lt_file_list_spec
14736 # How to hardcode a shared library path into an executable.
14737 hardcode_action=$hardcode_action
14739 # ### END LIBTOOL CONFIG
14745 cat <<\_LT_EOF
>> "$cfgfile"
14746 # AIX sometimes has problems with the GCC collect2 program. For some
14747 # reason, if we set the COLLECT_NAMES environment variable, the problems
14748 # vanish in a puff of smoke.
14749 if test "X${COLLECT_NAMES+set}" != Xset
; then
14751 export COLLECT_NAMES
14758 ltmain
="$ac_aux_dir/ltmain.sh"
14761 # We use sed instead of cat because bash on DJGPP gets confused if
14762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14763 # text mode, it properly converts lines to CR/LF. This bash problem
14764 # is reportedly fixed, but why not run on old versions too?
14765 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14766 || (rm -f "$cfgfile"; exit 1)
14770 cat << \_LT_EOF
>> "$cfgfile"
14772 # func_dirname file append nondir_replacement
14773 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14774 # otherwise set result to NONDIR_REPLACEMENT.
14778 */*) func_dirname_result
="${1%/*}${2}" ;;
14779 * ) func_dirname_result
="${3}" ;;
14783 # func_basename file
14786 func_basename_result
="${1##*/}"
14789 # func_dirname_and_basename file append nondir_replacement
14790 # perform func_basename and func_dirname in a single function
14792 # dirname: Compute the dirname of FILE. If nonempty,
14793 # add APPEND to the result, otherwise set result
14794 # to NONDIR_REPLACEMENT.
14795 # value returned in "$func_dirname_result"
14796 # basename: Compute filename of FILE.
14797 # value retuned in "$func_basename_result"
14798 # Implementation must be kept synchronized with func_dirname
14799 # and func_basename. For efficiency, we do not delegate to
14800 # those functions but instead duplicate the functionality here.
14801 func_dirname_and_basename
()
14804 */*) func_dirname_result
="${1%/*}${2}" ;;
14805 * ) func_dirname_result
="${3}" ;;
14807 func_basename_result
="${1##*/}"
14810 # func_stripname prefix suffix name
14811 # strip PREFIX and SUFFIX off of NAME.
14812 # PREFIX and SUFFIX must not contain globbing or regex special
14813 # characters, hashes, percent signs, but SUFFIX may contain a leading
14814 # dot (in which case that matches only a dot).
14817 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14818 # positional parameters, so assign one to ordinary parameter first.
14819 func_stripname_result
=${3}
14820 func_stripname_result
=${func_stripname_result#"${1}"}
14821 func_stripname_result
=${func_stripname_result%"${2}"}
14827 func_opt_split_opt
=${1%%=*}
14828 func_opt_split_arg
=${1#*=}
14835 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
14836 *) func_lo2o_result
=${1} ;;
14840 # func_xform libobj-or-source
14843 func_xform_result
=${1%.*}.lo
14846 # func_arith arithmetic-term...
14849 func_arith_result
=$(( $* ))
14853 # STRING may not start with a hyphen.
14856 func_len_result
=${#1}
14861 *) # Bourne compatible functions.
14862 cat << \_LT_EOF
>> "$cfgfile"
14864 # func_dirname file append nondir_replacement
14865 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14866 # otherwise set result to NONDIR_REPLACEMENT.
14869 # Extract subdirectory from the argument.
14870 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14871 if test "X$func_dirname_result" = "X${1}"; then
14872 func_dirname_result
="${3}"
14874 func_dirname_result
="$func_dirname_result${2}"
14878 # func_basename file
14881 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
14885 # func_stripname prefix suffix name
14886 # strip PREFIX and SUFFIX off of NAME.
14887 # PREFIX and SUFFIX must not contain globbing or regex special
14888 # characters, hashes, percent signs, but SUFFIX may contain a leading
14889 # dot (in which case that matches only a dot).
14890 # func_strip_suffix prefix name
14894 .
*) func_stripname_result
=`$ECHO "X${3}" \
14895 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14896 *) func_stripname_result
=`$ECHO "X${3}" \
14897 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14902 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
14903 my_sed_long_arg
='1s/^-[^=]*=//'
14908 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14909 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14915 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14918 # func_xform libobj-or-source
14921 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14924 # func_arith arithmetic-term...
14927 func_arith_result
=`expr "$@"`
14931 # STRING may not start with a hyphen.
14934 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14940 case $lt_shell_append in
14942 cat << \_LT_EOF
>> "$cfgfile"
14944 # func_append var value
14945 # Append VALUE to the end of shell variable VAR.
14953 cat << \_LT_EOF
>> "$cfgfile"
14955 # func_append var value
14956 # Append VALUE to the end of shell variable VAR.
14967 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14968 || (rm -f "$cfgfile"; exit 1)
14970 mv -f "$cfgfile" "$ofile" ||
14971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14975 "libpng-config":F
) chmod +x libpng
-config ;;
14981 { (exit 0); exit 0; }
14983 chmod +x
$CONFIG_STATUS
14984 ac_clean_files
=$ac_clean_files_save
14986 test $ac_write_fail = 0 ||
14987 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14988 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14989 { (exit 1); exit 1; }; }
14992 # configure is writing to config.log, and then calls config.status.
14993 # config.status does its own redirection, appending to config.log.
14994 # Unfortunately, on DOS this fails, as config.log is still kept open
14995 # by configure, so config.status won't be able to write to it; its
14996 # output is simply discarded. So we exec the FD to /dev/null,
14997 # effectively closing config.log, so it can be properly (re)opened and
14998 # appended to by config.status. When coming back to configure, we
14999 # need to make the FD available again.
15000 if test "$no_create" != yes; then
15002 ac_config_status_args
=
15003 test "$silent" = yes &&
15004 ac_config_status_args
="$ac_config_status_args --quiet"
15006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15009 # would make configure fail if this is the last instruction.
15010 $ac_cs_success || { (exit 1); exit 1; }
15012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15013 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15014 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}