2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: bug-libtool@gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $echo works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
575 echo_test_string="`eval $cmd`" &&
576 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
583 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
592 # So, first we look for a working echo in the user's PATH.
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
607 if test "X$echo" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
614 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
638 echo="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 echo="$CONFIG_SHELL $0 --fallback-echo"
645 # maybe with a smaller string...
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 # Oops. We lost completely, so just stick with echo.
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
673 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 exec 7<&0 </dev/null 6>&1
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 ac_default_prefix=/usr/local
692 ac_config_libobj_dir=.
699 # Identity of this package.
700 PACKAGE_NAME='libltdl'
701 PACKAGE_TARNAME='libltdl'
702 PACKAGE_VERSION='1.2'
703 PACKAGE_STRING='libltdl 1.2'
704 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
707 ac_unique_file="ltdl.c"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
721 # ifdef HAVE_STDLIB_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
744 ac_subst_vars='am__EXEEXT_FALSE
749 CONVENIENCE_LTDL_FALSE
750 CONVENIENCE_LTDL_TRUE
797 INSTALL_STRIP_PROGRAM
814 MAINTAINER_MODE_FALSE
843 program_transform_name
856 enable_option_checking
857 enable_maintainer_mode
859 enable_dependency_tracking
869 ac_precious_vars='build_alias
880 # Initialize some variables set by options.
882 ac_init_version=false
883 ac_unrecognized_opts=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name=s,x,x,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1186 -site=* | --site=* | --sit=*)
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1295 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1313 # Be sure to have absolute directory names.
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error "pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of libltdl 1.2:";;
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing) to the casual installer
1499 --enable-multilib build many library versions (default)
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-ltdl-install install libltdl
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-pic try to use only PIC/non-PIC objects [default=use
1515 --with-tags[=TAGS] include additional configurations [automatic]
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to <bug-libtool@gnu.org>.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1593 libltdl configure 1.2
1594 generated by GNU Autoconf 2.64
1596 Copyright (C) 2009 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 $as_test_x conftest$ac_exeext
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } >/dev/null && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1731 # the include files in INCLUDES and setting the cache variable VAR
1733 ac_fn_c_check_header_mongrel ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740 $as_echo_n "(cached) " >&6
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1746 # Is the header compilable?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1748 $as_echo_n "checking $2 usability... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 ac_header_compiler=yes
1757 ac_header_compiler=no
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1761 $as_echo "$ac_header_compiler" >&6; }
1763 # Is the header present?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1765 $as_echo_n "checking $2 presence... " >&6; }
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1770 if ac_fn_c_try_cpp "$LINENO"; then :
1771 ac_header_preproc=yes
1773 ac_header_preproc=no
1775 rm -f conftest.err conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1777 $as_echo "$ac_header_preproc" >&6; }
1779 # So? What about this header?
1780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1783 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1789 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1791 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1793 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1795 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ## ---------------------------------- ##
1800 ## Report this to bug-libtool@gnu.org ##
1801 ## ---------------------------------- ##
1803 ) | sed "s/^/$as_me: WARNING: /" >&2
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1811 eval "$3=\$ac_header_compiler"
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1917 # include <limits.h>
1919 # include <assert.h>
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1946 if ac_fn_c_try_link "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_func
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_type
2014 cat >config.log <<_ACEOF
2015 This file contains any messages produced by compilers while
2016 running configure, to aid debugging if configure makes a mistake.
2018 It was created by libltdl $as_me 1.2, which was
2019 generated by GNU Autoconf 2.64. Invocation command line was
2031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2071 # Keep a trace of the command line.
2072 # Strip out --no-create and --no-recursion so they do not pile up.
2073 # Strip out --silent because we don't want to record it for future runs.
2074 # Also quote any args containing shell meta-characters.
2075 # Make two passes to allow for proper duplicate-argument suppression.
2079 ac_must_keep_next=false
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 -* ) ac_must_keep_next=true ;;
2111 as_fn_append ac_configure_args " '$ac_arg'"
2116 { ac_configure_args0=; unset ac_configure_args0;}
2117 { ac_configure_args1=; unset ac_configure_args1;}
2119 # When interrupted or exit'd, cleanup temporary files, and complete
2120 # config.log. We remove comments because anyway the quotes in there
2121 # would cause problems or look ugly.
2122 # WARNING: Use '\'' to represent an apostrophe within the trap.
2123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124 trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2130 ## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 ## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##
2173 for ac_var in $ac_subst_vars
2175 eval ac_val=\$$ac_var
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 $as_echo "$ac_var='\''$ac_val'\''"
2183 if test -n "$ac_subst_files"; then
2185 ## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##
2190 for ac_var in $ac_subst_files
2192 eval ac_val=\$$ac_var
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 $as_echo "$ac_var='\''$ac_val'\''"
2201 if test -s confdefs.h; then
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2227 $as_echo "/* confdefs.h */" > confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2260 if test -n "$CONFIG_SITE"; then
2261 ac_site_file1=$CONFIG_SITE
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special
2282 # files actually), so we avoid doing that.
2283 if test -f "$cache_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 # Check that the precious variables saved in the cache have kept the same
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 ## -------------------- ##
2355 ## Main body of script. ##
2356 ## -------------------- ##
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 ## GCJ LOCAL: gcc tree uses maintainer mode.
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2373 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2374 # Check whether --enable-maintainer-mode was given.
2375 if test "${enable_maintainer_mode+set}" = set; then :
2376 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2378 USE_MAINTAINER_MODE=no
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2382 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2383 if test $USE_MAINTAINER_MODE = yes; then
2384 MAINTAINER_MODE_TRUE=
2385 MAINTAINER_MODE_FALSE='#'
2387 MAINTAINER_MODE_TRUE='#'
2388 MAINTAINER_MODE_FALSE=
2391 MAINT=$MAINTAINER_MODE_TRUE
2395 # Default to --enable-multilib
2396 # Check whether --enable-multilib was given.
2397 if test "${enable_multilib+set}" = set; then :
2398 enableval=$enable_multilib; case "$enableval" in
2399 yes) multilib=yes ;;
2401 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2408 # We may get other options which we leave undocumented:
2409 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2410 # See config-ml.in if you want the gory details.
2412 if test "$srcdir" = "."; then
2413 if test "$with_target_subdir" != "."; then
2414 multi_basedir="$srcdir/$with_multisrctop../../.."
2416 multi_basedir="$srcdir/$with_multisrctop../.."
2419 multi_basedir="$srcdir/../.."
2423 # Even if the default multilib is not a cross compilation,
2424 # it may be that some of the other multilibs are.
2425 if test $cross_compiling = no && test $multilib = yes \
2426 && test "x${with_multisubdir}" != x ; then
2427 cross_compiling=maybe
2430 ac_config_commands="$ac_config_commands default-1"
2433 ## ------------------------------- ##
2434 ## Libltdl specific configuration. ##
2435 ## ------------------------------- ##
2438 for ac_dir in . "$srcdir"/.; do
2439 for ac_t in install-sh install.sh shtool; do
2440 if test -f "$ac_dir/$ac_t"; then
2442 ac_install_sh="$ac_aux_dir/$ac_t -c"
2447 if test -z "$ac_aux_dir"; then
2448 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2451 # These three variables are undocumented and unsupported,
2452 # and are intended to be withdrawn in a future Autoconf release.
2453 # They can cause serious problems if a builder's source tree is in a directory
2454 # whose full name contains unusual characters.
2455 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2461 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
2462 if test -f ${srcdir}/ltmain.sh; then
2463 # if libltdl is libtoolized, it is assumed to be stand-alone and
2464 # installed unless the command line overrides it (tested above)
2465 enable_ltdl_install=yes
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The top-level configure must select either" >&5
2468 $as_echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
2470 $as_echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
2471 as_fn_error "*** Maybe you want to --enable-ltdl-install?" "$LINENO" 5
2476 ## ------------------------ ##
2477 ## Automake Initialisation. ##
2478 ## ------------------------ ##
2479 am__api_version='1.11'
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 # Reject install programs that cannot install multiple files.
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2496 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2497 if test -z "$INSTALL"; then
2498 if test "${ac_cv_path_install+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 # Account for people who put trailing slashes in PATH elements.
2507 case $as_dir/ in #((
2508 ./ | .// | /[cC]/* | \
2509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2510 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2513 # OSF1 and SCO ODT 3.0 have their own names for install.
2514 # Don't use installbsd from OSF since it installs stuff as root
2516 for ac_prog in ginstall scoinst install; do
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2519 if test $ac_prog = install &&
2520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # AIX install. It has an incompatible calling convention.
2523 elif test $ac_prog = install &&
2524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # program-specific install script used by HP pwplus--don't use.
2528 rm -rf conftest.one conftest.two conftest.dir
2529 echo one > conftest.one
2530 echo two > conftest.two
2532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533 test -s conftest.one && test -s conftest.two &&
2534 test -s conftest.dir/conftest.one &&
2535 test -s conftest.dir/conftest.two
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550 rm -rf conftest.one conftest.two conftest.dir
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 INSTALL=$ac_install_sh
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2564 $as_echo "$INSTALL" >&6; }
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2575 $as_echo_n "checking whether build environment is sane... " >&6; }
2578 echo timestamp > conftest.file
2579 # Reject unsafe characters in $srcdir or the absolute working directory
2580 # name. Accept space and tab only in the latter.
2584 *[\\\"\#\$\&\'\`$am_lf]*)
2585 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2588 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2589 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2592 # Do `set' in a subshell so we don't clobber the current shell's
2593 # arguments. Must try -L first in case configure is actually a
2594 # symlink; some systems play weird games with the mod time of symlinks
2595 # (eg FreeBSD returns the mod time of the symlink's containing
2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2601 set X `ls -t "$srcdir/configure" conftest.file`
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2612 alias in your environment" "$LINENO" 5
2615 test "$2" = conftest.file
2621 as_fn_error "newly created file is older than distributed files!
2622 Check your system clock" "$LINENO" 5
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625 $as_echo "yes" >&6; }
2626 test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628 # Use a double $ so make ignores it.
2629 test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631 # Double any \ or $.
2632 # By default was `s,x,x', remove it if useless.
2633 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2636 # expand $ac_aux_dir to an absolute path
2637 am_aux_dir=`cd $ac_aux_dir && pwd`
2639 if test x"${MISSING+set}" != xset; then
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2647 # Use eval to expand $SHELL
2648 if eval "$MISSING --run true"; then
2649 am_missing_run="$MISSING --run "
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2653 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2656 if test x"${install_sh}" != xset; then
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2665 # Installed binaries are usually stripped using `strip' when the user
2666 # run `make install-strip'. However `strip' might not be the right
2667 # tool to use in cross-compilation environments, therefore Automake
2668 # will honor the `STRIP' environment variable to overrule this program.
2669 if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}strip; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if test "${ac_cv_prog_STRIP+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 STRIP=$ac_cv_prog_STRIP
2699 if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701 $as_echo "$STRIP" >&6; }
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2709 if test -z "$ac_cv_prog_STRIP"; then
2711 # Extract the first word of "strip", so it can be a program name with args.
2712 set dummy strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739 if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741 $as_echo "$ac_ct_STRIP" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2747 if test "x$ac_ct_STRIP" = x; then
2750 case $cross_compiling:$ac_tool_warned in
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2759 STRIP="$ac_cv_prog_STRIP"
2763 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767 if test -z "$MKDIR_P"; then
2768 if test "${ac_cv_path_mkdir+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2775 test -z "$as_dir" && as_dir=.
2776 for ac_prog in mkdir gmkdir; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793 if test "${ac_cv_path_mkdir+set}" = set; then
2794 MKDIR_P="$ac_cv_path_mkdir -p"
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for MKDIR_P within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 test -d ./--version && rmdir ./--version
2801 MKDIR_P="$ac_install_sh -d"
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805 $as_echo "$MKDIR_P" >&6; }
2809 [\\/$]* | ?:[\\/]*) ;;
2810 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2813 for ac_prog in gawk mawk nawk awk
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_AWK+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$AWK"; then
2823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_AWK="$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$AWK"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845 $as_echo "$AWK" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$AWK" && break
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2860 $as_echo_n "(cached) " >&6
2862 cat >conftest.make <<\_ACEOF
2865 @echo '@@@%%%=$(MAKE)=@@@%%%'
2867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870 eval ac_cv_prog_make_${ac_make}_set=yes;;
2872 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 SET_MAKE="MAKE=${MAKE-make}"
2886 rm -rf .tst 2>/dev/null
2887 mkdir .tst 2>/dev/null
2888 if test -d .tst; then
2893 rmdir .tst 2>/dev/null
2895 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897 # is not polluted with repeated "-I."
2898 am__isrc=' -I$(srcdir)'
2899 # test to see if srcdir already configured
2900 if test -f $srcdir/config.status; then
2901 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905 # test whether we have cygpath
2906 if test -z "$CYGPATH_W"; then
2907 if (cygpath --version) >/dev/null 2>/dev/null; then
2908 CYGPATH_W='cygpath -w'
2915 # Define the identity of the package.
2920 # Some tools Automake needs.
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936 # We need awk for the "check" target. The system "awk" is bad on
2938 # Always define AMTAR for backward compatibility.
2940 AMTAR=${AMTAR-"${am_missing_run}tar"}
2942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948 ac_config_headers="$ac_config_headers config.h:config-h.in"
2952 ## ------------------ ##
2953 ## C compiler checks. ##
2954 ## ------------------ ##
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2999 if test -z "$ac_cv_prog_CC"; then
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_ac_ct_CC="gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3037 if test "x$ac_ct_CC" = x; then
3040 case $cross_compiling:$ac_tool_warned in
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CC="${ac_tool_prefix}cc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3093 if test -z "$CC"; then
3094 # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113 ac_prog_rejected=yes
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test $ac_prog_rejected = yes; then
3125 # We found a bogon in the path, so make sure we never use it.
3126 set dummy $ac_cv_prog_CC
3128 if test $# != 0; then
3129 # We chose a different compiler from the bogus one.
3130 # However, it has the same basename, so the bogon will be chosen
3131 # first if we set CC to just the basename; use the full file name.
3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3149 if test -z "$CC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 for ac_prog in cl.exe
3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3190 test -n "$CC" && break
3193 if test -z "$CC"; then
3195 for ac_prog in cl.exe
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$ac_ct_CC"; then
3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_ac_ct_CC="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$ac_ct_CC" && break
3237 if test "x$ac_ct_CC" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3253 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details." "$LINENO" 5; }
3258 # Provide some information about the compiler.
3259 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262 for ac_option in --version -v -V -qversion; do
3263 { { ac_try="$ac_compiler $ac_option >&5"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272 if test -s conftest.err; then
3274 ... rest of stderr output deleted ...
3275 10q' conftest.err >conftest.er1
3276 cat conftest.er1 >&5
3277 rm -f conftest.er1 conftest.err
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300 $as_echo_n "checking for C compiler default output file name... " >&6; }
3301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303 # The possible output files:
3304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307 for ac_file in $ac_files
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316 if { { ac_try="$ac_link_default"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link_default") 2>&5
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3330 # so that the user can short-circuit this test for compilers unknown to
3332 for ac_file in $ac_files ''
3334 test -f "$ac_file" || continue
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339 # We found the default executable, but exeext='' is most
3343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 # We set ac_cv_exeext here because the later test for it is not
3348 # safe: cross compilers may not add the suffix if given an `-o'
3349 # argument, so we may need to know it at that point already.
3350 # Even if this section looks crufty: it has the advantage of
3357 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 if test -z "$ac_file"; then :
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { as_fn_set_status 77
3371 as_fn_error "C compiler cannot create executables
3372 See \`config.log' for more details." "$LINENO" 5; }; }
3374 ac_exeext=$ac_cv_exeext
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3379 $as_echo_n "checking whether the C compiler works... " >&6; }
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382 if { ac_try='./$ac_file'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." "$LINENO" 5; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 $as_echo "yes" >&6; }
3409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 # Check that the compiler produces executables we can run. If not, either
3412 # the compiler is broken, or we cross compile.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414 $as_echo_n "checking whether we are cross compiling... " >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416 $as_echo "$cross_compiling" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." "$LINENO" 5; }
3450 rm -f conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if test "${ac_cv_objext+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compile") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." "$LINENO" 5; }
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if test "${ac_cv_prog_cc_g+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3617 if test "$GCC" = yes; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_cv_prog_cc_c89=no
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 #include <sys/types.h>
3635 #include <sys/stat.h>
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3650 s = g (p, va_arg (v,int));
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 DEPDIR="${am__leading_dot}deps"
3721 ac_config_commands="$ac_config_commands depfiles"
3724 am_make=${MAKE-make}
3725 cat > confinc << 'END'
3727 @echo this is the am__doit target
3730 # If we don't find an include directive, just comment out the code.
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3732 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3736 # First try GNU make style include.
3737 echo "include confinc" > confmf
3738 # Ignore all kinds of additional output from `make'.
3739 case `$am_make -s -f confmf 2> /dev/null` in #(
3740 *the\ am__doit\ target*)
3746 # Now try BSD make style include.
3747 if test "$am__include" = "#"; then
3748 echo '.include "confinc"' > confmf
3749 case `$am_make -s -f confmf 2> /dev/null` in #(
3750 *the\ am__doit\ target*)
3751 am__include=.include
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3760 $as_echo "$_am_result" >&6; }
3761 rm -f confinc confmf
3763 # Check whether --enable-dependency-tracking was given.
3764 if test "${enable_dependency_tracking+set}" = set; then :
3765 enableval=$enable_dependency_tracking;
3768 if test "x$enable_dependency_tracking" != xno; then
3769 am_depcomp="$ac_aux_dir/depcomp"
3772 if test "x$enable_dependency_tracking" != xno; then
3782 depcc="$CC" am_compiler_list=
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3785 $as_echo_n "checking dependency style of $depcc... " >&6; }
3786 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3790 # We make a subdir and do the tests there. Otherwise we can end up
3791 # making bogus files that we don't know about and never remove. For
3792 # instance it was reported that on HP-UX the gcc test will end up
3793 # making a dummy file named `D' -- because `-MD' means `put the output
3796 # Copy depcomp to subdir because otherwise we won't find it if we're
3797 # using a relative directory.
3798 cp "$am_depcomp" conftest.dir
3800 # We will build objects and dependencies in a subdirectory because
3801 # it helps to detect inapplicable dependency modes. For instance
3802 # both Tru64's cc and ICC support -MD to output dependencies as a
3803 # side effect of compilation, but ICC will put the dependencies in
3804 # the current directory while Tru64 will put them in the object
3808 am_cv_CC_dependencies_compiler_type=none
3809 if test "$am_compiler_list" = ""; then
3810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813 case " $depcc " in #(
3814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835 # mode. It turns out that the SunPro C++ compiler does not properly
3836 # handle `-M -o', and we need to detect this. Also, some Intel
3837 # versions had trouble with output in subdirs
3838 am__obj=sub/conftest.${OBJEXT-o}
3839 am__minus_obj="-o $am__obj"
3842 # This depmode causes a compiler race in universal mode.
3843 test "$am__universal" = false || continue
3846 # after this tag, mechanisms are not by side-effect, so they'll
3847 # only be used when explicitly requested
3848 if test "x$enable_dependency_tracking" = xyes; then
3854 msvisualcpp | msvcmsys)
3855 # This compiler won't grok `-c -o', but also, the minuso test has
3856 # not run yet. These depmodes are late enough in the game, and
3857 # so weak that their functioning should not be impacted.
3858 am__obj=conftest.${OBJEXT-o}
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=$am__obj \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 # icc doesn't choke on unknown options, it will just issue warnings
3873 # or remarks (even with -Werror). So we grep stderr for any message
3874 # that says an option was ignored or not supported.
3875 # When given -MP, icc 7.0 and 7.1 complain thusly:
3876 # icc: Command line warning: ignoring option '-M'; no argument required
3877 # The diagnosis changed in icc 8.0:
3878 # icc: Command line remark: option '-MP' not supported
3879 if (grep 'ignoring option' conftest.err ||
3880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881 am_cv_CC_dependencies_compiler_type=$depmode
3890 am_cv_CC_dependencies_compiler_type=none
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3895 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3896 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3902 am__fastdepCC_FALSE='#'
3904 am__fastdepCC_TRUE='#'
3905 am__fastdepCC_FALSE=
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3911 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3912 if test "${ac_cv_c_const+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3921 /* FIXME: Include the comments suggested by Paul. */
3923 /* Ultrix mips cc rejects this. */
3924 typedef int charset[2];
3926 /* SunOS 4.1.1 cc rejects this. */
3927 char const *const *pcpcc;
3929 /* NEC SVR4.0.2 mips cc rejects this. */
3930 struct point {int x, y;};
3931 static struct point const zero = {0,0};
3932 /* AIX XL C 1.02.0.0 rejects this.
3933 It does not let you subtract one const X* pointer from another in
3934 an arm of an if-expression whose if-part is not a constant
3936 const char *g = "string";
3937 pcpcc = &g + (g ? g-g : 0);
3938 /* HPUX 7.0 cc rejects these. */
3940 ppc = (char**) pcpcc;
3941 pcpcc = (char const *const *) ppc;
3942 { /* SCO 3.2v4 cc rejects this. */
3944 char const *s = 0 ? (char *) 0 : (char const *) 0;
3949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3951 const int *foo = &x[0];
3954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3955 typedef const int *iptr;
3959 { /* AIX XL C 1.02.0.0 rejects this saying
3960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3961 struct s { int j; const int *ap[3]; };
3962 struct s *b; b->j = 5;
3964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3968 return !cs[0] && !zero.x;
3975 if ac_fn_c_try_compile "$LINENO"; then :
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3983 $as_echo "$ac_cv_c_const" >&6; }
3984 if test $ac_cv_c_const = no; then
3986 $as_echo "#define const /**/" >>confdefs.h
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3991 $as_echo_n "checking for inline... " >&6; }
3992 if test "${ac_cv_c_inline+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3996 for ac_kw in inline __inline__ __inline; do
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 static $ac_kw foo_t static_foo () {return 0; }
4002 $ac_kw foo_t foo () {return 0; }
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_c_inline=$ac_kw
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 test "$ac_cv_c_inline" != no && break
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4015 $as_echo "$ac_cv_c_inline" >&6; }
4017 case $ac_cv_c_inline in
4020 case $ac_cv_c_inline in
4022 *) ac_val=$ac_cv_c_inline;;
4024 cat >>confdefs.h <<_ACEOF
4026 #define inline $ac_val
4034 ## ----------------------- ##
4035 ## Libtool initialisation. ##
4036 ## ----------------------- ##
4039 # Check whether --enable-shared was given.
4040 if test "${enable_shared+set}" = set; then :
4041 enableval=$enable_shared; p=${PACKAGE-default}
4043 yes) enable_shared=yes ;;
4044 no) enable_shared=no ;;
4047 # Look at the argument we got. We use all the common list separators.
4048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4049 for pkg in $enableval; do
4051 if test "X$pkg" = "X$p"; then
4063 # Check whether --enable-static was given.
4064 if test "${enable_static+set}" = set; then :
4065 enableval=$enable_static; p=${PACKAGE-default}
4067 yes) enable_static=yes ;;
4068 no) enable_static=no ;;
4071 # Look at the argument we got. We use all the common list separators.
4072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073 for pkg in $enableval; do
4075 if test "X$pkg" = "X$p"; then
4087 # Check whether --enable-fast-install was given.
4088 if test "${enable_fast_install+set}" = set; then :
4089 enableval=$enable_fast_install; p=${PACKAGE-default}
4091 yes) enable_fast_install=yes ;;
4092 no) enable_fast_install=no ;;
4094 enable_fast_install=no
4095 # Look at the argument we got. We use all the common list separators.
4096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4097 for pkg in $enableval; do
4099 if test "X$pkg" = "X$p"; then
4100 enable_fast_install=yes
4107 enable_fast_install=yes
4111 # Make sure we can run config.sub.
4112 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4113 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4116 $as_echo_n "checking build system type... " >&6; }
4117 if test "${ac_cv_build+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4120 ac_build_alias=$build_alias
4121 test "x$ac_build_alias" = x &&
4122 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4123 test "x$ac_build_alias" = x &&
4124 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4126 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4130 $as_echo "$ac_cv_build" >&6; }
4131 case $ac_cv_build in
4133 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4136 ac_save_IFS=$IFS; IFS='-'
4142 # Remember, the first character of IFS is used to create $*,
4143 # except with old shells:
4146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4150 $as_echo_n "checking host system type... " >&6; }
4151 if test "${ac_cv_host+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 if test "x$host_alias" = x; then
4155 ac_cv_host=$ac_cv_build
4157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4158 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4163 $as_echo "$ac_cv_host" >&6; }
4166 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4169 ac_save_IFS=$IFS; IFS='-'
4175 # Remember, the first character of IFS is used to create $*,
4176 # except with old shells:
4179 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4184 if test "${lt_cv_path_SED+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 # Loop through the user's path and test for sed and gsed.
4188 # Then use that list of sed's as ones to test for truncation.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for lt_ac_prog in sed gsed; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4197 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4204 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4205 # along with /bin/sed that truncates output.
4206 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4207 test ! -f $lt_ac_sed && continue
4208 cat /dev/null > conftest.in
4210 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4211 # Check for GNU sed and select it if it is found.
4212 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4213 lt_cv_path_SED=$lt_ac_sed
4217 cat conftest.in conftest.in >conftest.tmp
4218 mv conftest.tmp conftest.in
4219 cp conftest.in conftest.nl
4221 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4222 cmp -s conftest.out conftest.nl || break
4223 # 10000 chars as input seems more than enough
4224 test $lt_ac_count -gt 10 && break
4225 lt_ac_count=`expr $lt_ac_count + 1`
4226 if test $lt_ac_count -gt $lt_ac_max; then
4227 lt_ac_max=$lt_ac_count
4228 lt_cv_path_SED=$lt_ac_sed
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4237 $as_echo "$SED" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241 if test "${ac_cv_path_GREP+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4244 if test -z "$GREP"; then
4245 ac_path_GREP_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 test -z "$as_dir" && as_dir=.
4252 for ac_prog in grep ggrep; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4256 # Check for GNU ac_path_GREP and select it if it is found.
4257 # Check for GNU $ac_path_GREP
4258 case `"$ac_path_GREP" --version 2>&1` in
4260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263 $as_echo_n 0123456789 >"conftest.in"
4266 cat "conftest.in" "conftest.in" >"conftest.tmp"
4267 mv "conftest.tmp" "conftest.in"
4268 cp "conftest.in" "conftest.nl"
4269 $as_echo 'GREP' >> "conftest.nl"
4270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272 as_fn_arith $ac_count + 1 && ac_count=$as_val
4273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274 # Best one so far, save it but keep looking for a better one
4275 ac_cv_path_GREP="$ac_path_GREP"
4276 ac_path_GREP_max=$ac_count
4278 # 10*(2^10) chars as input seems more than enough
4279 test $ac_count -gt 10 && break
4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 $ac_path_GREP_found && break 3
4289 if test -z "$ac_cv_path_GREP"; then
4290 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 ac_cv_path_GREP=$GREP
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298 $as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303 $as_echo_n "checking for egrep... " >&6; }
4304 if test "${ac_cv_path_EGREP+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308 then ac_cv_path_EGREP="$GREP -E"
4310 if test -z "$EGREP"; then
4311 ac_path_EGREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 test -z "$as_dir" && as_dir=.
4318 for ac_prog in egrep; do
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4322 # Check for GNU ac_path_EGREP and select it if it is found.
4323 # Check for GNU $ac_path_EGREP
4324 case `"$ac_path_EGREP" --version 2>&1` in
4326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329 $as_echo_n 0123456789 >"conftest.in"
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'EGREP' >> "conftest.nl"
4336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338 as_fn_arith $ac_count + 1 && ac_count=$as_val
4339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_EGREP="$ac_path_EGREP"
4342 ac_path_EGREP_max=$ac_count
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 $ac_path_EGREP_found && break 3
4355 if test -z "$ac_cv_path_EGREP"; then
4356 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 ac_cv_path_EGREP=$EGREP
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365 $as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4370 # Check whether --with-gnu-ld was given.
4371 if test "${with_gnu_ld+set}" = set; then :
4372 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4378 if test "$GCC" = yes; then
4379 # Check if gcc -print-prog-name=ld gives a path.
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4381 $as_echo_n "checking for ld used by $CC... " >&6; }
4384 # gcc leaves a trailing carriage return which upsets mingw
4385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4390 # Accept absolute paths.
4392 re_direlt='/[^/][^/]*/\.\./'
4393 # Canonicalize the pathname of ld
4394 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4395 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4396 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4398 test -z "$LD" && LD="$ac_prog"
4401 # If it fails, then pretend we aren't using GCC.
4405 # If it is relative, then search for the first ld in PATH.
4409 elif test "$with_gnu_ld" = yes; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4411 $as_echo_n "checking for GNU ld... " >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4414 $as_echo_n "checking for non-GNU ld... " >&6; }
4416 if test "${lt_cv_path_LD+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4419 if test -z "$LD"; then
4420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421 for ac_dir in $PATH; do
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4425 lt_cv_path_LD="$ac_dir/$ac_prog"
4426 # Check to see if the program is GNU ld. I'd rather use --version,
4427 # but apparently some GNU ld's only accept -v.
4428 # Break only if it was the GNU/non-GNU ld that we prefer.
4429 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4430 *GNU* | *'with BFD'*)
4431 test "$with_gnu_ld" != no && break
4434 test "$with_gnu_ld" != yes && break
4441 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4446 if test -n "$LD"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4448 $as_echo "$LD" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4453 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4455 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4456 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4460 case `$LD -v 2>&1 </dev/null` in
4461 *GNU* | *'with BFD'*)
4462 lt_cv_prog_gnu_ld=yes
4465 lt_cv_prog_gnu_ld=no
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4470 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4471 with_gnu_ld=$lt_cv_prog_gnu_ld
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4475 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4476 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 lt_cv_ld_reload_flag='-r'
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4482 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4483 reload_flag=$lt_cv_ld_reload_flag
4484 case $reload_flag in
4486 *) reload_flag=" $reload_flag" ;;
4488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4491 if test "$GCC" = yes; then
4492 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4500 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4501 if test "${lt_cv_path_NM+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$NM"; then
4505 # Let the user override the test.
4508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4511 test -z "$ac_dir" && ac_dir=.
4512 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514 # Check to see if the nm accepts a BSD-compat flag.
4515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516 # nm: unknown option "B" ignored
4517 # Tru64's nm complains that /dev/null is an invalid object file
4518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519 */dev/null* | *'Invalid file or object type'*)
4520 lt_cv_path_NM="$tmp_nm -B"
4524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4526 lt_cv_path_NM="$tmp_nm -p"
4530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531 continue # so that we can try to find one that supports BSD flags
4538 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4542 $as_echo "$lt_cv_path_NM" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4546 $as_echo_n "checking whether ln -s works... " >&6; }
4548 if test "$LN_S" = "ln -s"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550 $as_echo "yes" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4553 $as_echo "no, using $LN_S" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4557 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4558 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 lt_cv_file_magic_cmd='$MAGIC_CMD'
4562 lt_cv_file_magic_test_file=
4563 lt_cv_deplibs_check_method='unknown'
4564 # Need to set the preceding variable on all platforms that support
4565 # interlibrary dependencies.
4566 # 'none' -- dependencies not supported.
4567 # `unknown' -- same as none, but documents that we really don't know.
4568 # 'pass_all' -- all dependencies passed with no checks.
4569 # 'test_compile' -- check by making test program.
4570 # 'file_magic [[regex]]' -- check by looking for files in library path
4571 # which responds to the $file_magic_cmd with a given extended regex.
4572 # If you have `file' or equivalent on your system and you're not sure
4573 # whether `pass_all' will *always* work, you probably want this one.
4577 lt_cv_deplibs_check_method=pass_all
4581 lt_cv_deplibs_check_method=pass_all
4585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4586 lt_cv_file_magic_cmd='/usr/bin/file -L'
4587 lt_cv_file_magic_test_file=/shlib/libc.so
4591 # func_win32_libid is a shell function defined in ltmain.sh
4592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4593 lt_cv_file_magic_cmd='func_win32_libid'
4597 # Base MSYS/MinGW do not provide the 'file' command needed by
4598 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4600 lt_cv_file_magic_cmd='$OBJDUMP -f'
4603 darwin* | rhapsody*)
4604 lt_cv_deplibs_check_method=pass_all
4607 freebsd* | kfreebsd*-gnu | dragonfly*)
4608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4611 # Not sure whether the presence of OpenBSD here was a mistake.
4612 # Let's accept both of them until this is cleared up.
4613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4614 lt_cv_file_magic_cmd=/usr/bin/file
4615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4619 lt_cv_deplibs_check_method=pass_all
4624 lt_cv_deplibs_check_method=pass_all
4627 hpux10.20* | hpux11*)
4628 lt_cv_file_magic_cmd=/usr/bin/file
4631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4635 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]'
4636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4645 irix5* | irix6* | nonstopux*)
4647 *-32|*"-32 ") libmagic=32-bit;;
4648 *-n32|*"-n32 ") libmagic=N32;;
4649 *-64|*"-64 ") libmagic=64-bit;;
4650 *) libmagic=never-match;;
4652 lt_cv_deplibs_check_method=pass_all
4655 # This must be Linux ELF.
4657 lt_cv_deplibs_check_method=pass_all
4661 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4670 lt_cv_file_magic_cmd=/usr/bin/file
4671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4675 lt_cv_deplibs_check_method=unknown
4679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4686 osf3* | osf4* | osf5*)
4687 lt_cv_deplibs_check_method=pass_all
4691 lt_cv_deplibs_check_method=pass_all
4695 lt_cv_deplibs_check_method=pass_all
4698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4699 case $host_vendor in
4701 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]'
4702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4705 lt_cv_deplibs_check_method=pass_all
4708 lt_cv_file_magic_cmd='/bin/file'
4709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4712 lt_cv_file_magic_cmd='/bin/file'
4713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4714 lt_cv_file_magic_test_file=/lib/libc.so
4717 lt_cv_deplibs_check_method=pass_all
4722 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4723 lt_cv_deplibs_check_method=pass_all
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4729 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4730 file_magic_cmd=$lt_cv_file_magic_cmd
4731 deplibs_check_method=$lt_cv_deplibs_check_method
4732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4737 # If no C compiler was specified, use CC.
4740 # Allow CC to be a program name with arguments.
4743 # Check whether --enable-libtool-lock was given.
4744 if test "${enable_libtool_lock+set}" = set; then :
4745 enableval=$enable_libtool_lock;
4748 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4750 # Some flags need to be propagated to the compiler or linker for good
4754 # Find out which ABI we are using.
4755 echo 'int i;' > conftest.$ac_ext
4756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4757 (eval $ac_compile) 2>&5
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }; then
4761 case `/usr/bin/file conftest.$ac_objext` in
4773 # Find out which ABI we are using.
4774 echo '#line 4774 "configure"' > conftest.$ac_ext
4775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4776 (eval $ac_compile) 2>&5
4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }; then
4780 if test "$lt_cv_prog_gnu_ld" = yes; then
4781 case `/usr/bin/file conftest.$ac_objext` in
4783 LD="${LD-ld} -melf32bsmip"
4786 LD="${LD-ld} -melf32bmipn32"
4789 LD="${LD-ld} -melf64bmip"
4793 case `/usr/bin/file conftest.$ac_objext` in
4809 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4810 # Find out which ABI we are using.
4811 echo 'int i;' > conftest.$ac_ext
4812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4813 (eval $ac_compile) 2>&5
4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; then
4817 case "`/usr/bin/file conftest.o`" in
4821 LD="${LD-ld} -m elf_i386"
4823 ppc64-*linux*|powerpc64-*linux*)
4824 LD="${LD-ld} -m elf32ppclinux"
4827 LD="${LD-ld} -m elf_s390"
4830 LD="${LD-ld} -m elf32_sparc"
4837 LD="${LD-ld} -m elf_x86_64"
4839 ppc*-*linux*|powerpc*-*linux*)
4840 LD="${LD-ld} -m elf64ppc"
4843 LD="${LD-ld} -m elf64_s390"
4846 LD="${LD-ld} -m elf64_sparc"
4856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -belf"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4881 if ac_fn_c_try_link "$LINENO"; then :
4882 lt_cv_cc_needs_belf=yes
4884 lt_cv_cc_needs_belf=no
4886 rm -f core conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4902 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4903 if test -n "$ac_tool_prefix"; then
4904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4905 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4911 if test -n "$DLLTOOL"; then
4912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 DLLTOOL=$ac_cv_prog_DLLTOOL
4932 if test -n "$DLLTOOL"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4934 $as_echo "$DLLTOOL" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4942 if test -z "$ac_cv_prog_DLLTOOL"; then
4943 ac_ct_DLLTOOL=$DLLTOOL
4944 # Extract the first word of "dlltool", so it can be a program name with args.
4945 set dummy dlltool; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 if test -n "$ac_ct_DLLTOOL"; then
4952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4972 if test -n "$ac_ct_DLLTOOL"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4974 $as_echo "$ac_ct_DLLTOOL" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4980 if test "x$ac_ct_DLLTOOL" = x; then
4983 case $cross_compiling:$ac_tool_warned in
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned=yes ;;
4989 DLLTOOL=$ac_ct_DLLTOOL
4992 DLLTOOL="$ac_cv_prog_DLLTOOL"
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}as; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_AS+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5003 if test -n "$AS"; then
5004 ac_cv_prog_AS="$AS" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_AS="${ac_tool_prefix}as"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 if test -n "$AS"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5026 $as_echo "$AS" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5034 if test -z "$ac_cv_prog_AS"; then
5036 # Extract the first word of "as", so it can be a program name with args.
5037 set dummy as; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 if test -n "$ac_ct_AS"; then
5044 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_ac_ct_AS="as"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5064 if test -n "$ac_ct_AS"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5066 $as_echo "$ac_ct_AS" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5072 if test "x$ac_ct_AS" = x; then
5075 case $cross_compiling:$ac_tool_warned in
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5079 ac_tool_warned=yes ;;
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$OBJDUMP"; then
5096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 OBJDUMP=$ac_cv_prog_OBJDUMP
5116 if test -n "$OBJDUMP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5118 $as_echo "$OBJDUMP" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5126 if test -z "$ac_cv_prog_OBJDUMP"; then
5127 ac_ct_OBJDUMP=$OBJDUMP
5128 # Extract the first word of "objdump", so it can be a program name with args.
5129 set dummy objdump; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 if test -n "$ac_ct_OBJDUMP"; then
5136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5156 if test -n "$ac_ct_OBJDUMP"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5158 $as_echo "$ac_ct_OBJDUMP" >&6; }
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5164 if test "x$ac_ct_OBJDUMP" = x; then
5167 case $cross_compiling:$ac_tool_warned in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5173 OBJDUMP=$ac_ct_OBJDUMP
5176 OBJDUMP="$ac_cv_prog_OBJDUMP"
5183 need_locks="$enable_libtool_lock"
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5193 # On Suns, sometimes $CPP names a directory.
5194 if test -n "$CPP" && test -d "$CPP"; then
5197 if test -z "$CPP"; then
5198 if test "${ac_cv_prog_CPP+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5201 # Double quotes because CPP needs to be expanded
5202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5205 for ac_c_preproc_warn_flag in '' yes
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error" is here to catch this case.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5216 # include <limits.h>
5218 # include <assert.h>
5222 if ac_fn_c_try_cpp "$LINENO"; then :
5225 # Broken: fails on valid input.
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether nonexistent headers
5231 # can be detected and how.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5236 if ac_fn_c_try_cpp "$LINENO"; then :
5237 # Broken: success on invalid input.
5240 # Passes both tests.
5244 rm -f conftest.err conftest.$ac_ext
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then :
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5262 $as_echo "$CPP" >&6; }
5264 for ac_c_preproc_warn_flag in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # include <limits.h>
5277 # include <assert.h>
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5284 # Broken: fails on valid input.
5287 rm -f conftest.err conftest.$ac_ext
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5299 # Passes both tests.
5303 rm -f conftest.err conftest.$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then :
5311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." "$LINENO" 5; }
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5325 $as_echo_n "checking for ANSI C header files... " >&6; }
5326 if test "${ac_cv_header_stdc+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 ac_cv_header_stdc=yes
5347 ac_cv_header_stdc=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 if test $ac_cv_header_stdc = yes; then
5352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "memchr" >/dev/null 2>&1; then :
5362 ac_cv_header_stdc=no
5368 if test $ac_cv_header_stdc = yes; then
5369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "free" >/dev/null 2>&1; then :
5379 ac_cv_header_stdc=no
5385 if test $ac_cv_header_stdc = yes; then
5386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5387 if test "$cross_compiling" = yes; then :
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5394 #if ((' ' & 0x0FF) == 0x020)
5395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398 # define ISLOWER(c) \
5399 (('a' <= (c) && (c) <= 'i') \
5400 || ('j' <= (c) && (c) <= 'r') \
5401 || ('s' <= (c) && (c) <= 'z'))
5402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5410 for (i = 0; i < 256; i++)
5411 if (XOR (islower (i), ISLOWER (i))
5412 || toupper (i) != TOUPPER (i))
5417 if ac_fn_c_try_run "$LINENO"; then :
5420 ac_cv_header_stdc=no
5422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5423 conftest.$ac_objext conftest.beam conftest.$ac_ext
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5429 $as_echo "$ac_cv_header_stdc" >&6; }
5430 if test $ac_cv_header_stdc = yes; then
5432 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5438 inttypes.h stdint.h unistd.h
5440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5443 eval as_val=\$$as_ac_Header
5444 if test "x$as_val" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454 for ac_header in dlfcn.h
5456 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5457 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5458 cat >>confdefs.h <<_ACEOF
5459 #define HAVE_DLFCN_H 1
5467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5469 # find the maximum length of command line arguments
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5480 # On DJGPP, this test can blow up pretty badly due to problems in libc
5481 # (any single argument exceeding 2000 bytes causes a buffer overrun
5482 # during glob expansion). Even if it were fixed, the result of this
5483 # check would be larger than it should be.
5484 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5488 # Under GNU Hurd, this test is not required because there is
5489 # no limit to the length of command line arguments.
5490 # Libtool will interpret -1 as no limit whatsoever
5491 lt_cv_sys_max_cmd_len=-1;
5495 # On Win9x/ME, this test blows up -- it succeeds, but takes
5496 # about 5 minutes as the teststring grows exponentially.
5497 # Worse, since 9x/ME are not pre-emptively multitasking,
5498 # you end up with a "frozen" computer, even though with patience
5499 # the test eventually succeeds (with a max line length of 256k).
5500 # Instead, let's just punt: use the minimum linelength reported by
5501 # all of the supported platforms: 8192 (on NT/2K/XP).
5502 lt_cv_sys_max_cmd_len=8192;
5506 # On AmigaOS with pdksh, this test takes hours, literally.
5507 # So we just punt and use a minimum line length of 8192.
5508 lt_cv_sys_max_cmd_len=8192;
5511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5512 # This has been around since 386BSD, at least. Likely further.
5513 if test -x /sbin/sysctl; then
5514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5515 elif test -x /usr/sbin/sysctl; then
5516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5520 # And add a safety zone
5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5525 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5526 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5527 # nice to cause kernel panics so lets avoid the loop below.
5528 # First set a reasonable default.
5529 lt_cv_sys_max_cmd_len=16384
5531 if test -x /sbin/sysconfig; then
5532 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5533 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5538 # If test is not a shell built-in, we'll probably end up computing a
5539 # maximum length that is only half of the actual maximum length, but
5541 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5542 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5543 = "XX$teststring") >/dev/null 2>&1 &&
5544 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5545 lt_cv_sys_max_cmd_len=$new_result &&
5546 test $i != 17 # 1/2 MB should be enough
5549 teststring=$teststring$teststring
5552 # Add a significant safety factor because C++ compilers can tack on massive
5553 # amounts of additional arguments before passing them to the linker.
5554 # It appears as though 1/2 is a usable value.
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5561 if test -n $lt_cv_sys_max_cmd_len ; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5563 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5566 $as_echo "none" >&6; }
5572 # Check for command to grab the raw symbol name followed by C symbol from nm.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5574 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5575 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5579 # These are sane defaults that work on at least a few old systems.
5580 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5582 # Character class describing NM global symbol codes.
5583 symcode='[BCDEGRST]'
5585 # Regexp to match symbols that can be accessed directly from C.
5586 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5588 # Transform an extracted symbol line into a proper C declaration
5589 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5591 # Transform an extracted symbol line into symbol name and symbol address
5592 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5594 # Define system-specific variables.
5599 cygwin* | mingw* | pw32*)
5600 symcode='[ABCDGISTW]'
5602 hpux*) # Its linker distinguishes data from code symbols
5603 if test "$host_cpu" = ia64; then
5604 symcode='[ABCDEGRST]'
5606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5610 if test "$host_cpu" = ia64; then
5611 symcode='[ABCDGIRSTW]'
5612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5613 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5617 symcode='[BCDEGRST]'
5620 symcode='[BCDEGQRST]'
5630 # Handle CRLF in mingw tool chain
5634 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5638 # If we're using GNU nm, then use its standard symbol codes.
5639 case `$NM -V 2>&1` in
5640 *GNU* | *'with BFD'*)
5641 symcode='[ABCDGIRSTW]' ;;
5644 # Try without a prefix undercore, then with it.
5645 for ac_symprfx in "" "_"; do
5647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5648 symxfrm="\\1 $ac_symprfx\\2 \\2"
5650 # Write the raw and C identifiers.
5651 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5653 # Check to see that the pipe works correctly.
5657 cat > conftest.$ac_ext <<EOF
5662 void nm_test_func(){}
5666 int main(){nm_test_var='a';nm_test_func();return(0);}
5669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5670 (eval $ac_compile) 2>&5
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }; then
5674 # Now try to grab the symbols.
5676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5677 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; } && test -s "$nlist"; then
5681 # Try sorting and uniquifying the output.
5682 if sort "$nlist" | uniq > "$nlist"T; then
5683 mv -f "$nlist"T "$nlist"
5688 # Make sure that we snagged all the symbols we need.
5689 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5690 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5691 cat <<EOF > conftest.$ac_ext
5697 # Now generate the symbol file.
5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5700 cat <<EOF >> conftest.$ac_ext
5701 #if defined (__STDC__) && __STDC__
5702 # define lt_ptr_t void *
5704 # define lt_ptr_t char *
5708 /* The mapping between symbol names and symbols. */
5713 lt_preloaded_symbols[] =
5716 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5717 cat <<\EOF >> conftest.$ac_ext
5725 # Now try linking the two files.
5726 mv conftest.$ac_objext conftstm.$ac_objext
5727 lt_save_LIBS="$LIBS"
5728 lt_save_CFLAGS="$CFLAGS"
5729 LIBS="conftstm.$ac_objext"
5730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5732 (eval $ac_link) 2>&5
5734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5738 LIBS="$lt_save_LIBS"
5739 CFLAGS="$lt_save_CFLAGS"
5741 echo "cannot find nm_test_func in $nlist" >&5
5744 echo "cannot find nm_test_var in $nlist" >&5
5747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5750 echo "$progname: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 rm -f conftest* conftst*
5755 # Do not use the global_symbol_pipe unless it works.
5756 if test "$pipe_works" = yes; then
5759 lt_cv_sys_global_symbol_pipe=
5765 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5766 lt_cv_sys_global_symbol_to_cdecl=
5768 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5770 $as_echo "failed" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5773 $as_echo "ok" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5777 $as_echo_n "checking for objdir... " >&6; }
5778 if test "${lt_cv_objdir+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5781 rm -f .libs 2>/dev/null
5782 mkdir .libs 2>/dev/null
5783 if test -d .libs; then
5786 # MS-DOS does not allow filenames that begin with a dot.
5789 rmdir .libs 2>/dev/null
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5792 $as_echo "$lt_cv_objdir" >&6; }
5793 objdir=$lt_cv_objdir
5801 # AIX sometimes has problems with the GCC collect2 program. For some
5802 # reason, if we set the COLLECT_NAMES environment variable, the problems
5803 # vanish in a puff of smoke.
5804 if test "X${COLLECT_NAMES+set}" != Xset; then
5806 export COLLECT_NAMES
5811 # Sed substitution that helps us do robust quoting. It backslashifies
5812 # metacharacters that are still active within double-quoted strings.
5813 Xsed='sed -e 1s/^X//'
5814 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5816 # Same as above, but do not quote variable references.
5817 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5819 # Sed substitution to delay expansion of an escaped shell variable in a
5820 # double_quote_subst'ed string.
5821 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5823 # Sed substitution to avoid accidental globbing in evaled expressions
5824 no_glob_subst='s/\*/\\\*/g'
5830 default_ofile=libtool
5831 can_build_shared=yes
5833 # All known linkers require a `.a' archive for static linking (except M$VC,
5834 # which needs '.lib').
5836 ltmain="$ac_aux_dir/ltmain.sh"
5837 ofile="$default_ofile"
5838 with_gnu_ld="$lt_cv_prog_gnu_ld"
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}ar; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_AR+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$AR"; then
5849 ac_cv_prog_AR="$AR" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_AR="${ac_tool_prefix}ar"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 if test -n "$AR"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5871 $as_echo "$AR" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5879 if test -z "$ac_cv_prog_AR"; then
5881 # Extract the first word of "ar", so it can be a program name with args.
5882 set dummy ar; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$ac_ct_AR"; then
5889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_AR="ar"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5909 if test -n "$ac_ct_AR"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5911 $as_echo "$ac_ct_AR" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5917 if test "x$ac_ct_AR" = x; then
5920 case $cross_compiling:$ac_tool_warned in
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$RANLIB"; then
5941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 RANLIB=$ac_cv_prog_RANLIB
5961 if test -n "$RANLIB"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5963 $as_echo "$RANLIB" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_RANLIB"; then
5972 ac_ct_RANLIB=$RANLIB
5973 # Extract the first word of "ranlib", so it can be a program name with args.
5974 set dummy ranlib; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -n "$ac_ct_RANLIB"; then
5981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_RANLIB="ranlib"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6001 if test -n "$ac_ct_RANLIB"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6003 $as_echo "$ac_ct_RANLIB" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_RANLIB" = x; then
6012 case $cross_compiling:$ac_tool_warned in
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6018 RANLIB=$ac_ct_RANLIB
6021 RANLIB="$ac_cv_prog_RANLIB"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}strip; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_STRIP+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$STRIP"; then
6033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 STRIP=$ac_cv_prog_STRIP
6053 if test -n "$STRIP"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6055 $as_echo "$STRIP" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_STRIP"; then
6065 # Extract the first word of "strip", so it can be a program name with args.
6066 set dummy strip; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_STRIP"; then
6073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_STRIP="strip"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6093 if test -n "$ac_ct_STRIP"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6095 $as_echo "$ac_ct_STRIP" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_STRIP" = x; then
6104 case $cross_compiling:$ac_tool_warned in
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6113 STRIP="$ac_cv_prog_STRIP"
6118 old_CFLAGS="$CFLAGS"
6120 # Set sane defaults for various variables
6121 test -z "$AR" && AR=ar
6122 test -z "$AR_FLAGS" && AR_FLAGS=cru
6123 test -z "$AS" && AS=as
6124 test -z "$CC" && CC=cc
6125 test -z "$LTCC" && LTCC=$CC
6126 test -z "$DLLTOOL" && DLLTOOL=dlltool
6127 test -z "$LD" && LD=ld
6128 test -z "$LN_S" && LN_S="ln -s"
6129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6130 test -z "$NM" && NM=nm
6131 test -z "$SED" && SED=sed
6132 test -z "$OBJDUMP" && OBJDUMP=objdump
6133 test -z "$RANLIB" && RANLIB=:
6134 test -z "$STRIP" && STRIP=:
6135 test -z "$ac_objext" && ac_objext=o
6137 # Determine commands to create old-style static archives.
6138 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6139 old_postinstall_cmds='chmod 644 $oldlib'
6140 old_postuninstall_cmds=
6142 if test -n "$RANLIB"; then
6145 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6148 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6151 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6154 for cc_temp in $compiler""; do
6156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6162 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6165 # Only perform the check for file, if the check method requires it
6166 case $deplibs_check_method in
6168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6179 lt_save_MAGIC_CMD="$MAGIC_CMD"
6180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6182 for ac_dir in $ac_dummy; do
6184 test -z "$ac_dir" && ac_dir=.
6185 if test -f $ac_dir/${ac_tool_prefix}file; then
6186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6187 if test -n "$file_magic_test_file"; then
6188 case $deplibs_check_method in
6190 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6193 $EGREP "$file_magic_regex" > /dev/null; then
6198 *** Warning: the command libtool uses to detect shared libraries,
6199 *** $file_magic_cmd, produces output that libtool cannot recognize.
6200 *** The result is that libtool may fail to recognize shared libraries
6201 *** as such. This will affect the creation of libtool libraries that
6202 *** depend on shared libraries, but programs linked with such libtool
6203 *** libraries will work regardless of this problem. Nevertheless, you
6204 *** may want to report the problem to your system manager and/or to
6205 *** bug-libtool@gnu.org
6215 MAGIC_CMD="$lt_save_MAGIC_CMD"
6220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6221 if test -n "$MAGIC_CMD"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6223 $as_echo "$MAGIC_CMD" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test -z "$lt_cv_path_MAGIC_CMD"; then
6230 if test -n "$ac_tool_prefix"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6232 $as_echo_n "checking for file... " >&6; }
6233 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6241 lt_save_MAGIC_CMD="$MAGIC_CMD"
6242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6244 for ac_dir in $ac_dummy; do
6246 test -z "$ac_dir" && ac_dir=.
6247 if test -f $ac_dir/file; then
6248 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6249 if test -n "$file_magic_test_file"; then
6250 case $deplibs_check_method in
6252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6255 $EGREP "$file_magic_regex" > /dev/null; then
6260 *** Warning: the command libtool uses to detect shared libraries,
6261 *** $file_magic_cmd, produces output that libtool cannot recognize.
6262 *** The result is that libtool may fail to recognize shared libraries
6263 *** as such. This will affect the creation of libtool libraries that
6264 *** depend on shared libraries, but programs linked with such libtool
6265 *** libraries will work regardless of this problem. Nevertheless, you
6266 *** may want to report the problem to your system manager and/or to
6267 *** bug-libtool@gnu.org
6277 MAGIC_CMD="$lt_save_MAGIC_CMD"
6282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6283 if test -n "$MAGIC_CMD"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6285 $as_echo "$MAGIC_CMD" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6301 enable_win32_dll=yes
6303 # Check whether --enable-libtool-lock was given.
6304 if test "${enable_libtool_lock+set}" = set; then :
6305 enableval=$enable_libtool_lock;
6308 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311 # Check whether --with-pic was given.
6312 if test "${with_pic+set}" = set; then :
6313 withval=$with_pic; pic_mode="$withval"
6318 test -z "$pic_mode" && pic_mode=default
6320 # Use C for the default configuration in the libtool script
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 # Source file extension for C test sources.
6333 # Object file extension for compiled C test sources.
6337 # Code to be used in simple compile tests
6338 lt_simple_compile_test_code="int some_variable = 0;\n"
6340 # Code to be used in simple link tests
6341 lt_simple_link_test_code='int main(){return(0);}\n'
6344 # If no C compiler was specified, use CC.
6347 # Allow CC to be a program name with arguments.
6351 # save warnings/boilerplate of simple test code
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6355 _lt_compiler_boilerplate=`cat conftest.err`
6358 ac_outfile=conftest.$ac_objext
6359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6361 _lt_linker_boilerplate=`cat conftest.err`
6366 # Check for any special shared library compilation flags.
6369 if test "$GCC" = no; then
6372 lt_prog_cc_shlib='-belf'
6376 if test -n "$lt_prog_cc_shlib"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6378 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6379 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6382 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6383 lt_cv_prog_cc_can_build_shared=no
6389 # Check to make sure the static flag actually works.
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6392 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6393 if test "${lt_prog_compiler_static_works+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6396 lt_prog_compiler_static_works=no
6397 save_LDFLAGS="$LDFLAGS"
6398 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6399 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings
6403 if test -s conftest.err; then
6404 # Append any errors to the config.log.
6405 cat conftest.err 1>&5
6406 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6407 $SED '/^$/d' conftest.err >conftest.er2
6408 if diff conftest.exp conftest.er2 >/dev/null; then
6409 lt_prog_compiler_static_works=yes
6412 lt_prog_compiler_static_works=yes
6416 LDFLAGS="$save_LDFLAGS"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6420 $as_echo "$lt_prog_compiler_static_works" >&6; }
6422 if test x"$lt_prog_compiler_static_works" = xyes; then
6425 lt_prog_compiler_static=
6431 ## There is no encapsulation within the following macros, do not change
6432 ## the running order or otherwise move them around unless you know exactly
6433 ## what you are doing...
6435 lt_prog_compiler_no_builtin_flag=
6437 if test "$GCC" = yes; then
6438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6446 lt_cv_prog_compiler_rtti_exceptions=no
6447 ac_outfile=conftest.$ac_objext
6448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6449 lt_compiler_flag="-fno-rtti -fno-exceptions"
6450 # Insert the option either (1) after the last *FLAGS variable, or
6451 # (2) before a word containing "conftest.", or (3) at the end.
6452 # Note that $ac_compile itself does not contain backslashes and begins
6453 # with a dollar sign (not a hyphen), so the echo should work correctly.
6454 # The option is referenced via a variable to avoid confusing sed.
6455 lt_compile=`echo "$ac_compile" | $SED \
6456 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6458 -e 's:$: $lt_compiler_flag:'`
6459 (eval echo "\"\$as_me:6459: $lt_compile\"" >&5)
6460 (eval "$lt_compile" 2>conftest.err)
6462 cat conftest.err >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 if (exit $ac_status) && test -s "$ac_outfile"; then
6465 # The compiler can only warn and ignore the option if not recognized
6466 # So say no if there are warnings other than the usual output.
6467 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6468 $SED '/^$/d' conftest.err >conftest.er2
6469 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6470 lt_cv_prog_compiler_rtti_exceptions=yes
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6487 lt_prog_compiler_wl=
6488 lt_prog_compiler_pic=
6489 lt_prog_compiler_static=
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6492 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6494 if test "$GCC" = yes; then
6495 lt_prog_compiler_wl='-Wl,'
6496 lt_prog_compiler_static='-static'
6500 # All AIX code is PIC.
6501 if test "$host_cpu" = ia64; then
6502 # AIX 5 now supports IA64 processor
6503 lt_prog_compiler_static='-Bstatic'
6508 # FIXME: we need at least 68020 code to build shared libraries, but
6509 # adding the `-m68020' flag to GCC prevents building anything better,
6511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6515 # PIC is the default for these OSes.
6518 mingw* | pw32* | os2*)
6519 # This hack is so that the source file can tell whether it is being
6520 # built for inclusion in a dll (and should export symbols for example).
6521 lt_prog_compiler_pic='-DDLL_EXPORT'
6524 darwin* | rhapsody*)
6525 # PIC is the default on this platform
6526 # Common symbols not allowed in MH_DYLIB files
6527 lt_prog_compiler_pic='-fno-common'
6531 # Just because we use GCC doesn't mean we suddenly get shared libraries
6532 # on systems that don't support them.
6533 lt_prog_compiler_can_build_shared=no
6538 if test -d /usr/nec; then
6539 lt_prog_compiler_pic=-Kconform_pic
6544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6551 lt_prog_compiler_pic='-fPIC'
6557 lt_prog_compiler_pic='-fPIC'
6561 # PORTME Check for flag to pass linker flags through the system compiler.
6564 lt_prog_compiler_wl='-Wl,'
6565 if test "$host_cpu" = ia64; then
6566 # AIX 5 now supports IA64 processor
6567 lt_prog_compiler_static='-Bstatic'
6569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6573 # PIC is the default on this platform
6574 # Common symbols not allowed in MH_DYLIB files
6575 case $cc_basename in
6577 lt_prog_compiler_pic='-qnocommon'
6578 lt_prog_compiler_wl='-Wl,'
6583 mingw* | pw32* | os2*)
6584 # This hack is so that the source file can tell whether it is being
6585 # built for inclusion in a dll (and should export symbols for example).
6586 lt_prog_compiler_pic='-DDLL_EXPORT'
6589 hpux9* | hpux10* | hpux11*)
6590 lt_prog_compiler_wl='-Wl,'
6591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6598 lt_prog_compiler_pic='+Z'
6601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6602 lt_prog_compiler_static='${wl}-a ${wl}archive'
6605 irix5* | irix6* | nonstopux*)
6606 lt_prog_compiler_wl='-Wl,'
6607 # PIC (with -KPIC) is the default.
6608 lt_prog_compiler_static='-non_shared'
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6617 case $cc_basename in
6619 lt_prog_compiler_wl='-Wl,'
6620 lt_prog_compiler_pic='-KPIC'
6621 lt_prog_compiler_static='-static'
6623 pgcc* | pgf77* | pgf90*)
6624 # Portland Group compilers (*not* the Pentium gcc compiler,
6625 # which looks to be a dead project)
6626 lt_prog_compiler_wl='-Wl,'
6627 lt_prog_compiler_pic='-fpic'
6628 lt_prog_compiler_static='-static'
6631 lt_prog_compiler_wl='-Wl,'
6632 # All Alpha code is PIC.
6633 lt_prog_compiler_static='-non_shared'
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6645 lt_prog_compiler_pic='-Kpic'
6646 lt_prog_compiler_static='-dn'
6650 lt_prog_compiler_pic='-KPIC'
6651 lt_prog_compiler_static='-Bstatic'
6652 case $cc_basename in
6654 lt_prog_compiler_wl='-Qoption ld ';;
6656 lt_prog_compiler_wl='-Wl,';;
6661 lt_prog_compiler_wl='-Qoption ld '
6662 lt_prog_compiler_pic='-PIC'
6663 lt_prog_compiler_static='-Bstatic'
6666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6667 lt_prog_compiler_wl='-Wl,'
6668 lt_prog_compiler_pic='-KPIC'
6669 lt_prog_compiler_static='-Bstatic'
6673 if test -d /usr/nec ;then
6674 lt_prog_compiler_pic='-Kconform_pic'
6675 lt_prog_compiler_static='-Bstatic'
6680 lt_prog_compiler_wl='-Wl,'
6681 lt_prog_compiler_can_build_shared=no
6685 lt_prog_compiler_pic='-pic'
6686 lt_prog_compiler_static='-Bstatic'
6690 lt_prog_compiler_can_build_shared=no
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6696 $as_echo "$lt_prog_compiler_pic" >&6; }
6699 # Check to make sure the PIC flag actually works.
6701 if test -n "$lt_prog_compiler_pic"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6705 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6708 lt_prog_compiler_pic_works=no
6709 ac_outfile=conftest.$ac_objext
6710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6712 # Insert the option either (1) after the last *FLAGS variable, or
6713 # (2) before a word containing "conftest.", or (3) at the end.
6714 # Note that $ac_compile itself does not contain backslashes and begins
6715 # with a dollar sign (not a hyphen), so the echo should work correctly.
6716 # The option is referenced via a variable to avoid confusing sed.
6717 lt_compile=`echo "$ac_compile" | $SED \
6718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6720 -e 's:$: $lt_compiler_flag:'`
6721 (eval echo "\"\$as_me:6721: $lt_compile\"" >&5)
6722 (eval "$lt_compile" 2>conftest.err)
6724 cat conftest.err >&5
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 if (exit $ac_status) && test -s "$ac_outfile"; then
6727 # The compiler can only warn and ignore the option if not recognized
6728 # So say no if there are warnings other than the usual output.
6729 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6730 $SED '/^$/d' conftest.err >conftest.er2
6731 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6732 lt_prog_compiler_pic_works=yes
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6739 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6741 if test x"$lt_prog_compiler_pic_works" = xyes; then
6742 case $lt_prog_compiler_pic in
6744 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6747 lt_prog_compiler_pic=
6748 lt_prog_compiler_can_build_shared=no
6753 # For platforms which do not support PIC, -DPIC is meaningless:
6755 lt_prog_compiler_pic=
6758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6764 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6767 lt_cv_prog_compiler_c_o=no
6768 $rm -r conftest 2>/dev/null
6772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6774 lt_compiler_flag="-o out/conftest2.$ac_objext"
6775 # Insert the option either (1) after the last *FLAGS variable, or
6776 # (2) before a word containing "conftest.", or (3) at the end.
6777 # Note that $ac_compile itself does not contain backslashes and begins
6778 # with a dollar sign (not a hyphen), so the echo should work correctly.
6779 lt_compile=`echo "$ac_compile" | $SED \
6780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6782 -e 's:$: $lt_compiler_flag:'`
6783 (eval echo "\"\$as_me:6783: $lt_compile\"" >&5)
6784 (eval "$lt_compile" 2>out/conftest.err)
6786 cat out/conftest.err >&5
6787 echo "$as_me:6787: \$? = $ac_status" >&5
6788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6790 # The compiler can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6793 $SED '/^$/d' out/conftest.err >out/conftest.er2
6794 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6795 lt_cv_prog_compiler_c_o=yes
6800 # SGI C++ compiler will create directory out/ii_files/ for
6801 # template instantiation
6802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6803 $rm out/* && rmdir out
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6810 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6813 hard_links="nottested"
6814 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6815 # do not overwrite the value of need_locks provided by the user
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6817 $as_echo_n "checking if we can lock with hard links... " >&6; }
6820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6822 ln conftest.a conftest.b 2>&5 || hard_links=no
6823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6825 $as_echo "$hard_links" >&6; }
6826 if test "$hard_links" = no; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6828 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6839 allow_undefined_flag=
6840 enable_shared_with_static_runtimes=no
6842 archive_expsym_cmds=
6843 old_archive_From_new_cmds=
6844 old_archive_from_expsyms_cmds=
6845 export_dynamic_flag_spec=
6846 whole_archive_flag_spec=
6847 thread_safe_flag_spec=
6848 hardcode_libdir_flag_spec=
6849 hardcode_libdir_flag_spec_ld=
6850 hardcode_libdir_separator=
6853 hardcode_shlibpath_var=unsupported
6854 link_all_deplibs=unknown
6855 hardcode_automatic=no
6858 always_export_symbols=no
6859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6860 # include_expsyms should be a list of space-separated symbols to be *always*
6861 # included in the symbol list
6863 # exclude_expsyms can be an extended regexp of symbols to exclude
6864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6866 # as well as any symbol that contains `d'.
6867 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6869 # platforms (ab)use it in PIC code, but their linkers get confused if
6870 # the symbol is explicitly referenced. Since portable code cannot
6871 # rely on this symbol name, it's probably fine to never include it in
6872 # preloaded symbol tables.
6873 extract_expsyms_cmds=
6874 # Just being paranoid about ensuring that cc_basename is set.
6875 for cc_temp in $compiler""; do
6877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6886 cygwin* | mingw* | pw32*)
6887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6888 # When not using gcc, we currently assume that we are using
6889 # Microsoft Visual C++.
6890 if test "$GCC" != yes; then
6900 if test "$with_gnu_ld" = yes; then
6901 # If archive_cmds runs LD, not CC, wlarc should be empty
6904 # Set some defaults for GNU ld with shared library support. These
6905 # are reset later if shared libraries are not supported. Putting them
6906 # here allows them to be overridden if necessary.
6907 runpath_var=LD_RUN_PATH
6908 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6909 export_dynamic_flag_spec='${wl}--export-dynamic'
6910 # ancient GNU ld didn't support --whole-archive et. al.
6911 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6914 whole_archive_flag_spec=
6916 supports_anon_versioning=no
6917 case `$LD -v 2>/dev/null` in
6918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6921 *\ 2.11.*) ;; # other 2.11 versions
6922 *) supports_anon_versioning=yes ;;
6925 # See if GNU ld supports shared libraries.
6927 aix3* | aix4* | aix5*)
6928 # On AIX/PPC, the GNU linker is very broken
6929 if test "$host_cpu" != ia64; then
6933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6934 *** to be unable to reliably create shared libraries on AIX.
6935 *** Therefore, libtool is disabling shared libraries support. If you
6936 *** really care for shared libraries, you may want to modify your PATH
6937 *** so that a non-GNU linker is found, and then restart.
6944 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)'
6945 hardcode_libdir_flag_spec='-L$libdir'
6946 hardcode_minus_L=yes
6948 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6949 # that the semantics of dynamic libraries on AmigaOS, at least up
6950 # to version 4, is to share data among multiple programs linked
6951 # with the same dynamic library. Since this doesn't match the
6952 # behavior of shared libraries on other platforms, we can't use
6958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6959 allow_undefined_flag=unsupported
6960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6961 # support --undefined. This deserves some investigation. FIXME
6962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6968 cygwin* | mingw* | pw32*)
6969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6970 # as there is no search path for DLLs.
6971 hardcode_libdir_flag_spec='-L$libdir'
6972 allow_undefined_flag=unsupported
6973 always_export_symbols=no
6974 enable_shared_with_static_runtimes=yes
6975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6979 # If the export-symbols file already is a .def file (1st line
6980 # is EXPORTS), use it as is; otherwise, prepend...
6981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6982 cp $export_symbols $output_objdir/$soname.def;
6984 echo EXPORTS > $output_objdir/$soname.def;
6985 cat $export_symbols >> $output_objdir/$soname.def;
6987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996 case $cc_basename,$host_cpu in
6997 pgcc*) # Portland Group C compiler
6998 whole_archive_flag_spec=
7000 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7001 whole_archive_flag_spec=
7002 tmp_addflag=' -fpic -Mnomain' ;;
7003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7004 tmp_addflag=' -i_dynamic' ;;
7005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7006 tmp_addflag=' -i_dynamic -nofor_main' ;;
7007 ifc* | ifort*) # Intel Fortran compiler
7008 tmp_addflag=' -nofor_main' ;;
7010 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7012 if test $supports_anon_versioning = yes; then
7013 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7015 $echo "local: *; };" >> $output_objdir/$libname.ver~
7016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7039 *** create shared libraries on Solaris systems. Therefore, libtool
7040 *** is disabling shared libraries support. We urge you to upgrade GNU
7041 *** binutils to release 2.9.1 or newer. Another option is to modify
7042 *** your PATH or compiler configuration so that the native linker is
7043 *** used, and then restart.
7046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7058 hardcode_shlibpath_var=no
7062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7071 if test "$ld_shlibs" = no; then
7073 hardcode_libdir_flag_spec=
7074 export_dynamic_flag_spec=
7075 whole_archive_flag_spec=
7078 # PORTME fill in a description of your system's linker (not GNU ld)
7081 allow_undefined_flag=unsupported
7082 always_export_symbols=yes
7083 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'
7084 # Note: this linker hardcodes the directories in LIBPATH if there
7085 # are no directories specified by -L.
7086 hardcode_minus_L=yes
7087 if test "$GCC" = yes && test -z "$link_static_flag"; then
7088 # Neither direct hardcoding nor static linking is supported with a
7090 hardcode_direct=unsupported
7095 if test "$host_cpu" = ia64; then
7096 # On IA64, the linker does run time linking by default, so we don't
7097 # have to do anything special.
7098 aix_use_runtimelinking=no
7099 exp_sym_flag='-Bexport'
7102 # If we're using GNU nm, then we don't want the "-C" option.
7103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7105 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'
7107 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'
7109 aix_use_runtimelinking=no
7111 # Test if we are trying to use run time linking or normal
7112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7113 # need to do runtime linking.
7114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7115 for ld_flag in $LDFLAGS; do
7116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7117 aix_use_runtimelinking=yes
7123 exp_sym_flag='-bexport'
7124 no_entry_flag='-bnoentry'
7127 # When large executables or shared objects are built, AIX ld can
7128 # have problems creating the table of contents. If linking a library
7129 # or program results in "error TOC overflow" add -mminimal-toc to
7130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7135 hardcode_libdir_separator=':'
7136 link_all_deplibs=yes
7138 if test "$GCC" = yes; then
7139 case $host_os in aix4.[012]|aix4.[012].*)
7140 # We only want to do this on AIX 4.2 and lower, the check
7141 # below for broken collect2 doesn't work under 4.3+
7142 collect2name=`${CC} -print-prog-name=collect2`
7143 if test -f "$collect2name" && \
7144 strings "$collect2name" | grep resolve_lib_name >/dev/null
7146 # We have reworked collect2
7149 # We have old collect2
7150 hardcode_direct=unsupported
7151 # It fails to find uninstalled libraries when the uninstalled
7152 # path is not listed in the libpath. Setting hardcode_minus_L
7153 # to unsupported forces relinking
7154 hardcode_minus_L=yes
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_libdir_separator=
7159 shared_flag='-shared'
7160 if test "$aix_use_runtimelinking" = yes; then
7161 shared_flag="$shared_flag "'${wl}-G'
7165 if test "$host_cpu" = ia64; then
7166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7167 # chokes on -Wl,-G. The following line is correct:
7170 if test "$aix_use_runtimelinking" = yes; then
7171 shared_flag='${wl}-G'
7173 shared_flag='${wl}-bM:SRE'
7178 # It seems that -bexpall does not export symbols beginning with
7179 # underscore (_), so it is better to generate a list of symbols to export.
7180 always_export_symbols=yes
7181 if test "$aix_use_runtimelinking" = yes; then
7182 # Warning - without using the other runtime loading flags (-brtl),
7183 # -berok will link without error, but may produce a broken library.
7184 allow_undefined_flag='-berok'
7185 # Determine the default libpath from the value encoded in an empty executable.
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7197 if ac_fn_c_try_link "$LINENO"; then :
7199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7201 # Check for a 64-bit object if we didn't find anything.
7202 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7209 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7210 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7212 if test "$host_cpu" = ia64; then
7213 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7214 allow_undefined_flag="-z nodefs"
7215 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7217 # Determine the default libpath from the value encoded in an empty executable.
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7229 if ac_fn_c_try_link "$LINENO"; then :
7231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7233 # Check for a 64-bit object if we didn't find anything.
7234 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7242 # Warning - without using the other run time loading flags,
7243 # -berok will link without error, but may produce a broken library.
7244 no_undefined_flag=' ${wl}-bernotok'
7245 allow_undefined_flag=' ${wl}-berok'
7246 # -bexpall does not export symbols beginning with underscore (_)
7247 always_export_symbols=yes
7248 # Exported symbols can be pulled into shared objects from archives
7249 whole_archive_flag_spec=' '
7250 archive_cmds_need_lc=yes
7251 # This is similar to how AIX traditionally builds it's shared libraries.
7252 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7258 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)'
7259 hardcode_libdir_flag_spec='-L$libdir'
7260 hardcode_minus_L=yes
7261 # see comment about different semantics on the GNU ld section
7266 export_dynamic_flag_spec=-rdynamic
7269 cygwin* | mingw* | pw32*)
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 # hardcode_libdir_flag_spec is actually meaningless, as there is
7273 # no search path for DLLs.
7274 hardcode_libdir_flag_spec=' '
7275 allow_undefined_flag=unsupported
7276 # Tell ltmain to make .lib files, not .a files.
7278 # Tell ltmain to make .dll files, not .so files.
7280 # FIXME: Setting linknames here is a bad hack.
7281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7282 # The linker will automatically build a .lib file if we build a DLL.
7283 old_archive_From_new_cmds='true'
7284 # FIXME: Should let the user specify the lib program.
7285 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7286 fix_srcfile_path='`cygpath -w "$srcfile"`'
7287 enable_shared_with_static_runtimes=yes
7290 darwin* | rhapsody*)
7292 rhapsody* | darwin1.[012])
7293 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7296 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7297 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7299 case ${MACOSX_DEPLOYMENT_TARGET} in
7301 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7310 archive_cmds_need_lc=no
7312 hardcode_automatic=yes
7313 hardcode_shlibpath_var=unsupported
7314 whole_archive_flag_spec=''
7315 link_all_deplibs=yes
7316 if test "$GCC" = yes ; then
7317 output_verbose_link_cmd='echo'
7318 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7321 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7322 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7324 case $cc_basename in
7326 output_verbose_link_cmd='echo'
7327 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7328 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7330 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7331 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_shlibpath_var=no
7350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7351 # support. Future versions do this automatically, but an explicit c++rt0.o
7352 # does not break anything, and helps significantly (at the cost of a little
7355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7356 hardcode_libdir_flag_spec='-R$libdir'
7358 hardcode_shlibpath_var=no
7361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7365 hardcode_minus_L=yes
7366 hardcode_shlibpath_var=no
7369 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7370 freebsd* | kfreebsd*-gnu | dragonfly*)
7371 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7372 hardcode_libdir_flag_spec='-R$libdir'
7374 hardcode_shlibpath_var=no
7378 if test "$GCC" = yes; then
7379 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'
7381 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'
7383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7384 hardcode_libdir_separator=:
7387 # hardcode_minus_L: Not really in the search PATH,
7388 # but as the default location of the library.
7389 hardcode_minus_L=yes
7390 export_dynamic_flag_spec='${wl}-E'
7394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7406 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7413 if test "$with_gnu_ld" = no; then
7416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7417 hardcode_libdir_flag_spec_ld='+b $libdir'
7418 hardcode_libdir_separator=:
7420 hardcode_shlibpath_var=no
7423 hardcode_libdir_flag_spec='-L$libdir'
7425 hardcode_shlibpath_var=no
7427 # hardcode_minus_L: Not really in the search PATH,
7428 # but as the default location of the library.
7429 hardcode_minus_L=yes
7432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433 hardcode_libdir_separator=:
7435 export_dynamic_flag_spec='${wl}-E'
7437 # hardcode_minus_L: Not really in the search PATH,
7438 # but as the default location of the library.
7439 hardcode_minus_L=yes
7445 irix5* | irix6* | nonstopux*)
7446 if test "$GCC" = yes; then
7447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7449 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7450 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7453 hardcode_libdir_separator=:
7454 link_all_deplibs=yes
7458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7463 hardcode_libdir_flag_spec='-R$libdir'
7465 hardcode_shlibpath_var=no
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7472 hardcode_libdir_separator=:
7473 hardcode_shlibpath_var=no
7478 hardcode_shlibpath_var=no
7479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7481 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7483 export_dynamic_flag_spec='${wl}-E'
7486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7488 hardcode_libdir_flag_spec='-R$libdir'
7491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7499 hardcode_libdir_flag_spec='-L$libdir'
7500 hardcode_minus_L=yes
7501 allow_undefined_flag=unsupported
7502 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'
7503 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7507 if test "$GCC" = yes; then
7508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7509 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7511 allow_undefined_flag=' -expect_unresolved \*'
7512 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7515 hardcode_libdir_separator=:
7518 osf4* | osf5*) # as osf3* with the addition of -msym flag
7519 if test "$GCC" = yes; then
7520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7521 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7524 allow_undefined_flag=' -expect_unresolved \*'
7525 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7526 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7527 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7529 # Both c and cxx compiler support -rpath directly
7530 hardcode_libdir_flag_spec='-rpath $libdir'
7532 hardcode_libdir_separator=:
7536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 hardcode_shlibpath_var=no
7538 export_dynamic_flag_spec='${wl}-Bexport'
7539 runpath_var=LD_RUN_PATH
7540 hardcode_runpath_var=yes
7544 no_undefined_flag=' -z text'
7545 if test "$GCC" = yes; then
7547 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7548 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7549 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7553 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7556 hardcode_libdir_flag_spec='-R$libdir'
7557 hardcode_shlibpath_var=no
7559 solaris2.[0-5] | solaris2.[0-5].*) ;;
7561 # The compiler driver will combine linker options so we
7562 # cannot just pass the convience library names through
7563 # without $wl, iff we do not link with $LD.
7564 # Luckily, gcc supports the same syntax we need for Sun Studio.
7565 # Supported since Solaris 2.6 (maybe 2.5.1?)
7568 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7570 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7573 link_all_deplibs=yes
7577 if test "x$host_vendor" = xsequent; then
7578 # Use $CC to link under sequent, because it throws in some extra .o
7579 # files that make .init and .fini sections work.
7580 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_libdir_flag_spec='-L$libdir'
7586 hardcode_minus_L=yes
7587 hardcode_shlibpath_var=no
7591 case $host_vendor in
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_direct=yes # is this really true???
7597 ## LD is ld it makes a PLAMLIB
7598 ## CC just makes a GrossModule.
7599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7600 reload_cmds='$CC -r -o $output$reload_objs'
7604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7608 runpath_var='LD_RUN_PATH'
7609 hardcode_shlibpath_var=no
7613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 hardcode_shlibpath_var=no
7615 export_dynamic_flag_spec='-Bexport'
7619 if test -d /usr/nec; then
7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621 hardcode_shlibpath_var=no
7622 runpath_var=LD_RUN_PATH
7623 hardcode_runpath_var=yes
7629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7632 hardcode_shlibpath_var=no
7633 hardcode_runpath_var=yes
7634 runpath_var=LD_RUN_PATH
7637 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7638 no_undefined_flag='${wl}-z ${wl}text'
7639 if test "$GCC" = yes; then
7640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7642 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7644 runpath_var='LD_RUN_PATH'
7645 hardcode_shlibpath_var=no
7649 no_undefined_flag=' -z text'
7650 # $CC -shared without GNU ld will not create a library from C++
7651 # object files and a static libstdc++, better avoid it by now
7652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7653 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7655 hardcode_libdir_flag_spec=
7656 hardcode_shlibpath_var=no
7657 runpath_var='LD_RUN_PATH'
7661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7662 hardcode_libdir_flag_spec='-L$libdir'
7663 hardcode_shlibpath_var=no
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7673 $as_echo "$ld_shlibs" >&6; }
7674 test "$ld_shlibs" = no && can_build_shared=no
7676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7677 if test "$GCC" = yes; then
7678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7682 # Do we need to explicitly link libc?
7684 case "x$archive_cmds_need_lc" in
7686 # Assume -lc should be added
7687 archive_cmds_need_lc=yes
7689 if test "$enable_shared" = yes && test "$GCC" = yes; then
7690 case $archive_cmds in
7692 # FIXME: we may have to deal with multi-command sequences.
7695 # Test whether the compiler implicitly links with -lc since on some
7696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7697 # to ld, don't add -lc before -lgcc.
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; } 2>conftest.err; then
7710 libobjs=conftest.$ac_objext
7712 wl=$lt_prog_compiler_wl
7718 lt_save_allow_undefined_flag=$allow_undefined_flag
7719 allow_undefined_flag=
7720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7721 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }
7726 archive_cmds_need_lc=no
7728 archive_cmds_need_lc=yes
7730 allow_undefined_flag=$lt_save_allow_undefined_flag
7732 cat conftest.err 1>&5
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7736 $as_echo "$archive_cmds_need_lc" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7744 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7746 libname_spec='lib$name'
7754 shlibpath_overrides_runpath=unknown
7756 dynamic_linker="$host_os ld.so"
7757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7758 if test "$GCC" = yes; then
7759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7761 # if the path contains ";" then we assume it to be the separator
7762 # otherwise default to the standard path separator (i.e. ":") - it is
7763 # assumed that no part of a normal pathname contains ";" but that should
7764 # okay in the real world where ";" in dirpaths is itself problematic.
7765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7772 need_lib_prefix=unknown
7773 hardcode_into_libs=no
7775 # when you set need_version to no, make sure it does not cause -set_version
7776 # flags to be left without arguments
7777 need_version=unknown
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7783 shlibpath_var=LIBPATH
7785 # AIX 3 has no versioning support, so we append a major version to the name.
7786 soname_spec='${libname}${release}${shared_ext}$major'
7793 hardcode_into_libs=yes
7794 if test "$host_cpu" = ia64; then
7795 # AIX 5 supports IA64
7796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7797 shlibpath_var=LD_LIBRARY_PATH
7799 # With GCC up to 2.95.x, collect2 would create an import file
7800 # for dependence libraries. The import file would start with
7801 # the line `#! .'. This would cause the generated library to
7802 # depend on `.', always an invalid library. This was fixed in
7803 # development snapshots of GCC prior to 3.0.
7805 aix4 | aix4.[01] | aix4.[01].*)
7806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7816 # soname into executable. Probably we can add versioning support to
7817 # collect2, so additional links can be useful in future.
7818 if test "$aix_use_runtimelinking" = yes; then
7819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7820 # instead of lib<name>.a to let people know that these are not
7821 # typical AIX shared libraries.
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824 # We preserve .a as extension for shared libraries through AIX4.2
7825 # and later when we are not doing run time linking.
7826 library_names_spec='${libname}${release}.a $libname.a'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7829 shlibpath_var=LIBPATH
7834 library_names_spec='$libname.ixlibrary $libname.a'
7835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7836 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'
7840 library_names_spec='${libname}${shared_ext}'
7841 dynamic_linker="$host_os ld.so"
7842 shlibpath_var=LIBRARY_PATH
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7851 shlibpath_var=LD_LIBRARY_PATH
7852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7854 # the default ld.so.conf also contains /usr/contrib/lib and
7855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7856 # libtool to hard-code these into programs
7859 cygwin* | mingw* | pw32*)
7860 version_type=windows
7865 case $GCC,$host_os in
7866 yes,cygwin* | yes,mingw* | yes,pw32*)
7867 library_names_spec='$libname.dll.a'
7868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7869 postinstall_cmds='base_file=`basename \${file}`~
7870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7871 dldir=$destdir/`dirname \$dlpath`~
7872 test -d \$dldir || mkdir -p \$dldir~
7873 $install_prog $dir/$dlname \$dldir/$dlname'
7874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7875 dlpath=$dir/\$dldll~
7877 shlibpath_overrides_runpath=yes
7881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7886 # MinGW DLLs use traditional 'lib' prefix
7887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7890 # It is most probably a Windows format PATH printed by
7891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7892 # path with ; separators, and with drive letters. We can handle the
7893 # drive letters (cygwin fileutils understands them), so leave them,
7894 # especially as we might pass files found there to a mingw objdump,
7895 # which wouldn't understand a cygwinified path. Ahh.
7896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7902 # pw32 DLLs use 'pw' prefix rather than 'lib'
7903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7912 dynamic_linker='Win32 ld.exe'
7913 # FIXME: first we should search . and the directory the executable is in
7917 darwin* | rhapsody*)
7918 dynamic_linker="$host_os dyld"
7922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7923 soname_spec='${libname}${release}${major}$shared_ext'
7924 shlibpath_overrides_runpath=yes
7925 shlibpath_var=DYLD_LIBRARY_PATH
7926 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7928 if test "$GCC" = yes; then
7929 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7941 soname_spec='${libname}${release}${shared_ext}$major'
7942 shlibpath_var=LD_LIBRARY_PATH
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=no
7957 hardcode_into_libs=yes
7958 dynamic_linker='GNU ld.so'
7961 freebsd* | dragonfly*)
7962 # DragonFly does not have aout. When/if they implement a new
7963 # versioning mechanism, adjust this.
7964 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7965 version_type=freebsd-$objformat
7966 case $version_type in
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7977 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=yes
7982 freebsd3.[01]* | freebsdelf3.[01]*)
7983 shlibpath_overrides_runpath=yes
7984 hardcode_into_libs=yes
7987 shlibpath_overrides_runpath=no
7988 hardcode_into_libs=yes
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 hardcode_into_libs=yes
8003 hpux9* | hpux10* | hpux11*)
8004 # Give a soname corresponding to the major version so that dld.sl refuses to
8005 # link against other versions.
8012 hardcode_into_libs=yes
8013 dynamic_linker="$host_os dld.so"
8014 shlibpath_var=LD_LIBRARY_PATH
8015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 if test "X$HPUX_IA64_MODE" = X32; then
8019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8027 hardcode_into_libs=yes
8028 dynamic_linker="$host_os dld.sl"
8029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8038 dynamic_linker="$host_os dld.sl"
8039 shlibpath_var=SHLIB_PATH
8040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 soname_spec='${libname}${release}${shared_ext}$major'
8045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8046 postinstall_cmds='chmod 555 $lib'
8049 irix5* | irix6* | nonstopux*)
8051 nonstopux*) version_type=nonstopux ;;
8053 if test "$lt_cv_prog_gnu_ld" = yes; then
8061 soname_spec='${libname}${release}${shared_ext}$major'
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8064 irix5* | nonstopux*)
8068 case $LD in # libtool.m4 will add one of these switches to LD
8069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8070 libsuff= shlibsuff= libmagic=32-bit;;
8071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8072 libsuff=32 shlibsuff=N32 libmagic=N32;;
8073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8075 *) libsuff= shlibsuff= libmagic=never-match;;
8079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8080 shlibpath_overrides_runpath=no
8081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8083 hardcode_into_libs=yes
8086 # No shared lib support for Linux oldld, aout, or coff.
8087 linux*oldld* | linux*aout* | linux*coff*)
8091 # This must be Linux ELF.
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 shlibpath_overrides_runpath=no
8101 # This implies no fast_install, which is unacceptable.
8102 # Some rework will be needed to allow for fast_install
8103 # before this can be enabled.
8104 hardcode_into_libs=yes
8106 # find out which ABI we are using
8109 x86_64*|s390x*|powerpc64*)
8110 echo '#line 8110 "configure"' > conftest.$ac_ext
8111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8112 (eval $ac_compile) 2>&5
8114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8115 test $ac_status = 0; }; then
8116 case `/usr/bin/file conftest.$ac_objext` in
8119 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8127 # Append ld.so.conf contents to the search path
8128 if test -f /etc/ld.so.conf; then
8129 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' ' '`
8130 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8133 # We used to test for /lib/ld.so.1 and disable shared libraries on
8134 # powerpc, because MkLinux only supported shared libraries with the
8135 # GNU dynamic linker. Since this was broken with cross compilers,
8136 # most powerpc-linux boxes support dynamic linking these days and
8137 # people can always --disable-shared, the test was removed, and we
8138 # assume the GNU/Linux dynamic linker is in use.
8139 dynamic_linker='GNU/Linux ld.so'
8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8147 soname_spec='${libname}${release}${shared_ext}$major'
8148 shlibpath_var=LD_LIBRARY_PATH
8149 shlibpath_overrides_runpath=no
8150 hardcode_into_libs=yes
8151 dynamic_linker='GNU ld.so'
8158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8161 dynamic_linker='NetBSD (a.out) ld.so'
8163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8164 soname_spec='${libname}${release}${shared_ext}$major'
8165 dynamic_linker='NetBSD ld.elf_so'
8167 shlibpath_var=LD_LIBRARY_PATH
8168 shlibpath_overrides_runpath=yes
8169 hardcode_into_libs=yes
8174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175 shlibpath_var=LD_LIBRARY_PATH
8176 shlibpath_overrides_runpath=yes
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 shlibpath_overrides_runpath=yes
8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8195 shlibpath_var=LD_LIBRARY_PATH
8196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8198 openbsd2.[89] | openbsd2.[89].*)
8199 shlibpath_overrides_runpath=no
8202 shlibpath_overrides_runpath=yes
8206 shlibpath_overrides_runpath=yes
8211 libname_spec='$name'
8214 library_names_spec='$libname${shared_ext} $libname.a'
8215 dynamic_linker='OS/2 ld.exe'
8216 shlibpath_var=LIBPATH
8219 osf3* | osf4* | osf5*)
8223 soname_spec='${libname}${release}${shared_ext}$major'
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8232 soname_spec='${libname}${release}${shared_ext}$major'
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 shlibpath_var=LD_LIBRARY_PATH
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8242 soname_spec='${libname}${release}${shared_ext}$major'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 shlibpath_overrides_runpath=yes
8245 hardcode_into_libs=yes
8246 # ldd complains unless libraries are executable
8247 postinstall_cmds='chmod +x $lib'
8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8254 shlibpath_var=LD_LIBRARY_PATH
8255 shlibpath_overrides_runpath=yes
8256 if test "$with_gnu_ld" = yes; then
8262 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265 soname_spec='${libname}${release}${shared_ext}$major'
8266 shlibpath_var=LD_LIBRARY_PATH
8267 case $host_vendor in
8269 shlibpath_overrides_runpath=no
8271 export_dynamic_flag_spec='${wl}-Blargedynsym'
8272 runpath_var=LD_RUN_PATH
8280 shlibpath_overrides_runpath=no
8281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8287 if test -d /usr/nec ;then
8289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8290 soname_spec='$libname${shared_ext}.$major'
8291 shlibpath_var=LD_LIBRARY_PATH
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8307 $as_echo "$dynamic_linker" >&6; }
8308 test "$dynamic_linker" = no && can_build_shared=no
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8313 if test -n "$hardcode_libdir_flag_spec" || \
8314 test -n "$runpath_var" || \
8315 test "X$hardcode_automatic" = "Xyes" ; then
8317 # We can hardcode non-existant directories.
8318 if test "$hardcode_direct" != no &&
8319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8320 # have to relink, otherwise we might link with an installed library
8321 # when we should be linking with a yet-to-be-installed one
8322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8323 test "$hardcode_minus_L" != no; then
8324 # Linking always hardcodes the temporary library directory.
8325 hardcode_action=relink
8327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8328 hardcode_action=immediate
8331 # We cannot hardcode anything, or else we can only hardcode existing
8333 hardcode_action=unsupported
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8336 $as_echo "$hardcode_action" >&6; }
8338 if test "$hardcode_action" = relink; then
8339 # Fast installation is not supported
8340 enable_fast_install=no
8341 elif test "$shlibpath_overrides_runpath" = yes ||
8342 test "$enable_shared" = no; then
8343 # Fast installation is not necessary
8344 enable_fast_install=needless
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8351 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8355 $as_echo "yes" >&6; }
8357 # FIXME - insert some real tests, host_os isn't really good enough
8360 if test -n "$STRIP" ; then
8361 striplib="$STRIP -x"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8363 $as_echo "yes" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8376 if test "x$enable_dlopen" != xyes; then
8377 enable_dlopen=unknown
8378 enable_dlopen_self=unknown
8379 enable_dlopen_self_static=unknown
8386 lt_cv_dlopen="load_add_on"
8388 lt_cv_dlopen_self=yes
8392 lt_cv_dlopen="LoadLibrary"
8397 lt_cv_dlopen="dlopen"
8402 # if libdl is installed we need to link against it
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8404 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8408 ac_check_lib_save_LIBS=$LIBS
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 ac_cv_lib_dl_dlopen=yes
8431 ac_cv_lib_dl_dlopen=no
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_lib_save_LIBS
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8438 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8439 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8445 lt_cv_dlopen_self=yes
8452 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8453 if test "x$ac_cv_func_shl_load" = x""yes; then :
8454 lt_cv_dlopen="shl_load"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8457 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8458 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 ac_check_lib_save_LIBS=$LIBS
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 ac_cv_lib_dld_shl_load=yes
8484 ac_cv_lib_dld_shl_load=no
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS=$ac_check_lib_save_LIBS
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8491 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8492 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8495 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8496 if test "x$ac_cv_func_dlopen" = x""yes; then :
8497 lt_cv_dlopen="dlopen"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8504 ac_check_lib_save_LIBS=$LIBS
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8509 /* Override any GCC internal prototype to avoid an error.
8510 Use char because int might match the return type of a GCC
8511 builtin and then its argument prototype would still apply. */
8524 if ac_fn_c_try_link "$LINENO"; then :
8525 ac_cv_lib_dl_dlopen=yes
8527 ac_cv_lib_dl_dlopen=no
8529 rm -f core conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8531 LIBS=$ac_check_lib_save_LIBS
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8535 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8539 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8540 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8543 ac_check_lib_save_LIBS=$LIBS
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8548 /* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_cv_lib_svld_dlopen=yes
8566 ac_cv_lib_svld_dlopen=no
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8573 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8574 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8578 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8582 ac_check_lib_save_LIBS=$LIBS
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8587 /* Override any GCC internal prototype to avoid an error.
8588 Use char because int might match the return type of a GCC
8589 builtin and then its argument prototype would still apply. */
8602 if ac_fn_c_try_link "$LINENO"; then :
8603 ac_cv_lib_dld_dld_link=yes
8605 ac_cv_lib_dld_dld_link=no
8607 rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8612 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8613 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8614 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8635 if test "x$lt_cv_dlopen" != xno; then
8641 case $lt_cv_dlopen in
8643 save_CPPFLAGS="$CPPFLAGS"
8644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8646 save_LDFLAGS="$LDFLAGS"
8647 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8650 LIBS="$lt_cv_dlopen_libs $LIBS"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8653 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8654 if test "${lt_cv_dlopen_self+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 if test "$cross_compiling" = yes; then :
8658 lt_cv_dlopen_self=cross
8660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8661 lt_status=$lt_dlunknown
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8663 "configure"
8664 #include "confdefs.h"
8673 # define LT_DLGLOBAL RTLD_GLOBAL
8676 # define LT_DLGLOBAL DL_GLOBAL
8678 # define LT_DLGLOBAL 0
8682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8683 find out it does not work in some platform. */
8684 #ifndef LT_DLLAZY_OR_NOW
8686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8689 # define LT_DLLAZY_OR_NOW DL_LAZY
8692 # define LT_DLLAZY_OR_NOW RTLD_NOW
8695 # define LT_DLLAZY_OR_NOW DL_NOW
8697 # define LT_DLLAZY_OR_NOW 0
8705 extern "C" void exit (int);
8708 void fnord() { int i=42;}
8711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8712 int status = $lt_dlunknown;
8716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8718 /* dlclose (self); */
8724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8725 (eval $ac_link) 2>&5
8727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8729 (./conftest; exit; ) 2>/dev/null
8732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8734 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8737 # compilation failed
8738 lt_cv_dlopen_self=no
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8746 $as_echo "$lt_cv_dlopen_self" >&6; }
8748 if test "x$lt_cv_dlopen_self" = xyes; then
8749 LDFLAGS="$LDFLAGS $link_static_flag"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8752 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8755 if test "$cross_compiling" = yes; then :
8756 lt_cv_dlopen_self_static=cross
8758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8759 lt_status=$lt_dlunknown
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8761 "configure"
8762 #include "confdefs.h"
8771 # define LT_DLGLOBAL RTLD_GLOBAL
8774 # define LT_DLGLOBAL DL_GLOBAL
8776 # define LT_DLGLOBAL 0
8780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8781 find out it does not work in some platform. */
8782 #ifndef LT_DLLAZY_OR_NOW
8784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8787 # define LT_DLLAZY_OR_NOW DL_LAZY
8790 # define LT_DLLAZY_OR_NOW RTLD_NOW
8793 # define LT_DLLAZY_OR_NOW DL_NOW
8795 # define LT_DLLAZY_OR_NOW 0
8803 extern "C" void exit (int);
8806 void fnord() { int i=42;}
8809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8810 int status = $lt_dlunknown;
8814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8816 /* dlclose (self); */
8822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8823 (eval $ac_link) 2>&5
8825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8827 (./conftest; exit; ) 2>/dev/null
8830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8832 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8835 # compilation failed
8836 lt_cv_dlopen_self_static=no
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8847 CPPFLAGS="$save_CPPFLAGS"
8848 LDFLAGS="$save_LDFLAGS"
8853 case $lt_cv_dlopen_self in
8854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8855 *) enable_dlopen_self=unknown ;;
8858 case $lt_cv_dlopen_self_static in
8859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8860 *) enable_dlopen_self_static=unknown ;;
8865 # Report which librarie types wil actually be built
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8867 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8869 $as_echo "$can_build_shared" >&6; }
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8872 $as_echo_n "checking whether to build shared libraries... " >&6; }
8873 test "$can_build_shared" = "no" && enable_shared=no
8875 # On AIX, shared libraries and static libraries use the same namespace, and
8876 # are all built from PIC.
8879 test "$enable_shared" = yes && enable_static=no
8880 if test -n "$RANLIB"; then
8881 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8882 postinstall_cmds='$RANLIB $lib'
8887 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8888 test "$enable_shared" = yes && enable_static=no
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8893 $as_echo "$enable_shared" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8896 $as_echo_n "checking whether to build static libraries... " >&6; }
8897 # Make sure either enable_shared or enable_static is yes.
8898 test "$enable_shared" = yes || enable_static=yes
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8900 $as_echo "$enable_static" >&6; }
8902 # The else clause should only fire when bootstrapping the
8903 # libtool distribution, otherwise you forgot to ship ltmain.sh
8904 # with your package, and you will get complaints that there are
8905 # no rules to generate ltmain.sh.
8906 if test -f "$ltmain"; then
8907 # See if we are running on zsh, and set the options which allow our commands through
8908 # without removal of \ escapes.
8909 if test -n "${ZSH_VERSION+set}" ; then
8910 setopt NO_GLOB_SUBST
8912 # Now quote all the things that may contain metacharacters while being
8913 # careful not to overquote the AC_SUBSTed values. We take copies of the
8914 # variables and quote the copies for generation of the libtool script.
8915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8919 deplibs_check_method reload_flag reload_cmds need_locks \
8920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8921 lt_cv_sys_global_symbol_to_c_name_address \
8922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8923 old_postinstall_cmds old_postuninstall_cmds \
8927 lt_prog_compiler_wl \
8928 lt_prog_compiler_pic \
8929 lt_prog_compiler_static \
8930 lt_prog_compiler_no_builtin_flag \
8931 export_dynamic_flag_spec \
8932 thread_safe_flag_spec \
8933 whole_archive_flag_spec \
8934 enable_shared_with_static_runtimes \
8936 old_archive_from_new_cmds \
8941 compiler_lib_search_path \
8943 archive_expsym_cmds \
8945 postuninstall_cmds \
8946 old_archive_from_expsyms_cmds \
8947 allow_undefined_flag \
8949 export_symbols_cmds \
8950 hardcode_libdir_flag_spec \
8951 hardcode_libdir_flag_spec_ld \
8952 hardcode_libdir_separator \
8953 hardcode_automatic \
8955 module_expsym_cmds \
8956 lt_cv_prog_compiler_c_o \
8961 old_archive_cmds | \
8962 old_archive_from_new_cmds | \
8964 archive_expsym_cmds | \
8966 module_expsym_cmds | \
8967 old_archive_from_expsyms_cmds | \
8968 export_symbols_cmds | \
8969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8970 postinstall_cmds | postuninstall_cmds | \
8971 old_postinstall_cmds | old_postuninstall_cmds | \
8972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8973 # Double-quote double-evaled strings.
8974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8983 *'\$0 --fallback-echo"')
8984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8989 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8992 $as_echo "$as_me: creating $ofile" >&6;}
8994 cat <<__EOF__ >> "$cfgfile"
8997 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8998 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8999 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9001 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9002 # Free Software Foundation, Inc.
9004 # This file is part of GNU Libtool:
9005 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9007 # This program is free software; you can redistribute it and/or modify
9008 # it under the terms of the GNU General Public License as published by
9009 # the Free Software Foundation; either version 2 of the License, or
9010 # (at your option) any later version.
9012 # This program is distributed in the hope that it will be useful, but
9013 # WITHOUT ANY WARRANTY; without even the implied warranty of
9014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9015 # General Public License for more details.
9017 # You should have received a copy of the GNU General Public License
9018 # along with this program; if not, write to the Free Software
9019 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9021 # As a special exception to the GNU General Public License, if you
9022 # distribute this file as part of a program that contains a
9023 # configuration script generated by Autoconf, you may include it under
9024 # the same distribution terms that you use for the rest of that program.
9026 # A sed program that does not truncate output.
9029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9030 Xsed="$SED -e 1s/^X//"
9032 # The HP-UX ksh and POSIX shell print the target directory to stdout
9034 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9036 # The names of the tagged configurations supported by this script.
9039 # ### BEGIN LIBTOOL CONFIG
9041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9043 # Shell to use when invoking shell scripts.
9046 # Whether or not to build shared libraries.
9047 build_libtool_libs=$enable_shared
9049 # Whether or not to build static libraries.
9050 build_old_libs=$enable_static
9052 # Whether or not to add -lc for building shared libraries.
9053 build_libtool_need_lc=$archive_cmds_need_lc
9055 # Whether or not to disallow shared libs when runtime libs are static
9056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9058 # Whether or not to optimize for fast installation.
9059 fast_install=$enable_fast_install
9062 host_alias=$host_alias
9067 build_alias=$build_alias
9071 # An echo program that does not interpret backslashes.
9076 AR_FLAGS=$lt_AR_FLAGS
9081 # A language-specific compiler.
9084 # Is the compiler the GNU C compiler?
9090 # The linker used to build libraries.
9093 # Whether we need hard or soft links.
9096 # A BSD-compatible nm program.
9099 # A symbol stripping program
9102 # Used to examine libraries when file_magic_cmd begins "file"
9103 MAGIC_CMD=$MAGIC_CMD
9105 # Used on cygwin: DLL creation program.
9108 # Used on cygwin: object dumper.
9111 # Used on cygwin: assembler.
9114 # The name of the directory that contains temporary libtool files.
9117 # How to create reloadable object files.
9118 reload_flag=$lt_reload_flag
9119 reload_cmds=$lt_reload_cmds
9121 # How to pass a linker flag through the compiler.
9122 wl=$lt_lt_prog_compiler_wl
9124 # Object file suffix (normally "o").
9127 # Old archive suffix (normally "a").
9130 # Shared library suffix (normally ".so").
9131 shrext_cmds='$shrext_cmds'
9133 # Executable file suffix (normally "").
9136 # Additional compiler flags for building library objects.
9137 pic_flag=$lt_lt_prog_compiler_pic
9140 # What is the maximum length of a command?
9141 max_cmd_len=$lt_cv_sys_max_cmd_len
9143 # Does compiler simultaneously support -c and -o options?
9144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9146 # Must we lock files when doing compilation?
9147 need_locks=$lt_need_locks
9149 # Do we need the lib prefix for modules?
9150 need_lib_prefix=$need_lib_prefix
9152 # Do we need a version for libraries?
9153 need_version=$need_version
9155 # Whether dlopen is supported.
9156 dlopen_support=$enable_dlopen
9158 # Whether dlopen of programs is supported.
9159 dlopen_self=$enable_dlopen_self
9161 # Whether dlopen of statically linked programs is supported.
9162 dlopen_self_static=$enable_dlopen_self_static
9164 # Compiler flag to prevent dynamic linking.
9165 link_static_flag=$lt_lt_prog_compiler_static
9167 # Compiler flag to turn off builtin functions.
9168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9170 # Compiler flag to allow reflexive dlopens.
9171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9173 # Compiler flag to generate shared objects directly from archives.
9174 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9176 # Compiler flag to generate thread-safe objects.
9177 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9179 # Library versioning type.
9180 version_type=$version_type
9182 # Format of library name prefix.
9183 libname_spec=$lt_libname_spec
9185 # List of archive names. First name is the real one, the rest are links.
9186 # The last name is the one that the linker finds with -lNAME.
9187 library_names_spec=$lt_library_names_spec
9189 # The coded name of the library, if different from the real name.
9190 soname_spec=$lt_soname_spec
9192 # Commands used to build and install an old-style archive.
9194 old_archive_cmds=$lt_old_archive_cmds
9195 old_postinstall_cmds=$lt_old_postinstall_cmds
9196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9198 # Create an old-style archive from a shared archive.
9199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9201 # Create a temporary old-style archive to link instead of a shared archive.
9202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9204 # Commands used to build and install a shared archive.
9205 archive_cmds=$lt_archive_cmds
9206 archive_expsym_cmds=$lt_archive_expsym_cmds
9207 postinstall_cmds=$lt_postinstall_cmds
9208 postuninstall_cmds=$lt_postuninstall_cmds
9210 # Commands used to build a loadable module (assumed same as above if empty)
9211 module_cmds=$lt_module_cmds
9212 module_expsym_cmds=$lt_module_expsym_cmds
9214 # Commands to strip libraries.
9215 old_striplib=$lt_old_striplib
9216 striplib=$lt_striplib
9218 # Dependencies to place before the objects being linked to create a
9220 predep_objects=$lt_predep_objects
9222 # Dependencies to place after the objects being linked to create a
9224 postdep_objects=$lt_postdep_objects
9226 # Dependencies to place before the objects being linked to create a
9230 # Dependencies to place after the objects being linked to create a
9232 postdeps=$lt_postdeps
9234 # The library search path used internally by the compiler when linking
9236 compiler_lib_search_path=$lt_compiler_lib_search_path
9238 # Method to check whether dependent libraries are shared objects.
9239 deplibs_check_method=$lt_deplibs_check_method
9241 # Command to use when deplibs_check_method == file_magic.
9242 file_magic_cmd=$lt_file_magic_cmd
9244 # Flag that allows shared libraries with undefined symbols to be built.
9245 allow_undefined_flag=$lt_allow_undefined_flag
9247 # Flag that forces no undefined symbols.
9248 no_undefined_flag=$lt_no_undefined_flag
9250 # Commands used to finish a libtool library installation in a directory.
9251 finish_cmds=$lt_finish_cmds
9253 # Same as above, but a single script fragment to be evaled but not shown.
9254 finish_eval=$lt_finish_eval
9256 # Take the output of nm and produce a listing of raw symbols and C names.
9257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9259 # Transform the output of nm in a proper C declaration
9260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9262 # Transform the output of nm in a C name address pair
9263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9265 # This is the shared library runtime path variable.
9266 runpath_var=$runpath_var
9268 # This is the shared library path variable.
9269 shlibpath_var=$shlibpath_var
9271 # Is shlibpath searched before the hard-coded library search path?
9272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9274 # How to hardcode a shared library path into an executable.
9275 hardcode_action=$hardcode_action
9277 # Whether we should hardcode library paths into libraries.
9278 hardcode_into_libs=$hardcode_into_libs
9280 # Flag to hardcode \$libdir into a binary during linking.
9281 # This must work even if \$libdir does not exist.
9282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9284 # If ld is used when linking, flag to hardcode \$libdir into
9285 # a binary during linking. This must work even if \$libdir does
9287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9289 # Whether we need a single -rpath flag with a separated argument.
9290 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9294 hardcode_direct=$hardcode_direct
9296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9298 hardcode_minus_L=$hardcode_minus_L
9300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9301 # the resulting binary.
9302 hardcode_shlibpath_var=$hardcode_shlibpath_var
9304 # Set to yes if building a shared library automatically hardcodes DIR into the library
9305 # and all subsequent libraries and executables linked against it.
9306 hardcode_automatic=$hardcode_automatic
9308 # Variables whose values should be saved in libtool wrapper scripts and
9309 # restored at relink time.
9310 variables_saved_for_relink="$variables_saved_for_relink"
9312 # Whether libtool must link a program against all its dependency libraries.
9313 link_all_deplibs=$link_all_deplibs
9315 # Compile-time system search path for libraries
9316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9318 # Run-time system search path for libraries
9319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9321 # Fix the shell variable \$srcfile for the compiler.
9322 fix_srcfile_path="$fix_srcfile_path"
9324 # Set to yes if exported symbols are required.
9325 always_export_symbols=$always_export_symbols
9327 # The commands to list exported symbols.
9328 export_symbols_cmds=$lt_export_symbols_cmds
9330 # The commands to extract the exported symbol list from a shared archive.
9331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9333 # Symbols that should not be listed in the preloaded symbols.
9334 exclude_expsyms=$lt_exclude_expsyms
9336 # Symbols that must always be exported.
9337 include_expsyms=$lt_include_expsyms
9339 # ### END LIBTOOL CONFIG
9346 cat <<\EOF >> "$cfgfile"
9348 # AIX sometimes has problems with the GCC collect2 program. For some
9349 # reason, if we set the COLLECT_NAMES environment variable, the problems
9350 # vanish in a puff of smoke.
9351 if test "X${COLLECT_NAMES+set}" != Xset; then
9353 export COLLECT_NAMES
9359 # We use sed instead of cat because bash on DJGPP gets confused if
9360 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9361 # text mode, it properly converts lines to CR/LF. This bash problem
9362 # is reportedly fixed, but why not run on old versions too?
9363 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9365 mv -f "$cfgfile" "$ofile" || \
9366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9370 # If there is no Makefile yet, we rely on a make rule to execute
9371 # `config.status --recheck' to rerun these tests and create the
9372 # libtool script then.
9373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9374 if test -f "$ltmain_in"; then
9375 test -f Makefile && make "$ltmain"
9381 ac_cpp='$CPP $CPPFLAGS'
9382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9389 # Check whether --with-tags was given.
9390 if test "${with_tags+set}" = set; then :
9391 withval=$with_tags; tagnames="$withval"
9395 if test -f "$ltmain" && test -n "$tagnames"; then
9396 if test ! -f "${ofile}"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9398 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9401 if test -z "$LTCC"; then
9402 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9403 if test -z "$LTCC"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9405 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9408 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9412 # Extract list of available tagged configurations in $ofile.
9413 # Note that this assumes the entire list is on one line.
9414 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9417 for tagname in $tagnames; do
9419 # Check whether tagname contains only valid characters
9420 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9422 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
9426 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9428 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
9431 # Update the list of available tags.
9432 if test -n "$tagname"; then
9433 echo appending configuration tag \"$tagname\" to $ofile
9437 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9438 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9439 (test "X$CXX" != "Xg++"))) ; then
9447 if test -n "$F77" && test "X$F77" != "Xno"; then
9455 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
9465 # Source file extension for RC test sources.
9468 # Object file extension for compiled RC test sources.
9472 # Code to be used in simple compile tests
9473 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
9475 # Code to be used in simple link tests
9476 lt_simple_link_test_code="$lt_simple_compile_test_code"
9478 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9480 # If no C compiler was specified, use CC.
9483 # Allow CC to be a program name with arguments.
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9494 ac_outfile=conftest.$ac_objext
9495 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9501 # Allow CC to be a program name with arguments.
9506 for cc_temp in $compiler""; do
9508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9514 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9516 lt_cv_prog_compiler_c_o_RC=yes
9518 # The else clause should only fire when bootstrapping the
9519 # libtool distribution, otherwise you forgot to ship ltmain.sh
9520 # with your package, and you will get complaints that there are
9521 # no rules to generate ltmain.sh.
9522 if test -f "$ltmain"; then
9523 # See if we are running on zsh, and set the options which allow our commands through
9524 # without removal of \ escapes.
9525 if test -n "${ZSH_VERSION+set}" ; then
9526 setopt NO_GLOB_SUBST
9528 # Now quote all the things that may contain metacharacters while being
9529 # careful not to overquote the AC_SUBSTed values. We take copies of the
9530 # variables and quote the copies for generation of the libtool script.
9531 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9533 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9534 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9535 deplibs_check_method reload_flag reload_cmds need_locks \
9536 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9537 lt_cv_sys_global_symbol_to_c_name_address \
9538 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9539 old_postinstall_cmds old_postuninstall_cmds \
9543 lt_prog_compiler_wl_RC \
9544 lt_prog_compiler_pic_RC \
9545 lt_prog_compiler_static_RC \
9546 lt_prog_compiler_no_builtin_flag_RC \
9547 export_dynamic_flag_spec_RC \
9548 thread_safe_flag_spec_RC \
9549 whole_archive_flag_spec_RC \
9550 enable_shared_with_static_runtimes_RC \
9551 old_archive_cmds_RC \
9552 old_archive_from_new_cmds_RC \
9554 postdep_objects_RC \
9557 compiler_lib_search_path_RC \
9559 archive_expsym_cmds_RC \
9560 postinstall_cmds_RC \
9561 postuninstall_cmds_RC \
9562 old_archive_from_expsyms_cmds_RC \
9563 allow_undefined_flag_RC \
9564 no_undefined_flag_RC \
9565 export_symbols_cmds_RC \
9566 hardcode_libdir_flag_spec_RC \
9567 hardcode_libdir_flag_spec_ld_RC \
9568 hardcode_libdir_separator_RC \
9569 hardcode_automatic_RC \
9571 module_expsym_cmds_RC \
9572 lt_cv_prog_compiler_c_o_RC \
9573 exclude_expsyms_RC \
9574 include_expsyms_RC; do
9577 old_archive_cmds_RC | \
9578 old_archive_from_new_cmds_RC | \
9580 archive_expsym_cmds_RC | \
9582 module_expsym_cmds_RC | \
9583 old_archive_from_expsyms_cmds_RC | \
9584 export_symbols_cmds_RC | \
9585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9586 postinstall_cmds | postuninstall_cmds | \
9587 old_postinstall_cmds | old_postuninstall_cmds | \
9588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9589 # Double-quote double-evaled strings.
9590 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9599 *'\$0 --fallback-echo"')
9600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9606 cat <<__EOF__ >> "$cfgfile"
9607 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
9609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9611 # Shell to use when invoking shell scripts.
9614 # Whether or not to build shared libraries.
9615 build_libtool_libs=$enable_shared
9617 # Whether or not to build static libraries.
9618 build_old_libs=$enable_static
9620 # Whether or not to add -lc for building shared libraries.
9621 build_libtool_need_lc=$archive_cmds_need_lc_RC
9623 # Whether or not to disallow shared libs when runtime libs are static
9624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
9626 # Whether or not to optimize for fast installation.
9627 fast_install=$enable_fast_install
9630 host_alias=$host_alias
9635 build_alias=$build_alias
9639 # An echo program that does not interpret backslashes.
9644 AR_FLAGS=$lt_AR_FLAGS
9649 # A language-specific compiler.
9652 # Is the compiler the GNU C compiler?
9658 # The linker used to build libraries.
9661 # Whether we need hard or soft links.
9664 # A BSD-compatible nm program.
9667 # A symbol stripping program
9670 # Used to examine libraries when file_magic_cmd begins "file"
9671 MAGIC_CMD=$MAGIC_CMD
9673 # Used on cygwin: DLL creation program.
9676 # Used on cygwin: object dumper.
9679 # Used on cygwin: assembler.
9682 # The name of the directory that contains temporary libtool files.
9685 # How to create reloadable object files.
9686 reload_flag=$lt_reload_flag
9687 reload_cmds=$lt_reload_cmds
9689 # How to pass a linker flag through the compiler.
9690 wl=$lt_lt_prog_compiler_wl_RC
9692 # Object file suffix (normally "o").
9695 # Old archive suffix (normally "a").
9698 # Shared library suffix (normally ".so").
9699 shrext_cmds='$shrext_cmds'
9701 # Executable file suffix (normally "").
9704 # Additional compiler flags for building library objects.
9705 pic_flag=$lt_lt_prog_compiler_pic_RC
9708 # What is the maximum length of a command?
9709 max_cmd_len=$lt_cv_sys_max_cmd_len
9711 # Does compiler simultaneously support -c and -o options?
9712 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
9714 # Must we lock files when doing compilation?
9715 need_locks=$lt_need_locks
9717 # Do we need the lib prefix for modules?
9718 need_lib_prefix=$need_lib_prefix
9720 # Do we need a version for libraries?
9721 need_version=$need_version
9723 # Whether dlopen is supported.
9724 dlopen_support=$enable_dlopen
9726 # Whether dlopen of programs is supported.
9727 dlopen_self=$enable_dlopen_self
9729 # Whether dlopen of statically linked programs is supported.
9730 dlopen_self_static=$enable_dlopen_self_static
9732 # Compiler flag to prevent dynamic linking.
9733 link_static_flag=$lt_lt_prog_compiler_static_RC
9735 # Compiler flag to turn off builtin functions.
9736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
9738 # Compiler flag to allow reflexive dlopens.
9739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
9741 # Compiler flag to generate shared objects directly from archives.
9742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
9744 # Compiler flag to generate thread-safe objects.
9745 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
9747 # Library versioning type.
9748 version_type=$version_type
9750 # Format of library name prefix.
9751 libname_spec=$lt_libname_spec
9753 # List of archive names. First name is the real one, the rest are links.
9754 # The last name is the one that the linker finds with -lNAME.
9755 library_names_spec=$lt_library_names_spec
9757 # The coded name of the library, if different from the real name.
9758 soname_spec=$lt_soname_spec
9760 # Commands used to build and install an old-style archive.
9762 old_archive_cmds=$lt_old_archive_cmds_RC
9763 old_postinstall_cmds=$lt_old_postinstall_cmds
9764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9766 # Create an old-style archive from a shared archive.
9767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
9769 # Create a temporary old-style archive to link instead of a shared archive.
9770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
9772 # Commands used to build and install a shared archive.
9773 archive_cmds=$lt_archive_cmds_RC
9774 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
9775 postinstall_cmds=$lt_postinstall_cmds
9776 postuninstall_cmds=$lt_postuninstall_cmds
9778 # Commands used to build a loadable module (assumed same as above if empty)
9779 module_cmds=$lt_module_cmds_RC
9780 module_expsym_cmds=$lt_module_expsym_cmds_RC
9782 # Commands to strip libraries.
9783 old_striplib=$lt_old_striplib
9784 striplib=$lt_striplib
9786 # Dependencies to place before the objects being linked to create a
9788 predep_objects=$lt_predep_objects_RC
9790 # Dependencies to place after the objects being linked to create a
9792 postdep_objects=$lt_postdep_objects_RC
9794 # Dependencies to place before the objects being linked to create a
9796 predeps=$lt_predeps_RC
9798 # Dependencies to place after the objects being linked to create a
9800 postdeps=$lt_postdeps_RC
9802 # The library search path used internally by the compiler when linking
9804 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
9806 # Method to check whether dependent libraries are shared objects.
9807 deplibs_check_method=$lt_deplibs_check_method
9809 # Command to use when deplibs_check_method == file_magic.
9810 file_magic_cmd=$lt_file_magic_cmd
9812 # Flag that allows shared libraries with undefined symbols to be built.
9813 allow_undefined_flag=$lt_allow_undefined_flag_RC
9815 # Flag that forces no undefined symbols.
9816 no_undefined_flag=$lt_no_undefined_flag_RC
9818 # Commands used to finish a libtool library installation in a directory.
9819 finish_cmds=$lt_finish_cmds
9821 # Same as above, but a single script fragment to be evaled but not shown.
9822 finish_eval=$lt_finish_eval
9824 # Take the output of nm and produce a listing of raw symbols and C names.
9825 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9827 # Transform the output of nm in a proper C declaration
9828 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9830 # Transform the output of nm in a C name address pair
9831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9833 # This is the shared library runtime path variable.
9834 runpath_var=$runpath_var
9836 # This is the shared library path variable.
9837 shlibpath_var=$shlibpath_var
9839 # Is shlibpath searched before the hard-coded library search path?
9840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9842 # How to hardcode a shared library path into an executable.
9843 hardcode_action=$hardcode_action_RC
9845 # Whether we should hardcode library paths into libraries.
9846 hardcode_into_libs=$hardcode_into_libs
9848 # Flag to hardcode \$libdir into a binary during linking.
9849 # This must work even if \$libdir does not exist.
9850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
9852 # If ld is used when linking, flag to hardcode \$libdir into
9853 # a binary during linking. This must work even if \$libdir does
9855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
9857 # Whether we need a single -rpath flag with a separated argument.
9858 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
9860 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9862 hardcode_direct=$hardcode_direct_RC
9864 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9866 hardcode_minus_L=$hardcode_minus_L_RC
9868 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9869 # the resulting binary.
9870 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
9872 # Set to yes if building a shared library automatically hardcodes DIR into the library
9873 # and all subsequent libraries and executables linked against it.
9874 hardcode_automatic=$hardcode_automatic_RC
9876 # Variables whose values should be saved in libtool wrapper scripts and
9877 # restored at relink time.
9878 variables_saved_for_relink="$variables_saved_for_relink"
9880 # Whether libtool must link a program against all its dependency libraries.
9881 link_all_deplibs=$link_all_deplibs_RC
9883 # Compile-time system search path for libraries
9884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9886 # Run-time system search path for libraries
9887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9889 # Fix the shell variable \$srcfile for the compiler.
9890 fix_srcfile_path="$fix_srcfile_path_RC"
9892 # Set to yes if exported symbols are required.
9893 always_export_symbols=$always_export_symbols_RC
9895 # The commands to list exported symbols.
9896 export_symbols_cmds=$lt_export_symbols_cmds_RC
9898 # The commands to extract the exported symbol list from a shared archive.
9899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9901 # Symbols that should not be listed in the preloaded symbols.
9902 exclude_expsyms=$lt_exclude_expsyms_RC
9904 # Symbols that must always be exported.
9905 include_expsyms=$lt_include_expsyms_RC
9907 # ### END LIBTOOL TAG CONFIG: $tagname
9913 # If there is no Makefile yet, we rely on a make rule to execute
9914 # `config.status --recheck' to rerun these tests and create the
9915 # libtool script then.
9916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9917 if test -f "$ltmain_in"; then
9918 test -f Makefile && make "$ltmain"
9924 ac_cpp='$CPP $CPPFLAGS'
9925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9934 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
9938 # Append the new tag name to the list of available tags.
9939 if test -n "$tagname" ; then
9940 available_tags="$available_tags $tagname"
9946 # Now substitute the updated list of available tags.
9947 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
9948 mv "${ofile}T" "$ofile"
9952 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
9958 # This can be used to rebuild libtool when needed
9959 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9961 # Always use our own libtool.
9962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9964 # Prevent multiple expansion
9977 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9978 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9980 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9982 $as_echo_n "(cached) " >&6
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 #include <sys/types.h>
9998 if ac_fn_c_try_compile "$LINENO"; then :
9999 eval "$as_ac_Header=yes"
10001 eval "$as_ac_Header=no"
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 eval ac_res=\$$as_ac_Header
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10007 $as_echo "$ac_res" >&6; }
10008 eval as_val=\$$as_ac_Header
10009 if test "x$as_val" = x""yes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10014 ac_header_dirent=$ac_hdr; break
10018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10019 if test $ac_header_dirent = dirent.h; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10021 $as_echo_n "checking for library containing opendir... " >&6; }
10022 if test "${ac_cv_search_opendir+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10025 ac_func_search_save_LIBS=$LIBS
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10044 for ac_lib in '' dir; do
10045 if test -z "$ac_lib"; then
10046 ac_res="none required"
10049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 ac_cv_search_opendir=$ac_res
10054 rm -f core conftest.err conftest.$ac_objext \
10056 if test "${ac_cv_search_opendir+set}" = set; then :
10060 if test "${ac_cv_search_opendir+set}" = set; then :
10063 ac_cv_search_opendir=no
10065 rm conftest.$ac_ext
10066 LIBS=$ac_func_search_save_LIBS
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10069 $as_echo "$ac_cv_search_opendir" >&6; }
10070 ac_res=$ac_cv_search_opendir
10071 if test "$ac_res" != no; then :
10072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10078 $as_echo_n "checking for library containing opendir... " >&6; }
10079 if test "${ac_cv_search_opendir+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10082 ac_func_search_save_LIBS=$LIBS
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10086 /* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10101 for ac_lib in '' x; do
10102 if test -z "$ac_lib"; then
10103 ac_res="none required"
10106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10108 if ac_fn_c_try_link "$LINENO"; then :
10109 ac_cv_search_opendir=$ac_res
10111 rm -f core conftest.err conftest.$ac_objext \
10113 if test "${ac_cv_search_opendir+set}" = set; then :
10117 if test "${ac_cv_search_opendir+set}" = set; then :
10120 ac_cv_search_opendir=no
10122 rm conftest.$ac_ext
10123 LIBS=$ac_func_search_save_LIBS
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10126 $as_echo "$ac_cv_search_opendir" >&6; }
10127 ac_res=$ac_cv_search_opendir
10128 if test "$ac_res" != no; then :
10129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10135 # Check whether --enable-ltdl-install was given.
10136 if test "${enable_ltdl_install+set}" = set; then :
10137 enableval=$enable_ltdl_install;
10141 if test x"${enable_ltdl_install-no}" != xno; then
10143 INSTALL_LTDL_FALSE='#'
10145 INSTALL_LTDL_TRUE='#'
10146 INSTALL_LTDL_FALSE=
10149 if test x"${enable_ltdl_convenience-no}" != xno; then
10150 CONVENIENCE_LTDL_TRUE=
10151 CONVENIENCE_LTDL_FALSE='#'
10153 CONVENIENCE_LTDL_TRUE='#'
10154 CONVENIENCE_LTDL_FALSE=
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
10160 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
10161 if test "${libltdl_cv_shlibext+set}" = set; then :
10162 $as_echo_n "(cached) " >&6
10165 ## GCJ LOCAL: gcj specific stuff. Please keep it.
10166 # Here in libltdl for libgcj we don't build modules for darwin.
10167 # So we say no. Then the extension gets .dylib which is the right
10168 # thing for shared libraries on darwin. Please keep me next time you
10178 eval libltdl_cv_shlibext=$shrext_cmds
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10182 $as_echo "$libltdl_cv_shlibext" >&6; }
10183 if test -n "$libltdl_cv_shlibext"; then
10185 cat >>confdefs.h <<_ACEOF
10186 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
10193 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
10194 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10197 libltdl_cv_shlibpath_var="$shlibpath_var"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
10200 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
10201 if test -n "$libltdl_cv_shlibpath_var"; then
10203 cat >>confdefs.h <<_ACEOF
10204 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10211 $as_echo_n "checking for the default library search path... " >&6; }
10212 if test "${libltdl_cv_sys_search_path+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10215 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
10218 $as_echo "$libltdl_cv_sys_search_path" >&6; }
10219 if test -n "$libltdl_cv_sys_search_path"; then
10221 for dir in $libltdl_cv_sys_search_path; do
10222 if test -z "$sys_search_path"; then
10223 sys_search_path="$dir"
10225 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10229 cat >>confdefs.h <<_ACEOF
10230 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10236 $as_echo_n "checking for objdir... " >&6; }
10237 if test "${libltdl_cv_objdir+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10240 libltdl_cv_objdir="$objdir"
10241 if test -n "$objdir"; then
10244 rm -f .libs 2>/dev/null
10245 mkdir .libs 2>/dev/null
10246 if test -d .libs; then
10247 libltdl_cv_objdir=.libs
10249 # MS-DOS does not allow filenames that begin with a dot.
10250 libltdl_cv_objdir=_libs
10252 rmdir .libs 2>/dev/null
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
10257 $as_echo "$libltdl_cv_objdir" >&6; }
10259 cat >>confdefs.h <<_ACEOF
10260 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
10266 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
10267 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10270 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10271 libltdl_cv_preloaded_symbols=yes
10273 libltdl_cv_preloaded_symbols=no
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
10278 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
10279 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10281 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
10288 ac_cpp='$CPP $CPPFLAGS'
10289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10294 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10295 if test "x$ac_cv_func_shl_load" = x""yes; then :
10297 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10305 ac_check_lib_save_LIBS=$LIBS
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10320 return shl_load ();
10325 if ac_fn_c_try_link "$LINENO"; then :
10326 ac_cv_lib_dld_shl_load=yes
10328 ac_cv_lib_dld_shl_load=no
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10335 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10336 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10338 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10340 LIBADD_DL="$LIBADD_DL -ldld"
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10347 ac_check_lib_save_LIBS=$LIBS
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10367 if ac_fn_c_try_link "$LINENO"; then :
10368 ac_cv_lib_dl_dlopen=yes
10370 ac_cv_lib_dl_dlopen=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10380 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10382 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 # include <dlfcn.h>
10398 if ac_fn_c_try_link "$LINENO"; then :
10400 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10401 libltdl_cv_func_dlopen="yes"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10404 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10405 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lsvld $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_lib_svld_dlopen=yes
10431 ac_cv_lib_svld_dlopen=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10438 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10439 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10441 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10443 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10447 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 ac_check_lib_save_LIBS=$LIBS
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10455 /* Override any GCC internal prototype to avoid an error.
10456 Use char because int might match the return type of a GCC
10457 builtin and then its argument prototype would still apply. */
10465 return dld_link ();
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 ac_cv_lib_dld_dld_link=yes
10473 ac_cv_lib_dld_dld_link=no
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10480 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10481 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10483 $as_echo "#define HAVE_DLD 1" >>confdefs.h
10485 LIBADD_DL="$LIBADD_DL -ldld"
10487 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
10488 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
10490 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10514 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10516 lt_save_LIBS="$LIBS"
10517 LIBS="$LIBS $LIBADD_DL"
10518 for ac_func in dlerror
10520 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10521 if test "x$ac_cv_func_dlerror" = x""yes; then :
10522 cat >>confdefs.h <<_ACEOF
10523 #define HAVE_DLERROR 1
10529 LIBS="$lt_save_LIBS"
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
10540 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
10541 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10544 ac_cv_sys_symbol_underscore=no
10545 cat > conftest.$ac_ext <<EOF
10546 void nm_test_func(){}
10547 int main(){nm_test_func;return 0;}
10549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10550 (eval $ac_compile) 2>&5
10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553 test $ac_status = 0; }; then
10554 # Now try to grab the symbols.
10555 ac_nlist=conftest.nm
10556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
10557 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10560 test $ac_status = 0; } && test -s "$ac_nlist"; then
10561 # See whether the symbols have a leading underscore.
10562 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10563 ac_cv_sys_symbol_underscore=yes
10565 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10568 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10572 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10575 echo "configure: failed program was:" >&5
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
10582 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
10585 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10586 if test x"$libltdl_cv_func_dlopen" = xyes ||
10587 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
10589 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
10590 if test "${libltdl_cv_need_uscore+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10593 libltdl_cv_need_uscore=unknown
10595 LIBS="$LIBS $LIBADD_DL"
10596 if test "$cross_compiling" = yes; then :
10597 libltdl_cv_need_uscore=cross
10599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10600 lt_status=$lt_dlunknown
10601 cat > conftest.$ac_ext <<EOF
10602 #line 10602 "configure"
10603 #include "confdefs.h"
10612 # define LT_DLGLOBAL RTLD_GLOBAL
10615 # define LT_DLGLOBAL DL_GLOBAL
10617 # define LT_DLGLOBAL 0
10621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10622 find out it does not work in some platform. */
10623 #ifndef LT_DLLAZY_OR_NOW
10625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10628 # define LT_DLLAZY_OR_NOW DL_LAZY
10631 # define LT_DLLAZY_OR_NOW RTLD_NOW
10634 # define LT_DLLAZY_OR_NOW DL_NOW
10636 # define LT_DLLAZY_OR_NOW 0
10644 extern "C" void exit (int);
10647 void fnord() { int i=42;}
10650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10651 int status = $lt_dlunknown;
10655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10657 /* dlclose (self); */
10663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10664 (eval $ac_link) 2>&5
10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10667 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10668 (./conftest; exit; ) 2>/dev/null
10670 case x$lt_status in
10671 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10672 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10673 x$lt_unknown|x*) ;;
10676 # compilation failed
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10686 $as_echo "$libltdl_cv_need_uscore" >&6; }
10690 if test x"$libltdl_cv_need_uscore" = xyes; then
10692 $as_echo "#define NEED_USCORE 1" >>confdefs.h
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10698 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10699 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10702 # PORTME does your system automatically load deplibs for dlopen?
10703 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10704 # For now, we just catch OSes we know something about -- in the
10705 # future, we'll try test this programmatically.
10706 libltdl_cv_sys_dlopen_deplibs=unknown
10708 aix3*|aix4.1.*|aix4.2.*)
10709 # Unknown whether this is true for these versions of AIX, but
10710 # we want this `case' here to explicitly catch those versions.
10711 libltdl_cv_sys_dlopen_deplibs=unknown
10714 libltdl_cv_sys_dlopen_deplibs=yes
10717 # Assuming the user has installed a libdl from somewhere, this is true
10718 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10719 libltdl_cv_sys_dlopen_deplibs=yes
10721 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10722 # GNU and its variants, using gnu ld.so (Glibc)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10726 libltdl_cv_sys_dlopen_deplibs=yes
10728 irix[12345]*|irix6.[01]*)
10729 # Catch all versions of IRIX before 6.2, and indicate that we don't
10730 # know how it worked for any of those versions.
10731 libltdl_cv_sys_dlopen_deplibs=unknown
10734 # The case above catches anything before 6.2, and it's known that
10735 # at 6.2 and later dlopen does load deplibs.
10736 libltdl_cv_sys_dlopen_deplibs=yes
10739 libltdl_cv_sys_dlopen_deplibs=yes
10742 libltdl_cv_sys_dlopen_deplibs=yes
10745 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10746 # it did *not* use an RPATH in a shared library to find objects the
10747 # library depends on, so we explictly say `no'.
10748 libltdl_cv_sys_dlopen_deplibs=no
10750 osf5.0|osf5.0a|osf5.1)
10751 # dlopen *does* load deplibs and with the right loader patch applied
10752 # it even uses RPATH in a shared library to search for shared objects
10753 # that the library depends on, but there's no easy way to know if that
10754 # patch is installed. Since this is the case, all we can really
10755 # say is unknown -- it depends on the patch being installed. If
10756 # it is, this changes to `yes'. Without it, it would be `no'.
10757 libltdl_cv_sys_dlopen_deplibs=unknown
10760 # the two cases above should catch all versions of osf <= 5.1. Read
10761 # the comments above for what we know about them.
10762 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10763 # is used to find them so we can finally say `yes'.
10764 libltdl_cv_sys_dlopen_deplibs=yes
10767 libltdl_cv_sys_dlopen_deplibs=yes
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10773 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10774 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10776 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10780 for ac_header in argz.h
10782 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10783 if test "x$ac_cv_header_argz_h" = x""yes; then :
10784 cat >>confdefs.h <<_ACEOF
10785 #define HAVE_ARGZ_H 1
10793 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10797 if test "x$ac_cv_type_error_t" = x""yes; then :
10799 cat >>confdefs.h <<_ACEOF
10800 #define HAVE_ERROR_T 1
10806 $as_echo "#define error_t int" >>confdefs.h
10811 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10815 eval as_val=\$$as_ac_var
10816 if test "x$as_val" = x""yes; then :
10817 cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10848 eval as_val=\$$as_ac_Header
10849 if test "x$as_val" = x""yes; then :
10850 cat >>confdefs.h <<_ACEOF
10851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10862 eval as_val=\$$as_ac_Header
10863 if test "x$as_val" = x""yes; then :
10864 cat >>confdefs.h <<_ACEOF
10865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10872 for ac_header in string.h strings.h
10874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10875 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10876 eval as_val=\$$as_ac_Header
10877 if test "x$as_val" = x""yes; then :
10878 cat >>confdefs.h <<_ACEOF
10879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887 for ac_func in strchr index
10889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10891 eval as_val=\$$as_ac_var
10892 if test "x$as_val" = x""yes; then :
10893 cat >>confdefs.h <<_ACEOF
10894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10900 for ac_func in strrchr rindex
10902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10904 eval as_val=\$$as_ac_var
10905 if test "x$as_val" = x""yes; then :
10906 cat >>confdefs.h <<_ACEOF
10907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10913 for ac_func in memcpy bcopy
10915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10917 eval as_val=\$$as_ac_var
10918 if test "x$as_val" = x""yes; then :
10919 cat >>confdefs.h <<_ACEOF
10920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 for ac_func in memmove strcmp
10928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10930 eval as_val=\$$as_ac_var
10931 if test "x$as_val" = x""yes; then :
10932 cat >>confdefs.h <<_ACEOF
10933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 for ac_func in closedir opendir readdir
10941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10943 eval as_val=\$$as_ac_var
10944 if test "x$as_val" = x""yes; then :
10945 cat >>confdefs.h <<_ACEOF
10946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 ac_config_files="$ac_config_files Makefile"
10960 cat >confcache <<\_ACEOF
10961 # This file is a shell script that caches the results of configure
10962 # tests run on this system so they can be shared between configure
10963 # scripts and configure runs, see configure's option --config-cache.
10964 # It is not useful on other systems. If it contains results you don't
10965 # want to keep, you may remove or edit it.
10967 # config.status only pays attention to the cache file if you give it
10968 # the --recheck option to rerun configure.
10970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10972 # following values.
10976 # The following way of writing the cache mishandles newlines in values,
10977 # but we know of no workaround that is simple, portable, and efficient.
10978 # So, we kill variables containing newlines.
10979 # Ultrix sh set writes to stderr and can't be redirected directly,
10980 # and sets the high bit in the cache file unless we assign to the vars.
10982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10983 eval ac_val=\$$ac_var
10987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10991 _ | IFS | as_nl) ;; #(
10992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10993 *) { eval $ac_var=; unset $ac_var;} ;;
10999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11000 *${as_nl}ac_space=\ *)
11001 # `set' does not quote correctly, so add quotes: double-quote
11002 # substitution turns \\\\ into \\, and sed turns \\ into \.
11005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11008 # `set' quotes correctly as required by POSIX, so do not add quotes.
11009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11023 if test -w "$cache_file"; then
11024 test "x$cache_file" != "x/dev/null" &&
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11026 $as_echo "$as_me: updating cache $cache_file" >&6;}
11027 cat confcache >$cache_file
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11036 # Let make expand exec_prefix.
11037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11039 DEFS=-DHAVE_CONFIG_H
11043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11044 # 1. Remove the extension, and $U if already installed.
11045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11046 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11048 # will be set to the directory where LIBOBJS objects are built.
11049 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11050 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11052 LIBOBJS=$ac_libobjs
11054 LTLIBOBJS=$ac_ltlibobjs
11057 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11058 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11061 if test -n "$EXEEXT"; then
11063 am__EXEEXT_FALSE='#'
11065 am__EXEEXT_TRUE='#'
11069 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11070 as_fn_error "conditional \"AMDEP\" was never defined.
11071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11073 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11074 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11077 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11078 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
11079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11081 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11082 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
11083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11086 : ${CONFIG_STATUS=./config.status}
11088 ac_clean_files_save=$ac_clean_files
11089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11095 # Generated by $as_me.
11096 # Run this file to recreate the current configuration.
11097 # Compiler output produced by configure, useful for debugging
11098 # configure, is in config.log if it exists.
11101 ac_cs_recheck=false
11104 SHELL=\${CONFIG_SHELL-$SHELL}
11107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11108 ## -------------------- ##
11109 ## M4sh Initialization. ##
11110 ## -------------------- ##
11112 # Be more Bourne compatible
11113 DUALCASE=1; export DUALCASE # for MKS sh
11114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11118 # is contrary to our usage. Disable this feature.
11119 alias -g '${1+"$@"}'='"$@"'
11120 setopt NO_GLOB_SUBST
11122 case `(set -o) 2>/dev/null` in #(
11134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11138 # Prefer a ksh shell builtin over an external printf program on Solaris,
11139 # but without wasting forks for bash or zsh.
11140 if test -z "$BASH_VERSION$ZSH_VERSION" \
11141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11142 as_echo='print -r --'
11143 as_echo_n='print -rn --'
11144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11145 as_echo='printf %s\n'
11146 as_echo_n='printf %s'
11148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11150 as_echo_n='/usr/ucb/echo -n'
11152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11153 as_echo_n_body='eval
11157 expr "X$arg" : "X\\(.*\\)$as_nl";
11158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11162 export as_echo_n_body
11163 as_echo_n='sh -c $as_echo_n_body as_echo'
11165 export as_echo_body
11166 as_echo='sh -c $as_echo_body as_echo'
11169 # The user is always right.
11170 if test "${PATH_SEPARATOR+set}" != set; then
11172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11180 # We need space, tab and new line, in precisely that order. Quoting is
11181 # there to prevent editors from complaining about space-tab.
11182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11183 # splitting by setting IFS to empty value.)
11186 # Find who we are. Look in the path if we contain no directory separator.
11188 *[\\/]* ) as_myself=$0 ;;
11189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11193 test -z "$as_dir" && as_dir=.
11194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11200 # We did not find ourselves, most probably we were run as `sh COMMAND'
11201 # in which case we are not to be found in the path.
11202 if test "x$as_myself" = x; then
11205 if test ! -f "$as_myself"; then
11206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11210 # Unset variables that we do not need and which cause bugs (e.g. in
11211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11212 # suppresses any "Segmentation fault" message there. '((' could
11213 # trigger a bug in pdksh 5.2.14.
11214 for as_var in BASH_ENV ENV MAIL MAILPATH
11215 do eval test x\${$as_var+set} = xset \
11216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11232 # as_fn_error ERROR [LINENO LOG_FD]
11233 # ---------------------------------
11234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11236 # script with status $?, using 1 if that was 0.
11239 as_status=$?; test $as_status -eq 0 && as_status=1
11241 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11244 $as_echo "$as_me: error: $1" >&2
11245 as_fn_exit $as_status
11249 # as_fn_set_status STATUS
11250 # -----------------------
11251 # Set $? to STATUS, without forking.
11252 as_fn_set_status ()
11255 } # as_fn_set_status
11257 # as_fn_exit STATUS
11258 # -----------------
11259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11263 as_fn_set_status $1
11269 # Portably unset VAR.
11272 { eval $1=; unset $1;}
11274 as_unset=as_fn_unset
11275 # as_fn_append VAR VALUE
11276 # ----------------------
11277 # Append the text in VALUE to the end of the definition contained in VAR. Take
11278 # advantage of any shell optimizations that allow amortized linear growth over
11279 # repeated appends, instead of the typical quadratic growth present in naive
11281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11282 eval 'as_fn_append ()
11293 # as_fn_arith ARG...
11294 # ------------------
11295 # Perform arithmetic evaluation on the ARGs, and store the result in the
11296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11297 # must be portable across $(()) and expr.
11298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11299 eval 'as_fn_arith ()
11306 as_val=`expr "$@" || test $? -eq 1`
11311 if expr a : '\(a\)' >/dev/null 2>&1 &&
11312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11319 as_basename=basename
11324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11330 as_me=`$as_basename -- "$0" ||
11331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11332 X"$0" : 'X\(//\)$' \| \
11333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11335 sed '/^.*\/\([^/][^/]*\)\/*$/{
11349 # Avoid depending upon Character Ranges.
11350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11353 as_cr_digits='0123456789'
11354 as_cr_alnum=$as_cr_Letters$as_cr_digits
11356 ECHO_C= ECHO_N= ECHO_T=
11357 case `echo -n x` in #(((((
11359 case `echo 'xy\c'` in
11360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11369 rm -f conf$$ conf$$.exe conf$$.file
11370 if test -d conf$$.dir; then
11371 rm -f conf$$.dir/conf$$.file
11374 mkdir conf$$.dir 2>/dev/null
11376 if (echo >conf$$.file) 2>/dev/null; then
11377 if ln -s conf$$.file conf$$ 2>/dev/null; then
11379 # ... but there are two gotchas:
11380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11382 # In both cases, we have to default to `cp -p'.
11383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11385 elif ln conf$$.file conf$$ 2>/dev/null; then
11393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11394 rmdir conf$$.dir 2>/dev/null
11399 # Create "$as_dir" as a directory, including parents if necessary.
11404 -*) as_dir=./$as_dir;;
11406 test -d "$as_dir" || eval $as_mkdir_p || {
11410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11411 *) as_qdir=$as_dir;;
11413 as_dirs="'$as_qdir' $as_dirs"
11414 as_dir=`$as_dirname -- "$as_dir" ||
11415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11416 X"$as_dir" : 'X\(//\)[^/]' \| \
11417 X"$as_dir" : 'X\(//\)$' \| \
11418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11419 $as_echo X"$as_dir" |
11420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11424 /^X\(\/\/\)[^/].*/{
11437 test -d "$as_dir" && break
11439 test -z "$as_dirs" || eval "mkdir $as_dirs"
11440 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11444 if mkdir -p . 2>/dev/null; then
11445 as_mkdir_p='mkdir -p "$as_dir"'
11447 test -d ./-p && rmdir ./-p
11451 if test -x / >/dev/null 2>&1; then
11452 as_test_x='test -x'
11454 if ls -dL / >/dev/null 2>&1; then
11461 if test -d "$1"; then
11467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11468 ???[sx]*):;;*)false;;esac;fi
11472 as_executable_p=$as_test_x
11474 # Sed expression to map a string onto a valid CPP name.
11475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11477 # Sed expression to map a string onto a valid variable name.
11478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11482 ## ----------------------------------- ##
11483 ## Main body of $CONFIG_STATUS script. ##
11484 ## ----------------------------------- ##
11486 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11489 # Save the log message, to keep $0 and so on meaningful, and to
11490 # report actual input values of CONFIG_FILES etc. instead of their
11491 # values after options handling.
11493 This file was extended by libltdl $as_me 1.2, which was
11494 generated by GNU Autoconf 2.64. Invocation command line was
11496 CONFIG_FILES = $CONFIG_FILES
11497 CONFIG_HEADERS = $CONFIG_HEADERS
11498 CONFIG_LINKS = $CONFIG_LINKS
11499 CONFIG_COMMANDS = $CONFIG_COMMANDS
11502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11507 case $ac_config_files in *"
11508 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11511 case $ac_config_headers in *"
11512 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11517 # Files that config.status was made for.
11518 config_files="$ac_config_files"
11519 config_headers="$ac_config_headers"
11520 config_commands="$ac_config_commands"
11524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11526 \`$as_me' instantiates files and other configuration actions
11527 from templates according to the current configuration. Unless the files
11528 and actions are specified as TAGs, all are instantiated by default.
11530 Usage: $0 [OPTION]... [TAG]...
11532 -h, --help print this help, then exit
11533 -V, --version print version number and configuration settings, then exit
11534 -q, --quiet, --silent
11535 do not print progress messages
11536 -d, --debug don't remove temporary files
11537 --recheck update $as_me by reconfiguring in the same conditions
11538 --file=FILE[:TEMPLATE]
11539 instantiate the configuration file FILE
11540 --header=FILE[:TEMPLATE]
11541 instantiate the configuration header FILE
11543 Configuration files:
11546 Configuration headers:
11549 Configuration commands:
11552 Report bugs to <bug-libtool@gnu.org>."
11555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11557 libltdl config.status 1.2
11558 configured by $0, generated by GNU Autoconf 2.64,
11559 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11561 Copyright (C) 2009 Free Software Foundation, Inc.
11562 This config.status script is free software; the Free Software Foundation
11563 gives unlimited permission to copy, distribute and modify it."
11570 test -n "\$AWK" || AWK=awk
11573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11574 # The default lists apply if the user does not specify any file.
11580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11581 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11592 # Handling of the options.
11593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11596 $as_echo "$ac_cs_version"; exit ;;
11597 --debug | --debu | --deb | --de | --d | -d )
11599 --file | --fil | --fi | --f )
11602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11604 as_fn_append CONFIG_FILES " '$ac_optarg'"
11605 ac_need_defaults=false;;
11606 --header | --heade | --head | --hea )
11609 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11611 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11612 ac_need_defaults=false;;
11614 # Conflict between --help and --header
11615 as_fn_error "ambiguous option: \`$1'
11616 Try \`$0 --help' for more information.";;
11617 --help | --hel | -h )
11618 $as_echo "$ac_cs_usage"; exit ;;
11619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11620 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11623 # This is an error.
11624 -*) as_fn_error "unrecognized option: \`$1'
11625 Try \`$0 --help' for more information." ;;
11627 *) as_fn_append ac_config_targets " $1"
11628 ac_need_defaults=false ;;
11634 ac_configure_extra_args=
11636 if $ac_cs_silent; then
11638 ac_configure_extra_args="$ac_configure_extra_args --silent"
11642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11643 if \$ac_cs_recheck; then
11644 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11646 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11647 CONFIG_SHELL='$SHELL'
11648 export CONFIG_SHELL
11653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11658 ## Running $as_me. ##
11664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11672 with_multisubdir="$with_multisubdir"
11673 with_multisrctop="$with_multisrctop"
11674 with_target_subdir="$with_target_subdir"
11675 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11676 multi_basedir="$multi_basedir"
11677 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11680 GFORTRAN="$GFORTRAN"
11682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11688 # Handling of arguments.
11689 for ac_config_target in $ac_config_targets
11691 case $ac_config_target in
11692 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
11694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11697 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11702 # If the user did not use the arguments to specify the items to instantiate,
11703 # then the envvar interface is used. Set only those that are not.
11704 # We use the long form for the default assignment because of an extremely
11705 # bizarre bug on SunOS 4.1.3.
11706 if $ac_need_defaults; then
11707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11712 # Have a temporary directory for convenience. Make it in the build tree
11713 # simply because there is no reason against having it here, and in addition,
11714 # creating and moving files from /tmp can sometimes cause problems.
11715 # Hook for its removal unless debugging.
11716 # Note that there is a small window in which the directory will not be cleaned:
11717 # after its creation but before its name has been assigned to `$tmp'.
11721 trap 'exit_status=$?
11722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11724 trap 'as_fn_exit 1' 1 2 13 15
11726 # Create a (secure) tmp directory for tmp files.
11729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11730 test -n "$tmp" && test -d "$tmp"
11733 tmp=./conf$$-$RANDOM
11734 (umask 077 && mkdir "$tmp")
11735 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11737 # Set up the scripts for CONFIG_FILES section.
11738 # No need to generate them if there are no CONFIG_FILES.
11739 # This happens for instance with `./config.status config.h'.
11740 if test -n "$CONFIG_FILES"; then
11743 ac_cr=`echo X | tr X '\015'`
11744 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11745 # But we know of no other shell where ac_cr would be empty at this
11746 # point, so we can use a bashism as a fallback.
11747 if test "x$ac_cr" = x; then
11748 eval ac_cr=\$\'\\r\'
11750 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11751 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11754 ac_cs_awk_cr=$ac_cr
11757 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11762 echo "cat >conf$$subs.awk <<_ACEOF" &&
11763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11765 } >conf$$subs.sh ||
11766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11769 for ac_last_try in false false false false false :; do
11770 . ./conf$$subs.sh ||
11771 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11774 if test $ac_delim_n = $ac_delim_num; then
11776 elif $ac_last_try; then
11777 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11782 rm -f conf$$subs.sh
11784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11789 s/^/S["/; s/!.*/"]=/
11799 s/\(.\{148\}\).*/\1/
11801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11813 s/\(.\{148\}\).*/\1/
11815 s/["\\]/\\&/g; s/^/"/; s/$/"/
11819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11824 ' <conf$$subs.awk | sed '
11829 ' >>$CONFIG_STATUS || ac_write_fail=1
11830 rm -f conf$$subs.awk
11831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11833 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11834 for (key in S) S_is_set[key] = 1
11840 nfields = split(line, field, "@")
11842 len = length(field[1])
11843 for (i = 2; i < nfields; i++) {
11845 keylen = length(key)
11846 if (S_is_set[key]) {
11848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11849 len += length(value) + length(field[++i])
11860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11862 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11865 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11866 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11871 # trailing colons and then remove the whole line if VPATH becomes empty
11872 # (actually we leave an empty line to preserve line numbers).
11873 if test "x$srcdir" = x.; then
11874 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11875 s/:*\$(srcdir):*/:/
11876 s/:*\${srcdir}:*/:/
11878 s/^\([^=]*=[ ]*\):*/\1/
11884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885 fi # test -n "$CONFIG_FILES"
11887 # Set up the scripts for CONFIG_HEADERS section.
11888 # No need to generate them if there are no CONFIG_HEADERS.
11889 # This happens for instance with `./config.status Makefile'.
11890 if test -n "$CONFIG_HEADERS"; then
11891 cat >"$tmp/defines.awk" <<\_ACAWK ||
11895 # Transform confdefs.h into an awk script `defines.awk', embedded as
11896 # here-document in config.status, that substitutes the proper values into
11897 # config.h.in to produce config.h.
11899 # Create a delimiter string that does not exist in confdefs.h, to ease
11900 # handling of long lines.
11902 for ac_last_try in false false :; do
11903 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11904 if test -z "$ac_t"; then
11906 elif $ac_last_try; then
11907 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11913 # For the awk script, D is an array of macro values keyed by name,
11914 # likewise P contains macro parameters if any. Preserve backslash
11915 # newline sequences.
11917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11919 s/.\{148\}/&'"$ac_delim"'/g
11922 s/^[ ]*#[ ]*define[ ][ ]*/ /
11929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11935 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11936 D["\1"]=" \3\\\\\\n"\\/p
11938 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11943 s/.\{148\}/&'"$ac_delim"'/g
11948 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11951 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11953 ' <confdefs.h | sed '
11954 s/'"$ac_delim"'/"\\\
11955 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11958 for (key in D) D_is_set[key] = 1
11961 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11963 split(line, arg, " ")
11964 if (arg[1] == "#") {
11968 defundef = substr(arg[1], 2)
11971 split(mac1, mac2, "(") #)
11973 prefix = substr(line, 1, index(line, defundef) - 1)
11974 if (D_is_set[macro]) {
11975 # Preserve the white space surrounding the "#".
11976 print prefix "define", macro P[macro] D[macro]
11979 # Replace #undef with comments. This is necessary, for example,
11980 # in the case of _POSIX_SOURCE, which is predefined and required
11981 # on some systems where configure will not decide to define it.
11982 if (defundef == "undef") {
11983 print "/*", prefix defundef, macro, "*/"
11991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11992 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11993 fi # test -n "$CONFIG_HEADERS"
11996 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12001 :[FHLC]) ac_mode=$ac_tag; continue;;
12003 case $ac_mode$ac_tag in
12005 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12006 :[FH]-) ac_tag=-:-;;
12007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12024 -) ac_f="$tmp/stdin";;
12025 *) # Look for the file first in the build tree, then in the source tree
12026 # (if the path is not absolute). The absolute path cannot be DOS-style,
12027 # because $ac_f cannot contain `:'.
12031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12033 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12036 as_fn_append ac_file_inputs " '$ac_f'"
12039 # Let's still pretend it is `configure' which instantiates (i.e., don't
12040 # use $as_me), people would be surprised to read:
12041 # /* config.h. Generated by config.status. */
12042 configure_input='Generated from '`
12043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12045 if test x"$ac_file" != x-; then
12046 configure_input="$ac_file. $configure_input"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12048 $as_echo "$as_me: creating $ac_file" >&6;}
12050 # Neutralize special characters interpreted by sed in replacement strings.
12051 case $configure_input in #(
12052 *\&* | *\|* | *\\* )
12053 ac_sed_conf_input=`$as_echo "$configure_input" |
12054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12055 *) ac_sed_conf_input=$configure_input;;
12059 *:-:* | *:-) cat >"$tmp/stdin" \
12060 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12065 ac_dir=`$as_dirname -- "$ac_file" ||
12066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067 X"$ac_file" : 'X\(//\)[^/]' \| \
12068 X"$ac_file" : 'X\(//\)$' \| \
12069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12070 $as_echo X"$ac_file" |
12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12075 /^X\(\/\/\)[^/].*/{
12088 as_dir="$ac_dir"; as_fn_mkdir_p
12092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12095 # A ".." for each directory in $ac_dir_suffix.
12096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12097 case $ac_top_builddir_sub in
12098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12102 ac_abs_top_builddir=$ac_pwd
12103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12104 # for backward compatibility:
12105 ac_top_builddir=$ac_top_build_prefix
12108 .) # We are building in place.
12110 ac_top_srcdir=$ac_top_builddir_sub
12111 ac_abs_top_srcdir=$ac_pwd ;;
12112 [\\/]* | ?:[\\/]* ) # Absolute name.
12113 ac_srcdir=$srcdir$ac_dir_suffix;
12114 ac_top_srcdir=$srcdir
12115 ac_abs_top_srcdir=$srcdir ;;
12116 *) # Relative name.
12117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12118 ac_top_srcdir=$ac_top_build_prefix$srcdir
12119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12134 ac_MKDIR_P=$MKDIR_P
12136 [\\/$]* | ?:[\\/]* ) ;;
12137 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12142 # If the template does not know about datarootdir, expand it.
12143 # FIXME: This hack should be removed a few years after 2.60.
12144 ac_datarootdir_hack=; ac_datarootdir_seen=
12155 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12156 *datarootdir*) ac_datarootdir_seen=yes;;
12157 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12159 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162 ac_datarootdir_hack='
12163 s&@datadir@&$datadir&g
12164 s&@docdir@&$docdir&g
12165 s&@infodir@&$infodir&g
12166 s&@localedir@&$localedir&g
12167 s&@mandir@&$mandir&g
12168 s&\\\${datarootdir}&$datarootdir&g' ;;
12172 # Neutralize VPATH when `$srcdir' = `.'.
12173 # Shell code in configure.ac might set extrasub.
12174 # FIXME: do we really want to maintain this feature?
12175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12176 ac_sed_extra="$ac_vpsub
12179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12182 s|@configure_input@|$ac_sed_conf_input|;t t
12183 s&@top_builddir@&$ac_top_builddir_sub&;t t
12184 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12185 s&@srcdir@&$ac_srcdir&;t t
12186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12187 s&@top_srcdir@&$ac_top_srcdir&;t t
12188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12189 s&@builddir@&$ac_builddir&;t t
12190 s&@abs_builddir@&$ac_abs_builddir&;t t
12191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12192 s&@INSTALL@&$ac_INSTALL&;t t
12193 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12194 $ac_datarootdir_hack
12196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12197 || as_fn_error "could not create $ac_file" "$LINENO" 5
12199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203 which seems to be undefined. Please make sure it is defined." >&5
12204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12205 which seems to be undefined. Please make sure it is defined." >&2;}
12209 -) cat "$tmp/out" && rm -f "$tmp/out";;
12210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12212 || as_fn_error "could not create $ac_file" "$LINENO" 5
12218 if test x"$ac_file" != x-; then
12220 $as_echo "/* $configure_input */" \
12221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12222 } >"$tmp/config.h" \
12223 || as_fn_error "could not create $ac_file" "$LINENO" 5
12224 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12226 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12229 mv "$tmp/config.h" "$ac_file" \
12230 || as_fn_error "could not create $ac_file" "$LINENO" 5
12233 $as_echo "/* $configure_input */" \
12234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12235 || as_fn_error "could not create -" "$LINENO" 5
12237 # Compute "$ac_file"'s index in $config_headers.
12240 for _am_header in $config_headers :; do
12241 case $_am_header in
12242 $_am_arg | $_am_arg:* )
12245 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12248 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12249 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12250 X"$_am_arg" : 'X\(//\)[^/]' \| \
12251 X"$_am_arg" : 'X\(//\)$' \| \
12252 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12253 $as_echo X"$_am_arg" |
12254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258 /^X\(\/\/\)[^/].*/{
12270 s/.*/./; q'`/stamp-h$_am_stamp_count
12273 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12274 $as_echo "$as_me: executing $ac_file commands" >&6;}
12279 case $ac_file$ac_mode in
12281 # Only add multilib support code if we just rebuilt the top-level
12283 case " $CONFIG_FILES " in
12285 ac_file=Makefile . ${multi_basedir}/config-ml.in
12288 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12289 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12290 # are listed without --file. Let's play safe and only enable the eval
12291 # if we detect the quoting.
12292 case $CONFIG_FILES in
12293 *\'*) eval set x "$CONFIG_FILES" ;;
12294 *) set x $CONFIG_FILES ;;
12299 # Strip MF so we end up with the name of the file.
12300 mf=`echo "$mf" | sed -e 's/:.*$//'`
12301 # Check whether this is an Automake generated Makefile or not.
12302 # We used to match only the files named `Makefile.in', but
12303 # some people rename them; so instead we look at the file content.
12304 # Grep'ing the first line is not enough: some people post-process
12305 # each Makefile.in and add a new line on top of each file to say so.
12306 # Grep'ing the whole file is not good either: AIX grep has a line
12307 # limit of 2048, but all sed's we know have understand at least 4000.
12308 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12309 dirpart=`$as_dirname -- "$mf" ||
12310 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12311 X"$mf" : 'X\(//\)[^/]' \| \
12312 X"$mf" : 'X\(//\)$' \| \
12313 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12319 /^X\(\/\/\)[^/].*/{
12335 # Extract the definition of DEPDIR, am__include, and am__quote
12336 # from the Makefile without running `make'.
12337 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12338 test -z "$DEPDIR" && continue
12339 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12340 test -z "am__include" && continue
12341 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12342 # When using ansi2knr, U may be empty or an underscore; expand it
12343 U=`sed -n 's/^U = //p' < "$mf"`
12344 # Find all dependency output files, they are included files with
12345 # $(DEPDIR) in their names. We invoke sed twice because it is the
12346 # simplest approach to changing $(DEPDIR) to its actual value in the
12348 for file in `sed -n "
12349 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12350 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12351 # Make sure the directory exists.
12352 test -f "$dirpart/$file" && continue
12353 fdir=`$as_dirname -- "$file" ||
12354 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12355 X"$file" : 'X\(//\)[^/]' \| \
12356 X"$file" : 'X\(//\)$' \| \
12357 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12358 $as_echo X"$file" |
12359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12363 /^X\(\/\/\)[^/].*/{
12376 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12377 # echo "creating $dirpart/$file"
12378 echo '# dummy' > "$dirpart/$file"
12390 ac_clean_files=$ac_clean_files_save
12392 test $ac_write_fail = 0 ||
12393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12396 # configure is writing to config.log, and then calls config.status.
12397 # config.status does its own redirection, appending to config.log.
12398 # Unfortunately, on DOS this fails, as config.log is still kept open
12399 # by configure, so config.status won't be able to write to it; its
12400 # output is simply discarded. So we exec the FD to /dev/null,
12401 # effectively closing config.log, so it can be properly (re)opened and
12402 # appended to by config.status. When coming back to configure, we
12403 # need to make the FD available again.
12404 if test "$no_create" != yes; then
12406 ac_config_status_args=
12407 test "$silent" = yes &&
12408 ac_config_status_args="$ac_config_status_args --quiet"
12410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12413 # would make configure fail if this is the last instruction.
12414 $ac_cs_success || as_fn_exit $?
12416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}