2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for demo 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='demo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='demo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 ac_unique_file="hello.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
679 INSTALL_STRIP_PROGRAM
721 program_transform_name
734 enable_option_checking
735 enable_dependency_tracking
744 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=\$ac_optarg ;;
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
913 -help | --help | --hel | --he | -h)
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 htmldir=$ac_optarg ;;
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
943 -libdir | --libdir | --libdi | --libd)
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
955 -localedir | --localedir | --localedi | --localed | --locale)
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 # Obsolete; use --without-fp.
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1034 -psdir | --psdir | --psdi | --psd | --ps)
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 sbindir=$ac_optarg ;;
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 sharedstatedir=$ac_optarg ;;
1060 -site | --site | --sit)
1062 -site=* | --site=* | --sit=*)
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used" >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218 test "$silent" = yes && exec 6>/dev/null
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures demo 1.0 to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/demo]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of demo 1.0:";;
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-dependency-tracking speeds up one-time build
1374 --enable-dependency-tracking do not reject slow dependency extractors
1375 --enable-shared[=PKGS] build shared libraries [default=yes]
1376 --enable-static[=PKGS] build static libraries [default=yes]
1377 --enable-fast-install[=PKGS]
1378 optimize for fast installation [default=yes]
1379 --disable-libtool-lock avoid locking (might break parallel builds)
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1387 --with-sysroot=DIR Search for dependent libraries within DIR
1388 (or the compiler's sysroot if not specified).
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to <bug-libtool@gnu.org>.
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1433 .) # We are building in place.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1467 generated by GNU Autoconf 2.68
1469 Copyright (C) 2010 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_link LINENO
1519 # -----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded.
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { { ac_try="$ac_link"
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>conftest.err
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest$ac_exeext && {
1544 test "$cross_compiling" = yes ||
1545 $as_test_x conftest$ac_exeext
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556 # interfere with the next link command; also delete a directory that is
1557 # left behind by Apple's compiler. We do this before executing the actions.
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_link
1564 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists and can be compiled using the include files in
1567 # INCLUDES, setting the cache variable VAR accordingly.
1568 ac_fn_c_check_header_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if eval \${$3+:} false; then :
1574 $as_echo_n "(cached) " >&6
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1581 if ac_fn_c_try_compile "$LINENO"; then :
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 } # ac_fn_c_check_header_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635 # that executables *can* be run.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }; then :
1662 $as_echo "$as_me: program exited with status $ac_status" >&5
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=$ac_status
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1689 #define $2 innocuous_$2
1691 /* System header to define __stub macros and hopefully few prototypes,
1692 which can conflict with char $2 (); below.
1693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1694 <limits.h> exists even on freestanding compilers. */
1697 # include <limits.h>
1699 # include <assert.h>
1704 /* Override any GCC internal prototype to avoid an error.
1705 Use char because int might match the return type of a GCC
1706 builtin and then its argument prototype would still apply. */
1711 /* The GNU C library defines this for functions which it implements
1712 to always fail with ENOSYS. Some functions are actually named
1713 something starting with __ and the normal name is an alias. */
1714 #if defined __stub_$2 || defined __stub___$2
1726 if ac_fn_c_try_link "$LINENO"; then :
1731 rm -f core conftest.err conftest.$ac_objext \
1732 conftest$ac_exeext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_func
1740 cat >config.log <<_ACEOF
1741 This file contains any messages produced by compilers while
1742 running configure, to aid debugging if configure makes a mistake.
1744 It was created by demo $as_me 1.0, which was
1745 generated by GNU Autoconf 2.68. Invocation command line was
1757 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1766 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1767 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1768 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1770 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1771 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1772 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 $as_echo "PATH: $as_dir"
1797 # Keep a trace of the command line.
1798 # Strip out --no-create and --no-recursion so they do not pile up.
1799 # Strip out --silent because we don't want to record it for future runs.
1800 # Also quote any args containing shell meta-characters.
1801 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_must_keep_next=false
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1816 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821 as_fn_append ac_configure_args1 " '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834 -* ) ac_must_keep_next=true ;;
1837 as_fn_append ac_configure_args " '$ac_arg'"
1842 { ac_configure_args0=; unset ac_configure_args0;}
1843 { ac_configure_args1=; unset ac_configure_args1;}
1845 # When interrupted or exit'd, cleanup temporary files, and complete
1846 # config.log. We remove comments because anyway the quotes in there
1847 # would cause problems or look ugly.
1848 # WARNING: Use '\'' to represent an apostrophe within the trap.
1849 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850 trap 'exit_status=$?
1851 # Save into config.log some information that might help in debugging.
1855 $as_echo "## ---------------- ##
1856 ## Cache variables. ##
1857 ## ---------------- ##"
1859 # The following way of writing the cache mishandles newlines in values,
1861 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1862 eval ac_val=\$$ac_var
1866 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1867 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 _ | IFS | as_nl) ;; #(
1871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1872 *) { eval $ac_var=; unset $ac_var;} ;;
1877 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1878 *${as_nl}ac_space=\ *)
1880 "s/'\''/'\''\\\\'\'''\''/g;
1881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 $as_echo "## ----------------- ##
1892 ## Output variables. ##
1893 ## ----------------- ##"
1895 for ac_var in $ac_subst_vars
1897 eval ac_val=\$$ac_var
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 $as_echo "$ac_var='\''$ac_val'\''"
1905 if test -n "$ac_subst_files"; then
1906 $as_echo "## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##"
1910 for ac_var in $ac_subst_files
1912 eval ac_val=\$$ac_var
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 $as_echo "$ac_var='\''$ac_val'\''"
1921 if test -s confdefs.h; then
1922 $as_echo "## ----------- ##
1929 test "$ac_signal" != 0 &&
1930 $as_echo "$as_me: caught signal $ac_signal"
1931 $as_echo "$as_me: exit $exit_status"
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 for ac_signal in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1942 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1943 rm -f -r conftest* confdefs.h
1945 $as_echo "/* confdefs.h */" > confdefs.h
1947 # Predefined preprocessor variables.
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_URL "$PACKAGE_URL"
1974 # Let the site file select an alternate cache file if it wants to.
1975 # Prefer an explicitly selected file to automatically selected ones.
1978 if test -n "$CONFIG_SITE"; then
1979 # We do not want a PATH search for config.site.
1980 case $CONFIG_SITE in #((
1981 -*) ac_site_file1=./$CONFIG_SITE;;
1982 */*) ac_site_file1=$CONFIG_SITE;;
1983 *) ac_site_file1=./$CONFIG_SITE;;
1985 elif test "x$prefix" != xNONE; then
1986 ac_site_file1=$prefix/share/config.site
1987 ac_site_file2=$prefix/etc/config.site
1989 ac_site_file1=$ac_default_prefix/share/config.site
1990 ac_site_file2=$ac_default_prefix/etc/config.site
1992 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 test "x$ac_site_file" = xNONE && continue
1995 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1997 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1998 sed 's/^/| /' "$ac_site_file" >&5
2000 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 as_fn_error $? "failed to load site script $ac_site_file
2003 See \`config.log' for more details" "$LINENO" 5; }
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special files
2009 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2010 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2024 # Check that the precious variables saved in the cache have kept the same
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029 eval ac_new_set=\$ac_env_${ac_var}_set
2030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031 eval ac_new_val=\$ac_env_${ac_var}_value
2032 case $ac_old_set,$ac_new_set in
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2043 if test "x$ac_old_val" != "x$ac_new_val"; then
2044 # differences in whitespace do not lead to failure.
2045 ac_old_val_w=`echo x $ac_old_val`
2046 ac_new_val_w=`echo x $ac_new_val`
2047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050 ac_cache_corrupted=:
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054 eval $ac_var=\$ac_old_val
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2062 # Pass precious variables to config.status.
2063 if test "$ac_new_set" = set; then
2065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 *) ac_arg=$ac_var=$ac_new_val ;;
2068 case " $ac_configure_args " in
2069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2070 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2074 if $ac_cache_corrupted; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2081 ## -------------------- ##
2082 ## Main body of script. ##
2083 ## -------------------- ##
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2095 if test -f "$ac_dir/install-sh"; then
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 elif test -f "$ac_dir/install.sh"; then
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 elif test -f "$ac_dir/shtool"; then
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2109 if test -z "$ac_aux_dir"; then
2110 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2124 ## ------------------------ ##
2125 ## Automake Initialisation. ##
2126 ## ------------------------ ##
2127 am__api_version='1.11'
2129 # Find a good install program. We prefer a C program (faster),
2130 # so one script is as good as another. But avoid the broken or
2131 # incompatible versions:
2132 # SysV /etc/install, /usr/sbin/install
2133 # SunOS /usr/etc/install
2134 # IRIX /sbin/install
2136 # AmigaOS /C/install, which installs bootblocks on floppy discs
2137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2140 # OS/2's system install, which has a completely different semantic
2141 # ./install, which can be erroneously created by make from ./install.sh.
2142 # Reject install programs that cannot install multiple files.
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2145 if test -z "$INSTALL"; then
2146 if ${ac_cv_path_install+:} false; then :
2147 $as_echo_n "(cached) " >&6
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 # Account for people who put trailing slashes in PATH elements.
2155 case $as_dir/ in #((
2156 ./ | .// | /[cC]/* | \
2157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2158 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2161 # OSF1 and SCO ODT 3.0 have their own names for install.
2162 # Don't use installbsd from OSF since it installs stuff as root
2164 for ac_prog in ginstall scoinst install; do
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2167 if test $ac_prog = install &&
2168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # AIX install. It has an incompatible calling convention.
2171 elif test $ac_prog = install &&
2172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173 # program-specific install script used by HP pwplus--don't use.
2176 rm -rf conftest.one conftest.two conftest.dir
2177 echo one > conftest.one
2178 echo two > conftest.two
2180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2181 test -s conftest.one && test -s conftest.two &&
2182 test -s conftest.dir/conftest.one &&
2183 test -s conftest.dir/conftest.two
2185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2198 rm -rf conftest.one conftest.two conftest.dir
2201 if test "${ac_cv_path_install+set}" = set; then
2202 INSTALL=$ac_cv_path_install
2204 # As a last resort, use the slow shell script. Don't cache a
2205 # value for INSTALL within a source directory, because that will
2206 # break other packages using the cache if that directory is
2207 # removed, or if the value is a relative name.
2208 INSTALL=$ac_install_sh
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2212 $as_echo "$INSTALL" >&6; }
2214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215 # It thinks the first close brace ends the variable substitution.
2216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2223 $as_echo_n "checking whether build environment is sane... " >&6; }
2226 echo timestamp > conftest.file
2227 # Reject unsafe characters in $srcdir or the absolute working directory
2228 # name. Accept space and tab only in the latter.
2232 *[\\\"\#\$\&\'\`$am_lf]*)
2233 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2236 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2237 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2240 # Do `set' in a subshell so we don't clobber the current shell's
2241 # arguments. Must try -L first in case configure is actually a
2242 # symlink; some systems play weird games with the mod time of symlinks
2243 # (eg FreeBSD returns the mod time of the symlink's containing
2246 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2247 if test "$*" = "X"; then
2249 set X `ls -t "$srcdir/configure" conftest.file`
2252 if test "$*" != "X $srcdir/configure conftest.file" \
2253 && test "$*" != "X conftest.file $srcdir/configure"; then
2255 # If neither matched, then we have a broken ls. This can happen
2256 # if, for instance, CONFIG_SHELL is bash and it inherits a
2257 # broken ls alias from the environment. This has actually
2258 # happened. Such a system could not be considered "sane".
2259 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2260 alias in your environment" "$LINENO" 5
2263 test "$2" = conftest.file
2269 as_fn_error $? "newly created file is older than distributed files!
2270 Check your system clock" "$LINENO" 5
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2273 $as_echo "yes" >&6; }
2274 test "$program_prefix" != NONE &&
2275 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2276 # Use a double $ so make ignores it.
2277 test "$program_suffix" != NONE &&
2278 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2279 # Double any \ or $.
2280 # By default was `s,x,x', remove it if useless.
2281 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2282 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2284 # expand $ac_aux_dir to an absolute path
2285 am_aux_dir=`cd $ac_aux_dir && pwd`
2287 if test x"${MISSING+set}" != xset; then
2290 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2292 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2295 # Use eval to expand $SHELL
2296 if eval "$MISSING --run true"; then
2297 am_missing_run="$MISSING --run "
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2301 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2304 if test x"${install_sh}" != xset; then
2307 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2309 install_sh="\${SHELL} $am_aux_dir/install-sh"
2313 # Installed binaries are usually stripped using `strip' when the user
2314 # run `make install-strip'. However `strip' might not be the right
2315 # tool to use in cross-compilation environments, therefore Automake
2316 # will honor the `STRIP' environment variable to overrule this program.
2317 if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}strip; ac_word=$2
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if ${ac_cv_prog_STRIP+:} false; then :
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 STRIP=$ac_cv_prog_STRIP
2347 if test -n "$STRIP"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2349 $as_echo "$STRIP" >&6; }
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2357 if test -z "$ac_cv_prog_STRIP"; then
2359 # Extract the first word of "strip", so it can be a program name with args.
2360 set dummy strip; ac_word=$2
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2364 $as_echo_n "(cached) " >&6
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387 if test -n "$ac_ct_STRIP"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2389 $as_echo "$ac_ct_STRIP" >&6; }
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392 $as_echo "no" >&6; }
2395 if test "x$ac_ct_STRIP" = x; then
2398 case $cross_compiling:$ac_tool_warned in
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2402 ac_tool_warned=yes ;;
2407 STRIP="$ac_cv_prog_STRIP"
2411 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2414 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2415 if test -z "$MKDIR_P"; then
2416 if ${ac_cv_path_mkdir+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2423 test -z "$as_dir" && as_dir=.
2424 for ac_prog in mkdir gmkdir; do
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2427 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2428 'mkdir (GNU coreutils) '* | \
2429 'mkdir (coreutils) '* | \
2430 'mkdir (fileutils) '4.1*)
2431 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2441 test -d ./--version && rmdir ./--version
2442 if test "${ac_cv_path_mkdir+set}" = set; then
2443 MKDIR_P="$ac_cv_path_mkdir -p"
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for MKDIR_P within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 MKDIR_P="$ac_install_sh -d"
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2453 $as_echo "$MKDIR_P" >&6; }
2457 [\\/$]* | ?:[\\/]*) ;;
2458 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2461 for ac_prog in gawk mawk nawk awk
2463 # Extract the first word of "$ac_prog", so it can be a program name with args.
2464 set dummy $ac_prog; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_AWK+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$AWK"; then
2471 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_AWK="$ac_prog"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$AWK"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2493 $as_echo "$AWK" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2500 test -n "$AWK" && break
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2504 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2506 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2507 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 cat >conftest.make <<\_ACEOF
2513 @echo '@@@%%%=$(MAKE)=@@@%%%'
2515 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2516 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2518 eval ac_cv_prog_make_${ac_make}_set=yes;;
2520 eval ac_cv_prog_make_${ac_make}_set=no;;
2524 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526 $as_echo "yes" >&6; }
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 SET_MAKE="MAKE=${MAKE-make}"
2534 rm -rf .tst 2>/dev/null
2535 mkdir .tst 2>/dev/null
2536 if test -d .tst; then
2541 rmdir .tst 2>/dev/null
2543 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2544 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2545 # is not polluted with repeated "-I."
2546 am__isrc=' -I$(srcdir)'
2547 # test to see if srcdir already configured
2548 if test -f $srcdir/config.status; then
2549 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2553 # test whether we have cygpath
2554 if test -z "$CYGPATH_W"; then
2555 if (cygpath --version) >/dev/null 2>/dev/null; then
2556 CYGPATH_W='cygpath -w'
2563 # Define the identity of the package.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE "$PACKAGE"
2573 cat >>confdefs.h <<_ACEOF
2574 #define VERSION "$VERSION"
2577 # Some tools Automake needs.
2579 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2582 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2585 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2588 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2591 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2593 # We need awk for the "check" target. The system "awk" is bad on
2595 # Always define AMTAR for backward compatibility.
2597 AMTAR=${AMTAR-"${am_missing_run}tar"}
2599 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2607 ## ---------------- ##
2608 ## compiler checks. ##
2609 ## ---------------- ##
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_CC+:} false; then :
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2654 if test -z "$ac_cv_prog_CC"; then
2656 # Extract the first word of "gcc", so it can be a program name with args.
2657 set dummy gcc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_CC="gcc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2692 if test "x$ac_ct_CC" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2748 if test -z "$CC"; then
2749 # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_CC+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768 ac_prog_rejected=yes
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test $ac_prog_rejected = yes; then
2780 # We found a bogon in the path, so make sure we never use it.
2781 set dummy $ac_cv_prog_CC
2783 if test $# != 0; then
2784 # We chose a different compiler from the bogus one.
2785 # However, it has the same basename, so the bogon will be chosen
2786 # first if we set CC to just the basename; use the full file name.
2788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 for ac_prog in cl.exe
2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2845 test -n "$CC" && break
2848 if test -z "$CC"; then
2850 for ac_prog in cl.exe
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_ac_ct_CC="$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2882 $as_echo "$ac_ct_CC" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2889 test -n "$ac_ct_CC" && break
2892 if test "x$ac_ct_CC" = x; then
2895 case $cross_compiling:$ac_tool_warned in
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error $? "no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details" "$LINENO" 5; }
2913 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2917 for ac_option in --version -v -V -qversion; do
2918 { { ac_try="$ac_compiler $ac_option >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2927 if test -s conftest.err; then
2929 ... rest of stderr output deleted ...
2930 10q' conftest.err >conftest.er1
2931 cat conftest.er1 >&5
2933 rm -f conftest.er1 conftest.err
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2949 ac_clean_files_save=$ac_clean_files
2950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951 # Try to create an executable without -o first, disregard a.out.
2952 # It will help us diagnose broken compilers, and finding out an intuition
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955 $as_echo_n "checking whether the C compiler works... " >&6; }
2956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958 # The possible output files:
2959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2962 for ac_file in $ac_files
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 if { { ac_try="$ac_link_default"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link_default") 2>&5
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2985 # so that the user can short-circuit this test for compilers unknown to
2987 for ac_file in $ac_files ''
2989 test -f "$ac_file" || continue
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2994 # We found the default executable, but exeext='' is most
2998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 # We set ac_cv_exeext here because the later test for it is not
3003 # safe: cross compilers may not add the suffix if given an `-o'
3004 # argument, so we may need to know it at that point already.
3005 # Even if this section looks crufty: it has the advantage of
3012 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017 if test -z "$ac_file"; then :
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error 77 "C compiler cannot create executables
3026 See \`config.log' for more details" "$LINENO" 5; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3032 $as_echo_n "checking for C compiler default output file name... " >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3034 $as_echo "$ac_file" >&6; }
3035 ac_exeext=$ac_cv_exeext
3037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3038 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { { ac_try="$ac_link"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details" "$LINENO" 5; }
3071 rm -f conftest conftest$ac_cv_exeext
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3073 $as_echo "$ac_cv_exeext" >&6; }
3075 rm -f conftest.$ac_ext
3076 EXEEXT=$ac_cv_exeext
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3084 FILE *f = fopen ("conftest.out", "w");
3085 return ferror (f) || fclose (f) != 0;
3091 ac_clean_files="$ac_clean_files conftest.out"
3092 # Check that the compiler produces executables we can run. If not, either
3093 # the compiler is broken, or we cross compile.
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3095 $as_echo_n "checking whether we are cross compiling... " >&6; }
3096 if test "$cross_compiling" != yes; then
3097 { { ac_try="$ac_link"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 if { ac_try='./conftest$ac_cv_exeext'
3109 { { case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_try") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; }; then
3121 if test "$cross_compiling" = maybe; then
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot run C compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details" "$LINENO" 5; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3133 $as_echo "$cross_compiling" >&6; }
3135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3138 $as_echo_n "checking for suffix of object files... " >&6; }
3139 if ${ac_cv_objext+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 rm -f conftest.o conftest.obj
3154 if { { ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compile") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 for ac_file in conftest.o conftest.obj conftest.*; do
3166 test -f "$ac_file" || continue;
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 $as_echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details" "$LINENO" 5; }
3182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3185 $as_echo "$ac_cv_objext" >&6; }
3186 OBJEXT=$ac_cv_objext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3190 if ${ac_cv_c_compiler_gnu+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3207 if ac_fn_c_try_compile "$LINENO"; then :
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3218 if test $ac_compiler_gnu = yes; then
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3227 if ${ac_cv_prog_cc_g+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 ac_save_c_werror_flag=$ac_c_werror_flag
3231 ac_c_werror_flag=yes
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3245 if ac_fn_c_try_compile "$LINENO"; then :
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3260 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_c_werror_flag=$ac_save_c_werror_flag
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3287 $as_echo "$ac_cv_prog_cc_g" >&6; }
3288 if test "$ac_test_CFLAGS" = set; then
3289 CFLAGS=$ac_save_CFLAGS
3290 elif test $ac_cv_prog_cc_g = yes; then
3291 if test "$GCC" = yes; then
3297 if test "$GCC" = yes; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3305 if ${ac_cv_prog_cc_c89+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_cv_prog_cc_c89=no
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3314 #include <sys/types.h>
3315 #include <sys/stat.h>
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3330 s = g (p, va_arg (v,int));
3335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3336 function prototypes and stuff, but not '\xHH' hex character constants.
3337 These don't provoke an error unfortunately, instead are silently treated
3338 as 'x'. The following induces an error, until -std is added to get
3339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3340 array size at least. It's necessary to write '\x00'==0 to get something
3341 that's true only with -std. */
3342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3345 inside strings and character constants. */
3347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349 int test (int i, double x);
3350 struct s1 {int (*f) (int a);};
3351 struct s2 {int (*f) (double a);};
3352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 CC="$ac_save_CC $ac_arg"
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_cv_prog_cc_c89=$ac_arg
3370 rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 rm -f conftest.$ac_ext
3378 case "x$ac_cv_prog_cc_c89" in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3381 $as_echo "none needed" >&6; } ;;
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3384 $as_echo "unsupported" >&6; } ;;
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3388 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3390 if test "x$ac_cv_prog_cc_c89" != xno; then :
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 DEPDIR="${am__leading_dot}deps"
3401 ac_config_commands="$ac_config_commands depfiles"
3404 am_make=${MAKE-make}
3405 cat > confinc << 'END'
3407 @echo this is the am__doit target
3410 # If we don't find an include directive, just comment out the code.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3412 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3416 # First try GNU make style include.
3417 echo "include confinc" > confmf
3418 # Ignore all kinds of additional output from `make'.
3419 case `$am_make -s -f confmf 2> /dev/null` in #(
3420 *the\ am__doit\ target*)
3426 # Now try BSD make style include.
3427 if test "$am__include" = "#"; then
3428 echo '.include "confinc"' > confmf
3429 case `$am_make -s -f confmf 2> /dev/null` in #(
3430 *the\ am__doit\ target*)
3431 am__include=.include
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3440 $as_echo "$_am_result" >&6; }
3441 rm -f confinc confmf
3443 # Check whether --enable-dependency-tracking was given.
3444 if test "${enable_dependency_tracking+set}" = set; then :
3445 enableval=$enable_dependency_tracking;
3448 if test "x$enable_dependency_tracking" != xno; then
3449 am_depcomp="$ac_aux_dir/depcomp"
3452 if test "x$enable_dependency_tracking" != xno; then
3462 depcc="$CC" am_compiler_list=
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3465 $as_echo_n "checking dependency style of $depcc... " >&6; }
3466 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3470 # We make a subdir and do the tests there. Otherwise we can end up
3471 # making bogus files that we don't know about and never remove. For
3472 # instance it was reported that on HP-UX the gcc test will end up
3473 # making a dummy file named `D' -- because `-MD' means `put the output
3476 # Copy depcomp to subdir because otherwise we won't find it if we're
3477 # using a relative directory.
3478 cp "$am_depcomp" conftest.dir
3480 # We will build objects and dependencies in a subdirectory because
3481 # it helps to detect inapplicable dependency modes. For instance
3482 # both Tru64's cc and ICC support -MD to output dependencies as a
3483 # side effect of compilation, but ICC will put the dependencies in
3484 # the current directory while Tru64 will put them in the object
3488 am_cv_CC_dependencies_compiler_type=none
3489 if test "$am_compiler_list" = ""; then
3490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3493 case " $depcc " in #(
3494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3497 for depmode in $am_compiler_list; do
3498 # Setup a source with many dependencies, because some compilers
3499 # like to wrap large dependency lists on column 80 (with \), and
3500 # we should not choose a depcomp mode which is confused by this.
3502 # We need to recreate these files for each test, as the compiler may
3503 # overwrite some of them when testing with obscure command lines.
3504 # This happens at least with the AIX C compiler.
3506 for i in 1 2 3 4 5 6; do
3507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3508 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3509 # Solaris 8's {/usr,}/bin/sh.
3510 touch sub/conftst$i.h
3512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515 # mode. It turns out that the SunPro C++ compiler does not properly
3516 # handle `-M -o', and we need to detect this. Also, some Intel
3517 # versions had trouble with output in subdirs
3518 am__obj=sub/conftest.${OBJEXT-o}
3519 am__minus_obj="-o $am__obj"
3522 # This depmode causes a compiler race in universal mode.
3523 test "$am__universal" = false || continue
3526 # after this tag, mechanisms are not by side-effect, so they'll
3527 # only be used when explicitly requested
3528 if test "x$enable_dependency_tracking" = xyes; then
3534 msvisualcpp | msvcmsys)
3535 # This compiler won't grok `-c -o', but also, the minuso test has
3536 # not run yet. These depmodes are late enough in the game, and
3537 # so weak that their functioning should not be impacted.
3538 am__obj=conftest.${OBJEXT-o}
3543 if depmode=$depmode \
3544 source=sub/conftest.c object=$am__obj \
3545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3547 >/dev/null 2>conftest.err &&
3548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3552 # icc doesn't choke on unknown options, it will just issue warnings
3553 # or remarks (even with -Werror). So we grep stderr for any message
3554 # that says an option was ignored or not supported.
3555 # When given -MP, icc 7.0 and 7.1 complain thusly:
3556 # icc: Command line warning: ignoring option '-M'; no argument required
3557 # The diagnosis changed in icc 8.0:
3558 # icc: Command line remark: option '-MP' not supported
3559 if (grep 'ignoring option' conftest.err ||
3560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3561 am_cv_CC_dependencies_compiler_type=$depmode
3570 am_cv_CC_dependencies_compiler_type=none
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3579 test "x$enable_dependency_tracking" != xno \
3580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3582 am__fastdepCC_FALSE='#'
3584 am__fastdepCC_TRUE='#'
3585 am__fastdepCC_FALSE=
3591 ## ----------------------- ##
3592 ## Libtool initialisation. ##
3593 ## ----------------------- ##
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3602 macro_version='2.4.2'
3603 macro_revision='1.3337'
3617 ltmain="$ac_aux_dir/ltmain.sh"
3619 # Make sure we can run config.sub.
3620 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3621 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3624 $as_echo_n "checking build system type... " >&6; }
3625 if ${ac_cv_build+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_build_alias=$build_alias
3629 test "x$ac_build_alias" = x &&
3630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3631 test "x$ac_build_alias" = x &&
3632 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3638 $as_echo "$ac_cv_build" >&6; }
3639 case $ac_cv_build in
3641 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3644 ac_save_IFS=$IFS; IFS='-'
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3654 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3658 $as_echo_n "checking host system type... " >&6; }
3659 if ${ac_cv_host+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 if test "x$host_alias" = x; then
3663 ac_cv_host=$ac_cv_build
3665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3671 $as_echo "$ac_cv_host" >&6; }
3674 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3677 ac_save_IFS=$IFS; IFS='-'
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3690 # Backslashify metacharacters that are still active within
3691 # double-quoted strings.
3692 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3694 # Same as above, but do not quote variable references.
3695 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3697 # Sed substitution to delay expansion of an escaped shell variable in a
3698 # double_quote_subst'ed string.
3699 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3701 # Sed substitution to delay expansion of an escaped single quote.
3702 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3704 # Sed substitution to avoid accidental globbing in evaled expressions
3705 no_glob_subst='s/\*/\\\*/g'
3707 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3709 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3712 $as_echo_n "checking how to print strings... " >&6; }
3713 # Test print first, because it will be a builtin if present.
3714 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3715 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3717 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3720 # Use this function as a fallback that always works.
3721 func_fallback_echo ()
3723 eval 'cat <<_LTECHO_EOF
3727 ECHO='func_fallback_echo'
3730 # func_echo_all arg...
3731 # Invoke $ECHO with all args, space-separated.
3738 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3739 $as_echo "printf" >&6; } ;;
3740 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3741 $as_echo "print -r" >&6; } ;;
3742 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3743 $as_echo "cat" >&6; } ;;
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3760 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3761 if ${ac_cv_path_SED+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3765 for ac_i in 1 2 3 4 5 6 7; do
3766 ac_script="$ac_script$as_nl$ac_script"
3768 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3769 { ac_script=; unset ac_script;}
3770 if test -z "$SED"; then
3771 ac_path_SED_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in sed gsed; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3782 # Check for GNU ac_path_SED and select it if it is found.
3783 # Check for GNU $ac_path_SED
3784 case `"$ac_path_SED" --version 2>&1` in
3786 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3789 $as_echo_n 0123456789 >"conftest.in"
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 $as_echo '' >> "conftest.nl"
3796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 as_fn_arith $ac_count + 1 && ac_count=$as_val
3799 if test $ac_count -gt ${ac_path_SED_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_SED="$ac_path_SED"
3802 ac_path_SED_max=$ac_count
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 $ac_path_SED_found && break 3
3815 if test -z "$ac_cv_path_SED"; then
3816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3824 $as_echo "$ac_cv_path_SED" >&6; }
3825 SED="$ac_cv_path_SED"
3828 test -z "$SED" && SED=sed
3829 Xsed="$SED -e 1s/^X//"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3842 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3843 if ${ac_cv_path_GREP+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -z "$GREP"; then
3847 ac_path_GREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in grep ggrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3857 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3858 # Check for GNU ac_path_GREP and select it if it is found.
3859 # Check for GNU $ac_path_GREP
3860 case `"$ac_path_GREP" --version 2>&1` in
3862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3865 $as_echo_n 0123456789 >"conftest.in"
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'GREP' >> "conftest.nl"
3872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_GREP="$ac_path_GREP"
3878 ac_path_GREP_max=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 $ac_path_GREP_found && break 3
3891 if test -z "$ac_cv_path_GREP"; then
3892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895 ac_cv_path_GREP=$GREP
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3900 $as_echo "$ac_cv_path_GREP" >&6; }
3901 GREP="$ac_cv_path_GREP"
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3905 $as_echo_n "checking for egrep... " >&6; }
3906 if ${ac_cv_path_EGREP+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3910 then ac_cv_path_EGREP="$GREP -E"
3912 if test -z "$EGREP"; then
3913 ac_path_EGREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in egrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3924 # Check for GNU ac_path_EGREP and select it if it is found.
3925 # Check for GNU $ac_path_EGREP
3926 case `"$ac_path_EGREP" --version 2>&1` in
3928 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931 $as_echo_n 0123456789 >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 $as_echo 'EGREP' >> "conftest.nl"
3938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 as_fn_arith $ac_count + 1 && ac_count=$as_val
3941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_EGREP="$ac_path_EGREP"
3944 ac_path_EGREP_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 $ac_path_EGREP_found && break 3
3957 if test -z "$ac_cv_path_EGREP"; then
3958 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3961 ac_cv_path_EGREP=$EGREP
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3967 $as_echo "$ac_cv_path_EGREP" >&6; }
3968 EGREP="$ac_cv_path_EGREP"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3972 $as_echo_n "checking for fgrep... " >&6; }
3973 if ${ac_cv_path_FGREP+:} false; then :
3974 $as_echo_n "(cached) " >&6
3976 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3977 then ac_cv_path_FGREP="$GREP -F"
3979 if test -z "$FGREP"; then
3980 ac_path_FGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in fgrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3991 # Check for GNU ac_path_FGREP and select it if it is found.
3992 # Check for GNU $ac_path_FGREP
3993 case `"$ac_path_FGREP" --version 2>&1` in
3995 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3998 $as_echo_n 0123456789 >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 $as_echo 'FGREP' >> "conftest.nl"
4005 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 as_fn_arith $ac_count + 1 && ac_count=$as_val
4008 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_FGREP="$ac_path_FGREP"
4011 ac_path_FGREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 $ac_path_FGREP_found && break 3
4024 if test -z "$ac_cv_path_FGREP"; then
4025 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 ac_cv_path_FGREP=$FGREP
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4034 $as_echo "$ac_cv_path_FGREP" >&6; }
4035 FGREP="$ac_cv_path_FGREP"
4038 test -z "$GREP" && GREP=grep
4058 # Check whether --with-gnu-ld was given.
4059 if test "${with_gnu_ld+set}" = set; then :
4060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4066 if test "$GCC" = yes; then
4067 # Check if gcc -print-prog-name=ld gives a path.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4069 $as_echo_n "checking for ld used by $CC... " >&6; }
4072 # gcc leaves a trailing carriage return which upsets mingw
4073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4078 # Accept absolute paths.
4080 re_direlt='/[^/][^/]*/\.\./'
4081 # Canonicalize the pathname of ld
4082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4086 test -z "$LD" && LD="$ac_prog"
4089 # If it fails, then pretend we aren't using GCC.
4093 # If it is relative, then search for the first ld in PATH.
4097 elif test "$with_gnu_ld" = yes; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4099 $as_echo_n "checking for GNU ld... " >&6; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4102 $as_echo_n "checking for non-GNU ld... " >&6; }
4104 if ${lt_cv_path_LD+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 if test -z "$LD"; then
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH; do
4111 test -z "$ac_dir" && ac_dir=.
4112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4113 lt_cv_path_LD="$ac_dir/$ac_prog"
4114 # Check to see if the program is GNU ld. I'd rather use --version,
4115 # but apparently some variants of GNU ld only accept -v.
4116 # Break only if it was the GNU/non-GNU ld that we prefer.
4117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4118 *GNU* | *'with BFD'*)
4119 test "$with_gnu_ld" != no && break
4122 test "$with_gnu_ld" != yes && break
4129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4134 if test -n "$LD"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4136 $as_echo "$LD" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4141 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4143 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4144 if ${lt_cv_prog_gnu_ld+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4148 case `$LD -v 2>&1 </dev/null` in
4149 *GNU* | *'with BFD'*)
4150 lt_cv_prog_gnu_ld=yes
4153 lt_cv_prog_gnu_ld=no
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4158 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4159 with_gnu_ld=$lt_cv_prog_gnu_ld
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4170 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4171 if ${lt_cv_path_NM+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$NM"; then
4175 # Let the user override the test.
4178 lt_nm_to_check="${ac_tool_prefix}nm"
4179 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4180 lt_nm_to_check="$lt_nm_to_check nm"
4182 for lt_tmp_nm in $lt_nm_to_check; do
4183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4186 test -z "$ac_dir" && ac_dir=.
4187 tmp_nm="$ac_dir/$lt_tmp_nm"
4188 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4189 # Check to see if the nm accepts a BSD-compat flag.
4190 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4191 # nm: unknown option "B" ignored
4192 # Tru64's nm complains that /dev/null is an invalid object file
4193 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4194 */dev/null* | *'Invalid file or object type'*)
4195 lt_cv_path_NM="$tmp_nm -B"
4199 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4201 lt_cv_path_NM="$tmp_nm -p"
4205 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4206 continue # so that we can try to find one that supports BSD flags
4215 : ${lt_cv_path_NM=no}
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4219 $as_echo "$lt_cv_path_NM" >&6; }
4220 if test "$lt_cv_path_NM" != "no"; then
4223 # Didn't find any BSD compatible name lister, look for dumpbin.
4224 if test -n "$DUMPBIN"; then :
4225 # Let the user override the test.
4227 if test -n "$ac_tool_prefix"; then
4228 for ac_prog in dumpbin "link -dump"
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_DUMPBIN+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$DUMPBIN"; then
4238 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 DUMPBIN=$ac_cv_prog_DUMPBIN
4258 if test -n "$DUMPBIN"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4260 $as_echo "$DUMPBIN" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4267 test -n "$DUMPBIN" && break
4270 if test -z "$DUMPBIN"; then
4271 ac_ct_DUMPBIN=$DUMPBIN
4272 for ac_prog in dumpbin "link -dump"
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$ac_ct_DUMPBIN"; then
4282 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4302 if test -n "$ac_ct_DUMPBIN"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4304 $as_echo "$ac_ct_DUMPBIN" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4311 test -n "$ac_ct_DUMPBIN" && break
4314 if test "x$ac_ct_DUMPBIN" = x; then
4317 case $cross_compiling:$ac_tool_warned in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4323 DUMPBIN=$ac_ct_DUMPBIN
4327 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4329 DUMPBIN="$DUMPBIN -symbols"
4337 if test "$DUMPBIN" != ":"; then
4341 test -z "$NM" && NM=nm
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4349 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4350 if ${lt_cv_nm_interface+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 lt_cv_nm_interface="BSD nm"
4354 echo "int some_variable = 0;" > conftest.$ac_ext
4355 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4356 (eval "$ac_compile" 2>conftest.err)
4357 cat conftest.err >&5
4358 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4359 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4360 cat conftest.err >&5
4361 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4362 cat conftest.out >&5
4363 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4364 lt_cv_nm_interface="MS dumpbin"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4369 $as_echo "$lt_cv_nm_interface" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4372 $as_echo_n "checking whether ln -s works... " >&6; }
4374 if test "$LN_S" = "ln -s"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 $as_echo "yes" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4379 $as_echo "no, using $LN_S" >&6; }
4382 # find the maximum length of command line arguments
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4384 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4385 if ${lt_cv_sys_max_cmd_len+:} false; then :
4386 $as_echo_n "(cached) " >&6
4393 # On DJGPP, this test can blow up pretty badly due to problems in libc
4394 # (any single argument exceeding 2000 bytes causes a buffer overrun
4395 # during glob expansion). Even if it were fixed, the result of this
4396 # check would be larger than it should be.
4397 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4401 # Under GNU Hurd, this test is not required because there is
4402 # no limit to the length of command line arguments.
4403 # Libtool will interpret -1 as no limit whatsoever
4404 lt_cv_sys_max_cmd_len=-1;
4407 cygwin* | mingw* | cegcc*)
4408 # On Win9x/ME, this test blows up -- it succeeds, but takes
4409 # about 5 minutes as the teststring grows exponentially.
4410 # Worse, since 9x/ME are not pre-emptively multitasking,
4411 # you end up with a "frozen" computer, even though with patience
4412 # the test eventually succeeds (with a max line length of 256k).
4413 # Instead, let's just punt: use the minimum linelength reported by
4414 # all of the supported platforms: 8192 (on NT/2K/XP).
4415 lt_cv_sys_max_cmd_len=8192;
4419 # On MiNT this can take a long time and run out of memory.
4420 lt_cv_sys_max_cmd_len=8192;
4424 # On AmigaOS with pdksh, this test takes hours, literally.
4425 # So we just punt and use a minimum line length of 8192.
4426 lt_cv_sys_max_cmd_len=8192;
4429 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4430 # This has been around since 386BSD, at least. Likely further.
4431 if test -x /sbin/sysctl; then
4432 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4433 elif test -x /usr/sbin/sysctl; then
4434 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4436 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4438 # And add a safety zone
4439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4444 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4445 lt_cv_sys_max_cmd_len=196608
4449 # The test takes a long time on OS/2.
4450 lt_cv_sys_max_cmd_len=8192
4454 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4455 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4456 # nice to cause kernel panics so lets avoid the loop below.
4457 # First set a reasonable default.
4458 lt_cv_sys_max_cmd_len=16384
4460 if test -x /sbin/sysconfig; then
4461 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4462 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4467 lt_cv_sys_max_cmd_len=102400
4469 sysv5* | sco5v6* | sysv4.2uw2*)
4470 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4471 if test -n "$kargmax"; then
4472 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4474 lt_cv_sys_max_cmd_len=32768
4478 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4479 if test -n "$lt_cv_sys_max_cmd_len"; then
4480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4483 # Make teststring a little bigger before we do anything with it.
4484 # a 1K string should be a reasonable start.
4485 for i in 1 2 3 4 5 6 7 8 ; do
4486 teststring=$teststring$teststring
4488 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4489 # If test is not a shell built-in, we'll probably end up computing a
4490 # maximum length that is only half of the actual maximum length, but
4492 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4493 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4494 test $i != 17 # 1/2 MB should be enough
4497 teststring=$teststring$teststring
4499 # Only check the string length outside the loop.
4500 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4502 # Add a significant safety factor because C++ compilers can tack on
4503 # massive amounts of additional arguments before passing them to the
4504 # linker. It appears as though 1/2 is a usable value.
4505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4512 if test -n $lt_cv_sys_max_cmd_len ; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4514 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4517 $as_echo "none" >&6; }
4519 max_cmd_len=$lt_cv_sys_max_cmd_len
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4531 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4532 # Try some XSI features
4535 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4537 && eval 'test $(( 1 + 1 )) -eq 2 \
4538 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4541 $as_echo "$xsi_shell" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4545 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4547 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4549 && lt_shell_append=yes
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4551 $as_echo "$lt_shell_append" >&6; }
4554 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4564 # test EBCDIC or ASCII
4565 case `echo X|tr X '\101'` in
4566 A) # ASCII based system
4567 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4568 lt_SP2NL='tr \040 \012'
4569 lt_NL2SP='tr \015\012 \040\040'
4571 *) # EBCDIC based system
4572 lt_SP2NL='tr \100 \n'
4573 lt_NL2SP='tr \r\n \100\100'
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4586 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4587 if ${lt_cv_to_host_file_cmd+:} false; then :
4588 $as_echo_n "(cached) " >&6
4593 *-*-mingw* ) # actually msys
4594 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4597 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4599 * ) # otherwise, assume *nix
4600 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4606 *-*-mingw* ) # actually msys
4607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4610 lt_cv_to_host_file_cmd=func_convert_file_noop
4612 * ) # otherwise, assume *nix
4613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4617 * ) # unhandled hosts (and "normal" native builds)
4618 lt_cv_to_host_file_cmd=func_convert_file_noop
4624 to_host_file_cmd=$lt_cv_to_host_file_cmd
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4626 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4633 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4634 if ${lt_cv_to_tool_file_cmd+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 #assume ordinary cross tools, or native build.
4638 lt_cv_to_tool_file_cmd=func_convert_file_noop
4642 *-*-mingw* ) # actually msys
4643 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4651 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4653 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4660 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4661 if ${lt_cv_ld_reload_flag+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 lt_cv_ld_reload_flag='-r'
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4667 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4668 reload_flag=$lt_cv_ld_reload_flag
4669 case $reload_flag in
4671 *) reload_flag=" $reload_flag" ;;
4673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4675 cygwin* | mingw* | pw32* | cegcc*)
4676 if test "$GCC" != yes; then
4681 if test "$GCC" = yes; then
4682 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4684 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4699 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_prog_OBJDUMP+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 if test -n "$OBJDUMP"; then
4706 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 OBJDUMP=$ac_cv_prog_OBJDUMP
4726 if test -n "$OBJDUMP"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4728 $as_echo "$OBJDUMP" >&6; }
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4736 if test -z "$ac_cv_prog_OBJDUMP"; then
4737 ac_ct_OBJDUMP=$OBJDUMP
4738 # Extract the first word of "objdump", so it can be a program name with args.
4739 set dummy objdump; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$ac_ct_OBJDUMP"; then
4746 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4766 if test -n "$ac_ct_OBJDUMP"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4768 $as_echo "$ac_ct_OBJDUMP" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4774 if test "x$ac_ct_OBJDUMP" = x; then
4777 case $cross_compiling:$ac_tool_warned in
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4783 OBJDUMP=$ac_ct_OBJDUMP
4786 OBJDUMP="$ac_cv_prog_OBJDUMP"
4789 test -z "$OBJDUMP" && OBJDUMP=objdump
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4797 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4798 if ${lt_cv_deplibs_check_method+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 lt_cv_file_magic_cmd='$MAGIC_CMD'
4802 lt_cv_file_magic_test_file=
4803 lt_cv_deplibs_check_method='unknown'
4804 # Need to set the preceding variable on all platforms that support
4805 # interlibrary dependencies.
4806 # 'none' -- dependencies not supported.
4807 # `unknown' -- same as none, but documents that we really don't know.
4808 # 'pass_all' -- all dependencies passed with no checks.
4809 # 'test_compile' -- check by making test program.
4810 # 'file_magic [[regex]]' -- check by looking for files in library path
4811 # which responds to the $file_magic_cmd with a given extended regex.
4812 # If you have `file' or equivalent on your system and you're not sure
4813 # whether `pass_all' will *always* work, you probably want this one.
4817 lt_cv_deplibs_check_method=pass_all
4821 lt_cv_deplibs_check_method=pass_all
4825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4826 lt_cv_file_magic_cmd='/usr/bin/file -L'
4827 lt_cv_file_magic_test_file=/shlib/libc.so
4831 # func_win32_libid is a shell function defined in ltmain.sh
4832 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4833 lt_cv_file_magic_cmd='func_win32_libid'
4837 # Base MSYS/MinGW do not provide the 'file' command needed by
4838 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4839 # unless we find 'file', for example because we are cross-compiling.
4840 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4841 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4843 lt_cv_file_magic_cmd='func_win32_libid'
4845 # Keep this pattern in sync with the one in func_win32_libid.
4846 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4847 lt_cv_file_magic_cmd='$OBJDUMP -f'
4852 # use the weaker test based on 'objdump'. See mingw*.
4853 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4854 lt_cv_file_magic_cmd='$OBJDUMP -f'
4857 darwin* | rhapsody*)
4858 lt_cv_deplibs_check_method=pass_all
4861 freebsd* | dragonfly*)
4862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4865 # Not sure whether the presence of OpenBSD here was a mistake.
4866 # Let's accept both of them until this is cleared up.
4867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4868 lt_cv_file_magic_cmd=/usr/bin/file
4869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4873 lt_cv_deplibs_check_method=pass_all
4878 lt_cv_deplibs_check_method=pass_all
4882 lt_cv_deplibs_check_method=pass_all
4885 hpux10.20* | hpux11*)
4886 lt_cv_file_magic_cmd=/usr/bin/file
4889 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4890 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4894 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4898 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4904 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4908 irix5* | irix6* | nonstopux*)
4910 *-32|*"-32 ") libmagic=32-bit;;
4911 *-n32|*"-n32 ") libmagic=N32;;
4912 *-64|*"-64 ") libmagic=64-bit;;
4913 *) libmagic=never-match;;
4915 lt_cv_deplibs_check_method=pass_all
4918 # This must be glibc/ELF.
4919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4920 lt_cv_deplibs_check_method=pass_all
4924 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4933 lt_cv_file_magic_cmd=/usr/bin/file
4934 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4938 lt_cv_deplibs_check_method=pass_all
4942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4949 osf3* | osf4* | osf5*)
4950 lt_cv_deplibs_check_method=pass_all
4954 lt_cv_deplibs_check_method=pass_all
4958 lt_cv_deplibs_check_method=pass_all
4961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962 lt_cv_deplibs_check_method=pass_all
4966 case $host_vendor in
4968 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]'
4969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4972 lt_cv_deplibs_check_method=pass_all
4975 lt_cv_file_magic_cmd='/bin/file'
4976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4979 lt_cv_file_magic_cmd='/bin/file'
4980 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4981 lt_cv_file_magic_test_file=/lib/libc.so
4984 lt_cv_deplibs_check_method=pass_all
4987 lt_cv_deplibs_check_method=pass_all
4993 lt_cv_deplibs_check_method=pass_all
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4999 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5003 if test "$build" = "$host"; then
5006 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5009 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5015 file_magic_cmd=$lt_cv_file_magic_cmd
5016 deplibs_check_method=$lt_cv_deplibs_check_method
5017 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_DLLTOOL+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$DLLTOOL"; then
5049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 DLLTOOL=$ac_cv_prog_DLLTOOL
5069 if test -n "$DLLTOOL"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5071 $as_echo "$DLLTOOL" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_DLLTOOL"; then
5080 ac_ct_DLLTOOL=$DLLTOOL
5081 # Extract the first word of "dlltool", so it can be a program name with args.
5082 set dummy dlltool; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$ac_ct_DLLTOOL"; then
5089 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5109 if test -n "$ac_ct_DLLTOOL"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5111 $as_echo "$ac_ct_DLLTOOL" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_DLLTOOL" = x; then
5120 case $cross_compiling:$ac_tool_warned in
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5126 DLLTOOL=$ac_ct_DLLTOOL
5129 DLLTOOL="$ac_cv_prog_DLLTOOL"
5132 test -z "$DLLTOOL" && DLLTOOL=dlltool
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5141 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5142 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 lt_cv_sharedlib_from_linklib_cmd='unknown'
5148 cygwin* | mingw* | pw32* | cegcc*)
5149 # two different shell functions defined in ltmain.sh
5150 # decide which to use based on capabilities of $DLLTOOL
5151 case `$DLLTOOL --help 2>&1` in
5152 *--identify-strict*)
5153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5156 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5161 # fallback: assume linklib IS sharedlib
5162 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5168 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5169 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5170 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5179 if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_AR+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -n "$AR"; then
5190 ac_cv_prog_AR="$AR" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 if test -n "$AR"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5212 $as_echo "$AR" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5219 test -n "$AR" && break
5222 if test -z "$AR"; then
5226 # Extract the first word of "$ac_prog", so it can be a program name with args.
5227 set dummy $ac_prog; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$ac_ct_AR"; then
5234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_ac_ct_AR="$ac_prog"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5254 if test -n "$ac_ct_AR"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5256 $as_echo "$ac_ct_AR" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 test -n "$ac_ct_AR" && break
5266 if test "x$ac_ct_AR" = x; then
5269 case $cross_compiling:$ac_tool_warned in
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5293 $as_echo_n "checking for archiver @FILE support... " >&6; }
5294 if ${lt_cv_ar_at_file+:} false; then :
5295 $as_echo_n "(cached) " >&6
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 echo conftest.$ac_objext > conftest.lst
5311 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5313 (eval $lt_ar_try) 2>&5
5315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }
5317 if test "$ac_status" -eq 0; then
5318 # Ensure the archiver fails upon bogus file names.
5319 rm -f conftest.$ac_objext libconftest.a
5320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5321 (eval $lt_ar_try) 2>&5
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325 if test "$ac_status" -ne 0; then
5329 rm -f conftest.* libconftest.a
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5336 $as_echo "$lt_cv_ar_at_file" >&6; }
5338 if test "x$lt_cv_ar_at_file" = xno; then
5341 archiver_list_spec=$lt_cv_ar_at_file
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}strip; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_STRIP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$STRIP"; then
5359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 STRIP=$ac_cv_prog_STRIP
5379 if test -n "$STRIP"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5381 $as_echo "$STRIP" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_prog_STRIP"; then
5391 # Extract the first word of "strip", so it can be a program name with args.
5392 set dummy strip; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_STRIP"; then
5399 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_STRIP="strip"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5419 if test -n "$ac_ct_STRIP"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5421 $as_echo "$ac_ct_STRIP" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5427 if test "x$ac_ct_STRIP" = x; then
5430 case $cross_compiling:$ac_tool_warned in
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned=yes ;;
5439 STRIP="$ac_cv_prog_STRIP"
5442 test -z "$STRIP" && STRIP=:
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_RANLIB+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$RANLIB"; then
5458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 RANLIB=$ac_cv_prog_RANLIB
5478 if test -n "$RANLIB"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5480 $as_echo "$RANLIB" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -z "$ac_cv_prog_RANLIB"; then
5489 ac_ct_RANLIB=$RANLIB
5490 # Extract the first word of "ranlib", so it can be a program name with args.
5491 set dummy ranlib; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$ac_ct_RANLIB"; then
5498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_RANLIB="ranlib"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5518 if test -n "$ac_ct_RANLIB"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5520 $as_echo "$ac_ct_RANLIB" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5526 if test "x$ac_ct_RANLIB" = x; then
5529 case $cross_compiling:$ac_tool_warned in
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5535 RANLIB=$ac_ct_RANLIB
5538 RANLIB="$ac_cv_prog_RANLIB"
5541 test -z "$RANLIB" && RANLIB=:
5548 # Determine commands to create old-style static archives.
5549 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5550 old_postinstall_cmds='chmod 644 $oldlib'
5551 old_postuninstall_cmds=
5553 if test -n "$RANLIB"; then
5556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5562 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5567 lock_old_archive_extraction=yes ;;
5569 lock_old_archive_extraction=no ;;
5610 # If no C compiler was specified, use CC.
5613 # If no C compiler flags were specified, use CFLAGS.
5614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5616 # Allow CC to be a program name with arguments.
5620 # Check for command to grab the raw symbol name followed by C symbol from nm.
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5622 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5623 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5624 $as_echo_n "(cached) " >&6
5627 # These are sane defaults that work on at least a few old systems.
5628 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5630 # Character class describing NM global symbol codes.
5631 symcode='[BCDEGRST]'
5633 # Regexp to match symbols that can be accessed directly from C.
5634 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5636 # Define system-specific variables.
5641 cygwin* | mingw* | pw32* | cegcc*)
5642 symcode='[ABCDGISTW]'
5645 if test "$host_cpu" = ia64; then
5646 symcode='[ABCDEGRST]'
5650 symcode='[BCDEGRST]'
5653 symcode='[BCDEGQRST]'
5664 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5672 # If we're using GNU nm, then use its standard symbol codes.
5673 case `$NM -V 2>&1` in
5674 *GNU* | *'with BFD'*)
5675 symcode='[ABCDGIRSTW]' ;;
5678 # Transform an extracted symbol line into a proper C declaration.
5679 # Some systems (esp. on ia64) link data and code symbols differently,
5680 # so use this general approach.
5681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5683 # Transform an extracted symbol line into symbol name and symbol address
5684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5685 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5687 # Handle CRLF in mingw tool chain
5691 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5695 # Try without a prefix underscore, then with it.
5696 for ac_symprfx in "" "_"; do
5698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5699 symxfrm="\\1 $ac_symprfx\\2 \\2"
5701 # Write the raw and C identifiers.
5702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703 # Fake it for dumpbin and say T for any non-static function
5704 # and D for any global variable.
5705 # Also find C++ and __fastcall symbols from MSVC++,
5706 # which start with @ or ?.
5707 lt_cv_sys_global_symbol_pipe="$AWK '"\
5708 " {last_section=section; section=\$ 3};"\
5709 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5710 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5711 " \$ 0!~/External *\|/{next};"\
5712 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5713 " {if(hide[section]) next};"\
5714 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5715 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5716 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5717 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5718 " ' prfx=^$ac_symprfx"
5720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5722 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5724 # Check to see that the pipe works correctly.
5728 cat > conftest.$ac_ext <<_LT_EOF
5733 void nm_test_func(void);
5734 void nm_test_func(void){}
5738 int main(){nm_test_var='a';nm_test_func();return(0);}
5741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742 (eval $ac_compile) 2>&5
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }; then
5746 # Now try to grab the symbols.
5748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752 test $ac_status = 0; } && test -s "$nlist"; then
5753 # Try sorting and uniquifying the output.
5754 if sort "$nlist" | uniq > "$nlist"T; then
5755 mv -f "$nlist"T "$nlist"
5760 # Make sure that we snagged all the symbols we need.
5761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5763 cat <<_LT_EOF > conftest.$ac_ext
5764 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5767 relocations are performed -- see ld's documentation on pseudo-relocs. */
5768 # define LT_DLSYM_CONST
5769 #elif defined(__osf__)
5770 /* This system does not cope well with relocations in const data. */
5771 # define LT_DLSYM_CONST
5773 # define LT_DLSYM_CONST const
5781 # Now generate the symbol file.
5782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5784 cat <<_LT_EOF >> conftest.$ac_ext
5786 /* The mapping between symbol names and symbols. */
5787 LT_DLSYM_CONST struct {
5791 lt__PROGRAM__LTX_preloaded_symbols[] =
5793 { "@PROGRAM@", (void *) 0 },
5795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5796 cat <<\_LT_EOF >> conftest.$ac_ext
5800 /* This works around a problem in FreeBSD linker */
5801 #ifdef FREEBSD_WORKAROUND
5802 static const void *lt_preloaded_setup() {
5803 return lt__PROGRAM__LTX_preloaded_symbols;
5811 # Now try linking the two files.
5812 mv conftest.$ac_objext conftstm.$ac_objext
5813 lt_globsym_save_LIBS=$LIBS
5814 lt_globsym_save_CFLAGS=$CFLAGS
5815 LIBS="conftstm.$ac_objext"
5816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5818 (eval $ac_link) 2>&5
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5824 LIBS=$lt_globsym_save_LIBS
5825 CFLAGS=$lt_globsym_save_CFLAGS
5827 echo "cannot find nm_test_func in $nlist" >&5
5830 echo "cannot find nm_test_var in $nlist" >&5
5833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836 echo "$progname: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 rm -rf conftest* conftst*
5841 # Do not use the global_symbol_pipe unless it works.
5842 if test "$pipe_works" = yes; then
5845 lt_cv_sys_global_symbol_pipe=
5851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5852 lt_cv_sys_global_symbol_to_cdecl=
5854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5856 $as_echo "failed" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5859 $as_echo "ok" >&6; }
5862 # Response file support.
5863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5864 nm_file_list_spec='@'
5865 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5866 nm_file_list_spec='@'
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5896 $as_echo_n "checking for sysroot... " >&6; }
5898 # Check whether --with-sysroot was given.
5899 if test "${with_sysroot+set}" = set; then :
5900 withval=$with_sysroot;
5907 case ${with_sysroot} in #(
5909 if test "$GCC" = yes; then
5910 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5914 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5920 $as_echo "${with_sysroot}" >&6; }
5921 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5926 $as_echo "${lt_sysroot:-no}" >&6; }
5932 # Check whether --enable-libtool-lock was given.
5933 if test "${enable_libtool_lock+set}" = set; then :
5934 enableval=$enable_libtool_lock;
5937 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5939 # Some flags need to be propagated to the compiler or linker for good
5943 # Find out which ABI we are using.
5944 echo 'int i;' > conftest.$ac_ext
5945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5946 (eval $ac_compile) 2>&5
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; }; then
5950 case `/usr/bin/file conftest.$ac_objext` in
5962 # Find out which ABI we are using.
5963 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5965 (eval $ac_compile) 2>&5
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; }; then
5969 if test "$lt_cv_prog_gnu_ld" = yes; then
5970 case `/usr/bin/file conftest.$ac_objext` in
5972 LD="${LD-ld} -melf32bsmip"
5975 LD="${LD-ld} -melf32bmipn32"
5978 LD="${LD-ld} -melf64bmip"
5982 case `/usr/bin/file conftest.$ac_objext` in
5998 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5999 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6000 # Find out which ABI we are using.
6001 echo 'int i;' > conftest.$ac_ext
6002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6003 (eval $ac_compile) 2>&5
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }; then
6007 case `/usr/bin/file conftest.o` in
6010 x86_64-*kfreebsd*-gnu)
6011 LD="${LD-ld} -m elf_i386_fbsd"
6014 LD="${LD-ld} -m elf_i386"
6016 ppc64-*linux*|powerpc64-*linux*)
6017 LD="${LD-ld} -m elf32ppclinux"
6020 LD="${LD-ld} -m elf_s390"
6023 LD="${LD-ld} -m elf32_sparc"
6029 x86_64-*kfreebsd*-gnu)
6030 LD="${LD-ld} -m elf_x86_64_fbsd"
6033 LD="${LD-ld} -m elf_x86_64"
6035 ppc*-*linux*|powerpc*-*linux*)
6036 LD="${LD-ld} -m elf64ppc"
6038 s390*-*linux*|s390*-*tpf*)
6039 LD="${LD-ld} -m elf64_s390"
6042 LD="${LD-ld} -m elf64_sparc"
6052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6053 SAVE_CFLAGS="$CFLAGS"
6054 CFLAGS="$CFLAGS -belf"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6056 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6057 if ${lt_cv_cc_needs_belf+:} false; then :
6058 $as_echo_n "(cached) " >&6
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6077 if ac_fn_c_try_link "$LINENO"; then :
6078 lt_cv_cc_needs_belf=yes
6080 lt_cv_cc_needs_belf=no
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6085 ac_cpp='$CPP $CPPFLAGS'
6086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6092 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6093 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6094 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6095 CFLAGS="$SAVE_CFLAGS"
6099 # Find out which ABI we are using.
6100 echo 'int i;' > conftest.$ac_ext
6101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6102 (eval $ac_compile) 2>&5
6104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 case `/usr/bin/file conftest.o` in
6108 case $lt_cv_prog_gnu_ld in
6112 LD="${LD-ld} -m elf_x86_64"
6115 LD="${LD-ld} -m elf64_sparc"
6118 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6119 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6124 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6136 need_locks="$enable_libtool_lock"
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}mt; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 if test -n "$MANIFEST_TOOL"; then
6147 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6167 if test -n "$MANIFEST_TOOL"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6169 $as_echo "$MANIFEST_TOOL" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6177 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6178 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6179 # Extract the first word of "mt", so it can be a program name with args.
6180 set dummy mt; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$ac_ct_MANIFEST_TOOL"; then
6187 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6207 if test -n "$ac_ct_MANIFEST_TOOL"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6209 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6215 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6224 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6227 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6230 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6232 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6233 if ${lt_cv_path_mainfest_tool+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 lt_cv_path_mainfest_tool=no
6237 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6238 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6239 cat conftest.err >&5
6240 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6241 lt_cv_path_mainfest_tool=yes
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6246 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6247 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6257 rhapsody* | darwin*)
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 if test -n "$DSYMUTIL"; then
6267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6287 if test -n "$DSYMUTIL"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6289 $as_echo "$DSYMUTIL" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6297 if test -z "$ac_cv_prog_DSYMUTIL"; then
6298 ac_ct_DSYMUTIL=$DSYMUTIL
6299 # Extract the first word of "dsymutil", so it can be a program name with args.
6300 set dummy dsymutil; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$ac_ct_DSYMUTIL"; then
6307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6327 if test -n "$ac_ct_DSYMUTIL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6329 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6335 if test "x$ac_ct_DSYMUTIL" = x; then
6338 case $cross_compiling:$ac_tool_warned in
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6344 DSYMUTIL=$ac_ct_DSYMUTIL
6347 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_NMEDIT+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 if test -n "$NMEDIT"; then
6359 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 NMEDIT=$ac_cv_prog_NMEDIT
6379 if test -n "$NMEDIT"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6381 $as_echo "$NMEDIT" >&6; }
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_NMEDIT"; then
6390 ac_ct_NMEDIT=$NMEDIT
6391 # Extract the first word of "nmedit", so it can be a program name with args.
6392 set dummy nmedit; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$ac_ct_NMEDIT"; then
6399 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6419 if test -n "$ac_ct_NMEDIT"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6421 $as_echo "$ac_ct_NMEDIT" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_NMEDIT" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6436 NMEDIT=$ac_ct_NMEDIT
6439 NMEDIT="$ac_cv_prog_NMEDIT"
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_LIPO+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$LIPO"; then
6451 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 LIPO=$ac_cv_prog_LIPO
6471 if test -n "$LIPO"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6473 $as_echo "$LIPO" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6481 if test -z "$ac_cv_prog_LIPO"; then
6483 # Extract the first word of "lipo", so it can be a program name with args.
6484 set dummy lipo; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -n "$ac_ct_LIPO"; then
6491 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_LIPO="lipo"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6511 if test -n "$ac_ct_LIPO"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6513 $as_echo "$ac_ct_LIPO" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6519 if test "x$ac_ct_LIPO" = x; then
6522 case $cross_compiling:$ac_tool_warned in
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6531 LIPO="$ac_cv_prog_LIPO"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_OTOOL+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -n "$OTOOL"; then
6543 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 OTOOL=$ac_cv_prog_OTOOL
6563 if test -n "$OTOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6565 $as_echo "$OTOOL" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_OTOOL"; then
6575 # Extract the first word of "otool", so it can be a program name with args.
6576 set dummy otool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6582 if test -n "$ac_ct_OTOOL"; then
6583 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL="otool"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6603 if test -n "$ac_ct_OTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6605 $as_echo "$ac_ct_OTOOL" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611 if test "x$ac_ct_OTOOL" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6623 OTOOL="$ac_cv_prog_OTOOL"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_OTOOL64+:} false; then :
6632 $as_echo_n "(cached) " >&6
6634 if test -n "$OTOOL64"; then
6635 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 OTOOL64=$ac_cv_prog_OTOOL64
6655 if test -n "$OTOOL64"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6657 $as_echo "$OTOOL64" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_OTOOL64"; then
6666 ac_ct_OTOOL64=$OTOOL64
6667 # Extract the first word of "otool64", so it can be a program name with args.
6668 set dummy otool64; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$ac_ct_OTOOL64"; then
6675 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OTOOL64="otool64"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6695 if test -n "$ac_ct_OTOOL64"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6697 $as_echo "$ac_ct_OTOOL64" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_OTOOL64" = x; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6712 OTOOL64=$ac_ct_OTOOL64
6715 OTOOL64="$ac_cv_prog_OTOOL64"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6745 $as_echo_n "checking for -single_module linker flag... " >&6; }
6746 if ${lt_cv_apple_cc_single_mod+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 lt_cv_apple_cc_single_mod=no
6750 if test -z "${LT_MULTI_MODULE}"; then
6751 # By default we will add the -single_module flag. You can override
6752 # by either setting the environment variable LT_MULTI_MODULE
6753 # non-empty at configure time, or by adding -multi_module to the
6755 rm -rf libconftest.dylib*
6756 echo "int foo(void){return 1;}" > conftest.c
6757 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6758 -dynamiclib -Wl,-single_module conftest.c" >&5
6759 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6762 # If there is a non-empty error log, and "single_module"
6763 # appears in it, assume the flag caused a linker warning
6764 if test -s conftest.err && $GREP single_module conftest.err; then
6765 cat conftest.err >&5
6766 # Otherwise, if the output was created with a 0 exit code from
6767 # the compiler, it worked.
6768 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6769 lt_cv_apple_cc_single_mod=yes
6771 cat conftest.err >&5
6773 rm -rf libconftest.dylib*
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6778 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6781 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6782 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 lt_cv_ld_exported_symbols_list=no
6786 save_LDFLAGS=$LDFLAGS
6787 echo "_main" > conftest.sym
6788 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6800 if ac_fn_c_try_link "$LINENO"; then :
6801 lt_cv_ld_exported_symbols_list=yes
6803 lt_cv_ld_exported_symbols_list=no
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 LDFLAGS="$save_LDFLAGS"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6811 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6814 $as_echo_n "checking for -force_load linker flag... " >&6; }
6815 if ${lt_cv_ld_force_load+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 lt_cv_ld_force_load=no
6819 cat > conftest.c << _LT_EOF
6820 int forced_loaded() { return 2;}
6822 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6823 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6824 echo "$AR cru libconftest.a conftest.o" >&5
6825 $AR cru libconftest.a conftest.o 2>&5
6826 echo "$RANLIB libconftest.a" >&5
6827 $RANLIB libconftest.a 2>&5
6828 cat > conftest.c << _LT_EOF
6829 int main() { return 0;}
6831 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6832 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6834 if test -s conftest.err && $GREP force_load conftest.err; then
6835 cat conftest.err >&5
6836 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6837 lt_cv_ld_force_load=yes
6839 cat conftest.err >&5
6841 rm -f conftest.err libconftest.a conftest conftest.c
6842 rm -rf conftest.dSYM
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6846 $as_echo "$lt_cv_ld_force_load" >&6; }
6848 rhapsody* | darwin1.[012])
6849 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6852 darwin*) # darwin 5.x on
6853 # if running on 10.5 or later, the deployment target defaults
6854 # to the OS version, if on x86, and 10.4, the deployment
6855 # target defaults to 10.4. Don't you love it?
6856 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6857 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6860 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6866 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6867 _lt_dar_single_mod='$single_module'
6869 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6870 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6874 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6875 _lt_dsymutil='~$DSYMUTIL $lib || :'
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6889 # On Suns, sometimes $CPP names a directory.
6890 if test -n "$CPP" && test -d "$CPP"; then
6893 if test -z "$CPP"; then
6894 if ${ac_cv_prog_CPP+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 # Double quotes because CPP needs to be expanded
6898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901 for ac_c_preproc_warn_flag in '' yes
6903 # Use a header file that comes with gcc, so configuring glibc
6904 # with a fresh cross-compiler works.
6905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906 # <limits.h> exists even on freestanding compilers.
6907 # On the NeXT, cc -E runs the code through the compiler's parser,
6908 # not just through cpp. "Syntax error" is here to catch this case.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6912 # include <limits.h>
6914 # include <assert.h>
6918 if ac_fn_c_try_cpp "$LINENO"; then :
6921 # Broken: fails on valid input.
6924 rm -f conftest.err conftest.i conftest.$ac_ext
6926 # OK, works on sane cases. Now check whether nonexistent headers
6927 # can be detected and how.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <ac_nonexistent.h>
6932 if ac_fn_c_try_cpp "$LINENO"; then :
6933 # Broken: success on invalid input.
6936 # Passes both tests.
6940 rm -f conftest.err conftest.i conftest.$ac_ext
6943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6944 rm -f conftest.i conftest.err conftest.$ac_ext
6945 if $ac_preproc_ok; then :
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6958 $as_echo "$CPP" >&6; }
6960 for ac_c_preproc_warn_flag in '' yes
6962 # Use a header file that comes with gcc, so configuring glibc
6963 # with a fresh cross-compiler works.
6964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965 # <limits.h> exists even on freestanding compilers.
6966 # On the NeXT, cc -E runs the code through the compiler's parser,
6967 # not just through cpp. "Syntax error" is here to catch this case.
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6971 # include <limits.h>
6973 # include <assert.h>
6977 if ac_fn_c_try_cpp "$LINENO"; then :
6980 # Broken: fails on valid input.
6983 rm -f conftest.err conftest.i conftest.$ac_ext
6985 # OK, works on sane cases. Now check whether nonexistent headers
6986 # can be detected and how.
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 #include <ac_nonexistent.h>
6991 if ac_fn_c_try_cpp "$LINENO"; then :
6992 # Broken: success on invalid input.
6995 # Passes both tests.
6999 rm -f conftest.err conftest.i conftest.$ac_ext
7002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003 rm -f conftest.i conftest.err conftest.$ac_ext
7004 if $ac_preproc_ok; then :
7007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7009 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7010 See \`config.log' for more details" "$LINENO" 5; }
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7021 $as_echo_n "checking for ANSI C header files... " >&6; }
7022 if ${ac_cv_header_stdc+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 ac_cv_header_stdc=yes
7043 ac_cv_header_stdc=no
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047 if test $ac_cv_header_stdc = yes; then
7048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then :
7058 ac_cv_header_stdc=no
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "free" >/dev/null 2>&1; then :
7075 ac_cv_header_stdc=no
7081 if test $ac_cv_header_stdc = yes; then
7082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083 if test "$cross_compiling" = yes; then :
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 # define ISLOWER(c) \
7095 (('a' <= (c) && (c) <= 'i') \
7096 || ('j' <= (c) && (c) <= 'r') \
7097 || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 for (i = 0; i < 256; i++)
7107 if (XOR (islower (i), ISLOWER (i))
7108 || toupper (i) != TOUPPER (i))
7113 if ac_fn_c_try_run "$LINENO"; then :
7116 ac_cv_header_stdc=no
7118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7119 conftest.$ac_objext conftest.beam conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7125 $as_echo "$ac_cv_header_stdc" >&6; }
7126 if test $ac_cv_header_stdc = yes; then
7128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7134 inttypes.h stdint.h unistd.h
7136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7140 cat >>confdefs.h <<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 for ac_header in dlfcn.h
7151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7154 cat >>confdefs.h <<_ACEOF
7155 #define HAVE_DLFCN_H 1
7168 enable_win32_dll=yes
7171 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}as; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_AS+:} false; then :
7178 $as_echo_n "(cached) " >&6
7180 if test -n "$AS"; then
7181 ac_cv_prog_AS="$AS" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_AS="${ac_tool_prefix}as"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 if test -n "$AS"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7203 $as_echo "$AS" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7211 if test -z "$ac_cv_prog_AS"; then
7213 # Extract the first word of "as", so it can be a program name with args.
7214 set dummy as; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$ac_ct_AS"; then
7221 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ac_ct_AS="as"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7241 if test -n "$ac_ct_AS"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7243 $as_echo "$ac_ct_AS" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 if test "x$ac_ct_AS" = x; then
7252 case $cross_compiling:$ac_tool_warned in
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_DLLTOOL+:} false; then :
7270 $as_echo_n "(cached) " >&6
7272 if test -n "$DLLTOOL"; then
7273 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 DLLTOOL=$ac_cv_prog_DLLTOOL
7293 if test -n "$DLLTOOL"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7295 $as_echo "$DLLTOOL" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7303 if test -z "$ac_cv_prog_DLLTOOL"; then
7304 ac_ct_DLLTOOL=$DLLTOOL
7305 # Extract the first word of "dlltool", so it can be a program name with args.
7306 set dummy dlltool; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$ac_ct_DLLTOOL"; then
7313 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7333 if test -n "$ac_ct_DLLTOOL"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7335 $as_echo "$ac_ct_DLLTOOL" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7341 if test "x$ac_ct_DLLTOOL" = x; then
7344 case $cross_compiling:$ac_tool_warned in
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7350 DLLTOOL=$ac_ct_DLLTOOL
7353 DLLTOOL="$ac_cv_prog_DLLTOOL"
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_OBJDUMP+:} false; then :
7362 $as_echo_n "(cached) " >&6
7364 if test -n "$OBJDUMP"; then
7365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 OBJDUMP=$ac_cv_prog_OBJDUMP
7385 if test -n "$OBJDUMP"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7387 $as_echo "$OBJDUMP" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7395 if test -z "$ac_cv_prog_OBJDUMP"; then
7396 ac_ct_OBJDUMP=$OBJDUMP
7397 # Extract the first word of "objdump", so it can be a program name with args.
7398 set dummy objdump; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7402 $as_echo_n "(cached) " >&6
7404 if test -n "$ac_ct_OBJDUMP"; then
7405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7425 if test -n "$ac_ct_OBJDUMP"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7427 $as_echo "$ac_ct_OBJDUMP" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7433 if test "x$ac_ct_OBJDUMP" = x; then
7436 case $cross_compiling:$ac_tool_warned in
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7442 OBJDUMP=$ac_ct_OBJDUMP
7445 OBJDUMP="$ac_cv_prog_OBJDUMP"
7451 test -z "$AS" && AS=as
7457 test -z "$DLLTOOL" && DLLTOOL=dlltool
7463 test -z "$OBJDUMP" && OBJDUMP=objdump
7473 # Check whether --enable-shared was given.
7474 if test "${enable_shared+set}" = set; then :
7475 enableval=$enable_shared; p=${PACKAGE-default}
7477 yes) enable_shared=yes ;;
7478 no) enable_shared=no ;;
7481 # Look at the argument we got. We use all the common list separators.
7482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7483 for pkg in $enableval; do
7485 if test "X$pkg" = "X$p"; then
7504 # Check whether --enable-static was given.
7505 if test "${enable_static+set}" = set; then :
7506 enableval=$enable_static; p=${PACKAGE-default}
7508 yes) enable_static=yes ;;
7509 no) enable_static=no ;;
7512 # Look at the argument we got. We use all the common list separators.
7513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7514 for pkg in $enableval; do
7516 if test "X$pkg" = "X$p"; then
7536 # Check whether --with-pic was given.
7537 if test "${with_pic+set}" = set; then :
7538 withval=$with_pic; lt_p=${PACKAGE-default}
7540 yes|no) pic_mode=$withval ;;
7543 # Look at the argument we got. We use all the common list separators.
7544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7545 for lt_pkg in $withval; do
7547 if test "X$lt_pkg" = "X$lt_p"; then
7559 test -z "$pic_mode" && pic_mode=default
7567 # Check whether --enable-fast-install was given.
7568 if test "${enable_fast_install+set}" = set; then :
7569 enableval=$enable_fast_install; p=${PACKAGE-default}
7571 yes) enable_fast_install=yes ;;
7572 no) enable_fast_install=no ;;
7574 enable_fast_install=no
7575 # Look at the argument we got. We use all the common list separators.
7576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577 for pkg in $enableval; do
7579 if test "X$pkg" = "X$p"; then
7580 enable_fast_install=yes
7587 enable_fast_install=yes
7600 # This can be used to rebuild libtool when needed
7601 LIBTOOL_DEPS="$ltmain"
7603 # Always use our own libtool.
7604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7635 test -z "$LN_S" && LN_S="ln -s"
7650 if test -n "${ZSH_VERSION+set}" ; then
7651 setopt NO_GLOB_SUBST
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7655 $as_echo_n "checking for objdir... " >&6; }
7656 if ${lt_cv_objdir+:} false; then :
7657 $as_echo_n "(cached) " >&6
7659 rm -f .libs 2>/dev/null
7660 mkdir .libs 2>/dev/null
7661 if test -d .libs; then
7664 # MS-DOS does not allow filenames that begin with a dot.
7667 rmdir .libs 2>/dev/null
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7670 $as_echo "$lt_cv_objdir" >&6; }
7671 objdir=$lt_cv_objdir
7677 cat >>confdefs.h <<_ACEOF
7678 #define LT_OBJDIR "$lt_cv_objdir/"
7686 # AIX sometimes has problems with the GCC collect2 program. For some
7687 # reason, if we set the COLLECT_NAMES environment variable, the problems
7688 # vanish in a puff of smoke.
7689 if test "X${COLLECT_NAMES+set}" != Xset; then
7691 export COLLECT_NAMES
7698 can_build_shared=yes
7700 # All known linkers require a `.a' archive for static linking (except MSVC,
7701 # which needs '.lib').
7704 with_gnu_ld="$lt_cv_prog_gnu_ld"
7707 old_CFLAGS="$CFLAGS"
7709 # Set sane defaults for various variables
7710 test -z "$CC" && CC=cc
7711 test -z "$LTCC" && LTCC=$CC
7712 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7713 test -z "$LD" && LD=ld
7714 test -z "$ac_objext" && ac_objext=o
7716 for cc_temp in $compiler""; do
7718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7724 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7727 # Only perform the check for file, if the check method requires it
7728 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7729 case $deplibs_check_method in
7731 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7733 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7734 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7735 $as_echo_n "(cached) " >&6
7739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742 lt_save_MAGIC_CMD="$MAGIC_CMD"
7743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7745 for ac_dir in $ac_dummy; do
7747 test -z "$ac_dir" && ac_dir=.
7748 if test -f $ac_dir/${ac_tool_prefix}file; then
7749 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7750 if test -n "$file_magic_test_file"; then
7751 case $deplibs_check_method in
7753 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7756 $EGREP "$file_magic_regex" > /dev/null; then
7761 *** Warning: the command libtool uses to detect shared libraries,
7762 *** $file_magic_cmd, produces output that libtool cannot recognize.
7763 *** The result is that libtool may fail to recognize shared libraries
7764 *** as such. This will affect the creation of libtool libraries that
7765 *** depend on shared libraries, but programs linked with such libtool
7766 *** libraries will work regardless of this problem. Nevertheless, you
7767 *** may want to report the problem to your system manager and/or to
7768 *** bug-libtool@gnu.org
7778 MAGIC_CMD="$lt_save_MAGIC_CMD"
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if test -n "$MAGIC_CMD"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7786 $as_echo "$MAGIC_CMD" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7796 if test -z "$lt_cv_path_MAGIC_CMD"; then
7797 if test -n "$ac_tool_prefix"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7799 $as_echo_n "checking for file... " >&6; }
7800 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7801 $as_echo_n "(cached) " >&6
7805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7808 lt_save_MAGIC_CMD="$MAGIC_CMD"
7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7811 for ac_dir in $ac_dummy; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/file; then
7815 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7816 if test -n "$file_magic_test_file"; then
7817 case $deplibs_check_method in
7819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7822 $EGREP "$file_magic_regex" > /dev/null; then
7827 *** Warning: the command libtool uses to detect shared libraries,
7828 *** $file_magic_cmd, produces output that libtool cannot recognize.
7829 *** The result is that libtool may fail to recognize shared libraries
7830 *** as such. This will affect the creation of libtool libraries that
7831 *** depend on shared libraries, but programs linked with such libtool
7832 *** libraries will work regardless of this problem. Nevertheless, you
7833 *** may want to report the problem to your system manager and/or to
7834 *** bug-libtool@gnu.org
7844 MAGIC_CMD="$lt_save_MAGIC_CMD"
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if test -n "$MAGIC_CMD"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7852 $as_echo "$MAGIC_CMD" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7868 # Use C for the default configuration in the libtool script
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878 # Source file extension for C test sources.
7881 # Object file extension for compiled C test sources.
7885 # Code to be used in simple compile tests
7886 lt_simple_compile_test_code="int some_variable = 0;"
7888 # Code to be used in simple link tests
7889 lt_simple_link_test_code='int main(){return(0);}'
7897 # If no C compiler was specified, use CC.
7900 # If no C compiler flags were specified, use CFLAGS.
7901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7903 # Allow CC to be a program name with arguments.
7906 # Save the default compiler, since it gets overwritten when the other
7907 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7908 compiler_DEFAULT=$CC
7910 # save warnings/boilerplate of simple test code
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914 _lt_compiler_boilerplate=`cat conftest.err`
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7920 _lt_linker_boilerplate=`cat conftest.err`
7925 ## There is no encapsulation within the following macros, do not change
7926 ## the running order or otherwise move them around unless you know exactly
7927 ## what you are doing...
7928 if test -n "$compiler"; then
7930 lt_prog_compiler_no_builtin_flag=
7932 if test "$GCC" = yes; then
7933 case $cc_basename in
7935 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7937 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7942 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7943 $as_echo_n "(cached) " >&6
7945 lt_cv_prog_compiler_rtti_exceptions=no
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7948 lt_compiler_flag="-fno-rtti -fno-exceptions"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 # The option is referenced via a variable to avoid confusing sed.
7954 lt_compile=`echo "$ac_compile" | $SED \
7955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957 -e 's:$: $lt_compiler_flag:'`
7958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7959 (eval "$lt_compile" 2>conftest.err)
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 if (exit $ac_status) && test -s "$ac_outfile"; then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings other than the usual output.
7966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_rtti_exceptions=yes
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7976 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7979 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7991 lt_prog_compiler_wl=
7992 lt_prog_compiler_pic=
7993 lt_prog_compiler_static=
7996 if test "$GCC" = yes; then
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_static='-static'
8002 # All AIX code is PIC.
8003 if test "$host_cpu" = ia64; then
8004 # AIX 5 now supports IA64 processor
8005 lt_prog_compiler_static='-Bstatic'
8012 # see comment about AmigaOS4 .so support
8013 lt_prog_compiler_pic='-fPIC'
8016 # FIXME: we need at least 68020 code to build shared libraries, but
8017 # adding the `-m68020' flag to GCC prevents building anything better,
8019 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8025 # PIC is the default for these OSes.
8028 mingw* | cygwin* | pw32* | os2* | cegcc*)
8029 # This hack is so that the source file can tell whether it is being
8030 # built for inclusion in a dll (and should export symbols for example).
8031 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8032 # (--disable-auto-import) libraries
8033 lt_prog_compiler_pic='-DDLL_EXPORT'
8036 darwin* | rhapsody*)
8037 # PIC is the default on this platform
8038 # Common symbols not allowed in MH_DYLIB files
8039 lt_prog_compiler_pic='-fno-common'
8043 # PIC is the default for Haiku.
8044 # The "-static" flag exists, but is broken.
8045 lt_prog_compiler_static=
8049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8051 # sets the default TLS model and affects inlining.
8057 lt_prog_compiler_pic='-fPIC'
8063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8064 # Instead, we relocate shared libraries at runtime.
8068 # Just because we use GCC doesn't mean we suddenly get shared libraries
8069 # on systems that don't support them.
8070 lt_prog_compiler_can_build_shared=no
8075 # QNX uses GNU C++, but need to define -shared option too, otherwise
8077 lt_prog_compiler_pic='-fPIC -shared'
8081 if test -d /usr/nec; then
8082 lt_prog_compiler_pic=-Kconform_pic
8087 lt_prog_compiler_pic='-fPIC'
8091 case $cc_basename in
8092 nvcc*) # Cuda Compiler Driver 2.2
8093 lt_prog_compiler_wl='-Xlinker '
8094 if test -n "$lt_prog_compiler_pic"; then
8095 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8100 # PORTME Check for flag to pass linker flags through the system compiler.
8103 lt_prog_compiler_wl='-Wl,'
8104 if test "$host_cpu" = ia64; then
8105 # AIX 5 now supports IA64 processor
8106 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8112 mingw* | cygwin* | pw32* | os2* | cegcc*)
8113 # This hack is so that the source file can tell whether it is being
8114 # built for inclusion in a dll (and should export symbols for example).
8115 lt_prog_compiler_pic='-DDLL_EXPORT'
8118 hpux9* | hpux10* | hpux11*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8127 lt_prog_compiler_pic='+Z'
8130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8131 lt_prog_compiler_static='${wl}-a ${wl}archive'
8134 irix5* | irix6* | nonstopux*)
8135 lt_prog_compiler_wl='-Wl,'
8136 # PIC (with -KPIC) is the default.
8137 lt_prog_compiler_static='-non_shared'
8140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8141 case $cc_basename in
8142 # old Intel for x86_64 which still supported -KPIC.
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-static'
8148 # icc used to be incompatible with GCC.
8149 # ICC 10 doesn't accept -KPIC any more.
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-fPIC'
8153 lt_prog_compiler_static='-static'
8155 # Lahey Fortran 8.1.
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_pic='--shared'
8159 lt_prog_compiler_static='--static'
8162 # NAG Fortran compiler
8163 lt_prog_compiler_wl='-Wl,-Wl,,'
8164 lt_prog_compiler_pic='-PIC'
8165 lt_prog_compiler_static='-Bstatic'
8167 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8168 # Portland Group compilers (*not* the Pentium gcc compiler,
8169 # which looks to be a dead project)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fpic'
8172 lt_prog_compiler_static='-Bstatic'
8175 lt_prog_compiler_wl='-Wl,'
8176 # All Alpha code is PIC.
8177 lt_prog_compiler_static='-non_shared'
8179 xl* | bgxl* | bgf* | mpixl*)
8180 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-qpic'
8183 lt_prog_compiler_static='-qstaticlink'
8186 case `$CC -V 2>&1 | sed 5q` in
8187 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8188 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 lt_prog_compiler_wl=''
8193 *Sun\ F* | *Sun*Fortran*)
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 lt_prog_compiler_wl='-Qoption ld '
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 lt_prog_compiler_wl='-Wl,'
8204 *Intel*\ [CF]*Compiler*)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-fPIC'
8207 lt_prog_compiler_static='-static'
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_pic='-fpic'
8212 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8225 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 lt_prog_compiler_pic='-fPIC -shared'
8230 osf3* | osf4* | osf5*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # All OSF/1 code is PIC.
8233 lt_prog_compiler_static='-non_shared'
8237 lt_prog_compiler_static='-non_shared'
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-Bstatic'
8243 case $cc_basename in
8244 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8245 lt_prog_compiler_wl='-Qoption ld ';;
8247 lt_prog_compiler_wl='-Wl,';;
8252 lt_prog_compiler_wl='-Qoption ld '
8253 lt_prog_compiler_pic='-PIC'
8254 lt_prog_compiler_static='-Bstatic'
8257 sysv4 | sysv4.2uw2* | sysv4.3*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_pic='-KPIC'
8260 lt_prog_compiler_static='-Bstatic'
8264 if test -d /usr/nec ;then
8265 lt_prog_compiler_pic='-Kconform_pic'
8266 lt_prog_compiler_static='-Bstatic'
8270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-KPIC'
8273 lt_prog_compiler_static='-Bstatic'
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_can_build_shared=no
8282 lt_prog_compiler_pic='-pic'
8283 lt_prog_compiler_static='-Bstatic'
8287 lt_prog_compiler_can_build_shared=no
8293 # For platforms which do not support PIC, -DPIC is meaningless:
8295 lt_prog_compiler_pic=
8298 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8303 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8304 if ${lt_cv_prog_compiler_pic+:} false; then :
8305 $as_echo_n "(cached) " >&6
8307 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8310 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8311 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8314 # Check to make sure the PIC flag actually works.
8316 if test -n "$lt_prog_compiler_pic"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8318 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8319 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 lt_cv_prog_compiler_pic_works=no
8323 ac_outfile=conftest.$ac_objext
8324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8325 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 # The option is referenced via a variable to avoid confusing sed.
8331 lt_compile=`echo "$ac_compile" | $SED \
8332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8334 -e 's:$: $lt_compiler_flag:'`
8335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8336 (eval "$lt_compile" 2>conftest.err)
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 if (exit $ac_status) && test -s "$ac_outfile"; then
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings other than the usual output.
8343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_pic_works=yes
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8353 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8355 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8356 case $lt_prog_compiler_pic in
8358 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8361 lt_prog_compiler_pic=
8362 lt_prog_compiler_can_build_shared=no
8378 # Check to make sure the static flag actually works.
8380 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8382 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8383 if ${lt_cv_prog_compiler_static_works+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 lt_cv_prog_compiler_static_works=no
8387 save_LDFLAGS="$LDFLAGS"
8388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8391 # The linker can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 if test -s conftest.err; then
8394 # Append any errors to the config.log.
8395 cat conftest.err 1>&5
8396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if diff conftest.exp conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_static_works=yes
8402 lt_cv_prog_compiler_static_works=yes
8406 LDFLAGS="$save_LDFLAGS"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8410 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8412 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8415 lt_prog_compiler_static=
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8425 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8426 if ${lt_cv_prog_compiler_c_o+:} false; then :
8427 $as_echo_n "(cached) " >&6
8429 lt_cv_prog_compiler_c_o=no
8430 $RM -r conftest 2>/dev/null
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436 lt_compiler_flag="-o out/conftest2.$ac_objext"
8437 # Insert the option either (1) after the last *FLAGS variable, or
8438 # (2) before a word containing "conftest.", or (3) at the end.
8439 # Note that $ac_compile itself does not contain backslashes and begins
8440 # with a dollar sign (not a hyphen), so the echo should work correctly.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>out/conftest.err)
8448 cat out/conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8452 # The compiler can only warn and ignore the option if not recognized
8453 # So say no if there are warnings
8454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8457 lt_cv_prog_compiler_c_o=yes
8462 # SGI C++ compiler will create directory out/ii_files/ for
8463 # template instantiation
8464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8465 $RM out/* && rmdir out
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8472 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8481 if ${lt_cv_prog_compiler_c_o+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 lt_cv_prog_compiler_c_o=no
8485 $RM -r conftest 2>/dev/null
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="-o out/conftest2.$ac_objext"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>out/conftest.err)
8503 cat out/conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_c_o=yes
8517 # SGI C++ compiler will create directory out/ii_files/ for
8518 # template instantiation
8519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8520 $RM out/* && rmdir out
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8532 hard_links="nottested"
8533 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8534 # do not overwrite the value of need_locks provided by the user
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8536 $as_echo_n "checking if we can lock with hard links... " >&6; }
8539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8541 ln conftest.a conftest.b 2>&5 || hard_links=no
8542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8544 $as_echo "$hard_links" >&6; }
8545 if test "$hard_links" = no; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8560 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8563 allow_undefined_flag=
8564 always_export_symbols=no
8566 archive_expsym_cmds=
8567 compiler_needs_object=no
8568 enable_shared_with_static_runtimes=no
8569 export_dynamic_flag_spec=
8570 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8571 hardcode_automatic=no
8573 hardcode_direct_absolute=no
8574 hardcode_libdir_flag_spec=
8575 hardcode_libdir_separator=
8577 hardcode_shlibpath_var=unsupported
8579 link_all_deplibs=unknown
8582 old_archive_from_new_cmds=
8583 old_archive_from_expsyms_cmds=
8584 thread_safe_flag_spec=
8585 whole_archive_flag_spec=
8586 # include_expsyms should be a list of space-separated symbols to be *always*
8587 # included in the symbol list
8589 # exclude_expsyms can be an extended regexp of symbols to exclude
8590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8592 # as well as any symbol that contains `d'.
8593 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8595 # platforms (ab)use it in PIC code, but their linkers get confused if
8596 # the symbol is explicitly referenced. Since portable code cannot
8597 # rely on this symbol name, it's probably fine to never include it in
8598 # preloaded symbol tables.
8599 # Exclude shared library initialization/finalization symbols.
8600 extract_expsyms_cmds=
8603 cygwin* | mingw* | pw32* | cegcc*)
8604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8605 # When not using gcc, we currently assume that we are using
8606 # Microsoft Visual C++.
8607 if test "$GCC" != yes; then
8612 # we just hope/assume this is gcc and not c89 (= MSVC++)
8622 # On some targets, GNU ld is compatible enough with the native linker
8623 # that we're better off using the native interface for both.
8624 lt_use_gnu_ld_interface=no
8625 if test "$with_gnu_ld" = yes; then
8628 # The AIX port of GNU ld has always aspired to compatibility
8629 # with the native linker. However, as the warning in the GNU ld
8630 # block says, versions before 2.19.5* couldn't really create working
8631 # shared libraries, regardless of the interface used.
8632 case `$LD -v 2>&1` in
8633 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8634 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8635 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8637 lt_use_gnu_ld_interface=yes
8642 lt_use_gnu_ld_interface=yes
8647 if test "$lt_use_gnu_ld_interface" = yes; then
8648 # If archive_cmds runs LD, not CC, wlarc should be empty
8651 # Set some defaults for GNU ld with shared library support. These
8652 # are reset later if shared libraries are not supported. Putting them
8653 # here allows them to be overridden if necessary.
8654 runpath_var=LD_RUN_PATH
8655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656 export_dynamic_flag_spec='${wl}--export-dynamic'
8657 # ancient GNU ld didn't support --whole-archive et. al.
8658 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8659 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8661 whole_archive_flag_spec=
8663 supports_anon_versioning=no
8664 case `$LD -v 2>&1` in
8665 *GNU\ gold*) supports_anon_versioning=yes ;;
8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8669 *\ 2.11.*) ;; # other 2.11 versions
8670 *) supports_anon_versioning=yes ;;
8673 # See if GNU ld supports shared libraries.
8676 # On AIX/PPC, the GNU linker is very broken
8677 if test "$host_cpu" != ia64; then
8681 *** Warning: the GNU linker, at least up to release 2.19, is reported
8682 *** to be unable to reliably create shared libraries on AIX.
8683 *** Therefore, libtool is disabling shared libraries support. If you
8684 *** really care for shared libraries, you may want to install binutils
8685 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8686 *** You will then need to restart the configuration process.
8695 # see comment about AmigaOS4 .so support
8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697 archive_expsym_cmds=''
8700 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)'
8701 hardcode_libdir_flag_spec='-L$libdir'
8702 hardcode_minus_L=yes
8708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709 allow_undefined_flag=unsupported
8710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8711 # support --undefined. This deserves some investigation. FIXME
8712 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 cygwin* | mingw* | pw32* | cegcc*)
8719 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8720 # as there is no search path for DLLs.
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 export_dynamic_flag_spec='${wl}--export-all-symbols'
8723 allow_undefined_flag=unsupported
8724 always_export_symbols=no
8725 enable_shared_with_static_runtimes=yes
8726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8727 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8729 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8731 # If the export-symbols file already is a .def file (1st line
8732 # is EXPORTS), use it as is; otherwise, prepend...
8733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8734 cp $export_symbols $output_objdir/$soname.def;
8736 echo EXPORTS > $output_objdir/$soname.def;
8737 cat $export_symbols >> $output_objdir/$soname.def;
8739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747 link_all_deplibs=yes
8752 hardcode_shlibpath_var=no
8753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754 export_dynamic_flag_spec='${wl}-E'
8755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8756 # Instead, shared libraries are loaded at an image base (0x10000000 by
8757 # default) and relocated if they conflict, which is a slow very memory
8758 # consuming and fragmenting process. To avoid this, we pick a random,
8759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8762 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8765 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8767 if test "$host_os" = linux-dietlibc; then
8768 case $cc_basename in
8769 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8772 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8773 && test "$tmp_diet" = no
8775 tmp_addflag=' $pic_flag'
8776 tmp_sharedflag='-shared'
8777 case $cc_basename,$host_cpu in
8778 pgcc*) # Portland Group C compiler
8779 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8780 tmp_addflag=' $pic_flag'
8782 pgf77* | pgf90* | pgf95* | pgfortran*)
8783 # Portland Group f77 and f90 compilers
8784 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8785 tmp_addflag=' $pic_flag -Mnomain' ;;
8786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8787 tmp_addflag=' -i_dynamic' ;;
8788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8789 tmp_addflag=' -i_dynamic -nofor_main' ;;
8790 ifc* | ifort*) # Intel Fortran compiler
8791 tmp_addflag=' -nofor_main' ;;
8792 lf95*) # Lahey Fortran 8.1
8793 whole_archive_flag_spec=
8794 tmp_sharedflag='--shared' ;;
8795 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8796 tmp_sharedflag='-qmkshrobj'
8798 nvcc*) # Cuda Compiler Driver 2.2
8799 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8800 compiler_needs_object=yes
8803 case `$CC -V 2>&1 | sed 5q` in
8804 *Sun\ C*) # Sun C 5.9
8805 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8806 compiler_needs_object=yes
8807 tmp_sharedflag='-G' ;;
8808 *Sun\ F*) # Sun Fortran 8.3
8809 tmp_sharedflag='-G' ;;
8811 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 if test "x$supports_anon_versioning" = xyes; then
8814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816 echo "local: *; };" >> $output_objdir/$libname.ver~
8817 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8820 case $cc_basename in
8821 xlf* | bgf* | bgxlf* | mpixlf*)
8822 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8823 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8826 if test "x$supports_anon_versioning" = xyes; then
8827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8829 echo "local: *; };" >> $output_objdir/$libname.ver~
8830 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8855 *** create shared libraries on Solaris systems. Therefore, libtool
8856 *** is disabling shared libraries support. We urge you to upgrade GNU
8857 *** binutils to release 2.9.1 or newer. Another option is to modify
8858 *** your PATH or compiler configuration so that the native linker is
8859 *** used, and then restart.
8862 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8871 case `$LD -v 2>&1` in
8872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8877 *** reliably create shared libraries on SCO systems. Therefore, libtool
8878 *** is disabling shared libraries support. We urge you to upgrade GNU
8879 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8880 *** your PATH or compiler configuration so that the native linker is
8881 *** used, and then restart.
8886 # For security reasons, it is highly recommended that you always
8887 # use absolute paths for naming shared libraries, and exclude the
8888 # DT_RUNPATH tag from executables and libraries. But doing so
8889 # requires that you compile everything twice, which is a pain.
8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8918 if test "$ld_shlibs" = no; then
8920 hardcode_libdir_flag_spec=
8921 export_dynamic_flag_spec=
8922 whole_archive_flag_spec=
8925 # PORTME fill in a description of your system's linker (not GNU ld)
8928 allow_undefined_flag=unsupported
8929 always_export_symbols=yes
8930 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'
8931 # Note: this linker hardcodes the directories in LIBPATH if there
8932 # are no directories specified by -L.
8933 hardcode_minus_L=yes
8934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8935 # Neither direct hardcoding nor static linking is supported with a
8937 hardcode_direct=unsupported
8942 if test "$host_cpu" = ia64; then
8943 # On IA64, the linker does run time linking by default, so we don't
8944 # have to do anything special.
8945 aix_use_runtimelinking=no
8946 exp_sym_flag='-Bexport'
8949 # If we're using GNU nm, then we don't want the "-C" option.
8950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8951 # Also, AIX nm treats weak defined symbols like other global
8952 # defined symbols, whereas GNU nm marks them as "W".
8953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8954 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8956 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'
8958 aix_use_runtimelinking=no
8960 # Test if we are trying to use run time linking or normal
8961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8962 # need to do runtime linking.
8963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8964 for ld_flag in $LDFLAGS; do
8965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8966 aix_use_runtimelinking=yes
8973 exp_sym_flag='-bexport'
8974 no_entry_flag='-bnoentry'
8977 # When large executables or shared objects are built, AIX ld can
8978 # have problems creating the table of contents. If linking a library
8979 # or program results in "error TOC overflow" add -mminimal-toc to
8980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8985 hardcode_direct_absolute=yes
8986 hardcode_libdir_separator=':'
8987 link_all_deplibs=yes
8988 file_list_spec='${wl}-f,'
8990 if test "$GCC" = yes; then
8991 case $host_os in aix4.[012]|aix4.[012].*)
8992 # We only want to do this on AIX 4.2 and lower, the check
8993 # below for broken collect2 doesn't work under 4.3+
8994 collect2name=`${CC} -print-prog-name=collect2`
8995 if test -f "$collect2name" &&
8996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8998 # We have reworked collect2
9001 # We have old collect2
9002 hardcode_direct=unsupported
9003 # It fails to find uninstalled libraries when the uninstalled
9004 # path is not listed in the libpath. Setting hardcode_minus_L
9005 # to unsupported forces relinking
9006 hardcode_minus_L=yes
9007 hardcode_libdir_flag_spec='-L$libdir'
9008 hardcode_libdir_separator=
9012 shared_flag='-shared'
9013 if test "$aix_use_runtimelinking" = yes; then
9014 shared_flag="$shared_flag "'${wl}-G'
9018 if test "$host_cpu" = ia64; then
9019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9020 # chokes on -Wl,-G. The following line is correct:
9023 if test "$aix_use_runtimelinking" = yes; then
9024 shared_flag='${wl}-G'
9026 shared_flag='${wl}-bM:SRE'
9031 export_dynamic_flag_spec='${wl}-bexpall'
9032 # It seems that -bexpall does not export symbols beginning with
9033 # underscore (_), so it is better to generate a list of symbols to export.
9034 always_export_symbols=yes
9035 if test "$aix_use_runtimelinking" = yes; then
9036 # Warning - without using the other runtime loading flags (-brtl),
9037 # -berok will link without error, but may produce a broken library.
9038 allow_undefined_flag='-berok'
9039 # Determine the default libpath from the value encoded in an
9041 if test "${lt_cv_aix_libpath+set}" = set; then
9042 aix_libpath=$lt_cv_aix_libpath
9044 if ${lt_cv_aix_libpath_+:} false; then :
9045 $as_echo_n "(cached) " >&6
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9058 if ac_fn_c_try_link "$LINENO"; then :
9060 lt_aix_libpath_sed='
9061 /Import File Strings/,/^$/ {
9063 s/^0 *\([^ ]*\) *$/\1/
9067 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068 # Check for a 64-bit object if we didn't find anything.
9069 if test -z "$lt_cv_aix_libpath_"; then
9070 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9073 rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075 if test -z "$lt_cv_aix_libpath_"; then
9076 lt_cv_aix_libpath_="/usr/lib:/lib"
9081 aix_libpath=$lt_cv_aix_libpath_
9084 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9085 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9087 if test "$host_cpu" = ia64; then
9088 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9089 allow_undefined_flag="-z nodefs"
9090 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9092 # Determine the default libpath from the value encoded in an
9094 if test "${lt_cv_aix_libpath+set}" = set; then
9095 aix_libpath=$lt_cv_aix_libpath
9097 if ${lt_cv_aix_libpath_+:} false; then :
9098 $as_echo_n "(cached) " >&6
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9111 if ac_fn_c_try_link "$LINENO"; then :
9113 lt_aix_libpath_sed='
9114 /Import File Strings/,/^$/ {
9116 s/^0 *\([^ ]*\) *$/\1/
9120 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9121 # Check for a 64-bit object if we didn't find anything.
9122 if test -z "$lt_cv_aix_libpath_"; then
9123 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9126 rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128 if test -z "$lt_cv_aix_libpath_"; then
9129 lt_cv_aix_libpath_="/usr/lib:/lib"
9134 aix_libpath=$lt_cv_aix_libpath_
9137 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9138 # Warning - without using the other run time loading flags,
9139 # -berok will link without error, but may produce a broken library.
9140 no_undefined_flag=' ${wl}-bernotok'
9141 allow_undefined_flag=' ${wl}-berok'
9142 if test "$with_gnu_ld" = yes; then
9143 # We only use this code for GNU lds that support --whole-archive.
9144 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9146 # Exported symbols can be pulled into shared objects from archives
9147 whole_archive_flag_spec='$convenience'
9149 archive_cmds_need_lc=yes
9150 # This is similar to how AIX traditionally builds its shared libraries.
9151 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9159 # see comment about AmigaOS4 .so support
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 archive_expsym_cmds=''
9164 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)'
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_minus_L=yes
9172 export_dynamic_flag_spec=-rdynamic
9175 cygwin* | mingw* | pw32* | cegcc*)
9176 # When not using gcc, we currently assume that we are using
9177 # Microsoft Visual C++.
9178 # hardcode_libdir_flag_spec is actually meaningless, as there is
9179 # no search path for DLLs.
9180 case $cc_basename in
9183 hardcode_libdir_flag_spec=' '
9184 allow_undefined_flag=unsupported
9185 always_export_symbols=yes
9187 # Tell ltmain to make .lib files, not .a files.
9189 # Tell ltmain to make .dll files, not .so files.
9191 # FIXME: Setting linknames here is a bad hack.
9192 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9194 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9196 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9198 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9200 # The linker will not automatically build a static lib if we build a DLL.
9201 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9202 enable_shared_with_static_runtimes=yes
9203 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9206 old_postinstall_cmds='chmod 644 $oldlib'
9207 postlink_cmds='lt_outputfile="@OUTPUT@"~
9208 lt_tool_outputfile="@TOOL_OUTPUT@"~
9209 case $lt_outputfile in
9212 lt_outputfile="$lt_outputfile.exe"
9213 lt_tool_outputfile="$lt_tool_outputfile.exe"
9216 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9217 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9218 $RM "$lt_outputfile.manifest";
9222 # Assume MSVC wrapper
9223 hardcode_libdir_flag_spec=' '
9224 allow_undefined_flag=unsupported
9225 # Tell ltmain to make .lib files, not .a files.
9227 # Tell ltmain to make .dll files, not .so files.
9229 # FIXME: Setting linknames here is a bad hack.
9230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9231 # The linker will automatically build a .lib file if we build a DLL.
9232 old_archive_from_new_cmds='true'
9233 # FIXME: Should let the user specify the lib program.
9234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9235 enable_shared_with_static_runtimes=yes
9240 darwin* | rhapsody*)
9243 archive_cmds_need_lc=no
9245 hardcode_automatic=yes
9246 hardcode_shlibpath_var=unsupported
9247 if test "$lt_cv_ld_force_load" = "yes"; then
9248 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9251 whole_archive_flag_spec=''
9253 link_all_deplibs=yes
9254 allow_undefined_flag="$_lt_dar_allow_undefined"
9255 case $cc_basename in
9256 ifort*) _lt_dar_can_shared=yes ;;
9257 *) _lt_dar_can_shared=$GCC ;;
9259 if test "$_lt_dar_can_shared" = "yes"; then
9260 output_verbose_link_cmd=func_echo_all
9261 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9262 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9263 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9264 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_shlibpath_var=no
9278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9279 # support. Future versions do this automatically, but an explicit c++rt0.o
9280 # does not break anything, and helps significantly (at the cost of a little
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9284 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_minus_L=yes
9294 hardcode_shlibpath_var=no
9297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9298 freebsd* | dragonfly*)
9299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9300 hardcode_libdir_flag_spec='-R$libdir'
9302 hardcode_shlibpath_var=no
9306 if test "$GCC" = yes; then
9307 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9309 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'
9311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312 hardcode_libdir_separator=:
9315 # hardcode_minus_L: Not really in the search PATH,
9316 # but as the default location of the library.
9317 hardcode_minus_L=yes
9318 export_dynamic_flag_spec='${wl}-E'
9322 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9323 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9327 if test "$with_gnu_ld" = no; then
9328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329 hardcode_libdir_separator=:
9331 hardcode_direct_absolute=yes
9332 export_dynamic_flag_spec='${wl}-E'
9333 # hardcode_minus_L: Not really in the search PATH,
9334 # but as the default location of the library.
9335 hardcode_minus_L=yes
9340 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9349 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9362 # Older versions of the 11.00 compiler do not understand -b yet
9363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9365 $as_echo_n "checking if $CC understands -b... " >&6; }
9366 if ${lt_cv_prog_compiler__b+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 lt_cv_prog_compiler__b=no
9370 save_LDFLAGS="$LDFLAGS"
9371 LDFLAGS="$LDFLAGS -b"
9372 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9374 # The linker can only warn and ignore the option if not recognized
9375 # So say no if there are warnings
9376 if test -s conftest.err; then
9377 # Append any errors to the config.log.
9378 cat conftest.err 1>&5
9379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9381 if diff conftest.exp conftest.er2 >/dev/null; then
9382 lt_cv_prog_compiler__b=yes
9385 lt_cv_prog_compiler__b=yes
9389 LDFLAGS="$save_LDFLAGS"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9393 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9395 if test x"$lt_cv_prog_compiler__b" = xyes; then
9396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9404 if test "$with_gnu_ld" = no; then
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_separator=:
9411 hardcode_shlibpath_var=no
9415 hardcode_direct_absolute=yes
9416 export_dynamic_flag_spec='${wl}-E'
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9426 irix5* | irix6* | nonstopux*)
9427 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9429 # Try to use the -exported_symbol ld option, if it does not
9430 # work, assume that -exports_file does not work either and
9431 # implicitly export all symbols.
9432 # This should be the same for all languages, so no per-tag cache variable.
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9434 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9435 if ${lt_cv_irix_exported_symbol+:} false; then :
9436 $as_echo_n "(cached) " >&6
9438 save_LDFLAGS="$LDFLAGS"
9439 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int foo (void) { return 0; }
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 lt_cv_irix_exported_symbol=yes
9447 lt_cv_irix_exported_symbol=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LDFLAGS="$save_LDFLAGS"
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9454 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9455 if test "$lt_cv_irix_exported_symbol" = yes; then
9456 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9462 archive_cmds_need_lc='no'
9463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464 hardcode_libdir_separator=:
9466 link_all_deplibs=yes
9470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9473 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9475 hardcode_libdir_flag_spec='-R$libdir'
9477 hardcode_shlibpath_var=no
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 hardcode_shlibpath_var=no
9492 if test -f /usr/libexec/ld.so; then
9494 hardcode_shlibpath_var=no
9495 hardcode_direct_absolute=yes
9496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9500 export_dynamic_flag_spec='${wl}-E'
9503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_libdir_flag_spec='-R$libdir'
9508 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_minus_L=yes
9521 allow_undefined_flag=unsupported
9522 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'
9523 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9527 if test "$GCC" = yes; then
9528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9529 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9531 allow_undefined_flag=' -expect_unresolved \*'
9532 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536 hardcode_libdir_separator=:
9539 osf4* | osf5*) # as osf3* with the addition of -msym flag
9540 if test "$GCC" = yes; then
9541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9542 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 allow_undefined_flag=' -expect_unresolved \*'
9546 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9547 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9548 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9550 # Both c and cxx compiler support -rpath directly
9551 hardcode_libdir_flag_spec='-rpath $libdir'
9553 archive_cmds_need_lc='no'
9554 hardcode_libdir_separator=:
9558 no_undefined_flag=' -z defs'
9559 if test "$GCC" = yes; then
9561 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9563 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9565 case `$CC -V 2>&1` in
9568 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9574 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9580 hardcode_libdir_flag_spec='-R$libdir'
9581 hardcode_shlibpath_var=no
9583 solaris2.[0-5] | solaris2.[0-5].*) ;;
9585 # The compiler driver will combine and reorder linker options,
9586 # but understands `-z linker_flag'. GCC discards it without `$wl',
9587 # but is careful enough not to reorder.
9588 # Supported since Solaris 2.6 (maybe 2.5.1?)
9589 if test "$GCC" = yes; then
9590 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9592 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9596 link_all_deplibs=yes
9600 if test "x$host_vendor" = xsequent; then
9601 # Use $CC to link under sequent, because it throws in some extra .o
9602 # files that make .init and .fini sections work.
9603 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_minus_L=yes
9610 hardcode_shlibpath_var=no
9614 case $host_vendor in
9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_direct=yes # is this really true???
9620 ## LD is ld it makes a PLAMLIB
9621 ## CC just makes a GrossModule.
9622 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9623 reload_cmds='$CC -r -o $output$reload_objs'
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9631 runpath_var='LD_RUN_PATH'
9632 hardcode_shlibpath_var=no
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_shlibpath_var=no
9638 export_dynamic_flag_spec='-Bexport'
9642 if test -d /usr/nec; then
9643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_shlibpath_var=no
9645 runpath_var=LD_RUN_PATH
9646 hardcode_runpath_var=yes
9651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9652 no_undefined_flag='${wl}-z,text'
9653 archive_cmds_need_lc=no
9654 hardcode_shlibpath_var=no
9655 runpath_var='LD_RUN_PATH'
9657 if test "$GCC" = yes; then
9658 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 sysv5* | sco3.2v5* | sco5v6*)
9667 # Note: We can NOT use -z defs as we might desire, because we do not
9668 # link with -lc, and that would cause any symbols used from libc to
9669 # always be unresolved, which means just about no library would
9670 # ever link correctly. If we're not using GNU ld we use -z text
9671 # though, which does catch some bad symbols but isn't as heavy-handed
9673 no_undefined_flag='${wl}-z,text'
9674 allow_undefined_flag='${wl}-z,nodefs'
9675 archive_cmds_need_lc=no
9676 hardcode_shlibpath_var=no
9677 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9678 hardcode_libdir_separator=':'
9679 link_all_deplibs=yes
9680 export_dynamic_flag_spec='${wl}-Bexport'
9681 runpath_var='LD_RUN_PATH'
9683 if test "$GCC" = yes; then
9684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_shlibpath_var=no
9703 if test x$host_vendor = xsni; then
9705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9706 export_dynamic_flag_spec='${wl}-Blargedynsym'
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9713 $as_echo "$ld_shlibs" >&6; }
9714 test "$ld_shlibs" = no && can_build_shared=no
9716 with_gnu_ld=$with_gnu_ld
9733 # Do we need to explicitly link libc?
9735 case "x$archive_cmds_need_lc" in
9737 # Assume -lc should be added
9738 archive_cmds_need_lc=yes
9740 if test "$enable_shared" = yes && test "$GCC" = yes; then
9741 case $archive_cmds in
9743 # FIXME: we may have to deal with multi-command sequences.
9746 # Test whether the compiler implicitly links with -lc since on some
9747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9748 # to ld, don't add -lc before -lgcc.
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9750 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9751 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9752 $as_echo_n "(cached) " >&6
9755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9758 (eval $ac_compile) 2>&5
9760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9761 test $ac_status = 0; } 2>conftest.err; then
9764 libobjs=conftest.$ac_objext
9766 wl=$lt_prog_compiler_wl
9767 pic_flag=$lt_prog_compiler_pic
9773 lt_save_allow_undefined_flag=$allow_undefined_flag
9774 allow_undefined_flag=
9775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9776 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779 test $ac_status = 0; }
9781 lt_cv_archive_cmds_need_lc=no
9783 lt_cv_archive_cmds_need_lc=yes
9785 allow_undefined_flag=$lt_save_allow_undefined_flag
9787 cat conftest.err 1>&5
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9793 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9794 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9955 if test "$GCC" = yes; then
9957 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9958 *) lt_awk_arg="/^libraries:/" ;;
9961 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9962 *) lt_sed_strip_eq="s,=/,/,g" ;;
9964 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9965 case $lt_search_path_spec in
9967 # if the path contains ";" then we assume it to be the separator
9968 # otherwise default to the standard path separator (i.e. ":") - it is
9969 # assumed that no part of a normal pathname contains ";" but that should
9970 # okay in the real world where ";" in dirpaths is itself problematic.
9971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9977 # Ok, now we have the path, separated by spaces, we can step through it
9978 # and add multilib dir if necessary.
9979 lt_tmp_lt_search_path_spec=
9980 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9981 for lt_sys_path in $lt_search_path_spec; do
9982 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9983 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9985 test -d "$lt_sys_path" && \
9986 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9989 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9990 BEGIN {RS=" "; FS="/|\n";} {
9993 for (lt_i = NF; lt_i > 0; lt_i--) {
9994 if ($lt_i != "" && $lt_i != ".") {
9995 if ($lt_i == "..") {
9998 if (lt_count == 0) {
9999 lt_foo="/" $lt_i lt_foo;
10006 if (lt_foo != "") { lt_freq[lt_foo]++; }
10007 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10009 # AWK program above erroneously prepends '/' to C:/dos/paths
10012 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10013 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10015 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10019 library_names_spec=
10020 libname_spec='lib$name'
10024 postuninstall_cmds=
10028 shlibpath_overrides_runpath=unknown
10030 dynamic_linker="$host_os ld.so"
10031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10032 need_lib_prefix=unknown
10033 hardcode_into_libs=no
10035 # when you set need_version to no, make sure it does not cause -set_version
10036 # flags to be left without arguments
10037 need_version=unknown
10041 version_type=linux # correct to gnu/linux during the next big refactor
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10043 shlibpath_var=LIBPATH
10045 # AIX 3 has no versioning support, so we append a major version to the name.
10046 soname_spec='${libname}${release}${shared_ext}$major'
10050 version_type=linux # correct to gnu/linux during the next big refactor
10053 hardcode_into_libs=yes
10054 if test "$host_cpu" = ia64; then
10055 # AIX 5 supports IA64
10056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10057 shlibpath_var=LD_LIBRARY_PATH
10059 # With GCC up to 2.95.x, collect2 would create an import file
10060 # for dependence libraries. The import file would start with
10061 # the line `#! .'. This would cause the generated library to
10062 # depend on `.', always an invalid library. This was fixed in
10063 # development snapshots of GCC prior to 3.0.
10065 aix4 | aix4.[01] | aix4.[01].*)
10066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10068 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10071 can_build_shared=no
10075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10076 # soname into executable. Probably we can add versioning support to
10077 # collect2, so additional links can be useful in future.
10078 if test "$aix_use_runtimelinking" = yes; then
10079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10080 # instead of lib<name>.a to let people know that these are not
10081 # typical AIX shared libraries.
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 # We preserve .a as extension for shared libraries through AIX4.2
10085 # and later when we are not doing run time linking.
10086 library_names_spec='${libname}${release}.a $libname.a'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LIBPATH
10096 # Since July 2007 AmigaOS4 officially supports .so libraries.
10097 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 library_names_spec='$libname.ixlibrary $libname.a'
10102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10103 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10109 library_names_spec='${libname}${shared_ext}'
10110 dynamic_linker="$host_os ld.so"
10111 shlibpath_var=LIBRARY_PATH
10115 version_type=linux # correct to gnu/linux during the next big refactor
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10123 # the default ld.so.conf also contains /usr/contrib/lib and
10124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10125 # libtool to hard-code these into programs
10128 cygwin* | mingw* | pw32* | cegcc*)
10129 version_type=windows
10134 case $GCC,$cc_basename in
10137 library_names_spec='$libname.dll.a'
10138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10139 postinstall_cmds='base_file=`basename \${file}`~
10140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10141 dldir=$destdir/`dirname \$dlpath`~
10142 test -d \$dldir || mkdir -p \$dldir~
10143 $install_prog $dir/$dlname \$dldir/$dlname~
10144 chmod a+x \$dldir/$dlname~
10145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10149 dlpath=$dir/\$dldll~
10151 shlibpath_overrides_runpath=yes
10155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10161 # MinGW DLLs use traditional 'lib' prefix
10162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10165 # pw32 DLLs use 'pw' prefix rather than 'lib'
10166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10169 dynamic_linker='Win32 ld.exe'
10174 libname_spec='$name'
10175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176 library_names_spec='${libname}.dll.lib'
10180 sys_lib_search_path_spec=
10183 for lt_path in $LIB
10186 # Let DOS variable expansion print the short 8.3 style file name.
10187 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10188 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10191 # Convert to MSYS style.
10192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10195 # Convert to unix form, then to dos form, then back to unix form
10196 # but this time dos style (no spaces!) so that the unix form looks
10197 # like /cygdrive/c/PROGRA~1:/cygdr...
10198 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10199 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10200 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10203 sys_lib_search_path_spec="$LIB"
10204 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10205 # It is most probably a Windows format PATH.
10206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10210 # FIXME: find the short name or the path components, as spaces are
10211 # common. (e.g. "Program Files" -> "PROGRA~1")
10215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10216 postinstall_cmds='base_file=`basename \${file}`~
10217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10218 dldir=$destdir/`dirname \$dlpath`~
10219 test -d \$dldir || mkdir -p \$dldir~
10220 $install_prog $dir/$dlname \$dldir/$dlname'
10221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10222 dlpath=$dir/\$dldll~
10224 shlibpath_overrides_runpath=yes
10225 dynamic_linker='Win32 link.exe'
10229 # Assume MSVC wrapper
10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10231 dynamic_linker='Win32 ld.exe'
10234 # FIXME: first we should search . and the directory the executable is in
10238 darwin* | rhapsody*)
10239 dynamic_linker="$host_os dyld"
10240 version_type=darwin
10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244 soname_spec='${libname}${release}${major}$shared_ext'
10245 shlibpath_overrides_runpath=yes
10246 shlibpath_var=DYLD_LIBRARY_PATH
10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10254 version_type=linux # correct to gnu/linux during the next big refactor
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10262 freebsd* | dragonfly*)
10263 # DragonFly does not have aout. When/if they implement a new
10264 # versioning mechanism, adjust this.
10265 if test -x /usr/bin/objformat; then
10266 objformat=`/usr/bin/objformat`
10269 freebsd[23].*) objformat=aout ;;
10270 *) objformat=elf ;;
10273 version_type=freebsd-$objformat
10274 case $version_type in
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10290 freebsd3.[01]* | freebsdelf3.[01]*)
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10299 *) # from 4.6 on, and DragonFly
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10307 version_type=linux # correct to gnu/linux during the next big refactor
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=no
10314 hardcode_into_libs=yes
10318 version_type=linux # correct to gnu/linux during the next big refactor
10321 dynamic_linker="$host_os runtime_loader"
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10327 hardcode_into_libs=yes
10330 hpux9* | hpux10* | hpux11*)
10331 # Give a soname corresponding to the major version so that dld.sl refuses to
10332 # link against other versions.
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.so"
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 if test "X$HPUX_IA64_MODE" = X32; then
10346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354 hardcode_into_libs=yes
10355 dynamic_linker="$host_os dld.sl"
10356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10365 dynamic_linker="$host_os dld.sl"
10366 shlibpath_var=SHLIB_PATH
10367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10372 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10373 postinstall_cmds='chmod 555 $lib'
10374 # or fails outright, so override atomically:
10375 install_override_mode=555
10379 version_type=linux # correct to gnu/linux during the next big refactor
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=no
10387 hardcode_into_libs=yes
10390 irix5* | irix6* | nonstopux*)
10392 nonstopux*) version_type=nonstopux ;;
10394 if test "$lt_cv_prog_gnu_ld" = yes; then
10395 version_type=linux # correct to gnu/linux during the next big refactor
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10405 irix5* | nonstopux*)
10406 libsuff= shlibsuff=
10409 case $LD in # libtool.m4 will add one of these switches to LD
10410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10411 libsuff= shlibsuff= libmagic=32-bit;;
10412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10413 libsuff=32 shlibsuff=N32 libmagic=N32;;
10414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10416 *) libsuff= shlibsuff= libmagic=never-match;;
10420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10421 shlibpath_overrides_runpath=no
10422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10424 hardcode_into_libs=yes
10427 # No shared lib support for Linux oldld, aout, or coff.
10428 linux*oldld* | linux*aout* | linux*coff*)
10432 # This must be glibc/ELF.
10433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10434 version_type=linux # correct to gnu/linux during the next big refactor
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10443 # Some binutils ld are patched to set DT_RUNPATH
10444 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10445 $as_echo_n "(cached) " >&6
10447 lt_cv_shlibpath_overrides_runpath=no
10448 save_LDFLAGS=$LDFLAGS
10449 save_libdir=$libdir
10450 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10451 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10465 lt_cv_shlibpath_overrides_runpath=yes
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LDFLAGS=$save_LDFLAGS
10471 libdir=$save_libdir
10475 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10477 # This implies no fast_install, which is unacceptable.
10478 # Some rework will be needed to allow for fast_install
10479 # before this can be enabled.
10480 hardcode_into_libs=yes
10482 # Append ld.so.conf contents to the search path
10483 if test -f /etc/ld.so.conf; then
10484 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10488 # We used to test for /lib/ld.so.1 and disable shared libraries on
10489 # powerpc, because MkLinux only supported shared libraries with the
10490 # GNU dynamic linker. Since this was broken with cross compilers,
10491 # most powerpc-linux boxes support dynamic linking these days and
10492 # people can always --disable-shared, the test was removed, and we
10493 # assume the GNU/Linux dynamic linker is in use.
10494 dynamic_linker='GNU/Linux ld.so'
10501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10504 dynamic_linker='NetBSD (a.out) ld.so'
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 dynamic_linker='NetBSD ld.elf_so'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 hardcode_into_libs=yes
10516 version_type=linux # correct to gnu/linux during the next big refactor
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530 hardcode_into_libs=yes
10531 dynamic_linker='ldqnx.so'
10536 sys_lib_dlsearch_path_spec="/usr/lib"
10538 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10540 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10541 *) need_version=no ;;
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10548 openbsd2.[89] | openbsd2.[89].*)
10549 shlibpath_overrides_runpath=no
10552 shlibpath_overrides_runpath=yes
10556 shlibpath_overrides_runpath=yes
10561 libname_spec='$name'
10564 library_names_spec='$libname${shared_ext} $libname.a'
10565 dynamic_linker='OS/2 ld.exe'
10566 shlibpath_var=LIBPATH
10569 osf3* | osf4* | osf5*)
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10577 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10585 version_type=linux # correct to gnu/linux during the next big refactor
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 hardcode_into_libs=yes
10593 # ldd complains unless libraries are executable
10594 postinstall_cmds='chmod +x $lib'
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 shlibpath_overrides_runpath=yes
10603 if test "$with_gnu_ld" = yes; then
10610 version_type=linux # correct to gnu/linux during the next big refactor
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 case $host_vendor in
10616 shlibpath_overrides_runpath=no
10618 runpath_var=LD_RUN_PATH
10626 shlibpath_overrides_runpath=no
10627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10633 if test -d /usr/nec ;then
10634 version_type=linux # correct to gnu/linux during the next big refactor
10635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10636 soname_spec='$libname${shared_ext}.$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642 version_type=freebsd-elf
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 hardcode_into_libs=yes
10650 if test "$with_gnu_ld" = yes; then
10651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10660 sys_lib_dlsearch_path_spec='/usr/lib'
10664 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10665 version_type=linux # correct to gnu/linux during the next big refactor
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=no
10671 hardcode_into_libs=yes
10675 version_type=linux # correct to gnu/linux during the next big refactor
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10686 $as_echo "$dynamic_linker" >&6; }
10687 test "$dynamic_linker" = no && can_build_shared=no
10689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10690 if test "$GCC" = yes; then
10691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10694 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10695 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10697 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10698 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10793 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10795 if test -n "$hardcode_libdir_flag_spec" ||
10796 test -n "$runpath_var" ||
10797 test "X$hardcode_automatic" = "Xyes" ; then
10799 # We can hardcode non-existent directories.
10800 if test "$hardcode_direct" != no &&
10801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10802 # have to relink, otherwise we might link with an installed library
10803 # when we should be linking with a yet-to-be-installed one
10804 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10805 test "$hardcode_minus_L" != no; then
10806 # Linking always hardcodes the temporary library directory.
10807 hardcode_action=relink
10809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10810 hardcode_action=immediate
10813 # We cannot hardcode anything, or else we can only hardcode existing
10815 hardcode_action=unsupported
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10818 $as_echo "$hardcode_action" >&6; }
10820 if test "$hardcode_action" = relink ||
10821 test "$inherit_rpath" = yes; then
10822 # Fast installation is not supported
10823 enable_fast_install=no
10824 elif test "$shlibpath_overrides_runpath" = yes ||
10825 test "$enable_shared" = no; then
10826 # Fast installation is not necessary
10827 enable_fast_install=needless
10835 if test "x$enable_dlopen" != xyes; then
10836 enable_dlopen=unknown
10837 enable_dlopen_self=unknown
10838 enable_dlopen_self_static=unknown
10845 lt_cv_dlopen="load_add_on"
10847 lt_cv_dlopen_self=yes
10850 mingw* | pw32* | cegcc*)
10851 lt_cv_dlopen="LoadLibrary"
10856 lt_cv_dlopen="dlopen"
10861 # if libdl is installed we need to link against it
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10863 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10864 if ${ac_cv_lib_dl_dlopen+:} false; then :
10865 $as_echo_n "(cached) " >&6
10867 ac_check_lib_save_LIBS=$LIBS
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10872 /* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10887 if ac_fn_c_try_link "$LINENO"; then :
10888 ac_cv_lib_dl_dlopen=yes
10890 ac_cv_lib_dl_dlopen=no
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10897 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10898 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10902 lt_cv_dlopen="dyld"
10904 lt_cv_dlopen_self=yes
10911 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10912 if test "x$ac_cv_func_shl_load" = xyes; then :
10913 lt_cv_dlopen="shl_load"
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10916 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10917 if ${ac_cv_lib_dld_shl_load+:} false; then :
10918 $as_echo_n "(cached) " >&6
10920 ac_check_lib_save_LIBS=$LIBS
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10935 return shl_load ();
10940 if ac_fn_c_try_link "$LINENO"; then :
10941 ac_cv_lib_dld_shl_load=yes
10943 ac_cv_lib_dld_shl_load=no
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10950 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10951 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10952 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10954 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10955 if test "x$ac_cv_func_dlopen" = xyes; then :
10956 lt_cv_dlopen="dlopen"
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10960 if ${ac_cv_lib_dl_dlopen+:} false; then :
10961 $as_echo_n "(cached) " >&6
10963 ac_check_lib_save_LIBS=$LIBS
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_dl_dlopen=yes
10986 ac_cv_lib_dl_dlopen=no
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10998 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10999 if ${ac_cv_lib_svld_dlopen+:} false; then :
11000 $as_echo_n "(cached) " >&6
11002 ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-lsvld $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 ac_cv_lib_svld_dlopen=yes
11025 ac_cv_lib_svld_dlopen=no
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11032 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11033 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11037 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11038 if ${ac_cv_lib_dld_dld_link+:} false; then :
11039 $as_echo_n "(cached) " >&6
11041 ac_check_lib_save_LIBS=$LIBS
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11056 return dld_link ();
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_dld_dld_link=yes
11064 ac_cv_lib_dld_dld_link=no
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11071 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11072 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11073 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11094 if test "x$lt_cv_dlopen" != xno; then
11100 case $lt_cv_dlopen in
11102 save_CPPFLAGS="$CPPFLAGS"
11103 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11105 save_LDFLAGS="$LDFLAGS"
11106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11109 LIBS="$lt_cv_dlopen_libs $LIBS"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11112 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11113 if ${lt_cv_dlopen_self+:} false; then :
11114 $as_echo_n "(cached) " >&6
11116 if test "$cross_compiling" = yes; then :
11117 lt_cv_dlopen_self=cross
11119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11120 lt_status=$lt_dlunknown
11121 cat > conftest.$ac_ext <<_LT_EOF
11122 #line $LINENO "configure"
11123 #include "confdefs.h"
11132 # define LT_DLGLOBAL RTLD_GLOBAL
11135 # define LT_DLGLOBAL DL_GLOBAL
11137 # define LT_DLGLOBAL 0
11141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11142 find out it does not work in some platform. */
11143 #ifndef LT_DLLAZY_OR_NOW
11145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11148 # define LT_DLLAZY_OR_NOW DL_LAZY
11151 # define LT_DLLAZY_OR_NOW RTLD_NOW
11154 # define LT_DLLAZY_OR_NOW DL_NOW
11156 # define LT_DLLAZY_OR_NOW 0
11163 /* When -fvisbility=hidden is used, assume the code has been annotated
11164 correspondingly for the symbols needed. */
11165 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11166 int fnord () __attribute__((visibility("default")));
11169 int fnord () { return 42; }
11172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11173 int status = $lt_dlunknown;
11177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11181 else puts (dlerror ());
11183 /* dlclose (self); */
11191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11192 (eval $ac_link) 2>&5
11194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11196 (./conftest; exit; ) >&5 2>/dev/null
11198 case x$lt_status in
11199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11201 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11204 # compilation failed
11205 lt_cv_dlopen_self=no
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11213 $as_echo "$lt_cv_dlopen_self" >&6; }
11215 if test "x$lt_cv_dlopen_self" = xyes; then
11216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11218 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11219 if ${lt_cv_dlopen_self_static+:} false; then :
11220 $as_echo_n "(cached) " >&6
11222 if test "$cross_compiling" = yes; then :
11223 lt_cv_dlopen_self_static=cross
11225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11226 lt_status=$lt_dlunknown
11227 cat > conftest.$ac_ext <<_LT_EOF
11228 #line $LINENO "configure"
11229 #include "confdefs.h"
11238 # define LT_DLGLOBAL RTLD_GLOBAL
11241 # define LT_DLGLOBAL DL_GLOBAL
11243 # define LT_DLGLOBAL 0
11247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11248 find out it does not work in some platform. */
11249 #ifndef LT_DLLAZY_OR_NOW
11251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11254 # define LT_DLLAZY_OR_NOW DL_LAZY
11257 # define LT_DLLAZY_OR_NOW RTLD_NOW
11260 # define LT_DLLAZY_OR_NOW DL_NOW
11262 # define LT_DLLAZY_OR_NOW 0
11269 /* When -fvisbility=hidden is used, assume the code has been annotated
11270 correspondingly for the symbols needed. */
11271 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11272 int fnord () __attribute__((visibility("default")));
11275 int fnord () { return 42; }
11278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11279 int status = $lt_dlunknown;
11283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11286 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11287 else puts (dlerror ());
11289 /* dlclose (self); */
11297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11298 (eval $ac_link) 2>&5
11300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11302 (./conftest; exit; ) >&5 2>/dev/null
11304 case x$lt_status in
11305 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11307 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11310 # compilation failed
11311 lt_cv_dlopen_self_static=no
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11319 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11322 CPPFLAGS="$save_CPPFLAGS"
11323 LDFLAGS="$save_LDFLAGS"
11328 case $lt_cv_dlopen_self in
11329 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11330 *) enable_dlopen_self=unknown ;;
11333 case $lt_cv_dlopen_self_static in
11334 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11335 *) enable_dlopen_self_static=unknown ;;
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11358 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11359 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11360 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11361 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363 $as_echo "yes" >&6; }
11365 # FIXME - insert some real tests, host_os isn't really good enough
11368 if test -n "$STRIP" ; then
11369 striplib="$STRIP -x"
11370 old_striplib="$STRIP -S"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372 $as_echo "yes" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11396 # Report which library types will actually be built
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11398 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11400 $as_echo "$can_build_shared" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11403 $as_echo_n "checking whether to build shared libraries... " >&6; }
11404 test "$can_build_shared" = "no" && enable_shared=no
11406 # On AIX, shared libraries and static libraries use the same namespace, and
11407 # are all built from PIC.
11410 test "$enable_shared" = yes && enable_static=no
11411 if test -n "$RANLIB"; then
11412 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11413 postinstall_cmds='$RANLIB $lib'
11418 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11419 test "$enable_shared" = yes && enable_static=no
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11424 $as_echo "$enable_shared" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11427 $as_echo_n "checking whether to build static libraries... " >&6; }
11428 # Make sure either enable_shared or enable_static is yes.
11429 test "$enable_shared" = yes || enable_static=yes
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11431 $as_echo "$enable_static" >&6; }
11438 ac_cpp='$CPP $CPPFLAGS'
11439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459 ac_config_commands="$ac_config_commands libtool"
11464 # Only expand once:
11470 test "X$enable_static" = Xyes && STATIC=-static
11473 case $lt_cv_sys_global_symbol_pipe in
11474 ?*) binary_helldl=yes ;;
11476 if test "X$binary_helldl" = Xyes; then
11477 BINARY_HELLDL_TRUE=
11478 BINARY_HELLDL_FALSE='#'
11480 BINARY_HELLDL_TRUE='#'
11481 BINARY_HELLDL_FALSE=
11486 ## --------------------------- ##
11487 ## Libraries required by demo. ##
11488 ## --------------------------- ##
11491 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11492 # These system don't have libm, or don't need it
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11496 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11497 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11511 char _mwvalidcheckl ();
11515 return _mwvalidcheckl ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_mw__mwvalidcheckl=yes
11523 ac_cv_lib_mw__mwvalidcheckl=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11530 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11531 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11536 $as_echo_n "checking for cos in -lm... " >&6; }
11537 if ${ac_cv_lib_m_cos+:} false; then :
11538 $as_echo_n "(cached) " >&6
11540 ac_check_lib_save_LIBS=$LIBS
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_m_cos=yes
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11570 $as_echo "$ac_cv_lib_m_cos" >&6; }
11571 if test "x$ac_cv_lib_m_cos" = xyes; then :
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11578 $as_echo_n "checking for cos in -lm... " >&6; }
11579 if ${ac_cv_lib_m_cos+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 ac_check_lib_save_LIBS=$LIBS
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_m_cos=yes
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11612 $as_echo "$ac_cv_lib_m_cos" >&6; }
11613 if test "x$ac_cv_lib_m_cos" = xyes; then :
11626 ac_config_files="$ac_config_files Makefile"
11628 cat >confcache <<\_ACEOF
11629 # This file is a shell script that caches the results of configure
11630 # tests run on this system so they can be shared between configure
11631 # scripts and configure runs, see configure's option --config-cache.
11632 # It is not useful on other systems. If it contains results you don't
11633 # want to keep, you may remove or edit it.
11635 # config.status only pays attention to the cache file if you give it
11636 # the --recheck option to rerun configure.
11638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11640 # following values.
11644 # The following way of writing the cache mishandles newlines in values,
11645 # but we know of no workaround that is simple, portable, and efficient.
11646 # So, we kill variables containing newlines.
11647 # Ultrix sh set writes to stderr and can't be redirected directly,
11648 # and sets the high bit in the cache file unless we assign to the vars.
11650 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11651 eval ac_val=\$$ac_var
11655 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11656 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11659 _ | IFS | as_nl) ;; #(
11660 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11661 *) { eval $ac_var=; unset $ac_var;} ;;
11667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11668 *${as_nl}ac_space=\ *)
11669 # `set' does not quote correctly, so add quotes: double-quote
11670 # substitution turns \\\\ into \\, and sed turns \\ into \.
11673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11676 # `set' quotes correctly as required by POSIX, so do not add quotes.
11677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11691 if test -w "$cache_file"; then
11692 if test "x$cache_file" != "x/dev/null"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11694 $as_echo "$as_me: updating cache $cache_file" >&6;}
11695 if test ! -f "$cache_file" || test -h "$cache_file"; then
11696 cat confcache >"$cache_file"
11698 case $cache_file in #(
11700 mv -f confcache "$cache_file"$$ &&
11701 mv -f "$cache_file"$$ "$cache_file" ;; #(
11703 mv -f confcache "$cache_file" ;;
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11709 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11715 # Let make expand exec_prefix.
11716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11718 # Transform confdefs.h into DEFS.
11719 # Protect against shell expansion while executing Makefile rules.
11720 # Protect against Makefile macro expansion.
11722 # If the first sed substitution is executed (which looks for macros that
11723 # take arguments), then branch to the quote section. Otherwise,
11724 # look for a macro that doesn't take arguments.
11734 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11736 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11740 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11753 DEFS=`sed -n "$ac_script" confdefs.h`
11759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11760 # 1. Remove the extension, and $U if already installed.
11761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11762 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11764 # will be set to the directory where LIBOBJS objects are built.
11765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11768 LIBOBJS=$ac_libobjs
11770 LTLIBOBJS=$ac_ltlibobjs
11773 if test -n "$EXEEXT"; then
11775 am__EXEEXT_FALSE='#'
11777 am__EXEEXT_TRUE='#'
11781 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11782 as_fn_error $? "conditional \"AMDEP\" was never defined.
11783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11786 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11789 if test -z "${BINARY_HELLDL_TRUE}" && test -z "${BINARY_HELLDL_FALSE}"; then
11790 as_fn_error $? "conditional \"BINARY_HELLDL\" was never defined.
11791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11794 : "${CONFIG_STATUS=./config.status}"
11796 ac_clean_files_save=$ac_clean_files
11797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11799 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11801 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11803 # Generated by $as_me.
11804 # Run this file to recreate the current configuration.
11805 # Compiler output produced by configure, useful for debugging
11806 # configure, is in config.log if it exists.
11809 ac_cs_recheck=false
11812 SHELL=\${CONFIG_SHELL-$SHELL}
11815 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11816 ## -------------------- ##
11817 ## M4sh Initialization. ##
11818 ## -------------------- ##
11820 # Be more Bourne compatible
11821 DUALCASE=1; export DUALCASE # for MKS sh
11822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11825 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11826 # is contrary to our usage. Disable this feature.
11827 alias -g '${1+"$@"}'='"$@"'
11828 setopt NO_GLOB_SUBST
11830 case `(set -o) 2>/dev/null` in #(
11842 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11843 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11846 # Prefer a ksh shell builtin over an external printf program on Solaris,
11847 # but without wasting forks for bash or zsh.
11848 if test -z "$BASH_VERSION$ZSH_VERSION" \
11849 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11850 as_echo='print -r --'
11851 as_echo_n='print -rn --'
11852 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11853 as_echo='printf %s\n'
11854 as_echo_n='printf %s'
11856 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11857 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11858 as_echo_n='/usr/ucb/echo -n'
11860 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11861 as_echo_n_body='eval
11865 expr "X$arg" : "X\\(.*\\)$as_nl";
11866 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11868 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11870 export as_echo_n_body
11871 as_echo_n='sh -c $as_echo_n_body as_echo'
11873 export as_echo_body
11874 as_echo='sh -c $as_echo_body as_echo'
11877 # The user is always right.
11878 if test "${PATH_SEPARATOR+set}" != set; then
11880 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11881 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11888 # We need space, tab and new line, in precisely that order. Quoting is
11889 # there to prevent editors from complaining about space-tab.
11890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11891 # splitting by setting IFS to empty value.)
11894 # Find who we are. Look in the path if we contain no directory separator.
11897 *[\\/]* ) as_myself=$0 ;;
11898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11902 test -z "$as_dir" && as_dir=.
11903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11909 # We did not find ourselves, most probably we were run as `sh COMMAND'
11910 # in which case we are not to be found in the path.
11911 if test "x$as_myself" = x; then
11914 if test ! -f "$as_myself"; then
11915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11919 # Unset variables that we do not need and which cause bugs (e.g. in
11920 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11921 # suppresses any "Segmentation fault" message there. '((' could
11922 # trigger a bug in pdksh 5.2.14.
11923 for as_var in BASH_ENV ENV MAIL MAILPATH
11924 do eval test x\${$as_var+set} = xset \
11925 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11942 # ----------------------------------------
11943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11945 # script with STATUS, using 1 if that was 0.
11948 as_status=$1; test $as_status -eq 0 && as_status=1
11950 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11951 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11953 $as_echo "$as_me: error: $2" >&2
11954 as_fn_exit $as_status
11958 # as_fn_set_status STATUS
11959 # -----------------------
11960 # Set $? to STATUS, without forking.
11961 as_fn_set_status ()
11964 } # as_fn_set_status
11966 # as_fn_exit STATUS
11967 # -----------------
11968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11972 as_fn_set_status $1
11978 # Portably unset VAR.
11981 { eval $1=; unset $1;}
11983 as_unset=as_fn_unset
11984 # as_fn_append VAR VALUE
11985 # ----------------------
11986 # Append the text in VALUE to the end of the definition contained in VAR. Take
11987 # advantage of any shell optimizations that allow amortized linear growth over
11988 # repeated appends, instead of the typical quadratic growth present in naive
11990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11991 eval 'as_fn_append ()
12002 # as_fn_arith ARG...
12003 # ------------------
12004 # Perform arithmetic evaluation on the ARGs, and store the result in the
12005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12006 # must be portable across $(()) and expr.
12007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12008 eval 'as_fn_arith ()
12015 as_val=`expr "$@" || test $? -eq 1`
12020 if expr a : '\(a\)' >/dev/null 2>&1 &&
12021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12028 as_basename=basename
12033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12039 as_me=`$as_basename -- "$0" ||
12040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12041 X"$0" : 'X\(//\)$' \| \
12042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12044 sed '/^.*\/\([^/][^/]*\)\/*$/{
12058 # Avoid depending upon Character Ranges.
12059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12062 as_cr_digits='0123456789'
12063 as_cr_alnum=$as_cr_Letters$as_cr_digits
12065 ECHO_C= ECHO_N= ECHO_T=
12066 case `echo -n x` in #(((((
12068 case `echo 'xy\c'` in
12069 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12071 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12078 rm -f conf$$ conf$$.exe conf$$.file
12079 if test -d conf$$.dir; then
12080 rm -f conf$$.dir/conf$$.file
12083 mkdir conf$$.dir 2>/dev/null
12085 if (echo >conf$$.file) 2>/dev/null; then
12086 if ln -s conf$$.file conf$$ 2>/dev/null; then
12088 # ... but there are two gotchas:
12089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12091 # In both cases, we have to default to `cp -p'.
12092 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12094 elif ln conf$$.file conf$$ 2>/dev/null; then
12102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12103 rmdir conf$$.dir 2>/dev/null
12108 # Create "$as_dir" as a directory, including parents if necessary.
12113 -*) as_dir=./$as_dir;;
12115 test -d "$as_dir" || eval $as_mkdir_p || {
12119 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12120 *) as_qdir=$as_dir;;
12122 as_dirs="'$as_qdir' $as_dirs"
12123 as_dir=`$as_dirname -- "$as_dir" ||
12124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12125 X"$as_dir" : 'X\(//\)[^/]' \| \
12126 X"$as_dir" : 'X\(//\)$' \| \
12127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12128 $as_echo X"$as_dir" |
12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12133 /^X\(\/\/\)[^/].*/{
12146 test -d "$as_dir" && break
12148 test -z "$as_dirs" || eval "mkdir $as_dirs"
12149 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12153 if mkdir -p . 2>/dev/null; then
12154 as_mkdir_p='mkdir -p "$as_dir"'
12156 test -d ./-p && rmdir ./-p
12160 if test -x / >/dev/null 2>&1; then
12161 as_test_x='test -x'
12163 if ls -dL / >/dev/null 2>&1; then
12170 if test -d "$1"; then
12176 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12177 ???[sx]*):;;*)false;;esac;fi
12181 as_executable_p=$as_test_x
12183 # Sed expression to map a string onto a valid CPP name.
12184 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12186 # Sed expression to map a string onto a valid variable name.
12187 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12191 ## ----------------------------------- ##
12192 ## Main body of $CONFIG_STATUS script. ##
12193 ## ----------------------------------- ##
12195 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198 # Save the log message, to keep $0 and so on meaningful, and to
12199 # report actual input values of CONFIG_FILES etc. instead of their
12200 # values after options handling.
12202 This file was extended by demo $as_me 1.0, which was
12203 generated by GNU Autoconf 2.68. Invocation command line was
12205 CONFIG_FILES = $CONFIG_FILES
12206 CONFIG_HEADERS = $CONFIG_HEADERS
12207 CONFIG_LINKS = $CONFIG_LINKS
12208 CONFIG_COMMANDS = $CONFIG_COMMANDS
12211 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12216 case $ac_config_files in *"
12217 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223 # Files that config.status was made for.
12224 config_files="$ac_config_files"
12225 config_commands="$ac_config_commands"
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12231 \`$as_me' instantiates files and other configuration actions
12232 from templates according to the current configuration. Unless the files
12233 and actions are specified as TAGs, all are instantiated by default.
12235 Usage: $0 [OPTION]... [TAG]...
12237 -h, --help print this help, then exit
12238 -V, --version print version number and configuration settings, then exit
12239 --config print configuration, then exit
12240 -q, --quiet, --silent
12241 do not print progress messages
12242 -d, --debug don't remove temporary files
12243 --recheck update $as_me by reconfiguring in the same conditions
12244 --file=FILE[:TEMPLATE]
12245 instantiate the configuration file FILE
12247 Configuration files:
12250 Configuration commands:
12253 Report bugs to <bug-libtool@gnu.org>."
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12259 demo config.status 1.0
12260 configured by $0, generated by GNU Autoconf 2.68,
12261 with options \\"\$ac_cs_config\\"
12263 Copyright (C) 2010 Free Software Foundation, Inc.
12264 This config.status script is free software; the Free Software Foundation
12265 gives unlimited permission to copy, distribute and modify it."
12272 test -n "\$AWK" || AWK=awk
12275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12276 # The default lists apply if the user does not specify any file.
12282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12287 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12299 # Handling of the options.
12300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12302 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12303 $as_echo "$ac_cs_version"; exit ;;
12304 --config | --confi | --conf | --con | --co | --c )
12305 $as_echo "$ac_cs_config"; exit ;;
12306 --debug | --debu | --deb | --de | --d | -d )
12308 --file | --fil | --fi | --f )
12311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12312 '') as_fn_error $? "missing file argument" ;;
12314 as_fn_append CONFIG_FILES " '$ac_optarg'"
12315 ac_need_defaults=false;;
12316 --he | --h | --help | --hel | -h )
12317 $as_echo "$ac_cs_usage"; exit ;;
12318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12322 # This is an error.
12323 -*) as_fn_error $? "unrecognized option: \`$1'
12324 Try \`$0 --help' for more information." ;;
12326 *) as_fn_append ac_config_targets " $1"
12327 ac_need_defaults=false ;;
12333 ac_configure_extra_args=
12335 if $ac_cs_silent; then
12337 ac_configure_extra_args="$ac_configure_extra_args --silent"
12341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342 if \$ac_cs_recheck; then
12343 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12346 CONFIG_SHELL='$SHELL'
12347 export CONFIG_SHELL
12352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12357 ## Running $as_me. ##
12363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12367 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12370 # The HP-UX ksh and POSIX shell print the target directory to stdout
12371 # if CDPATH is set.
12372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12374 sed_quote_subst='$sed_quote_subst'
12375 double_quote_subst='$double_quote_subst'
12376 delay_variable_subst='$delay_variable_subst'
12377 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12378 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12379 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12380 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12388 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12389 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12390 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12391 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12392 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12393 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12394 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12395 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12396 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12397 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12398 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12399 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12400 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12401 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12402 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12403 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12404 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12405 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12406 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12407 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12408 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12409 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12410 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12411 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12412 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12413 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12414 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12415 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12416 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12417 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12418 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12419 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12420 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12421 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12422 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12423 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12424 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12425 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12426 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12427 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12428 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12429 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12430 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12431 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12432 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12433 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12434 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12435 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12436 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12437 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12438 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12439 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12440 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12441 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12442 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12443 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12444 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12445 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12446 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12447 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12448 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12449 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12450 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12451 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12452 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12453 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12454 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12455 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12456 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12457 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12458 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12459 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12460 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12461 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12462 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12463 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12464 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12465 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12466 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12467 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12468 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12469 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12470 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12471 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12472 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12473 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12474 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12475 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12476 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12477 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12478 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12479 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12480 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12481 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12482 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12483 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12484 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12485 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12486 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12487 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12488 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12489 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12490 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12491 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12492 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12493 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12494 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12495 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12496 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12497 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12498 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12499 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12500 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12501 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12502 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12503 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12504 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12505 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12506 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12507 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12510 LTCFLAGS='$LTCFLAGS'
12511 compiler='$compiler_DEFAULT'
12513 # A function that is used when there is no print builtin or printf.
12514 func_fallback_echo ()
12516 eval 'cat <<_LTECHO_EOF
12521 # Quote evaled strings.
12538 deplibs_check_method \
12542 sharedlib_from_linklib_cmd \
12545 archiver_list_spec \
12551 lt_cv_sys_global_symbol_pipe \
12552 lt_cv_sys_global_symbol_to_cdecl \
12553 lt_cv_sys_global_symbol_to_c_name_address \
12554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12555 nm_file_list_spec \
12556 lt_prog_compiler_no_builtin_flag \
12557 lt_prog_compiler_pic \
12558 lt_prog_compiler_wl \
12559 lt_prog_compiler_static \
12560 lt_cv_prog_compiler_c_o \
12569 export_dynamic_flag_spec \
12570 whole_archive_flag_spec \
12571 compiler_needs_object \
12573 allow_undefined_flag \
12574 no_undefined_flag \
12575 hardcode_libdir_flag_spec \
12576 hardcode_libdir_separator \
12580 variables_saved_for_relink \
12582 library_names_spec \
12584 install_override_mode \
12588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12589 *[\\\\\\\`\\"\\\$]*)
12590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12593 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12598 # Double-quote double-evaled strings.
12599 for var in reload_cmds \
12600 old_postinstall_cmds \
12601 old_postuninstall_cmds \
12603 extract_expsyms_cmds \
12604 old_archive_from_new_cmds \
12605 old_archive_from_expsyms_cmds \
12607 archive_expsym_cmds \
12609 module_expsym_cmds \
12610 export_symbols_cmds \
12614 postuninstall_cmds \
12616 sys_lib_search_path_spec \
12617 sys_lib_dlsearch_path_spec; do
12618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12619 *[\\\\\\\`\\"\\\$]*)
12620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12628 ac_aux_dir='$ac_aux_dir'
12629 xsi_shell='$xsi_shell'
12630 lt_shell_append='$lt_shell_append'
12632 # See if we are running on zsh, and set the options which allow our
12633 # commands through without removal of \ escapes INIT.
12634 if test -n "\${ZSH_VERSION+set}" ; then
12635 setopt NO_GLOB_SUBST
12641 TIMESTAMP='$TIMESTAMP'
12650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12652 # Handling of arguments.
12653 for ac_config_target in $ac_config_targets
12655 case $ac_config_target in
12656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12665 # If the user did not use the arguments to specify the items to instantiate,
12666 # then the envvar interface is used. Set only those that are not.
12667 # We use the long form for the default assignment because of an extremely
12668 # bizarre bug on SunOS 4.1.3.
12669 if $ac_need_defaults; then
12670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12674 # Have a temporary directory for convenience. Make it in the build tree
12675 # simply because there is no reason against having it here, and in addition,
12676 # creating and moving files from /tmp can sometimes cause problems.
12677 # Hook for its removal unless debugging.
12678 # Note that there is a small window in which the directory will not be cleaned:
12679 # after its creation but before its name has been assigned to `$tmp'.
12683 trap 'exit_status=$?
12684 : "${ac_tmp:=$tmp}"
12685 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12687 trap 'as_fn_exit 1' 1 2 13 15
12689 # Create a (secure) tmp directory for tmp files.
12692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12696 tmp=./conf$$-$RANDOM
12697 (umask 077 && mkdir "$tmp")
12698 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12701 # Set up the scripts for CONFIG_FILES section.
12702 # No need to generate them if there are no CONFIG_FILES.
12703 # This happens for instance with `./config.status config.h'.
12704 if test -n "$CONFIG_FILES"; then
12707 ac_cr=`echo X | tr X '\015'`
12708 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12709 # But we know of no other shell where ac_cr would be empty at this
12710 # point, so we can use a bashism as a fallback.
12711 if test "x$ac_cr" = x; then
12712 eval ac_cr=\$\'\\r\'
12714 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12715 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12718 ac_cs_awk_cr=$ac_cr
12721 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12726 echo "cat >conf$$subs.awk <<_ACEOF" &&
12727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12729 } >conf$$subs.sh ||
12730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12731 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12733 for ac_last_try in false false false false false :; do
12734 . ./conf$$subs.sh ||
12735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12737 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12738 if test $ac_delim_n = $ac_delim_num; then
12740 elif $ac_last_try; then
12741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12746 rm -f conf$$subs.sh
12748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12749 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12753 s/^/S["/; s/!.*/"]=/
12763 s/\(.\{148\}\)..*/\1/
12765 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12777 s/\(.\{148\}\)..*/\1/
12779 s/["\\]/\\&/g; s/^/"/; s/$/"/
12783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12788 ' <conf$$subs.awk | sed '
12793 ' >>$CONFIG_STATUS || ac_write_fail=1
12794 rm -f conf$$subs.awk
12795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12798 for (key in S) S_is_set[key] = 1
12804 nfields = split(line, field, "@")
12806 len = length(field[1])
12807 for (i = 2; i < nfields; i++) {
12809 keylen = length(key)
12810 if (S_is_set[key]) {
12812 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12813 len += length(value) + length(field[++i])
12824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12825 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12826 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12829 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12830 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12833 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12834 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12835 # trailing colons and then remove the whole line if VPATH becomes empty
12836 # (actually we leave an empty line to preserve line numbers).
12837 if test "x$srcdir" = x.; then
12838 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12857 fi # test -n "$CONFIG_FILES"
12860 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12865 :[FHLC]) ac_mode=$ac_tag; continue;;
12867 case $ac_mode$ac_tag in
12869 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12870 :[FH]-) ac_tag=-:-;;
12871 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12888 -) ac_f="$ac_tmp/stdin";;
12889 *) # Look for the file first in the build tree, then in the source tree
12890 # (if the path is not absolute). The absolute path cannot be DOS-style,
12891 # because $ac_f cannot contain `:'.
12895 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12897 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12899 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12900 as_fn_append ac_file_inputs " '$ac_f'"
12903 # Let's still pretend it is `configure' which instantiates (i.e., don't
12904 # use $as_me), people would be surprised to read:
12905 # /* config.h. Generated by config.status. */
12906 configure_input='Generated from '`
12907 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12909 if test x"$ac_file" != x-; then
12910 configure_input="$ac_file. $configure_input"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12912 $as_echo "$as_me: creating $ac_file" >&6;}
12914 # Neutralize special characters interpreted by sed in replacement strings.
12915 case $configure_input in #(
12916 *\&* | *\|* | *\\* )
12917 ac_sed_conf_input=`$as_echo "$configure_input" |
12918 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12919 *) ac_sed_conf_input=$configure_input;;
12923 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12929 ac_dir=`$as_dirname -- "$ac_file" ||
12930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931 X"$ac_file" : 'X\(//\)[^/]' \| \
12932 X"$ac_file" : 'X\(//\)$' \| \
12933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12934 $as_echo X"$ac_file" |
12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12939 /^X\(\/\/\)[^/].*/{
12952 as_dir="$ac_dir"; as_fn_mkdir_p
12956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12959 # A ".." for each directory in $ac_dir_suffix.
12960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12961 case $ac_top_builddir_sub in
12962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12966 ac_abs_top_builddir=$ac_pwd
12967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12968 # for backward compatibility:
12969 ac_top_builddir=$ac_top_build_prefix
12972 .) # We are building in place.
12974 ac_top_srcdir=$ac_top_builddir_sub
12975 ac_abs_top_srcdir=$ac_pwd ;;
12976 [\\/]* | ?:[\\/]* ) # Absolute name.
12977 ac_srcdir=$srcdir$ac_dir_suffix;
12978 ac_top_srcdir=$srcdir
12979 ac_abs_top_srcdir=$srcdir ;;
12980 *) # Relative name.
12981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12982 ac_top_srcdir=$ac_top_build_prefix$srcdir
12983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12998 ac_MKDIR_P=$MKDIR_P
13000 [\\/$]* | ?:[\\/]* ) ;;
13001 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006 # If the template does not know about datarootdir, expand it.
13007 # FIXME: This hack should be removed a few years after 2.60.
13008 ac_datarootdir_hack=; ac_datarootdir_seen=
13019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13020 *datarootdir*) ac_datarootdir_seen=yes;;
13021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026 ac_datarootdir_hack='
13027 s&@datadir@&$datadir&g
13028 s&@docdir@&$docdir&g
13029 s&@infodir@&$infodir&g
13030 s&@localedir@&$localedir&g
13031 s&@mandir@&$mandir&g
13032 s&\\\${datarootdir}&$datarootdir&g' ;;
13036 # Neutralize VPATH when `$srcdir' = `.'.
13037 # Shell code in configure.ac might set extrasub.
13038 # FIXME: do we really want to maintain this feature?
13039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13040 ac_sed_extra="$ac_vpsub
13043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13046 s|@configure_input@|$ac_sed_conf_input|;t t
13047 s&@top_builddir@&$ac_top_builddir_sub&;t t
13048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13049 s&@srcdir@&$ac_srcdir&;t t
13050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13051 s&@top_srcdir@&$ac_top_srcdir&;t t
13052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13053 s&@builddir@&$ac_builddir&;t t
13054 s&@abs_builddir@&$ac_abs_builddir&;t t
13055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13056 s&@INSTALL@&$ac_INSTALL&;t t
13057 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13058 $ac_datarootdir_hack
13060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13061 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13064 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13066 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13068 which seems to be undefined. Please make sure it is defined" >&5
13069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13070 which seems to be undefined. Please make sure it is defined" >&2;}
13072 rm -f "$ac_tmp/stdin"
13074 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13075 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13081 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13082 $as_echo "$as_me: executing $ac_file commands" >&6;}
13087 case $ac_file$ac_mode in
13088 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13089 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13090 # are listed without --file. Let's play safe and only enable the eval
13091 # if we detect the quoting.
13092 case $CONFIG_FILES in
13093 *\'*) eval set x "$CONFIG_FILES" ;;
13094 *) set x $CONFIG_FILES ;;
13099 # Strip MF so we end up with the name of the file.
13100 mf=`echo "$mf" | sed -e 's/:.*$//'`
13101 # Check whether this is an Automake generated Makefile or not.
13102 # We used to match only the files named `Makefile.in', but
13103 # some people rename them; so instead we look at the file content.
13104 # Grep'ing the first line is not enough: some people post-process
13105 # each Makefile.in and add a new line on top of each file to say so.
13106 # Grep'ing the whole file is not good either: AIX grep has a line
13107 # limit of 2048, but all sed's we know have understand at least 4000.
13108 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13109 dirpart=`$as_dirname -- "$mf" ||
13110 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13111 X"$mf" : 'X\(//\)[^/]' \| \
13112 X"$mf" : 'X\(//\)$' \| \
13113 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13119 /^X\(\/\/\)[^/].*/{
13135 # Extract the definition of DEPDIR, am__include, and am__quote
13136 # from the Makefile without running `make'.
13137 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13138 test -z "$DEPDIR" && continue
13139 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13140 test -z "am__include" && continue
13141 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13142 # When using ansi2knr, U may be empty or an underscore; expand it
13143 U=`sed -n 's/^U = //p' < "$mf"`
13144 # Find all dependency output files, they are included files with
13145 # $(DEPDIR) in their names. We invoke sed twice because it is the
13146 # simplest approach to changing $(DEPDIR) to its actual value in the
13148 for file in `sed -n "
13149 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13150 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13151 # Make sure the directory exists.
13152 test -f "$dirpart/$file" && continue
13153 fdir=`$as_dirname -- "$file" ||
13154 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155 X"$file" : 'X\(//\)[^/]' \| \
13156 X"$file" : 'X\(//\)$' \| \
13157 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13158 $as_echo X"$file" |
13159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13163 /^X\(\/\/\)[^/].*/{
13176 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13177 # echo "creating $dirpart/$file"
13178 echo '# dummy' > "$dirpart/$file"
13185 # See if we are running on zsh, and set the options which allow our
13186 # commands through without removal of \ escapes.
13187 if test -n "${ZSH_VERSION+set}" ; then
13188 setopt NO_GLOB_SUBST
13191 cfgfile="${ofile}T"
13192 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13195 cat <<_LT_EOF >> "$cfgfile"
13198 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13199 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13201 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13203 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13204 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13206 # Written by Gordon Matzigkeit, 1996
13208 # This file is part of GNU Libtool.
13210 # GNU Libtool is free software; you can redistribute it and/or
13211 # modify it under the terms of the GNU General Public License as
13212 # published by the Free Software Foundation; either version 2 of
13213 # the License, or (at your option) any later version.
13215 # As a special exception to the GNU General Public License,
13216 # if you distribute this file as part of a program or library that
13217 # is built using GNU Libtool, you may include this file under the
13218 # same distribution terms that you use for the rest of that program.
13220 # GNU Libtool is distributed in the hope that it will be useful,
13221 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13223 # GNU General Public License for more details.
13225 # You should have received a copy of the GNU General Public License
13226 # along with GNU Libtool; see the file COPYING. If not, a copy
13227 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13228 # obtained by writing to the Free Software Foundation, Inc.,
13229 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13232 # The names of the tagged configurations supported by this script.
13235 # ### BEGIN LIBTOOL CONFIG
13237 # Which release of libtool.m4 was used?
13238 macro_version=$macro_version
13239 macro_revision=$macro_revision
13241 # Assembler program.
13244 # DLL creation program.
13245 DLLTOOL=$lt_DLLTOOL
13247 # Object dumper program.
13248 OBJDUMP=$lt_OBJDUMP
13250 # Whether or not to build shared libraries.
13251 build_libtool_libs=$enable_shared
13253 # Whether or not to build static libraries.
13254 build_old_libs=$enable_static
13256 # What type of objects to build.
13259 # Whether or not to optimize for fast installation.
13260 fast_install=$enable_fast_install
13262 # Shell to use when invoking shell scripts.
13265 # An echo program that protects backslashes.
13268 # The PATH separator for the build system.
13269 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13272 host_alias=$host_alias
13276 # The build system.
13277 build_alias=$build_alias
13281 # A sed program that does not truncate output.
13284 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13285 Xsed="\$SED -e 1s/^X//"
13287 # A grep program that handles long lines.
13293 # A literal string matcher.
13296 # A BSD- or MS-compatible name lister.
13299 # Whether we need soft or hard links.
13302 # What is the maximum length of a command?
13303 max_cmd_len=$max_cmd_len
13305 # Object file suffix (normally "o").
13308 # Executable file suffix (normally "").
13311 # whether the shell understands "unset".
13314 # turn spaces into newlines.
13317 # turn newlines into spaces.
13320 # convert \$build file names to \$host format.
13321 to_host_file_cmd=$lt_cv_to_host_file_cmd
13323 # convert \$build files to toolchain format.
13324 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13326 # Method to check whether dependent libraries are shared objects.
13327 deplibs_check_method=$lt_deplibs_check_method
13329 # Command to use when deplibs_check_method = "file_magic".
13330 file_magic_cmd=$lt_file_magic_cmd
13332 # How to find potential files when deplibs_check_method = "file_magic".
13333 file_magic_glob=$lt_file_magic_glob
13335 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13336 want_nocaseglob=$lt_want_nocaseglob
13338 # Command to associate shared and link libraries.
13339 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13344 # Flags to create an archive.
13345 AR_FLAGS=$lt_AR_FLAGS
13347 # How to feed a file listing to the archiver.
13348 archiver_list_spec=$lt_archiver_list_spec
13350 # A symbol stripping program.
13353 # Commands used to install an old-style archive.
13355 old_postinstall_cmds=$lt_old_postinstall_cmds
13356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13358 # Whether to use a lock for old archive extraction.
13359 lock_old_archive_extraction=$lock_old_archive_extraction
13364 # LTCC compiler flags.
13365 LTCFLAGS=$lt_CFLAGS
13367 # Take the output of nm and produce a listing of raw symbols and C names.
13368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13370 # Transform the output of nm in a proper C declaration.
13371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13373 # Transform the output of nm in a C name address pair.
13374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13376 # Transform the output of nm in a C name address pair when lib prefix is needed.
13377 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13379 # Specify filename containing input files for \$NM.
13380 nm_file_list_spec=$lt_nm_file_list_spec
13382 # The root where to search for dependent libraries,and in which our libraries should be installed.
13383 lt_sysroot=$lt_sysroot
13385 # The name of the directory that contains temporary libtool files.
13388 # Used to examine libraries when file_magic_cmd begins with "file".
13389 MAGIC_CMD=$MAGIC_CMD
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13395 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13397 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13398 DSYMUTIL=$lt_DSYMUTIL
13400 # Tool to change global to local symbols on Mac OS X.
13403 # Tool to manipulate fat objects and archives on Mac OS X.
13406 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13409 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13410 OTOOL64=$lt_OTOOL64
13412 # Old archive suffix (normally "a").
13415 # Shared library suffix (normally ".so").
13416 shrext_cmds=$lt_shrext_cmds
13418 # The commands to extract the exported symbol list from a shared archive.
13419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13421 # Variables whose values should be saved in libtool wrapper scripts and
13422 # restored at link time.
13423 variables_saved_for_relink=$lt_variables_saved_for_relink
13425 # Do we need the "lib" prefix for modules?
13426 need_lib_prefix=$need_lib_prefix
13428 # Do we need a version for libraries?
13429 need_version=$need_version
13431 # Library versioning type.
13432 version_type=$version_type
13434 # Shared library runtime path variable.
13435 runpath_var=$runpath_var
13437 # Shared library path variable.
13438 shlibpath_var=$shlibpath_var
13440 # Is shlibpath searched before the hard-coded library search path?
13441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13443 # Format of library name prefix.
13444 libname_spec=$lt_libname_spec
13446 # List of archive names. First name is the real one, the rest are links.
13447 # The last name is the one that the linker finds with -lNAME
13448 library_names_spec=$lt_library_names_spec
13450 # The coded name of the library, if different from the real name.
13451 soname_spec=$lt_soname_spec
13453 # Permission mode override for installation of shared libraries.
13454 install_override_mode=$lt_install_override_mode
13456 # Command to use after installation of a shared archive.
13457 postinstall_cmds=$lt_postinstall_cmds
13459 # Command to use after uninstallation of a shared archive.
13460 postuninstall_cmds=$lt_postuninstall_cmds
13462 # Commands used to finish a libtool library installation in a directory.
13463 finish_cmds=$lt_finish_cmds
13465 # As "finish_cmds", except a single script fragment to be evaled but
13467 finish_eval=$lt_finish_eval
13469 # Whether we should hardcode library paths into libraries.
13470 hardcode_into_libs=$hardcode_into_libs
13472 # Compile-time system search path for libraries.
13473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13475 # Run-time system search path for libraries.
13476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13478 # Whether dlopen is supported.
13479 dlopen_support=$enable_dlopen
13481 # Whether dlopen of programs is supported.
13482 dlopen_self=$enable_dlopen_self
13484 # Whether dlopen of statically linked programs is supported.
13485 dlopen_self_static=$enable_dlopen_self_static
13487 # Commands to strip libraries.
13488 old_striplib=$lt_old_striplib
13489 striplib=$lt_striplib
13492 # The linker used to build libraries.
13495 # How to create reloadable object files.
13496 reload_flag=$lt_reload_flag
13497 reload_cmds=$lt_reload_cmds
13499 # Commands used to build an old-style archive.
13500 old_archive_cmds=$lt_old_archive_cmds
13502 # A language specific compiler.
13505 # Is the compiler the GNU compiler?
13508 # Compiler flag to turn off builtin functions.
13509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13511 # Additional compiler flags for building library objects.
13512 pic_flag=$lt_lt_prog_compiler_pic
13514 # How to pass a linker flag through the compiler.
13515 wl=$lt_lt_prog_compiler_wl
13517 # Compiler flag to prevent dynamic linking.
13518 link_static_flag=$lt_lt_prog_compiler_static
13520 # Does compiler simultaneously support -c and -o options?
13521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13523 # Whether or not to add -lc for building shared libraries.
13524 build_libtool_need_lc=$archive_cmds_need_lc
13526 # Whether or not to disallow shared libs when runtime libs are static.
13527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13529 # Compiler flag to allow reflexive dlopens.
13530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13532 # Compiler flag to generate shared objects directly from archives.
13533 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13535 # Whether the compiler copes with passing no objects directly.
13536 compiler_needs_object=$lt_compiler_needs_object
13538 # Create an old-style archive from a shared archive.
13539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13541 # Create a temporary old-style archive to link instead of a shared archive.
13542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13544 # Commands used to build a shared archive.
13545 archive_cmds=$lt_archive_cmds
13546 archive_expsym_cmds=$lt_archive_expsym_cmds
13548 # Commands used to build a loadable module if different from building
13549 # a shared archive.
13550 module_cmds=$lt_module_cmds
13551 module_expsym_cmds=$lt_module_expsym_cmds
13553 # Whether we are building with GNU ld or not.
13554 with_gnu_ld=$lt_with_gnu_ld
13556 # Flag that allows shared libraries with undefined symbols to be built.
13557 allow_undefined_flag=$lt_allow_undefined_flag
13559 # Flag that enforces no undefined symbols.
13560 no_undefined_flag=$lt_no_undefined_flag
13562 # Flag to hardcode \$libdir into a binary during linking.
13563 # This must work even if \$libdir does not exist
13564 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13566 # Whether we need a single "-rpath" flag with a separated argument.
13567 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13570 # DIR into the resulting binary.
13571 hardcode_direct=$hardcode_direct
13573 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13574 # DIR into the resulting binary and the resulting library dependency is
13575 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13576 # library is relocated.
13577 hardcode_direct_absolute=$hardcode_direct_absolute
13579 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13580 # into the resulting binary.
13581 hardcode_minus_L=$hardcode_minus_L
13583 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13584 # into the resulting binary.
13585 hardcode_shlibpath_var=$hardcode_shlibpath_var
13587 # Set to "yes" if building a shared library automatically hardcodes DIR
13588 # into the library and all subsequent libraries and executables linked
13590 hardcode_automatic=$hardcode_automatic
13592 # Set to yes if linker adds runtime paths of dependent libraries
13593 # to runtime path list.
13594 inherit_rpath=$inherit_rpath
13596 # Whether libtool must link a program against all its dependency libraries.
13597 link_all_deplibs=$link_all_deplibs
13599 # Set to "yes" if exported symbols are required.
13600 always_export_symbols=$always_export_symbols
13602 # The commands to list exported symbols.
13603 export_symbols_cmds=$lt_export_symbols_cmds
13605 # Symbols that should not be listed in the preloaded symbols.
13606 exclude_expsyms=$lt_exclude_expsyms
13608 # Symbols that must always be exported.
13609 include_expsyms=$lt_include_expsyms
13611 # Commands necessary for linking programs (against libraries) with templates.
13612 prelink_cmds=$lt_prelink_cmds
13614 # Commands necessary for finishing linking programs.
13615 postlink_cmds=$lt_postlink_cmds
13617 # Specify filename containing input files.
13618 file_list_spec=$lt_file_list_spec
13620 # How to hardcode a shared library path into an executable.
13621 hardcode_action=$hardcode_action
13623 # ### END LIBTOOL CONFIG
13629 cat <<\_LT_EOF >> "$cfgfile"
13630 # AIX sometimes has problems with the GCC collect2 program. For some
13631 # reason, if we set the COLLECT_NAMES environment variable, the problems
13632 # vanish in a puff of smoke.
13633 if test "X${COLLECT_NAMES+set}" != Xset; then
13635 export COLLECT_NAMES
13642 ltmain="$ac_aux_dir/ltmain.sh"
13645 # We use sed instead of cat because bash on DJGPP gets confused if
13646 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13647 # text mode, it properly converts lines to CR/LF. This bash problem
13648 # is reportedly fixed, but why not run on old versions too?
13649 sed '$q' "$ltmain" >> "$cfgfile" \
13650 || (rm -f "$cfgfile"; exit 1)
13652 if test x"$xsi_shell" = xyes; then
13653 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13657 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13658 \ * ) func_dirname_result="${3}" ;;\
13660 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13661 && mv -f "$cfgfile.tmp" "$cfgfile" \
13662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13663 test 0 -eq $? || _lt_function_replace_fail=:
13666 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13669 \ func_basename_result="${1##*/}"\
13670 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13671 && mv -f "$cfgfile.tmp" "$cfgfile" \
13672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13673 test 0 -eq $? || _lt_function_replace_fail=:
13676 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13677 func_dirname_and_basename ()\
13680 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13681 \ * ) func_dirname_result="${3}" ;;\
13683 \ func_basename_result="${1##*/}"\
13684 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13685 && mv -f "$cfgfile.tmp" "$cfgfile" \
13686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13687 test 0 -eq $? || _lt_function_replace_fail=:
13690 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13693 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13694 \ # positional parameters, so assign one to ordinary parameter first.\
13695 \ func_stripname_result=${3}\
13696 \ func_stripname_result=${func_stripname_result#"${1}"}\
13697 \ func_stripname_result=${func_stripname_result%"${2}"}\
13698 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13699 && mv -f "$cfgfile.tmp" "$cfgfile" \
13700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13701 test 0 -eq $? || _lt_function_replace_fail=:
13704 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13705 func_split_long_opt ()\
13707 \ func_split_long_opt_name=${1%%=*}\
13708 \ func_split_long_opt_arg=${1#*=}\
13709 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13710 && mv -f "$cfgfile.tmp" "$cfgfile" \
13711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13712 test 0 -eq $? || _lt_function_replace_fail=:
13715 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13716 func_split_short_opt ()\
13718 \ func_split_short_opt_arg=${1#??}\
13719 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13720 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13721 && mv -f "$cfgfile.tmp" "$cfgfile" \
13722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13723 test 0 -eq $? || _lt_function_replace_fail=:
13726 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13730 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13731 \ *) func_lo2o_result=${1} ;;\
13733 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13734 && mv -f "$cfgfile.tmp" "$cfgfile" \
13735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13736 test 0 -eq $? || _lt_function_replace_fail=:
13739 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13742 func_xform_result=${1%.*}.lo\
13743 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13744 && mv -f "$cfgfile.tmp" "$cfgfile" \
13745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13746 test 0 -eq $? || _lt_function_replace_fail=:
13749 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13752 func_arith_result=$(( $* ))\
13753 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13754 && mv -f "$cfgfile.tmp" "$cfgfile" \
13755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13756 test 0 -eq $? || _lt_function_replace_fail=:
13759 sed -e '/^func_len ()$/,/^} # func_len /c\
13762 func_len_result=${#1}\
13763 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13764 && mv -f "$cfgfile.tmp" "$cfgfile" \
13765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13766 test 0 -eq $? || _lt_function_replace_fail=:
13770 if test x"$lt_shell_append" = xyes; then
13771 sed -e '/^func_append ()$/,/^} # func_append /c\
13774 eval "${1}+=\\${2}"\
13775 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13776 && mv -f "$cfgfile.tmp" "$cfgfile" \
13777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13778 test 0 -eq $? || _lt_function_replace_fail=:
13781 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13782 func_append_quoted ()\
13784 \ func_quote_for_eval "${2}"\
13785 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13786 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13787 && mv -f "$cfgfile.tmp" "$cfgfile" \
13788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13789 test 0 -eq $? || _lt_function_replace_fail=:
13792 # Save a `func_append' function call where possible by direct use of '+='
13793 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13794 && mv -f "$cfgfile.tmp" "$cfgfile" \
13795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13796 test 0 -eq $? || _lt_function_replace_fail=:
13798 # Save a `func_append' function call even when '+=' is not available
13799 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13800 && mv -f "$cfgfile.tmp" "$cfgfile" \
13801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13802 test 0 -eq $? || _lt_function_replace_fail=:
13805 if test x"$_lt_function_replace_fail" = x":"; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13807 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13811 mv -f "$cfgfile" "$ofile" ||
13812 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13823 ac_clean_files=$ac_clean_files_save
13825 test $ac_write_fail = 0 ||
13826 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13829 # configure is writing to config.log, and then calls config.status.
13830 # config.status does its own redirection, appending to config.log.
13831 # Unfortunately, on DOS this fails, as config.log is still kept open
13832 # by configure, so config.status won't be able to write to it; its
13833 # output is simply discarded. So we exec the FD to /dev/null,
13834 # effectively closing config.log, so it can be properly (re)opened and
13835 # appended to by config.status. When coming back to configure, we
13836 # need to make the FD available again.
13837 if test "$no_create" != yes; then
13839 ac_config_status_args=
13840 test "$silent" = yes &&
13841 ac_config_status_args="$ac_config_status_args --quiet"
13843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13846 # would make configure fail if this is the last instruction.
13847 $ac_cs_success || as_fn_exit 1
13849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13851 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}