2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mdemo 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 lt_ltdl_dir='../../libltdl'
549 SHELL=${CONFIG_SHELL-/bin/sh}
552 test -n "$DJDIR" || exec 7<&0 </dev/null
556 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
572 # Identity of this package.
574 PACKAGE_TARNAME='mdemo'
575 PACKAGE_VERSION='1.0'
576 PACKAGE_STRING='mdemo 1.0'
577 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
580 ac_unique_file="main.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
617 ac_subst_vars='am__EXEEXT_FALSE
683 INSTALL_STRIP_PROGRAM
725 program_transform_name
738 enable_option_checking
739 enable_dependency_tracking
748 ac_precious_vars='build_alias
759 # Initialize some variables set by options.
761 ac_init_version=false
762 ac_unrecognized_opts=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
773 program_transform_name=s,x,x,
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
848 cache_file=config.cache ;;
850 -datadir | --datadir | --datadi | --datad)
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
876 eval enable_$ac_useropt=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
917 -help | --help | --hel | --he | -h)
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 # Obsolete; use --without-fp.
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 sbindir=$ac_optarg ;;
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 sharedstatedir=$ac_optarg ;;
1064 -site | --site | --sit)
1066 -site=* | --site=* | --sit=*)
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval with_$ac_useropt=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error $? "missing argument to $ac_option"
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1193 # Be sure to have absolute directory names.
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used" >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error $? "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error $? "pwd does not report name of working directory"
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 # Report the --help message.
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1299 \`configure' configures mdemo 1.0 to adapt to many kinds of systems.
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1306 Defaults for the options are specified in brackets.
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking ...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1330 For better control, use the options below.
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/mdemo]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of mdemo 1.0:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --enable-shared[=PKGS] build shared libraries [default=yes]
1380 --enable-static[=PKGS] build static libraries [default=yes]
1381 --enable-fast-install[=PKGS]
1382 optimize for fast installation [default=yes]
1383 --disable-libtool-lock avoid locking (might break parallel builds)
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1390 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1391 --with-sysroot=DIR Search for dependent libraries within DIR
1392 (or the compiler's sysroot if not specified).
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1407 Report bugs to <bug-libtool@gnu.org>.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1437 .) # We are building in place.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf 2.68
1473 Copyright (C) 2010 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1520 } # ac_fn_c_try_compile
1522 # ac_fn_c_try_link LINENO
1523 # -----------------------
1524 # Try to link conftest.$ac_ext, and return whether this succeeded.
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext conftest$ac_exeext
1529 if { { ac_try="$ac_link"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_link") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest$ac_exeext && {
1548 test "$cross_compiling" = yes ||
1549 $as_test_x conftest$ac_exeext
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1560 # interfere with the next link command; also delete a directory that is
1561 # left behind by Apple's compiler. We do this before executing the actions.
1562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1566 } # ac_fn_c_try_link
1568 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1569 # -------------------------------------------------------
1570 # Tests whether HEADER exists and can be compiled using the include files in
1571 # INCLUDES, setting the cache variable VAR accordingly.
1572 ac_fn_c_check_header_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1585 if ac_fn_c_try_compile "$LINENO"; then :
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 } # ac_fn_c_check_header_compile
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } > conftest.i && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_link"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>&5
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654 { { case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_try") 2>&5
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; }; }; then :
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=$ac_status
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1678 # ac_fn_c_check_func LINENO FUNC VAR
1679 # ----------------------------------
1680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1681 ac_fn_c_check_func ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693 #define $2 innocuous_$2
1695 /* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below.
1697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698 <limits.h> exists even on freestanding compilers. */
1701 # include <limits.h>
1703 # include <assert.h>
1708 /* Override any GCC internal prototype to avoid an error.
1709 Use char because int might match the return type of a GCC
1710 builtin and then its argument prototype would still apply. */
1715 /* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718 #if defined __stub_$2 || defined __stub___$2
1730 if ac_fn_c_try_link "$LINENO"; then :
1735 rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_func
1744 cat >config.log <<_ACEOF
1745 This file contains any messages produced by compilers while
1746 running configure, to aid debugging if configure makes a mistake.
1748 It was created by mdemo $as_me 1.0, which was
1749 generated by GNU Autoconf 2.68. Invocation command line was
1761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1773 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir=.
1785 $as_echo "PATH: $as_dir"
1801 # Keep a trace of the command line.
1802 # Strip out --no-create and --no-recursion so they do not pile up.
1803 # Strip out --silent because we don't want to record it for future runs.
1804 # Also quote any args containing shell meta-characters.
1805 # Make two passes to allow for proper duplicate-argument suppression.
1809 ac_must_keep_next=false
1815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1823 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1825 as_fn_append ac_configure_args1 " '$ac_arg'"
1826 if test $ac_must_keep_next = true; then
1827 ac_must_keep_next=false # Got value, back to normal.
1830 *=* | --config-cache | -C | -disable-* | --disable-* \
1831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1833 | -with-* | --with-* | -without-* | --without-* | --x)
1834 case "$ac_configure_args0 " in
1835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1838 -* ) ac_must_keep_next=true ;;
1841 as_fn_append ac_configure_args " '$ac_arg'"
1846 { ac_configure_args0=; unset ac_configure_args0;}
1847 { ac_configure_args1=; unset ac_configure_args1;}
1849 # When interrupted or exit'd, cleanup temporary files, and complete
1850 # config.log. We remove comments because anyway the quotes in there
1851 # would cause problems or look ugly.
1852 # WARNING: Use '\'' to represent an apostrophe within the trap.
1853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1854 trap 'exit_status=$?
1855 # Save into config.log some information that might help in debugging.
1859 $as_echo "## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##"
1863 # The following way of writing the cache mishandles newlines in values,
1865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866 eval ac_val=\$$ac_var
1870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1874 _ | IFS | as_nl) ;; #(
1875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876 *) { eval $ac_var=; unset $ac_var;} ;;
1881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882 *${as_nl}ac_space=\ *)
1884 "s/'\''/'\''\\\\'\'''\''/g;
1885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1895 $as_echo "## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##"
1899 for ac_var in $ac_subst_vars
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 $as_echo "$ac_var='\''$ac_val'\''"
1909 if test -n "$ac_subst_files"; then
1910 $as_echo "## ------------------- ##
1911 ## File substitutions. ##
1912 ## ------------------- ##"
1914 for ac_var in $ac_subst_files
1916 eval ac_val=\$$ac_var
1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 $as_echo "$ac_var='\''$ac_val'\''"
1925 if test -s confdefs.h; then
1926 $as_echo "## ----------- ##
1933 test "$ac_signal" != 0 &&
1934 $as_echo "$as_me: caught signal $ac_signal"
1935 $as_echo "$as_me: exit $exit_status"
1937 rm -f core *.core core.conftest.* &&
1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1941 for ac_signal in 1 2 13 15; do
1942 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1949 $as_echo "/* confdefs.h */" > confdefs.h
1951 # Predefined preprocessor variables.
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_NAME "$PACKAGE_NAME"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_URL "$PACKAGE_URL"
1978 # Let the site file select an alternate cache file if it wants to.
1979 # Prefer an explicitly selected file to automatically selected ones.
1982 if test -n "$CONFIG_SITE"; then
1983 # We do not want a PATH search for config.site.
1984 case $CONFIG_SITE in #((
1985 -*) ac_site_file1=./$CONFIG_SITE;;
1986 */*) ac_site_file1=$CONFIG_SITE;;
1987 *) ac_site_file1=./$CONFIG_SITE;;
1989 elif test "x$prefix" != xNONE; then
1990 ac_site_file1=$prefix/share/config.site
1991 ac_site_file2=$prefix/etc/config.site
1993 ac_site_file1=$ac_default_prefix/share/config.site
1994 ac_site_file2=$ac_default_prefix/etc/config.site
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998 test "x$ac_site_file" = xNONE && continue
1999 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2004 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2006 as_fn_error $? "failed to load site script $ac_site_file
2007 See \`config.log' for more details" "$LINENO" 5; }
2011 if test -r "$cache_file"; then
2012 # Some versions of bash will fail to source /dev/null (special files
2013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2016 $as_echo "$as_me: loading cache $cache_file" >&6;}
2018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2019 *) . "./$cache_file";;
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2024 $as_echo "$as_me: creating cache $cache_file" >&6;}
2028 # Check that the precious variables saved in the cache have kept the same
2030 ac_cache_corrupted=false
2031 for ac_var in $ac_precious_vars; do
2032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2033 eval ac_new_set=\$ac_env_${ac_var}_set
2034 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2035 eval ac_new_val=\$ac_env_${ac_var}_value
2036 case $ac_old_set,$ac_new_set in
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2047 if test "x$ac_old_val" != "x$ac_new_val"; then
2048 # differences in whitespace do not lead to failure.
2049 ac_old_val_w=`echo x $ac_old_val`
2050 ac_new_val_w=`echo x $ac_new_val`
2051 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2054 ac_cache_corrupted=:
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2058 eval $ac_var=\$ac_old_val
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2061 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2063 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2066 # Pass precious variables to config.status.
2067 if test "$ac_new_set" = set; then
2069 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2070 *) ac_arg=$ac_var=$ac_new_val ;;
2072 case " $ac_configure_args " in
2073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2074 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2078 if $ac_cache_corrupted; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2083 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2085 ## -------------------- ##
2086 ## Main body of script. ##
2087 ## -------------------- ##
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2099 if test -f "$ac_dir/install-sh"; then
2101 ac_install_sh="$ac_aux_dir/install-sh -c"
2103 elif test -f "$ac_dir/install.sh"; then
2105 ac_install_sh="$ac_aux_dir/install.sh -c"
2107 elif test -f "$ac_dir/shtool"; then
2109 ac_install_sh="$ac_aux_dir/shtool install -c"
2113 if test -z "$ac_aux_dir"; then
2114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2128 ## ------------------------ ##
2129 ## Automake Initialisation. ##
2130 ## ------------------------ ##
2131 am__api_version='1.11'
2133 # Find a good install program. We prefer a C program (faster),
2134 # so one script is as good as another. But avoid the broken or
2135 # incompatible versions:
2136 # SysV /etc/install, /usr/sbin/install
2137 # SunOS /usr/etc/install
2138 # IRIX /sbin/install
2140 # AmigaOS /C/install, which installs bootblocks on floppy discs
2141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2144 # OS/2's system install, which has a completely different semantic
2145 # ./install, which can be erroneously created by make from ./install.sh.
2146 # Reject install programs that cannot install multiple files.
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2149 if test -z "$INSTALL"; then
2150 if ${ac_cv_path_install+:} false; then :
2151 $as_echo_n "(cached) " >&6
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 # Account for people who put trailing slashes in PATH elements.
2159 case $as_dir/ in #((
2160 ./ | .// | /[cC]/* | \
2161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2165 # OSF1 and SCO ODT 3.0 have their own names for install.
2166 # Don't use installbsd from OSF since it installs stuff as root
2168 for ac_prog in ginstall scoinst install; do
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2171 if test $ac_prog = install &&
2172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173 # AIX install. It has an incompatible calling convention.
2175 elif test $ac_prog = install &&
2176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177 # program-specific install script used by HP pwplus--don't use.
2180 rm -rf conftest.one conftest.two conftest.dir
2181 echo one > conftest.one
2182 echo two > conftest.two
2184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2185 test -s conftest.one && test -s conftest.two &&
2186 test -s conftest.dir/conftest.one &&
2187 test -s conftest.dir/conftest.two
2189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2202 rm -rf conftest.one conftest.two conftest.dir
2205 if test "${ac_cv_path_install+set}" = set; then
2206 INSTALL=$ac_cv_path_install
2208 # As a last resort, use the slow shell script. Don't cache a
2209 # value for INSTALL within a source directory, because that will
2210 # break other packages using the cache if that directory is
2211 # removed, or if the value is a relative name.
2212 INSTALL=$ac_install_sh
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2216 $as_echo "$INSTALL" >&6; }
2218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2219 # It thinks the first close brace ends the variable substitution.
2220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2227 $as_echo_n "checking whether build environment is sane... " >&6; }
2230 echo timestamp > conftest.file
2231 # Reject unsafe characters in $srcdir or the absolute working directory
2232 # name. Accept space and tab only in the latter.
2236 *[\\\"\#\$\&\'\`$am_lf]*)
2237 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2241 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2244 # Do `set' in a subshell so we don't clobber the current shell's
2245 # arguments. Must try -L first in case configure is actually a
2246 # symlink; some systems play weird games with the mod time of symlinks
2247 # (eg FreeBSD returns the mod time of the symlink's containing
2250 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2251 if test "$*" = "X"; then
2253 set X `ls -t "$srcdir/configure" conftest.file`
2256 if test "$*" != "X $srcdir/configure conftest.file" \
2257 && test "$*" != "X conftest.file $srcdir/configure"; then
2259 # If neither matched, then we have a broken ls. This can happen
2260 # if, for instance, CONFIG_SHELL is bash and it inherits a
2261 # broken ls alias from the environment. This has actually
2262 # happened. Such a system could not be considered "sane".
2263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" "$LINENO" 5
2267 test "$2" = conftest.file
2273 as_fn_error $? "newly created file is older than distributed files!
2274 Check your system clock" "$LINENO" 5
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2277 $as_echo "yes" >&6; }
2278 test "$program_prefix" != NONE &&
2279 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2280 # Use a double $ so make ignores it.
2281 test "$program_suffix" != NONE &&
2282 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2283 # Double any \ or $.
2284 # By default was `s,x,x', remove it if useless.
2285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288 # expand $ac_aux_dir to an absolute path
2289 am_aux_dir=`cd $ac_aux_dir && pwd`
2291 if test x"${MISSING+set}" != xset; then
2294 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2299 # Use eval to expand $SHELL
2300 if eval "$MISSING --run true"; then
2301 am_missing_run="$MISSING --run "
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2308 if test x"${install_sh}" != xset; then
2311 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 install_sh="\${SHELL} $am_aux_dir/install-sh"
2317 # Installed binaries are usually stripped using `strip' when the user
2318 # run `make install-strip'. However `strip' might not be the right
2319 # tool to use in cross-compilation environments, therefore Automake
2320 # will honor the `STRIP' environment variable to overrule this program.
2321 if test "$cross_compiling" != no; then
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if ${ac_cv_prog_STRIP+:} false; then :
2328 $as_echo_n "(cached) " >&6
2330 if test -n "$STRIP"; then
2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 STRIP=$ac_cv_prog_STRIP
2351 if test -n "$STRIP"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2353 $as_echo "$STRIP" >&6; }
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356 $as_echo "no" >&6; }
2361 if test -z "$ac_cv_prog_STRIP"; then
2363 # Extract the first word of "strip", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2368 $as_echo_n "(cached) " >&6
2370 if test -n "$ac_ct_STRIP"; then
2371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_STRIP="strip"
2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391 if test -n "$ac_ct_STRIP"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2393 $as_echo "$ac_ct_STRIP" >&6; }
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396 $as_echo "no" >&6; }
2399 if test "x$ac_ct_STRIP" = x; then
2402 case $cross_compiling:$ac_tool_warned in
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406 ac_tool_warned=yes ;;
2411 STRIP="$ac_cv_prog_STRIP"
2415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2419 if test -z "$MKDIR_P"; then
2420 if ${ac_cv_path_mkdir+:} false; then :
2421 $as_echo_n "(cached) " >&6
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2427 test -z "$as_dir" && as_dir=.
2428 for ac_prog in mkdir gmkdir; do
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2431 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2432 'mkdir (GNU coreutils) '* | \
2433 'mkdir (coreutils) '* | \
2434 'mkdir (fileutils) '4.1*)
2435 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445 test -d ./--version && rmdir ./--version
2446 if test "${ac_cv_path_mkdir+set}" = set; then
2447 MKDIR_P="$ac_cv_path_mkdir -p"
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for MKDIR_P within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 MKDIR_P="$ac_install_sh -d"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2457 $as_echo "$MKDIR_P" >&6; }
2461 [\\/$]* | ?:[\\/]*) ;;
2462 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2465 for ac_prog in gawk mawk nawk awk
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_AWK+:} false; then :
2472 $as_echo_n "(cached) " >&6
2474 if test -n "$AWK"; then
2475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_AWK="$ac_prog"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$AWK"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2497 $as_echo "$AWK" >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2504 test -n "$AWK" && break
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 cat >conftest.make <<\_ACEOF
2517 @echo '@@@%%%=$(MAKE)=@@@%%%'
2519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522 eval ac_cv_prog_make_${ac_make}_set=yes;;
2524 eval ac_cv_prog_make_${ac_make}_set=no;;
2528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 SET_MAKE="MAKE=${MAKE-make}"
2538 rm -rf .tst 2>/dev/null
2539 mkdir .tst 2>/dev/null
2540 if test -d .tst; then
2545 rmdir .tst 2>/dev/null
2547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2548 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2549 # is not polluted with repeated "-I."
2550 am__isrc=' -I$(srcdir)'
2551 # test to see if srcdir already configured
2552 if test -f $srcdir/config.status; then
2553 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2557 # test whether we have cygpath
2558 if test -z "$CYGPATH_W"; then
2559 if (cygpath --version) >/dev/null 2>/dev/null; then
2560 CYGPATH_W='cygpath -w'
2567 # Define the identity of the package.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE "$PACKAGE"
2577 cat >>confdefs.h <<_ACEOF
2578 #define VERSION "$VERSION"
2581 # Some tools Automake needs.
2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597 # We need awk for the "check" target. The system "awk" is bad on
2599 # Always define AMTAR for backward compatibility.
2601 AMTAR=${AMTAR-"${am_missing_run}tar"}
2603 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2611 ## ------------------ ##
2612 ## C compiler checks. ##
2613 ## ------------------ ##
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2658 if test -z "$ac_cv_prog_CC"; then
2660 # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_ac_ct_CC="gcc"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2690 $as_echo "$ac_ct_CC" >&6; }
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2696 if test "x$ac_ct_CC" = x; then
2699 case $cross_compiling:$ac_tool_warned in
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}cc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC="${ac_tool_prefix}cc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2752 if test -z "$CC"; then
2753 # Extract the first word of "cc", so it can be a program name with args.
2754 set dummy cc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_CC+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772 ac_prog_rejected=yes
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test $ac_prog_rejected = yes; then
2784 # We found a bogon in the path, so make sure we never use it.
2785 set dummy $ac_cv_prog_CC
2787 if test $# != 0; then
2788 # We chose a different compiler from the bogus one.
2789 # However, it has the same basename, so the bogon will be chosen
2790 # first if we set CC to just the basename; use the full file name.
2792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 for ac_prog in cl.exe
2812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2849 test -n "$CC" && break
2852 if test -z "$CC"; then
2854 for ac_prog in cl.exe
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_ac_ct_CC="$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886 $as_echo "$ac_ct_CC" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$ac_ct_CC" && break
2896 if test "x$ac_ct_CC" = x; then
2899 case $cross_compiling:$ac_tool_warned in
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903 ac_tool_warned=yes ;;
2912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details" "$LINENO" 5; }
2917 # Provide some information about the compiler.
2918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2921 for ac_option in --version -v -V -qversion; do
2922 { { ac_try="$ac_compiler $ac_option >&5"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2931 if test -s conftest.err; then
2933 ... rest of stderr output deleted ...
2934 10q' conftest.err >conftest.er1
2935 cat conftest.er1 >&5
2937 rm -f conftest.er1 conftest.err
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2959 $as_echo_n "checking whether the C compiler works... " >&6; }
2960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2962 # The possible output files:
2963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2966 for ac_file in $ac_files
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2975 if { { ac_try="$ac_link_default"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link_default") 2>&5
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2989 # so that the user can short-circuit this test for compilers unknown to
2991 for ac_file in $ac_files ''
2993 test -f "$ac_file" || continue
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2998 # We found the default executable, but exeext='' is most
3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 # We set ac_cv_exeext here because the later test for it is not
3007 # safe: cross compilers may not add the suffix if given an `-o'
3008 # argument, so we may need to know it at that point already.
3009 # Even if this section looks crufty: it has the advantage of
3016 test "$ac_cv_exeext" = no && ac_cv_exeext=
3021 if test -z "$ac_file"; then :
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error 77 "C compiler cannot create executables
3030 See \`config.log' for more details" "$LINENO" 5; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033 $as_echo "yes" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3036 $as_echo_n "checking for C compiler default output file name... " >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038 $as_echo "$ac_file" >&6; }
3039 ac_exeext=$ac_cv_exeext
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3044 $as_echo_n "checking for suffix of executables... " >&6; }
3045 if { { ac_try="$ac_link"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link") 2>&5
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3058 # work properly (i.e., refer to `conftest.exe'), while it won't with
3060 for ac_file in conftest.exe conftest conftest.*; do
3061 test -f "$ac_file" || continue
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 rm -f conftest conftest$ac_cv_exeext
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3079 rm -f conftest.$ac_ext
3080 EXEEXT=$ac_cv_exeext
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3088 FILE *f = fopen ("conftest.out", "w");
3089 return ferror (f) || fclose (f) != 0;
3095 ac_clean_files="$ac_clean_files conftest.out"
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3099 $as_echo_n "checking whether we are cross compiling... " >&6; }
3100 if test "$cross_compiling" != yes; then
3101 { { ac_try="$ac_link"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3112 if { ac_try='./conftest$ac_cv_exeext'
3113 { { case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_try") 2>&5
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; }; then
3125 if test "$cross_compiling" = maybe; then
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details" "$LINENO" 5; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3137 $as_echo "$cross_compiling" >&6; }
3139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3142 $as_echo_n "checking for suffix of object files... " >&6; }
3143 if ${ac_cv_objext+:} false; then :
3144 $as_echo_n "(cached) " >&6
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3157 rm -f conftest.o conftest.obj
3158 if { { ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compile") 2>&5
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details" "$LINENO" 5; }
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3189 $as_echo "$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3194 if ${ac_cv_c_compiler_gnu+:} false; then :
3195 $as_echo_n "(cached) " >&6
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3211 if ac_fn_c_try_compile "$LINENO"; then :
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3231 if ${ac_cv_prog_cc_g+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 ac_save_c_werror_flag=$ac_c_werror_flag
3235 ac_c_werror_flag=yes
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3249 if ac_fn_c_try_compile "$LINENO"; then :
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 if ac_fn_c_try_compile "$LINENO"; then :
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3291 $as_echo "$ac_cv_prog_cc_g" >&6; }
3292 if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294 elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3301 if test "$GCC" = yes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3309 if ${ac_cv_prog_cc_c89+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 ac_cv_prog_cc_c89=no
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 #include <sys/types.h>
3319 #include <sys/stat.h>
3320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3321 struct buf { int x; };
3322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3323 static char *e (p, i)
3329 static char *f (char * (*g) (char **, int), char **p, ...)
3334 s = g (p, va_arg (v,int));
3339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3340 function prototypes and stuff, but not '\xHH' hex character constants.
3341 These don't provoke an error unfortunately, instead are silently treated
3342 as 'x'. The following induces an error, until -std is added to get
3343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3344 array size at least. It's necessary to write '\x00'==0 to get something
3345 that's true only with -std. */
3346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3349 inside strings and character constants. */
3351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353 int test (int i, double x);
3354 struct s1 {int (*f) (int a);};
3355 struct s2 {int (*f) (double a);};
3356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3368 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 CC="$ac_save_CC $ac_arg"
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_cv_prog_cc_c89=$ac_arg
3374 rm -f core conftest.err conftest.$ac_objext
3375 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 rm -f conftest.$ac_ext
3382 case "x$ac_cv_prog_cc_c89" in
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3385 $as_echo "none needed" >&6; } ;;
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3388 $as_echo "unsupported" >&6; } ;;
3390 CC="$CC $ac_cv_prog_cc_c89"
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3394 if test "x$ac_cv_prog_cc_c89" != xno; then :
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 DEPDIR="${am__leading_dot}deps"
3405 ac_config_commands="$ac_config_commands depfiles"
3408 am_make=${MAKE-make}
3409 cat > confinc << 'END'
3411 @echo this is the am__doit target
3414 # If we don't find an include directive, just comment out the code.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3420 # First try GNU make style include.
3421 echo "include confinc" > confmf
3422 # Ignore all kinds of additional output from `make'.
3423 case `$am_make -s -f confmf 2> /dev/null` in #(
3424 *the\ am__doit\ target*)
3430 # Now try BSD make style include.
3431 if test "$am__include" = "#"; then
3432 echo '.include "confinc"' > confmf
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3435 am__include=.include
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3444 $as_echo "$_am_result" >&6; }
3445 rm -f confinc confmf
3447 # Check whether --enable-dependency-tracking was given.
3448 if test "${enable_dependency_tracking+set}" = set; then :
3449 enableval=$enable_dependency_tracking;
3452 if test "x$enable_dependency_tracking" != xno; then
3453 am_depcomp="$ac_aux_dir/depcomp"
3456 if test "x$enable_dependency_tracking" != xno; then
3466 depcc="$CC" am_compiler_list=
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3469 $as_echo_n "checking dependency style of $depcc... " >&6; }
3470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3471 $as_echo_n "(cached) " >&6
3473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3474 # We make a subdir and do the tests there. Otherwise we can end up
3475 # making bogus files that we don't know about and never remove. For
3476 # instance it was reported that on HP-UX the gcc test will end up
3477 # making a dummy file named `D' -- because `-MD' means `put the output
3480 # Copy depcomp to subdir because otherwise we won't find it if we're
3481 # using a relative directory.
3482 cp "$am_depcomp" conftest.dir
3484 # We will build objects and dependencies in a subdirectory because
3485 # it helps to detect inapplicable dependency modes. For instance
3486 # both Tru64's cc and ICC support -MD to output dependencies as a
3487 # side effect of compilation, but ICC will put the dependencies in
3488 # the current directory while Tru64 will put them in the object
3492 am_cv_CC_dependencies_compiler_type=none
3493 if test "$am_compiler_list" = ""; then
3494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3497 case " $depcc " in #(
3498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3501 for depmode in $am_compiler_list; do
3502 # Setup a source with many dependencies, because some compilers
3503 # like to wrap large dependency lists on column 80 (with \), and
3504 # we should not choose a depcomp mode which is confused by this.
3506 # We need to recreate these files for each test, as the compiler may
3507 # overwrite some of them when testing with obscure command lines.
3508 # This happens at least with the AIX C compiler.
3510 for i in 1 2 3 4 5 6; do
3511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3513 # Solaris 8's {/usr,}/bin/sh.
3514 touch sub/conftst$i.h
3516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3519 # mode. It turns out that the SunPro C++ compiler does not properly
3520 # handle `-M -o', and we need to detect this. Also, some Intel
3521 # versions had trouble with output in subdirs
3522 am__obj=sub/conftest.${OBJEXT-o}
3523 am__minus_obj="-o $am__obj"
3526 # This depmode causes a compiler race in universal mode.
3527 test "$am__universal" = false || continue
3530 # after this tag, mechanisms are not by side-effect, so they'll
3531 # only be used when explicitly requested
3532 if test "x$enable_dependency_tracking" = xyes; then
3538 msvisualcpp | msvcmsys)
3539 # This compiler won't grok `-c -o', but also, the minuso test has
3540 # not run yet. These depmodes are late enough in the game, and
3541 # so weak that their functioning should not be impacted.
3542 am__obj=conftest.${OBJEXT-o}
3547 if depmode=$depmode \
3548 source=sub/conftest.c object=$am__obj \
3549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3551 >/dev/null 2>conftest.err &&
3552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3556 # icc doesn't choke on unknown options, it will just issue warnings
3557 # or remarks (even with -Werror). So we grep stderr for any message
3558 # that says an option was ignored or not supported.
3559 # When given -MP, icc 7.0 and 7.1 complain thusly:
3560 # icc: Command line warning: ignoring option '-M'; no argument required
3561 # The diagnosis changed in icc 8.0:
3562 # icc: Command line remark: option '-MP' not supported
3563 if (grep 'ignoring option' conftest.err ||
3564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3565 am_cv_CC_dependencies_compiler_type=$depmode
3574 am_cv_CC_dependencies_compiler_type=none
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3583 test "x$enable_dependency_tracking" != xno \
3584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3586 am__fastdepCC_FALSE='#'
3588 am__fastdepCC_TRUE='#'
3589 am__fastdepCC_FALSE=
3595 ## ----------------------- ##
3596 ## Libtool initialisation. ##
3597 ## ----------------------- ##
3602 case $enable_ltdl_convenience in
3603 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
3604 "") enable_ltdl_convenience=yes
3605 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3607 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
3609 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
3615 # For backwards non-gettext consistent compatibility...
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3626 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3631 macro_version='2.4.2'
3632 macro_revision='1.3337'
3646 ltmain="$ac_aux_dir/ltmain.sh"
3648 # Make sure we can run config.sub.
3649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3650 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3653 $as_echo_n "checking build system type... " >&6; }
3654 if ${ac_cv_build+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 ac_build_alias=$build_alias
3658 test "x$ac_build_alias" = x &&
3659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3660 test "x$ac_build_alias" = x &&
3661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3662 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3667 $as_echo "$ac_cv_build" >&6; }
3668 case $ac_cv_build in
3670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3673 ac_save_IFS=$IFS; IFS='-'
3679 # Remember, the first character of IFS is used to create $*,
3680 # except with old shells:
3683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3687 $as_echo_n "checking host system type... " >&6; }
3688 if ${ac_cv_host+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if test "x$host_alias" = x; then
3692 ac_cv_host=$ac_cv_build
3694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3700 $as_echo "$ac_cv_host" >&6; }
3703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3706 ac_save_IFS=$IFS; IFS='-'
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3719 # Backslashify metacharacters that are still active within
3720 # double-quoted strings.
3721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3723 # Same as above, but do not quote variable references.
3724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3726 # Sed substitution to delay expansion of an escaped shell variable in a
3727 # double_quote_subst'ed string.
3728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3730 # Sed substitution to delay expansion of an escaped single quote.
3731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3733 # Sed substitution to avoid accidental globbing in evaled expressions
3734 no_glob_subst='s/\*/\\\*/g'
3736 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3737 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3741 $as_echo_n "checking how to print strings... " >&6; }
3742 # Test print first, because it will be a builtin if present.
3743 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3744 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3746 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3749 # Use this function as a fallback that always works.
3750 func_fallback_echo ()
3752 eval 'cat <<_LTECHO_EOF
3756 ECHO='func_fallback_echo'
3759 # func_echo_all arg...
3760 # Invoke $ECHO with all args, space-separated.
3767 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3768 $as_echo "printf" >&6; } ;;
3769 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3770 $as_echo "print -r" >&6; } ;;
3771 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3772 $as_echo "cat" >&6; } ;;
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3789 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3790 if ${ac_cv_path_SED+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3794 for ac_i in 1 2 3 4 5 6 7; do
3795 ac_script="$ac_script$as_nl$ac_script"
3797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3798 { ac_script=; unset ac_script;}
3799 if test -z "$SED"; then
3800 ac_path_SED_found=false
3801 # Loop through the user's path and test for each of PROGNAME-LIST
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_prog in sed gsed; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3810 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3811 # Check for GNU ac_path_SED and select it if it is found.
3812 # Check for GNU $ac_path_SED
3813 case `"$ac_path_SED" --version 2>&1` in
3815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3818 $as_echo_n 0123456789 >"conftest.in"
3821 cat "conftest.in" "conftest.in" >"conftest.tmp"
3822 mv "conftest.tmp" "conftest.in"
3823 cp "conftest.in" "conftest.nl"
3824 $as_echo '' >> "conftest.nl"
3825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827 as_fn_arith $ac_count + 1 && ac_count=$as_val
3828 if test $ac_count -gt ${ac_path_SED_max-0}; then
3829 # Best one so far, save it but keep looking for a better one
3830 ac_cv_path_SED="$ac_path_SED"
3831 ac_path_SED_max=$ac_count
3833 # 10*(2^10) chars as input seems more than enough
3834 test $ac_count -gt 10 && break
3836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 $ac_path_SED_found && break 3
3844 if test -z "$ac_cv_path_SED"; then
3845 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3853 $as_echo "$ac_cv_path_SED" >&6; }
3854 SED="$ac_cv_path_SED"
3857 test -z "$SED" && SED=sed
3858 Xsed="$SED -e 1s/^X//"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3872 if ${ac_cv_path_GREP+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -z "$GREP"; then
3876 ac_path_GREP_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889 case `"$ac_path_GREP" --version 2>&1` in
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894 $as_echo_n 0123456789 >"conftest.in"
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 $as_echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 as_fn_arith $ac_count + 1 && ac_count=$as_val
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 $ac_path_GREP_found && break 3
3920 if test -z "$ac_cv_path_GREP"; then
3921 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3924 ac_cv_path_GREP=$GREP
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3929 $as_echo "$ac_cv_path_GREP" >&6; }
3930 GREP="$ac_cv_path_GREP"
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3934 $as_echo_n "checking for egrep... " >&6; }
3935 if ${ac_cv_path_EGREP+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939 then ac_cv_path_EGREP="$GREP -E"
3941 if test -z "$EGREP"; then
3942 ac_path_EGREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in egrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953 # Check for GNU ac_path_EGREP and select it if it is found.
3954 # Check for GNU $ac_path_EGREP
3955 case `"$ac_path_EGREP" --version 2>&1` in
3957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3960 $as_echo_n 0123456789 >"conftest.in"
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 $as_echo 'EGREP' >> "conftest.nl"
3967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 as_fn_arith $ac_count + 1 && ac_count=$as_val
3970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_EGREP="$ac_path_EGREP"
3973 ac_path_EGREP_max=$ac_count
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 $ac_path_EGREP_found && break 3
3986 if test -z "$ac_cv_path_EGREP"; then
3987 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3990 ac_cv_path_EGREP=$EGREP
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3996 $as_echo "$ac_cv_path_EGREP" >&6; }
3997 EGREP="$ac_cv_path_EGREP"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4001 $as_echo_n "checking for fgrep... " >&6; }
4002 if ${ac_cv_path_FGREP+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4006 then ac_cv_path_FGREP="$GREP -F"
4008 if test -z "$FGREP"; then
4009 ac_path_FGREP_found=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in fgrep; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4019 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4020 # Check for GNU ac_path_FGREP and select it if it is found.
4021 # Check for GNU $ac_path_FGREP
4022 case `"$ac_path_FGREP" --version 2>&1` in
4024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4027 $as_echo_n 0123456789 >"conftest.in"
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 $as_echo 'FGREP' >> "conftest.nl"
4034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 as_fn_arith $ac_count + 1 && ac_count=$as_val
4037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_FGREP="$ac_path_FGREP"
4040 ac_path_FGREP_max=$ac_count
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 $ac_path_FGREP_found && break 3
4053 if test -z "$ac_cv_path_FGREP"; then
4054 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4057 ac_cv_path_FGREP=$FGREP
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4063 $as_echo "$ac_cv_path_FGREP" >&6; }
4064 FGREP="$ac_cv_path_FGREP"
4067 test -z "$GREP" && GREP=grep
4087 # Check whether --with-gnu-ld was given.
4088 if test "${with_gnu_ld+set}" = set; then :
4089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4095 if test "$GCC" = yes; then
4096 # Check if gcc -print-prog-name=ld gives a path.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4098 $as_echo_n "checking for ld used by $CC... " >&6; }
4101 # gcc leaves a trailing carriage return which upsets mingw
4102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4107 # Accept absolute paths.
4109 re_direlt='/[^/][^/]*/\.\./'
4110 # Canonicalize the pathname of ld
4111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4115 test -z "$LD" && LD="$ac_prog"
4118 # If it fails, then pretend we aren't using GCC.
4122 # If it is relative, then search for the first ld in PATH.
4126 elif test "$with_gnu_ld" = yes; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4128 $as_echo_n "checking for GNU ld... " >&6; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4131 $as_echo_n "checking for non-GNU ld... " >&6; }
4133 if ${lt_cv_path_LD+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -z "$LD"; then
4137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4138 for ac_dir in $PATH; do
4140 test -z "$ac_dir" && ac_dir=.
4141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4142 lt_cv_path_LD="$ac_dir/$ac_prog"
4143 # Check to see if the program is GNU ld. I'd rather use --version,
4144 # but apparently some variants of GNU ld only accept -v.
4145 # Break only if it was the GNU/non-GNU ld that we prefer.
4146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4147 *GNU* | *'with BFD'*)
4148 test "$with_gnu_ld" != no && break
4151 test "$with_gnu_ld" != yes && break
4158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4163 if test -n "$LD"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4165 $as_echo "$LD" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4170 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4173 if ${lt_cv_prog_gnu_ld+:} false; then :
4174 $as_echo_n "(cached) " >&6
4176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4177 case `$LD -v 2>&1 </dev/null` in
4178 *GNU* | *'with BFD'*)
4179 lt_cv_prog_gnu_ld=yes
4182 lt_cv_prog_gnu_ld=no
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4188 with_gnu_ld=$lt_cv_prog_gnu_ld
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4200 if ${lt_cv_path_NM+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$NM"; then
4204 # Let the user override the test.
4207 lt_nm_to_check="${ac_tool_prefix}nm"
4208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4209 lt_nm_to_check="$lt_nm_to_check nm"
4211 for lt_tmp_nm in $lt_nm_to_check; do
4212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4215 test -z "$ac_dir" && ac_dir=.
4216 tmp_nm="$ac_dir/$lt_tmp_nm"
4217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4218 # Check to see if the nm accepts a BSD-compat flag.
4219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4220 # nm: unknown option "B" ignored
4221 # Tru64's nm complains that /dev/null is an invalid object file
4222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4223 */dev/null* | *'Invalid file or object type'*)
4224 lt_cv_path_NM="$tmp_nm -B"
4228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4230 lt_cv_path_NM="$tmp_nm -p"
4234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4235 continue # so that we can try to find one that supports BSD flags
4244 : ${lt_cv_path_NM=no}
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4248 $as_echo "$lt_cv_path_NM" >&6; }
4249 if test "$lt_cv_path_NM" != "no"; then
4252 # Didn't find any BSD compatible name lister, look for dumpbin.
4253 if test -n "$DUMPBIN"; then :
4254 # Let the user override the test.
4256 if test -n "$ac_tool_prefix"; then
4257 for ac_prog in dumpbin "link -dump"
4259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_DUMPBIN+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$DUMPBIN"; then
4267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 DUMPBIN=$ac_cv_prog_DUMPBIN
4287 if test -n "$DUMPBIN"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4289 $as_echo "$DUMPBIN" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4296 test -n "$DUMPBIN" && break
4299 if test -z "$DUMPBIN"; then
4300 ac_ct_DUMPBIN=$DUMPBIN
4301 for ac_prog in dumpbin "link -dump"
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$ac_ct_DUMPBIN"; then
4311 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4331 if test -n "$ac_ct_DUMPBIN"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4333 $as_echo "$ac_ct_DUMPBIN" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4340 test -n "$ac_ct_DUMPBIN" && break
4343 if test "x$ac_ct_DUMPBIN" = x; then
4346 case $cross_compiling:$ac_tool_warned in
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350 ac_tool_warned=yes ;;
4352 DUMPBIN=$ac_ct_DUMPBIN
4356 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4358 DUMPBIN="$DUMPBIN -symbols"
4366 if test "$DUMPBIN" != ":"; then
4370 test -z "$NM" && NM=nm
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4379 if ${lt_cv_nm_interface+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 lt_cv_nm_interface="BSD nm"
4383 echo "int some_variable = 0;" > conftest.$ac_ext
4384 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4385 (eval "$ac_compile" 2>conftest.err)
4386 cat conftest.err >&5
4387 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4388 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4389 cat conftest.err >&5
4390 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4391 cat conftest.out >&5
4392 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4393 lt_cv_nm_interface="MS dumpbin"
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4398 $as_echo "$lt_cv_nm_interface" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4401 $as_echo_n "checking whether ln -s works... " >&6; }
4403 if test "$LN_S" = "ln -s"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4408 $as_echo "no, using $LN_S" >&6; }
4411 # find the maximum length of command line arguments
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4414 if ${lt_cv_sys_max_cmd_len+:} false; then :
4415 $as_echo_n "(cached) " >&6
4422 # On DJGPP, this test can blow up pretty badly due to problems in libc
4423 # (any single argument exceeding 2000 bytes causes a buffer overrun
4424 # during glob expansion). Even if it were fixed, the result of this
4425 # check would be larger than it should be.
4426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4430 # Under GNU Hurd, this test is not required because there is
4431 # no limit to the length of command line arguments.
4432 # Libtool will interpret -1 as no limit whatsoever
4433 lt_cv_sys_max_cmd_len=-1;
4436 cygwin* | mingw* | cegcc*)
4437 # On Win9x/ME, this test blows up -- it succeeds, but takes
4438 # about 5 minutes as the teststring grows exponentially.
4439 # Worse, since 9x/ME are not pre-emptively multitasking,
4440 # you end up with a "frozen" computer, even though with patience
4441 # the test eventually succeeds (with a max line length of 256k).
4442 # Instead, let's just punt: use the minimum linelength reported by
4443 # all of the supported platforms: 8192 (on NT/2K/XP).
4444 lt_cv_sys_max_cmd_len=8192;
4448 # On MiNT this can take a long time and run out of memory.
4449 lt_cv_sys_max_cmd_len=8192;
4453 # On AmigaOS with pdksh, this test takes hours, literally.
4454 # So we just punt and use a minimum line length of 8192.
4455 lt_cv_sys_max_cmd_len=8192;
4458 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4459 # This has been around since 386BSD, at least. Likely further.
4460 if test -x /sbin/sysctl; then
4461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4462 elif test -x /usr/sbin/sysctl; then
4463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4467 # And add a safety zone
4468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4474 lt_cv_sys_max_cmd_len=196608
4478 # The test takes a long time on OS/2.
4479 lt_cv_sys_max_cmd_len=8192
4483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4485 # nice to cause kernel panics so lets avoid the loop below.
4486 # First set a reasonable default.
4487 lt_cv_sys_max_cmd_len=16384
4489 if test -x /sbin/sysconfig; then
4490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4496 lt_cv_sys_max_cmd_len=102400
4498 sysv5* | sco5v6* | sysv4.2uw2*)
4499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4500 if test -n "$kargmax"; then
4501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4503 lt_cv_sys_max_cmd_len=32768
4507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4508 if test -n "$lt_cv_sys_max_cmd_len"; then
4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4512 # Make teststring a little bigger before we do anything with it.
4513 # a 1K string should be a reasonable start.
4514 for i in 1 2 3 4 5 6 7 8 ; do
4515 teststring=$teststring$teststring
4517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4518 # If test is not a shell built-in, we'll probably end up computing a
4519 # maximum length that is only half of the actual maximum length, but
4521 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4522 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4523 test $i != 17 # 1/2 MB should be enough
4526 teststring=$teststring$teststring
4528 # Only check the string length outside the loop.
4529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4531 # Add a significant safety factor because C++ compilers can tack on
4532 # massive amounts of additional arguments before passing them to the
4533 # linker. It appears as though 1/2 is a usable value.
4534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4541 if test -n $lt_cv_sys_max_cmd_len ; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4543 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4546 $as_echo "none" >&6; }
4548 max_cmd_len=$lt_cv_sys_max_cmd_len
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4560 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4561 # Try some XSI features
4564 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4566 && eval 'test $(( 1 + 1 )) -eq 2 \
4567 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4570 $as_echo "$xsi_shell" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4574 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4576 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4578 && lt_shell_append=yes
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4580 $as_echo "$lt_shell_append" >&6; }
4583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4593 # test EBCDIC or ASCII
4594 case `echo X|tr X '\101'` in
4595 A) # ASCII based system
4596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4597 lt_SP2NL='tr \040 \012'
4598 lt_NL2SP='tr \015\012 \040\040'
4600 *) # EBCDIC based system
4601 lt_SP2NL='tr \100 \n'
4602 lt_NL2SP='tr \r\n \100\100'
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4615 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4616 if ${lt_cv_to_host_file_cmd+:} false; then :
4617 $as_echo_n "(cached) " >&6
4622 *-*-mingw* ) # actually msys
4623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4628 * ) # otherwise, assume *nix
4629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4635 *-*-mingw* ) # actually msys
4636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4639 lt_cv_to_host_file_cmd=func_convert_file_noop
4641 * ) # otherwise, assume *nix
4642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4646 * ) # unhandled hosts (and "normal" native builds)
4647 lt_cv_to_host_file_cmd=func_convert_file_noop
4653 to_host_file_cmd=$lt_cv_to_host_file_cmd
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4655 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4662 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4663 if ${lt_cv_to_tool_file_cmd+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 #assume ordinary cross tools, or native build.
4667 lt_cv_to_tool_file_cmd=func_convert_file_noop
4671 *-*-mingw* ) # actually msys
4672 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4682 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4690 if ${lt_cv_ld_reload_flag+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 lt_cv_ld_reload_flag='-r'
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4697 reload_flag=$lt_cv_ld_reload_flag
4698 case $reload_flag in
4700 *) reload_flag=" $reload_flag" ;;
4702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4704 cygwin* | mingw* | pw32* | cegcc*)
4705 if test "$GCC" != yes; then
4710 if test "$GCC" = yes; then
4711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4726 if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_OBJDUMP+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 if test -n "$OBJDUMP"; then
4735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 OBJDUMP=$ac_cv_prog_OBJDUMP
4755 if test -n "$OBJDUMP"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4757 $as_echo "$OBJDUMP" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4765 if test -z "$ac_cv_prog_OBJDUMP"; then
4766 ac_ct_OBJDUMP=$OBJDUMP
4767 # Extract the first word of "objdump", so it can be a program name with args.
4768 set dummy objdump; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$ac_ct_OBJDUMP"; then
4775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4795 if test -n "$ac_ct_OBJDUMP"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4797 $as_echo "$ac_ct_OBJDUMP" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4803 if test "x$ac_ct_OBJDUMP" = x; then
4806 case $cross_compiling:$ac_tool_warned in
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4812 OBJDUMP=$ac_ct_OBJDUMP
4815 OBJDUMP="$ac_cv_prog_OBJDUMP"
4818 test -z "$OBJDUMP" && OBJDUMP=objdump
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4827 if ${lt_cv_deplibs_check_method+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 lt_cv_file_magic_cmd='$MAGIC_CMD'
4831 lt_cv_file_magic_test_file=
4832 lt_cv_deplibs_check_method='unknown'
4833 # Need to set the preceding variable on all platforms that support
4834 # interlibrary dependencies.
4835 # 'none' -- dependencies not supported.
4836 # `unknown' -- same as none, but documents that we really don't know.
4837 # 'pass_all' -- all dependencies passed with no checks.
4838 # 'test_compile' -- check by making test program.
4839 # 'file_magic [[regex]]' -- check by looking for files in library path
4840 # which responds to the $file_magic_cmd with a given extended regex.
4841 # If you have `file' or equivalent on your system and you're not sure
4842 # whether `pass_all' will *always* work, you probably want this one.
4846 lt_cv_deplibs_check_method=pass_all
4850 lt_cv_deplibs_check_method=pass_all
4854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4855 lt_cv_file_magic_cmd='/usr/bin/file -L'
4856 lt_cv_file_magic_test_file=/shlib/libc.so
4860 # func_win32_libid is a shell function defined in ltmain.sh
4861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4862 lt_cv_file_magic_cmd='func_win32_libid'
4866 # Base MSYS/MinGW do not provide the 'file' command needed by
4867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4868 # unless we find 'file', for example because we are cross-compiling.
4869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4872 lt_cv_file_magic_cmd='func_win32_libid'
4874 # Keep this pattern in sync with the one in func_win32_libid.
4875 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4876 lt_cv_file_magic_cmd='$OBJDUMP -f'
4881 # use the weaker test based on 'objdump'. See mingw*.
4882 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4883 lt_cv_file_magic_cmd='$OBJDUMP -f'
4886 darwin* | rhapsody*)
4887 lt_cv_deplibs_check_method=pass_all
4890 freebsd* | dragonfly*)
4891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4894 # Not sure whether the presence of OpenBSD here was a mistake.
4895 # Let's accept both of them until this is cleared up.
4896 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4897 lt_cv_file_magic_cmd=/usr/bin/file
4898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4902 lt_cv_deplibs_check_method=pass_all
4907 lt_cv_deplibs_check_method=pass_all
4911 lt_cv_deplibs_check_method=pass_all
4914 hpux10.20* | hpux11*)
4915 lt_cv_file_magic_cmd=/usr/bin/file
4918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4922 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]'
4923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4933 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4937 irix5* | irix6* | nonstopux*)
4939 *-32|*"-32 ") libmagic=32-bit;;
4940 *-n32|*"-n32 ") libmagic=N32;;
4941 *-64|*"-64 ") libmagic=64-bit;;
4942 *) libmagic=never-match;;
4944 lt_cv_deplibs_check_method=pass_all
4947 # This must be glibc/ELF.
4948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4949 lt_cv_deplibs_check_method=pass_all
4953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4962 lt_cv_file_magic_cmd=/usr/bin/file
4963 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4967 lt_cv_deplibs_check_method=pass_all
4971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4978 osf3* | osf4* | osf5*)
4979 lt_cv_deplibs_check_method=pass_all
4983 lt_cv_deplibs_check_method=pass_all
4987 lt_cv_deplibs_check_method=pass_all
4990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4991 lt_cv_deplibs_check_method=pass_all
4995 case $host_vendor in
4997 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]'
4998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5001 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_file_magic_cmd='/bin/file'
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5008 lt_cv_file_magic_cmd='/bin/file'
5009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5010 lt_cv_file_magic_test_file=/lib/libc.so
5013 lt_cv_deplibs_check_method=pass_all
5016 lt_cv_deplibs_check_method=pass_all
5022 lt_cv_deplibs_check_method=pass_all
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5032 if test "$build" = "$host"; then
5035 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5038 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5044 file_magic_cmd=$lt_cv_file_magic_cmd
5045 deplibs_check_method=$lt_cv_deplibs_check_method
5046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5069 if test -n "$ac_tool_prefix"; then
5070 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5071 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_DLLTOOL+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 if test -n "$DLLTOOL"; then
5078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 DLLTOOL=$ac_cv_prog_DLLTOOL
5098 if test -n "$DLLTOOL"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5100 $as_echo "$DLLTOOL" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5108 if test -z "$ac_cv_prog_DLLTOOL"; then
5109 ac_ct_DLLTOOL=$DLLTOOL
5110 # Extract the first word of "dlltool", so it can be a program name with args.
5111 set dummy dlltool; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -n "$ac_ct_DLLTOOL"; then
5118 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5138 if test -n "$ac_ct_DLLTOOL"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5140 $as_echo "$ac_ct_DLLTOOL" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5146 if test "x$ac_ct_DLLTOOL" = x; then
5149 case $cross_compiling:$ac_tool_warned in
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5155 DLLTOOL=$ac_ct_DLLTOOL
5158 DLLTOOL="$ac_cv_prog_DLLTOOL"
5161 test -z "$DLLTOOL" && DLLTOOL=dlltool
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 lt_cv_sharedlib_from_linklib_cmd='unknown'
5177 cygwin* | mingw* | pw32* | cegcc*)
5178 # two different shell functions defined in ltmain.sh
5179 # decide which to use based on capabilities of $DLLTOOL
5180 case `$DLLTOOL --help 2>&1` in
5181 *--identify-strict*)
5182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5190 # fallback: assume linklib IS sharedlib
5191 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5208 if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_AR+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 if test -n "$AR"; then
5219 ac_cv_prog_AR="$AR" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$AR"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5241 $as_echo "$AR" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 test -n "$AR" && break
5251 if test -z "$AR"; then
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$ac_ct_AR"; then
5263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_AR="$ac_prog"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5283 if test -n "$ac_ct_AR"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5285 $as_echo "$ac_ct_AR" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 test -n "$ac_ct_AR" && break
5295 if test "x$ac_ct_AR" = x; then
5298 case $cross_compiling:$ac_tool_warned in
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5322 $as_echo_n "checking for archiver @FILE support... " >&6; }
5323 if ${lt_cv_ar_at_file+:} false; then :
5324 $as_echo_n "(cached) " >&6
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 echo conftest.$ac_objext > conftest.lst
5340 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5342 (eval $lt_ar_try) 2>&5
5344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5345 test $ac_status = 0; }
5346 if test "$ac_status" -eq 0; then
5347 # Ensure the archiver fails upon bogus file names.
5348 rm -f conftest.$ac_objext libconftest.a
5349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5350 (eval $lt_ar_try) 2>&5
5352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353 test $ac_status = 0; }
5354 if test "$ac_status" -ne 0; then
5358 rm -f conftest.* libconftest.a
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5365 $as_echo "$lt_cv_ar_at_file" >&6; }
5367 if test "x$lt_cv_ar_at_file" = xno; then
5370 archiver_list_spec=$lt_cv_ar_at_file
5379 if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5381 set dummy ${ac_tool_prefix}strip; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_STRIP+:} false; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -n "$STRIP"; then
5388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 STRIP=$ac_cv_prog_STRIP
5408 if test -n "$STRIP"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5410 $as_echo "$STRIP" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5418 if test -z "$ac_cv_prog_STRIP"; then
5420 # Extract the first word of "strip", so it can be a program name with args.
5421 set dummy strip; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5425 $as_echo_n "(cached) " >&6
5427 if test -n "$ac_ct_STRIP"; then
5428 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_STRIP="strip"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5448 if test -n "$ac_ct_STRIP"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5450 $as_echo "$ac_ct_STRIP" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5456 if test "x$ac_ct_STRIP" = x; then
5459 case $cross_compiling:$ac_tool_warned in
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5468 STRIP="$ac_cv_prog_STRIP"
5471 test -z "$STRIP" && STRIP=:
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_RANLIB+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 if test -n "$RANLIB"; then
5487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 RANLIB=$ac_cv_prog_RANLIB
5507 if test -n "$RANLIB"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5509 $as_echo "$RANLIB" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5517 if test -z "$ac_cv_prog_RANLIB"; then
5518 ac_ct_RANLIB=$RANLIB
5519 # Extract the first word of "ranlib", so it can be a program name with args.
5520 set dummy ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$ac_ct_RANLIB"; then
5527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_ac_ct_RANLIB="ranlib"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5547 if test -n "$ac_ct_RANLIB"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5549 $as_echo "$ac_ct_RANLIB" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5555 if test "x$ac_ct_RANLIB" = x; then
5558 case $cross_compiling:$ac_tool_warned in
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5564 RANLIB=$ac_ct_RANLIB
5567 RANLIB="$ac_cv_prog_RANLIB"
5570 test -z "$RANLIB" && RANLIB=:
5577 # Determine commands to create old-style static archives.
5578 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5579 old_postinstall_cmds='chmod 644 $oldlib'
5580 old_postuninstall_cmds=
5582 if test -n "$RANLIB"; then
5585 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5588 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5591 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5596 lock_old_archive_extraction=yes ;;
5598 lock_old_archive_extraction=no ;;
5639 # If no C compiler was specified, use CC.
5642 # If no C compiler flags were specified, use CFLAGS.
5643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5645 # Allow CC to be a program name with arguments.
5649 # Check for command to grab the raw symbol name followed by C symbol from nm.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5651 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5652 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5653 $as_echo_n "(cached) " >&6
5656 # These are sane defaults that work on at least a few old systems.
5657 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5659 # Character class describing NM global symbol codes.
5660 symcode='[BCDEGRST]'
5662 # Regexp to match symbols that can be accessed directly from C.
5663 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5665 # Define system-specific variables.
5670 cygwin* | mingw* | pw32* | cegcc*)
5671 symcode='[ABCDGISTW]'
5674 if test "$host_cpu" = ia64; then
5675 symcode='[ABCDEGRST]'
5679 symcode='[BCDEGRST]'
5682 symcode='[BCDEGQRST]'
5693 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5701 # If we're using GNU nm, then use its standard symbol codes.
5702 case `$NM -V 2>&1` in
5703 *GNU* | *'with BFD'*)
5704 symcode='[ABCDGIRSTW]' ;;
5707 # Transform an extracted symbol line into a proper C declaration.
5708 # Some systems (esp. on ia64) link data and code symbols differently,
5709 # so use this general approach.
5710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5712 # Transform an extracted symbol line into symbol name and symbol address
5713 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5714 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'"
5716 # Handle CRLF in mingw tool chain
5720 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5724 # Try without a prefix underscore, then with it.
5725 for ac_symprfx in "" "_"; do
5727 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5728 symxfrm="\\1 $ac_symprfx\\2 \\2"
5730 # Write the raw and C identifiers.
5731 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5732 # Fake it for dumpbin and say T for any non-static function
5733 # and D for any global variable.
5734 # Also find C++ and __fastcall symbols from MSVC++,
5735 # which start with @ or ?.
5736 lt_cv_sys_global_symbol_pipe="$AWK '"\
5737 " {last_section=section; section=\$ 3};"\
5738 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5739 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5740 " \$ 0!~/External *\|/{next};"\
5741 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5742 " {if(hide[section]) next};"\
5743 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5744 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5745 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5746 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5747 " ' prfx=^$ac_symprfx"
5749 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5751 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5753 # Check to see that the pipe works correctly.
5757 cat > conftest.$ac_ext <<_LT_EOF
5762 void nm_test_func(void);
5763 void nm_test_func(void){}
5767 int main(){nm_test_var='a';nm_test_func();return(0);}
5770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5771 (eval $ac_compile) 2>&5
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; }; then
5775 # Now try to grab the symbols.
5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5778 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; } && test -s "$nlist"; then
5782 # Try sorting and uniquifying the output.
5783 if sort "$nlist" | uniq > "$nlist"T; then
5784 mv -f "$nlist"T "$nlist"
5789 # Make sure that we snagged all the symbols we need.
5790 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5791 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5792 cat <<_LT_EOF > conftest.$ac_ext
5793 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5794 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5795 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5796 relocations are performed -- see ld's documentation on pseudo-relocs. */
5797 # define LT_DLSYM_CONST
5798 #elif defined(__osf__)
5799 /* This system does not cope well with relocations in const data. */
5800 # define LT_DLSYM_CONST
5802 # define LT_DLSYM_CONST const
5810 # Now generate the symbol file.
5811 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5813 cat <<_LT_EOF >> conftest.$ac_ext
5815 /* The mapping between symbol names and symbols. */
5816 LT_DLSYM_CONST struct {
5820 lt__PROGRAM__LTX_preloaded_symbols[] =
5822 { "@PROGRAM@", (void *) 0 },
5824 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5825 cat <<\_LT_EOF >> conftest.$ac_ext
5829 /* This works around a problem in FreeBSD linker */
5830 #ifdef FREEBSD_WORKAROUND
5831 static const void *lt_preloaded_setup() {
5832 return lt__PROGRAM__LTX_preloaded_symbols;
5840 # Now try linking the two files.
5841 mv conftest.$ac_objext conftstm.$ac_objext
5842 lt_globsym_save_LIBS=$LIBS
5843 lt_globsym_save_CFLAGS=$CFLAGS
5844 LIBS="conftstm.$ac_objext"
5845 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5847 (eval $ac_link) 2>&5
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5853 LIBS=$lt_globsym_save_LIBS
5854 CFLAGS=$lt_globsym_save_CFLAGS
5856 echo "cannot find nm_test_func in $nlist" >&5
5859 echo "cannot find nm_test_var in $nlist" >&5
5862 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5865 echo "$progname: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5868 rm -rf conftest* conftst*
5870 # Do not use the global_symbol_pipe unless it works.
5871 if test "$pipe_works" = yes; then
5874 lt_cv_sys_global_symbol_pipe=
5880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5881 lt_cv_sys_global_symbol_to_cdecl=
5883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5885 $as_echo "failed" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5888 $as_echo "ok" >&6; }
5891 # Response file support.
5892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5893 nm_file_list_spec='@'
5894 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5895 nm_file_list_spec='@'
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5925 $as_echo_n "checking for sysroot... " >&6; }
5927 # Check whether --with-sysroot was given.
5928 if test "${with_sysroot+set}" = set; then :
5929 withval=$with_sysroot;
5936 case ${with_sysroot} in #(
5938 if test "$GCC" = yes; then
5939 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5943 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5949 $as_echo "${with_sysroot}" >&6; }
5950 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5955 $as_echo "${lt_sysroot:-no}" >&6; }
5961 # Check whether --enable-libtool-lock was given.
5962 if test "${enable_libtool_lock+set}" = set; then :
5963 enableval=$enable_libtool_lock;
5966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5968 # Some flags need to be propagated to the compiler or linker for good
5972 # Find out which ABI we are using.
5973 echo 'int i;' > conftest.$ac_ext
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975 (eval $ac_compile) 2>&5
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }; then
5979 case `/usr/bin/file conftest.$ac_objext` in
5991 # Find out which ABI we are using.
5992 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5994 (eval $ac_compile) 2>&5
5996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997 test $ac_status = 0; }; then
5998 if test "$lt_cv_prog_gnu_ld" = yes; then
5999 case `/usr/bin/file conftest.$ac_objext` in
6001 LD="${LD-ld} -melf32bsmip"
6004 LD="${LD-ld} -melf32bmipn32"
6007 LD="${LD-ld} -melf64bmip"
6011 case `/usr/bin/file conftest.$ac_objext` in
6027 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6028 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6029 # Find out which ABI we are using.
6030 echo 'int i;' > conftest.$ac_ext
6031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6032 (eval $ac_compile) 2>&5
6034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035 test $ac_status = 0; }; then
6036 case `/usr/bin/file conftest.o` in
6039 x86_64-*kfreebsd*-gnu)
6040 LD="${LD-ld} -m elf_i386_fbsd"
6043 LD="${LD-ld} -m elf_i386"
6045 ppc64-*linux*|powerpc64-*linux*)
6046 LD="${LD-ld} -m elf32ppclinux"
6049 LD="${LD-ld} -m elf_s390"
6052 LD="${LD-ld} -m elf32_sparc"
6058 x86_64-*kfreebsd*-gnu)
6059 LD="${LD-ld} -m elf_x86_64_fbsd"
6062 LD="${LD-ld} -m elf_x86_64"
6064 ppc*-*linux*|powerpc*-*linux*)
6065 LD="${LD-ld} -m elf64ppc"
6067 s390*-*linux*|s390*-*tpf*)
6068 LD="${LD-ld} -m elf64_s390"
6071 LD="${LD-ld} -m elf64_sparc"
6081 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6082 SAVE_CFLAGS="$CFLAGS"
6083 CFLAGS="$CFLAGS -belf"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6085 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6086 if ${lt_cv_cc_needs_belf+:} false; then :
6087 $as_echo_n "(cached) " >&6
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6106 if ac_fn_c_try_link "$LINENO"; then :
6107 lt_cv_cc_needs_belf=yes
6109 lt_cv_cc_needs_belf=no
6111 rm -f core conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6121 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6124 CFLAGS="$SAVE_CFLAGS"
6128 # Find out which ABI we are using.
6129 echo 'int i;' > conftest.$ac_ext
6130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6131 (eval $ac_compile) 2>&5
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }; then
6135 case `/usr/bin/file conftest.o` in
6137 case $lt_cv_prog_gnu_ld in
6141 LD="${LD-ld} -m elf_x86_64"
6144 LD="${LD-ld} -m elf64_sparc"
6147 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6148 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6153 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6165 need_locks="$enable_libtool_lock"
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}mt; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6173 $as_echo_n "(cached) " >&6
6175 if test -n "$MANIFEST_TOOL"; then
6176 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6196 if test -n "$MANIFEST_TOOL"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6198 $as_echo "$MANIFEST_TOOL" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6207 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6208 # Extract the first word of "mt", so it can be a program name with args.
6209 set dummy mt; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$ac_ct_MANIFEST_TOOL"; then
6216 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6236 if test -n "$ac_ct_MANIFEST_TOOL"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6238 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6244 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6247 case $cross_compiling:$ac_tool_warned in
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6253 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6256 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6259 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6261 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6262 if ${lt_cv_path_mainfest_tool+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 lt_cv_path_mainfest_tool=no
6266 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6267 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6268 cat conftest.err >&5
6269 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6270 lt_cv_path_mainfest_tool=yes
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6275 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6276 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6286 rhapsody* | darwin*)
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$DSYMUTIL"; then
6296 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6316 if test -n "$DSYMUTIL"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6318 $as_echo "$DSYMUTIL" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6326 if test -z "$ac_cv_prog_DSYMUTIL"; then
6327 ac_ct_DSYMUTIL=$DSYMUTIL
6328 # Extract the first word of "dsymutil", so it can be a program name with args.
6329 set dummy dsymutil; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$ac_ct_DSYMUTIL"; then
6336 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6356 if test -n "$ac_ct_DSYMUTIL"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6358 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6364 if test "x$ac_ct_DSYMUTIL" = x; then
6367 case $cross_compiling:$ac_tool_warned in
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6373 DSYMUTIL=$ac_ct_DSYMUTIL
6376 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_NMEDIT+:} false; then :
6385 $as_echo_n "(cached) " >&6
6387 if test -n "$NMEDIT"; then
6388 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 NMEDIT=$ac_cv_prog_NMEDIT
6408 if test -n "$NMEDIT"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6410 $as_echo "$NMEDIT" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6418 if test -z "$ac_cv_prog_NMEDIT"; then
6419 ac_ct_NMEDIT=$NMEDIT
6420 # Extract the first word of "nmedit", so it can be a program name with args.
6421 set dummy nmedit; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$ac_ct_NMEDIT"; then
6428 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6448 if test -n "$ac_ct_NMEDIT"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6450 $as_echo "$ac_ct_NMEDIT" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6456 if test "x$ac_ct_NMEDIT" = x; then
6459 case $cross_compiling:$ac_tool_warned in
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6465 NMEDIT=$ac_ct_NMEDIT
6468 NMEDIT="$ac_cv_prog_NMEDIT"
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_LIPO+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$LIPO"; then
6480 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 LIPO=$ac_cv_prog_LIPO
6500 if test -n "$LIPO"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6502 $as_echo "$LIPO" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test -z "$ac_cv_prog_LIPO"; then
6512 # Extract the first word of "lipo", so it can be a program name with args.
6513 set dummy lipo; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$ac_ct_LIPO"; then
6520 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_ac_ct_LIPO="lipo"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6540 if test -n "$ac_ct_LIPO"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6542 $as_echo "$ac_ct_LIPO" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$ac_ct_LIPO" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6560 LIPO="$ac_cv_prog_LIPO"
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_OTOOL+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$OTOOL"; then
6572 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 OTOOL=$ac_cv_prog_OTOOL
6592 if test -n "$OTOOL"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6594 $as_echo "$OTOOL" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6602 if test -z "$ac_cv_prog_OTOOL"; then
6604 # Extract the first word of "otool", so it can be a program name with args.
6605 set dummy otool; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$ac_ct_OTOOL"; then
6612 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_OTOOL="otool"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6632 if test -n "$ac_ct_OTOOL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6634 $as_echo "$ac_ct_OTOOL" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_ct_OTOOL" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6652 OTOOL="$ac_cv_prog_OTOOL"
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OTOOL64+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$OTOOL64"; then
6664 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 OTOOL64=$ac_cv_prog_OTOOL64
6684 if test -n "$OTOOL64"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6686 $as_echo "$OTOOL64" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_OTOOL64"; then
6695 ac_ct_OTOOL64=$OTOOL64
6696 # Extract the first word of "otool64", so it can be a program name with args.
6697 set dummy otool64; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$ac_ct_OTOOL64"; then
6704 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_OTOOL64="otool64"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6724 if test -n "$ac_ct_OTOOL64"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6726 $as_echo "$ac_ct_OTOOL64" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_OTOOL64" = x; then
6735 case $cross_compiling:$ac_tool_warned in
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6741 OTOOL64=$ac_ct_OTOOL64
6744 OTOOL64="$ac_cv_prog_OTOOL64"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6774 $as_echo_n "checking for -single_module linker flag... " >&6; }
6775 if ${lt_cv_apple_cc_single_mod+:} false; then :
6776 $as_echo_n "(cached) " >&6
6778 lt_cv_apple_cc_single_mod=no
6779 if test -z "${LT_MULTI_MODULE}"; then
6780 # By default we will add the -single_module flag. You can override
6781 # by either setting the environment variable LT_MULTI_MODULE
6782 # non-empty at configure time, or by adding -multi_module to the
6784 rm -rf libconftest.dylib*
6785 echo "int foo(void){return 1;}" > conftest.c
6786 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6787 -dynamiclib -Wl,-single_module conftest.c" >&5
6788 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6789 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6791 # If there is a non-empty error log, and "single_module"
6792 # appears in it, assume the flag caused a linker warning
6793 if test -s conftest.err && $GREP single_module conftest.err; then
6794 cat conftest.err >&5
6795 # Otherwise, if the output was created with a 0 exit code from
6796 # the compiler, it worked.
6797 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6798 lt_cv_apple_cc_single_mod=yes
6800 cat conftest.err >&5
6802 rm -rf libconftest.dylib*
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6807 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6810 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6811 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 lt_cv_ld_exported_symbols_list=no
6815 save_LDFLAGS=$LDFLAGS
6816 echo "_main" > conftest.sym
6817 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6829 if ac_fn_c_try_link "$LINENO"; then :
6830 lt_cv_ld_exported_symbols_list=yes
6832 lt_cv_ld_exported_symbols_list=no
6834 rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 LDFLAGS="$save_LDFLAGS"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6840 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6843 $as_echo_n "checking for -force_load linker flag... " >&6; }
6844 if ${lt_cv_ld_force_load+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 lt_cv_ld_force_load=no
6848 cat > conftest.c << _LT_EOF
6849 int forced_loaded() { return 2;}
6851 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6852 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6853 echo "$AR cru libconftest.a conftest.o" >&5
6854 $AR cru libconftest.a conftest.o 2>&5
6855 echo "$RANLIB libconftest.a" >&5
6856 $RANLIB libconftest.a 2>&5
6857 cat > conftest.c << _LT_EOF
6858 int main() { return 0;}
6860 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6861 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6863 if test -s conftest.err && $GREP force_load conftest.err; then
6864 cat conftest.err >&5
6865 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6866 lt_cv_ld_force_load=yes
6868 cat conftest.err >&5
6870 rm -f conftest.err libconftest.a conftest conftest.c
6871 rm -rf conftest.dSYM
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6875 $as_echo "$lt_cv_ld_force_load" >&6; }
6877 rhapsody* | darwin1.[012])
6878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6881 darwin*) # darwin 5.x on
6882 # if running on 10.5 or later, the deployment target defaults
6883 # to the OS version, if on x86, and 10.4, the deployment
6884 # target defaults to 10.4. Don't you love it?
6885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6896 _lt_dar_single_mod='$single_module'
6898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6903 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6904 _lt_dsymutil='~$DSYMUTIL $lib || :'
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6917 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6918 # On Suns, sometimes $CPP names a directory.
6919 if test -n "$CPP" && test -d "$CPP"; then
6922 if test -z "$CPP"; then
6923 if ${ac_cv_prog_CPP+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 # Double quotes because CPP needs to be expanded
6927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6930 for ac_c_preproc_warn_flag in '' yes
6932 # Use a header file that comes with gcc, so configuring glibc
6933 # with a fresh cross-compiler works.
6934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6935 # <limits.h> exists even on freestanding compilers.
6936 # On the NeXT, cc -E runs the code through the compiler's parser,
6937 # not just through cpp. "Syntax error" is here to catch this case.
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 # include <limits.h>
6943 # include <assert.h>
6947 if ac_fn_c_try_cpp "$LINENO"; then :
6950 # Broken: fails on valid input.
6953 rm -f conftest.err conftest.i conftest.$ac_ext
6955 # OK, works on sane cases. Now check whether nonexistent headers
6956 # can be detected and how.
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 #include <ac_nonexistent.h>
6961 if ac_fn_c_try_cpp "$LINENO"; then :
6962 # Broken: success on invalid input.
6965 # Passes both tests.
6969 rm -f conftest.err conftest.i conftest.$ac_ext
6972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973 rm -f conftest.i conftest.err conftest.$ac_ext
6974 if $ac_preproc_ok; then :
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6987 $as_echo "$CPP" >&6; }
6989 for ac_c_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7000 # include <limits.h>
7002 # include <assert.h>
7006 if ac_fn_c_try_cpp "$LINENO"; then :
7009 # Broken: fails on valid input.
7012 rm -f conftest.err conftest.i conftest.$ac_ext
7014 # OK, works on sane cases. Now check whether nonexistent headers
7015 # can be detected and how.
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #include <ac_nonexistent.h>
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7021 # Broken: success on invalid input.
7024 # Passes both tests.
7028 rm -f conftest.err conftest.i conftest.$ac_ext
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.i conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then :
7036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7038 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7039 See \`config.log' for more details" "$LINENO" 5; }
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7050 $as_echo_n "checking for ANSI C header files... " >&6; }
7051 if ${ac_cv_header_stdc+:} false; then :
7052 $as_echo_n "(cached) " >&6
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 ac_cv_header_stdc=yes
7072 ac_cv_header_stdc=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 if test $ac_cv_header_stdc = yes; then
7077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "memchr" >/dev/null 2>&1; then :
7087 ac_cv_header_stdc=no
7093 if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "free" >/dev/null 2>&1; then :
7104 ac_cv_header_stdc=no
7110 if test $ac_cv_header_stdc = yes; then
7111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112 if test "$cross_compiling" = yes; then :
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 #if ((' ' & 0x0FF) == 0x020)
7120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7123 # define ISLOWER(c) \
7124 (('a' <= (c) && (c) <= 'i') \
7125 || ('j' <= (c) && (c) <= 'r') \
7126 || ('s' <= (c) && (c) <= 'z'))
7127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135 for (i = 0; i < 256; i++)
7136 if (XOR (islower (i), ISLOWER (i))
7137 || toupper (i) != TOUPPER (i))
7142 if ac_fn_c_try_run "$LINENO"; then :
7145 ac_cv_header_stdc=no
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7154 $as_echo "$ac_cv_header_stdc" >&6; }
7155 if test $ac_cv_header_stdc = yes; then
7157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7163 inttypes.h stdint.h unistd.h
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7169 cat >>confdefs.h <<_ACEOF
7170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7178 for ac_header in dlfcn.h
7180 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7182 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_DLFCN_H 1
7197 enable_win32_dll=yes
7200 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}as; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_AS+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$AS"; then
7210 ac_cv_prog_AS="$AS" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_AS="${ac_tool_prefix}as"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 if test -n "$AS"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7232 $as_echo "$AS" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_AS"; then
7242 # Extract the first word of "as", so it can be a program name with args.
7243 set dummy as; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$ac_ct_AS"; then
7250 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_AS="as"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7270 if test -n "$ac_ct_AS"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7272 $as_echo "$ac_ct_AS" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_AS" = x; then
7281 case $cross_compiling:$ac_tool_warned in
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_DLLTOOL+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$DLLTOOL"; then
7302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 DLLTOOL=$ac_cv_prog_DLLTOOL
7322 if test -n "$DLLTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7324 $as_echo "$DLLTOOL" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_DLLTOOL"; then
7333 ac_ct_DLLTOOL=$DLLTOOL
7334 # Extract the first word of "dlltool", so it can be a program name with args.
7335 set dummy dlltool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_DLLTOOL"; then
7342 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7362 if test -n "$ac_ct_DLLTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 $as_echo "$ac_ct_DLLTOOL" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_DLLTOOL" = x; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7379 DLLTOOL=$ac_ct_DLLTOOL
7382 DLLTOOL="$ac_cv_prog_DLLTOOL"
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OBJDUMP+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$OBJDUMP"; then
7394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 OBJDUMP=$ac_cv_prog_OBJDUMP
7414 if test -n "$OBJDUMP"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7416 $as_echo "$OBJDUMP" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_OBJDUMP"; then
7425 ac_ct_OBJDUMP=$OBJDUMP
7426 # Extract the first word of "objdump", so it can be a program name with args.
7427 set dummy objdump; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$ac_ct_OBJDUMP"; then
7434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7454 if test -n "$ac_ct_OBJDUMP"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7456 $as_echo "$ac_ct_OBJDUMP" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_OBJDUMP" = x; then
7465 case $cross_compiling:$ac_tool_warned in
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7471 OBJDUMP=$ac_ct_OBJDUMP
7474 OBJDUMP="$ac_cv_prog_OBJDUMP"
7480 test -z "$AS" && AS=as
7486 test -z "$DLLTOOL" && DLLTOOL=dlltool
7492 test -z "$OBJDUMP" && OBJDUMP=objdump
7502 # Check whether --enable-shared was given.
7503 if test "${enable_shared+set}" = set; then :
7504 enableval=$enable_shared; p=${PACKAGE-default}
7506 yes) enable_shared=yes ;;
7507 no) enable_shared=no ;;
7510 # Look at the argument we got. We use all the common list separators.
7511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7512 for pkg in $enableval; do
7514 if test "X$pkg" = "X$p"; then
7533 # Check whether --enable-static was given.
7534 if test "${enable_static+set}" = set; then :
7535 enableval=$enable_static; p=${PACKAGE-default}
7537 yes) enable_static=yes ;;
7538 no) enable_static=no ;;
7541 # Look at the argument we got. We use all the common list separators.
7542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7543 for pkg in $enableval; do
7545 if test "X$pkg" = "X$p"; then
7565 # Check whether --with-pic was given.
7566 if test "${with_pic+set}" = set; then :
7567 withval=$with_pic; lt_p=${PACKAGE-default}
7569 yes|no) pic_mode=$withval ;;
7572 # Look at the argument we got. We use all the common list separators.
7573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7574 for lt_pkg in $withval; do
7576 if test "X$lt_pkg" = "X$lt_p"; then
7588 test -z "$pic_mode" && pic_mode=default
7596 # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7616 enable_fast_install=yes
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7664 test -z "$LN_S" && LN_S="ln -s"
7679 if test -n "${ZSH_VERSION+set}" ; then
7680 setopt NO_GLOB_SUBST
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7684 $as_echo_n "checking for objdir... " >&6; }
7685 if ${lt_cv_objdir+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 rm -f .libs 2>/dev/null
7689 mkdir .libs 2>/dev/null
7690 if test -d .libs; then
7693 # MS-DOS does not allow filenames that begin with a dot.
7696 rmdir .libs 2>/dev/null
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7699 $as_echo "$lt_cv_objdir" >&6; }
7700 objdir=$lt_cv_objdir
7706 cat >>confdefs.h <<_ACEOF
7707 #define LT_OBJDIR "$lt_cv_objdir/"
7715 # AIX sometimes has problems with the GCC collect2 program. For some
7716 # reason, if we set the COLLECT_NAMES environment variable, the problems
7717 # vanish in a puff of smoke.
7718 if test "X${COLLECT_NAMES+set}" != Xset; then
7720 export COLLECT_NAMES
7727 can_build_shared=yes
7729 # All known linkers require a `.a' archive for static linking (except MSVC,
7730 # which needs '.lib').
7733 with_gnu_ld="$lt_cv_prog_gnu_ld"
7736 old_CFLAGS="$CFLAGS"
7738 # Set sane defaults for various variables
7739 test -z "$CC" && CC=cc
7740 test -z "$LTCC" && LTCC=$CC
7741 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7742 test -z "$LD" && LD=ld
7743 test -z "$ac_objext" && ac_objext=o
7745 for cc_temp in $compiler""; do
7747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7753 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7756 # Only perform the check for file, if the check method requires it
7757 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7758 case $deplibs_check_method in
7760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7762 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7763 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7764 $as_echo_n "(cached) " >&6
7768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771 lt_save_MAGIC_CMD="$MAGIC_CMD"
7772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774 for ac_dir in $ac_dummy; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/${ac_tool_prefix}file; then
7778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7779 if test -n "$file_magic_test_file"; then
7780 case $deplibs_check_method in
7782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785 $EGREP "$file_magic_regex" > /dev/null; then
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such. This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem. Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** bug-libtool@gnu.org
7807 MAGIC_CMD="$lt_save_MAGIC_CMD"
7812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7825 if test -z "$lt_cv_path_MAGIC_CMD"; then
7826 if test -n "$ac_tool_prefix"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7828 $as_echo_n "checking for file... " >&6; }
7829 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7830 $as_echo_n "(cached) " >&6
7834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7837 lt_save_MAGIC_CMD="$MAGIC_CMD"
7838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840 for ac_dir in $ac_dummy; do
7842 test -z "$ac_dir" && ac_dir=.
7843 if test -f $ac_dir/file; then
7844 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7845 if test -n "$file_magic_test_file"; then
7846 case $deplibs_check_method in
7848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851 $EGREP "$file_magic_regex" > /dev/null; then
7856 *** Warning: the command libtool uses to detect shared libraries,
7857 *** $file_magic_cmd, produces output that libtool cannot recognize.
7858 *** The result is that libtool may fail to recognize shared libraries
7859 *** as such. This will affect the creation of libtool libraries that
7860 *** depend on shared libraries, but programs linked with such libtool
7861 *** libraries will work regardless of this problem. Nevertheless, you
7862 *** may want to report the problem to your system manager and/or to
7863 *** bug-libtool@gnu.org
7873 MAGIC_CMD="$lt_save_MAGIC_CMD"
7878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879 if test -n "$MAGIC_CMD"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881 $as_echo "$MAGIC_CMD" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7897 # Use C for the default configuration in the libtool script
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 # Source file extension for C test sources.
7910 # Object file extension for compiled C test sources.
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;"
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}'
7926 # If no C compiler was specified, use CC.
7929 # If no C compiler flags were specified, use CFLAGS.
7930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7932 # Allow CC to be a program name with arguments.
7935 # Save the default compiler, since it gets overwritten when the other
7936 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7937 compiler_DEFAULT=$CC
7939 # save warnings/boilerplate of simple test code
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943 _lt_compiler_boilerplate=`cat conftest.err`
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949 _lt_linker_boilerplate=`cat conftest.err`
7954 ## There is no encapsulation within the following macros, do not change
7955 ## the running order or otherwise move them around unless you know exactly
7956 ## what you are doing...
7957 if test -n "$compiler"; then
7959 lt_prog_compiler_no_builtin_flag=
7961 if test "$GCC" = yes; then
7962 case $cc_basename in
7964 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7966 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7971 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7972 $as_echo_n "(cached) " >&6
7974 lt_cv_prog_compiler_rtti_exceptions=no
7975 ac_outfile=conftest.$ac_objext
7976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977 lt_compiler_flag="-fno-rtti -fno-exceptions"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 # The option is referenced via a variable to avoid confusing sed.
7983 lt_compile=`echo "$ac_compile" | $SED \
7984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986 -e 's:$: $lt_compiler_flag:'`
7987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7988 (eval "$lt_compile" 2>conftest.err)
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 if (exit $ac_status) && test -s "$ac_outfile"; then
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings other than the usual output.
7995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998 lt_cv_prog_compiler_rtti_exceptions=yes
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8008 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8020 lt_prog_compiler_wl=
8021 lt_prog_compiler_pic=
8022 lt_prog_compiler_static=
8025 if test "$GCC" = yes; then
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_static='-static'
8031 # All AIX code is PIC.
8032 if test "$host_cpu" = ia64; then
8033 # AIX 5 now supports IA64 processor
8034 lt_prog_compiler_static='-Bstatic'
8041 # see comment about AmigaOS4 .so support
8042 lt_prog_compiler_pic='-fPIC'
8045 # FIXME: we need at least 68020 code to build shared libraries, but
8046 # adding the `-m68020' flag to GCC prevents building anything better,
8048 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8054 # PIC is the default for these OSes.
8057 mingw* | cygwin* | pw32* | os2* | cegcc*)
8058 # This hack is so that the source file can tell whether it is being
8059 # built for inclusion in a dll (and should export symbols for example).
8060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8061 # (--disable-auto-import) libraries
8062 lt_prog_compiler_pic='-DDLL_EXPORT'
8065 darwin* | rhapsody*)
8066 # PIC is the default on this platform
8067 # Common symbols not allowed in MH_DYLIB files
8068 lt_prog_compiler_pic='-fno-common'
8072 # PIC is the default for Haiku.
8073 # The "-static" flag exists, but is broken.
8074 lt_prog_compiler_static=
8078 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8079 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8080 # sets the default TLS model and affects inlining.
8086 lt_prog_compiler_pic='-fPIC'
8092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8093 # Instead, we relocate shared libraries at runtime.
8097 # Just because we use GCC doesn't mean we suddenly get shared libraries
8098 # on systems that don't support them.
8099 lt_prog_compiler_can_build_shared=no
8104 # QNX uses GNU C++, but need to define -shared option too, otherwise
8106 lt_prog_compiler_pic='-fPIC -shared'
8110 if test -d /usr/nec; then
8111 lt_prog_compiler_pic=-Kconform_pic
8116 lt_prog_compiler_pic='-fPIC'
8120 case $cc_basename in
8121 nvcc*) # Cuda Compiler Driver 2.2
8122 lt_prog_compiler_wl='-Xlinker '
8123 if test -n "$lt_prog_compiler_pic"; then
8124 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8129 # PORTME Check for flag to pass linker flags through the system compiler.
8132 lt_prog_compiler_wl='-Wl,'
8133 if test "$host_cpu" = ia64; then
8134 # AIX 5 now supports IA64 processor
8135 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8141 mingw* | cygwin* | pw32* | os2* | cegcc*)
8142 # This hack is so that the source file can tell whether it is being
8143 # built for inclusion in a dll (and should export symbols for example).
8144 lt_prog_compiler_pic='-DDLL_EXPORT'
8147 hpux9* | hpux10* | hpux11*)
8148 lt_prog_compiler_wl='-Wl,'
8149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8156 lt_prog_compiler_pic='+Z'
8159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8160 lt_prog_compiler_static='${wl}-a ${wl}archive'
8163 irix5* | irix6* | nonstopux*)
8164 lt_prog_compiler_wl='-Wl,'
8165 # PIC (with -KPIC) is the default.
8166 lt_prog_compiler_static='-non_shared'
8169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8170 case $cc_basename in
8171 # old Intel for x86_64 which still supported -KPIC.
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-static'
8177 # icc used to be incompatible with GCC.
8178 # ICC 10 doesn't accept -KPIC any more.
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-fPIC'
8182 lt_prog_compiler_static='-static'
8184 # Lahey Fortran 8.1.
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='--shared'
8188 lt_prog_compiler_static='--static'
8191 # NAG Fortran compiler
8192 lt_prog_compiler_wl='-Wl,-Wl,,'
8193 lt_prog_compiler_pic='-PIC'
8194 lt_prog_compiler_static='-Bstatic'
8196 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8197 # Portland Group compilers (*not* the Pentium gcc compiler,
8198 # which looks to be a dead project)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-fpic'
8201 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_wl='-Wl,'
8205 # All Alpha code is PIC.
8206 lt_prog_compiler_static='-non_shared'
8208 xl* | bgxl* | bgf* | mpixl*)
8209 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_pic='-qpic'
8212 lt_prog_compiler_static='-qstaticlink'
8215 case `$CC -V 2>&1 | sed 5q` in
8216 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8217 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_wl=''
8222 *Sun\ F* | *Sun*Fortran*)
8223 lt_prog_compiler_pic='-KPIC'
8224 lt_prog_compiler_static='-Bstatic'
8225 lt_prog_compiler_wl='-Qoption ld '
8229 lt_prog_compiler_pic='-KPIC'
8230 lt_prog_compiler_static='-Bstatic'
8231 lt_prog_compiler_wl='-Wl,'
8233 *Intel*\ [CF]*Compiler*)
8234 lt_prog_compiler_wl='-Wl,'
8235 lt_prog_compiler_pic='-fPIC'
8236 lt_prog_compiler_static='-static'
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_pic='-fpic'
8241 lt_prog_compiler_static='-Bstatic'
8249 lt_prog_compiler_pic='-KPIC'
8250 lt_prog_compiler_static='-Bstatic'
8254 # QNX uses GNU C++, but need to define -shared option too, otherwise
8256 lt_prog_compiler_pic='-fPIC -shared'
8259 osf3* | osf4* | osf5*)
8260 lt_prog_compiler_wl='-Wl,'
8261 # All OSF/1 code is PIC.
8262 lt_prog_compiler_static='-non_shared'
8266 lt_prog_compiler_static='-non_shared'
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8272 case $cc_basename in
8273 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8274 lt_prog_compiler_wl='-Qoption ld ';;
8276 lt_prog_compiler_wl='-Wl,';;
8281 lt_prog_compiler_wl='-Qoption ld '
8282 lt_prog_compiler_pic='-PIC'
8283 lt_prog_compiler_static='-Bstatic'
8286 sysv4 | sysv4.2uw2* | sysv4.3*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-KPIC'
8289 lt_prog_compiler_static='-Bstatic'
8293 if test -d /usr/nec ;then
8294 lt_prog_compiler_pic='-Kconform_pic'
8295 lt_prog_compiler_static='-Bstatic'
8299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_can_build_shared=no
8311 lt_prog_compiler_pic='-pic'
8312 lt_prog_compiler_static='-Bstatic'
8316 lt_prog_compiler_can_build_shared=no
8322 # For platforms which do not support PIC, -DPIC is meaningless:
8324 lt_prog_compiler_pic=
8327 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8333 if ${lt_cv_prog_compiler_pic+:} false; then :
8334 $as_echo_n "(cached) " >&6
8336 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8339 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8340 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8343 # Check to make sure the PIC flag actually works.
8345 if test -n "$lt_prog_compiler_pic"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8347 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8348 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 lt_cv_prog_compiler_pic_works=no
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8355 # Insert the option either (1) after the last *FLAGS variable, or
8356 # (2) before a word containing "conftest.", or (3) at the end.
8357 # Note that $ac_compile itself does not contain backslashes and begins
8358 # with a dollar sign (not a hyphen), so the echo should work correctly.
8359 # The option is referenced via a variable to avoid confusing sed.
8360 lt_compile=`echo "$ac_compile" | $SED \
8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363 -e 's:$: $lt_compiler_flag:'`
8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8365 (eval "$lt_compile" 2>conftest.err)
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 if (exit $ac_status) && test -s "$ac_outfile"; then
8370 # The compiler can only warn and ignore the option if not recognized
8371 # So say no if there are warnings other than the usual output.
8372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8375 lt_cv_prog_compiler_pic_works=yes
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8382 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8384 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8385 case $lt_prog_compiler_pic in
8387 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8390 lt_prog_compiler_pic=
8391 lt_prog_compiler_can_build_shared=no
8407 # Check to make sure the static flag actually works.
8409 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8412 if ${lt_cv_prog_compiler_static_works+:} false; then :
8413 $as_echo_n "(cached) " >&6
8415 lt_cv_prog_compiler_static_works=no
8416 save_LDFLAGS="$LDFLAGS"
8417 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8420 # The linker can only warn and ignore the option if not recognized
8421 # So say no if there are warnings
8422 if test -s conftest.err; then
8423 # Append any errors to the config.log.
8424 cat conftest.err 1>&5
8425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8427 if diff conftest.exp conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_static_works=yes
8431 lt_cv_prog_compiler_static_works=yes
8435 LDFLAGS="$save_LDFLAGS"
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8439 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8441 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8444 lt_prog_compiler_static=
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8454 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8455 if ${lt_cv_prog_compiler_c_o+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 lt_cv_prog_compiler_c_o=no
8459 $RM -r conftest 2>/dev/null
8463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8465 lt_compiler_flag="-o out/conftest2.$ac_objext"
8466 # Insert the option either (1) after the last *FLAGS variable, or
8467 # (2) before a word containing "conftest.", or (3) at the end.
8468 # Note that $ac_compile itself does not contain backslashes and begins
8469 # with a dollar sign (not a hyphen), so the echo should work correctly.
8470 lt_compile=`echo "$ac_compile" | $SED \
8471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473 -e 's:$: $lt_compiler_flag:'`
8474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8475 (eval "$lt_compile" 2>out/conftest.err)
8477 cat out/conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8481 # The compiler can only warn and ignore the option if not recognized
8482 # So say no if there are warnings
8483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8486 lt_cv_prog_compiler_c_o=yes
8491 # SGI C++ compiler will create directory out/ii_files/ for
8492 # template instantiation
8493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8494 $RM out/* && rmdir out
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8501 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8510 if ${lt_cv_prog_compiler_c_o+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 lt_cv_prog_compiler_c_o=no
8514 $RM -r conftest 2>/dev/null
8518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520 lt_compiler_flag="-o out/conftest2.$ac_objext"
8521 # Insert the option either (1) after the last *FLAGS variable, or
8522 # (2) before a word containing "conftest.", or (3) at the end.
8523 # Note that $ac_compile itself does not contain backslashes and begins
8524 # with a dollar sign (not a hyphen), so the echo should work correctly.
8525 lt_compile=`echo "$ac_compile" | $SED \
8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528 -e 's:$: $lt_compiler_flag:'`
8529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8530 (eval "$lt_compile" 2>out/conftest.err)
8532 cat out/conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8536 # The compiler can only warn and ignore the option if not recognized
8537 # So say no if there are warnings
8538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_c_o=yes
8546 # SGI C++ compiler will create directory out/ii_files/ for
8547 # template instantiation
8548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8549 $RM out/* && rmdir out
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8556 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8561 hard_links="nottested"
8562 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8563 # do not overwrite the value of need_locks provided by the user
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8565 $as_echo_n "checking if we can lock with hard links... " >&6; }
8568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8570 ln conftest.a conftest.b 2>&5 || hard_links=no
8571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8573 $as_echo "$hard_links" >&6; }
8574 if test "$hard_links" = no; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8576 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8592 allow_undefined_flag=
8593 always_export_symbols=no
8595 archive_expsym_cmds=
8596 compiler_needs_object=no
8597 enable_shared_with_static_runtimes=no
8598 export_dynamic_flag_spec=
8599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8600 hardcode_automatic=no
8602 hardcode_direct_absolute=no
8603 hardcode_libdir_flag_spec=
8604 hardcode_libdir_separator=
8606 hardcode_shlibpath_var=unsupported
8608 link_all_deplibs=unknown
8611 old_archive_from_new_cmds=
8612 old_archive_from_expsyms_cmds=
8613 thread_safe_flag_spec=
8614 whole_archive_flag_spec=
8615 # include_expsyms should be a list of space-separated symbols to be *always*
8616 # included in the symbol list
8618 # exclude_expsyms can be an extended regexp of symbols to exclude
8619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8621 # as well as any symbol that contains `d'.
8622 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8624 # platforms (ab)use it in PIC code, but their linkers get confused if
8625 # the symbol is explicitly referenced. Since portable code cannot
8626 # rely on this symbol name, it's probably fine to never include it in
8627 # preloaded symbol tables.
8628 # Exclude shared library initialization/finalization symbols.
8629 extract_expsyms_cmds=
8632 cygwin* | mingw* | pw32* | cegcc*)
8633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8634 # When not using gcc, we currently assume that we are using
8635 # Microsoft Visual C++.
8636 if test "$GCC" != yes; then
8641 # we just hope/assume this is gcc and not c89 (= MSVC++)
8651 # On some targets, GNU ld is compatible enough with the native linker
8652 # that we're better off using the native interface for both.
8653 lt_use_gnu_ld_interface=no
8654 if test "$with_gnu_ld" = yes; then
8657 # The AIX port of GNU ld has always aspired to compatibility
8658 # with the native linker. However, as the warning in the GNU ld
8659 # block says, versions before 2.19.5* couldn't really create working
8660 # shared libraries, regardless of the interface used.
8661 case `$LD -v 2>&1` in
8662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8663 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8664 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8666 lt_use_gnu_ld_interface=yes
8671 lt_use_gnu_ld_interface=yes
8676 if test "$lt_use_gnu_ld_interface" = yes; then
8677 # If archive_cmds runs LD, not CC, wlarc should be empty
8680 # Set some defaults for GNU ld with shared library support. These
8681 # are reset later if shared libraries are not supported. Putting them
8682 # here allows them to be overridden if necessary.
8683 runpath_var=LD_RUN_PATH
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 export_dynamic_flag_spec='${wl}--export-dynamic'
8686 # ancient GNU ld didn't support --whole-archive et. al.
8687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8688 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8690 whole_archive_flag_spec=
8692 supports_anon_versioning=no
8693 case `$LD -v 2>&1` in
8694 *GNU\ gold*) supports_anon_versioning=yes ;;
8695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8698 *\ 2.11.*) ;; # other 2.11 versions
8699 *) supports_anon_versioning=yes ;;
8702 # See if GNU ld supports shared libraries.
8705 # On AIX/PPC, the GNU linker is very broken
8706 if test "$host_cpu" != ia64; then
8710 *** Warning: the GNU linker, at least up to release 2.19, is reported
8711 *** to be unable to reliably create shared libraries on AIX.
8712 *** Therefore, libtool is disabling shared libraries support. If you
8713 *** really care for shared libraries, you may want to install binutils
8714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8715 *** You will then need to restart the configuration process.
8724 # see comment about AmigaOS4 .so support
8725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726 archive_expsym_cmds=''
8729 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)'
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 hardcode_minus_L=yes
8737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 allow_undefined_flag=unsupported
8739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8740 # support --undefined. This deserves some investigation. FIXME
8741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747 cygwin* | mingw* | pw32* | cegcc*)
8748 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8749 # as there is no search path for DLLs.
8750 hardcode_libdir_flag_spec='-L$libdir'
8751 export_dynamic_flag_spec='${wl}--export-all-symbols'
8752 allow_undefined_flag=unsupported
8753 always_export_symbols=no
8754 enable_shared_with_static_runtimes=yes
8755 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'
8756 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8760 # If the export-symbols file already is a .def file (1st line
8761 # is EXPORTS), use it as is; otherwise, prepend...
8762 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8763 cp $export_symbols $output_objdir/$soname.def;
8765 echo EXPORTS > $output_objdir/$soname.def;
8766 cat $export_symbols >> $output_objdir/$soname.def;
8768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776 link_all_deplibs=yes
8781 hardcode_shlibpath_var=no
8782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8783 export_dynamic_flag_spec='${wl}-E'
8784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8785 # Instead, shared libraries are loaded at an image base (0x10000000 by
8786 # default) and relocated if they conflict, which is a slow very memory
8787 # consuming and fragmenting process. To avoid this, we pick a random,
8788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8791 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'
8794 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8796 if test "$host_os" = linux-dietlibc; then
8797 case $cc_basename in
8798 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8801 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8802 && test "$tmp_diet" = no
8804 tmp_addflag=' $pic_flag'
8805 tmp_sharedflag='-shared'
8806 case $cc_basename,$host_cpu in
8807 pgcc*) # Portland Group C compiler
8808 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'
8809 tmp_addflag=' $pic_flag'
8811 pgf77* | pgf90* | pgf95* | pgfortran*)
8812 # Portland Group f77 and f90 compilers
8813 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'
8814 tmp_addflag=' $pic_flag -Mnomain' ;;
8815 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8816 tmp_addflag=' -i_dynamic' ;;
8817 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8818 tmp_addflag=' -i_dynamic -nofor_main' ;;
8819 ifc* | ifort*) # Intel Fortran compiler
8820 tmp_addflag=' -nofor_main' ;;
8821 lf95*) # Lahey Fortran 8.1
8822 whole_archive_flag_spec=
8823 tmp_sharedflag='--shared' ;;
8824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8825 tmp_sharedflag='-qmkshrobj'
8827 nvcc*) # Cuda Compiler Driver 2.2
8828 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'
8829 compiler_needs_object=yes
8832 case `$CC -V 2>&1 | sed 5q` in
8833 *Sun\ C*) # Sun C 5.9
8834 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'
8835 compiler_needs_object=yes
8836 tmp_sharedflag='-G' ;;
8837 *Sun\ F*) # Sun Fortran 8.3
8838 tmp_sharedflag='-G' ;;
8840 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 if test "x$supports_anon_versioning" = xyes; then
8843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8845 echo "local: *; };" >> $output_objdir/$libname.ver~
8846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8849 case $cc_basename in
8850 xlf* | bgf* | bgxlf* | mpixlf*)
8851 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8852 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8855 if test "x$supports_anon_versioning" = xyes; then
8856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858 echo "local: *; };" >> $output_objdir/$libname.ver~
8859 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8870 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8884 *** create shared libraries on Solaris systems. Therefore, libtool
8885 *** is disabling shared libraries support. We urge you to upgrade GNU
8886 *** binutils to release 2.9.1 or newer. Another option is to modify
8887 *** your PATH or compiler configuration so that the native linker is
8888 *** used, and then restart.
8891 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8900 case `$LD -v 2>&1` in
8901 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8906 *** reliably create shared libraries on SCO systems. Therefore, libtool
8907 *** is disabling shared libraries support. We urge you to upgrade GNU
8908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8909 *** your PATH or compiler configuration so that the native linker is
8910 *** used, and then restart.
8915 # For security reasons, it is highly recommended that you always
8916 # use absolute paths for naming shared libraries, and exclude the
8917 # DT_RUNPATH tag from executables and libraries. But doing so
8918 # requires that you compile everything twice, which is a pain.
8919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var=no
8938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8947 if test "$ld_shlibs" = no; then
8949 hardcode_libdir_flag_spec=
8950 export_dynamic_flag_spec=
8951 whole_archive_flag_spec=
8954 # PORTME fill in a description of your system's linker (not GNU ld)
8957 allow_undefined_flag=unsupported
8958 always_export_symbols=yes
8959 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'
8960 # Note: this linker hardcodes the directories in LIBPATH if there
8961 # are no directories specified by -L.
8962 hardcode_minus_L=yes
8963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8964 # Neither direct hardcoding nor static linking is supported with a
8966 hardcode_direct=unsupported
8971 if test "$host_cpu" = ia64; then
8972 # On IA64, the linker does run time linking by default, so we don't
8973 # have to do anything special.
8974 aix_use_runtimelinking=no
8975 exp_sym_flag='-Bexport'
8978 # If we're using GNU nm, then we don't want the "-C" option.
8979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8980 # Also, AIX nm treats weak defined symbols like other global
8981 # defined symbols, whereas GNU nm marks them as "W".
8982 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8983 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'
8985 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'
8987 aix_use_runtimelinking=no
8989 # Test if we are trying to use run time linking or normal
8990 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8991 # need to do runtime linking.
8992 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8993 for ld_flag in $LDFLAGS; do
8994 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8995 aix_use_runtimelinking=yes
9002 exp_sym_flag='-bexport'
9003 no_entry_flag='-bnoentry'
9006 # When large executables or shared objects are built, AIX ld can
9007 # have problems creating the table of contents. If linking a library
9008 # or program results in "error TOC overflow" add -mminimal-toc to
9009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9014 hardcode_direct_absolute=yes
9015 hardcode_libdir_separator=':'
9016 link_all_deplibs=yes
9017 file_list_spec='${wl}-f,'
9019 if test "$GCC" = yes; then
9020 case $host_os in aix4.[012]|aix4.[012].*)
9021 # We only want to do this on AIX 4.2 and lower, the check
9022 # below for broken collect2 doesn't work under 4.3+
9023 collect2name=`${CC} -print-prog-name=collect2`
9024 if test -f "$collect2name" &&
9025 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9027 # We have reworked collect2
9030 # We have old collect2
9031 hardcode_direct=unsupported
9032 # It fails to find uninstalled libraries when the uninstalled
9033 # path is not listed in the libpath. Setting hardcode_minus_L
9034 # to unsupported forces relinking
9035 hardcode_minus_L=yes
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_libdir_separator=
9041 shared_flag='-shared'
9042 if test "$aix_use_runtimelinking" = yes; then
9043 shared_flag="$shared_flag "'${wl}-G'
9047 if test "$host_cpu" = ia64; then
9048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9049 # chokes on -Wl,-G. The following line is correct:
9052 if test "$aix_use_runtimelinking" = yes; then
9053 shared_flag='${wl}-G'
9055 shared_flag='${wl}-bM:SRE'
9060 export_dynamic_flag_spec='${wl}-bexpall'
9061 # It seems that -bexpall does not export symbols beginning with
9062 # underscore (_), so it is better to generate a list of symbols to export.
9063 always_export_symbols=yes
9064 if test "$aix_use_runtimelinking" = yes; then
9065 # Warning - without using the other runtime loading flags (-brtl),
9066 # -berok will link without error, but may produce a broken library.
9067 allow_undefined_flag='-berok'
9068 # Determine the default libpath from the value encoded in an
9070 if test "${lt_cv_aix_libpath+set}" = set; then
9071 aix_libpath=$lt_cv_aix_libpath
9073 if ${lt_cv_aix_libpath_+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9087 if ac_fn_c_try_link "$LINENO"; then :
9089 lt_aix_libpath_sed='
9090 /Import File Strings/,/^$/ {
9092 s/^0 *\([^ ]*\) *$/\1/
9096 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9097 # Check for a 64-bit object if we didn't find anything.
9098 if test -z "$lt_cv_aix_libpath_"; then
9099 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 rm -f core conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 if test -z "$lt_cv_aix_libpath_"; then
9105 lt_cv_aix_libpath_="/usr/lib:/lib"
9110 aix_libpath=$lt_cv_aix_libpath_
9113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9114 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"
9116 if test "$host_cpu" = ia64; then
9117 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9118 allow_undefined_flag="-z nodefs"
9119 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"
9121 # Determine the default libpath from the value encoded in an
9123 if test "${lt_cv_aix_libpath+set}" = set; then
9124 aix_libpath=$lt_cv_aix_libpath
9126 if ${lt_cv_aix_libpath_+:} false; then :
9127 $as_echo_n "(cached) " >&6
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9140 if ac_fn_c_try_link "$LINENO"; then :
9142 lt_aix_libpath_sed='
9143 /Import File Strings/,/^$/ {
9145 s/^0 *\([^ ]*\) *$/\1/
9149 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150 # Check for a 64-bit object if we didn't find anything.
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 if test -z "$lt_cv_aix_libpath_"; then
9158 lt_cv_aix_libpath_="/usr/lib:/lib"
9163 aix_libpath=$lt_cv_aix_libpath_
9166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9167 # Warning - without using the other run time loading flags,
9168 # -berok will link without error, but may produce a broken library.
9169 no_undefined_flag=' ${wl}-bernotok'
9170 allow_undefined_flag=' ${wl}-berok'
9171 if test "$with_gnu_ld" = yes; then
9172 # We only use this code for GNU lds that support --whole-archive.
9173 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9175 # Exported symbols can be pulled into shared objects from archives
9176 whole_archive_flag_spec='$convenience'
9178 archive_cmds_need_lc=yes
9179 # This is similar to how AIX traditionally builds its shared libraries.
9180 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'
9188 # see comment about AmigaOS4 .so support
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 archive_expsym_cmds=''
9193 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)'
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 hardcode_minus_L=yes
9201 export_dynamic_flag_spec=-rdynamic
9204 cygwin* | mingw* | pw32* | cegcc*)
9205 # When not using gcc, we currently assume that we are using
9206 # Microsoft Visual C++.
9207 # hardcode_libdir_flag_spec is actually meaningless, as there is
9208 # no search path for DLLs.
9209 case $cc_basename in
9212 hardcode_libdir_flag_spec=' '
9213 allow_undefined_flag=unsupported
9214 always_export_symbols=yes
9216 # Tell ltmain to make .lib files, not .a files.
9218 # Tell ltmain to make .dll files, not .so files.
9220 # FIXME: Setting linknames here is a bad hack.
9221 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9225 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9227 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9229 # The linker will not automatically build a static lib if we build a DLL.
9230 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9231 enable_shared_with_static_runtimes=yes
9232 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9235 old_postinstall_cmds='chmod 644 $oldlib'
9236 postlink_cmds='lt_outputfile="@OUTPUT@"~
9237 lt_tool_outputfile="@TOOL_OUTPUT@"~
9238 case $lt_outputfile in
9241 lt_outputfile="$lt_outputfile.exe"
9242 lt_tool_outputfile="$lt_tool_outputfile.exe"
9245 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9246 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9247 $RM "$lt_outputfile.manifest";
9251 # Assume MSVC wrapper
9252 hardcode_libdir_flag_spec=' '
9253 allow_undefined_flag=unsupported
9254 # Tell ltmain to make .lib files, not .a files.
9256 # Tell ltmain to make .dll files, not .so files.
9258 # FIXME: Setting linknames here is a bad hack.
9259 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9260 # The linker will automatically build a .lib file if we build a DLL.
9261 old_archive_from_new_cmds='true'
9262 # FIXME: Should let the user specify the lib program.
9263 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9264 enable_shared_with_static_runtimes=yes
9269 darwin* | rhapsody*)
9272 archive_cmds_need_lc=no
9274 hardcode_automatic=yes
9275 hardcode_shlibpath_var=unsupported
9276 if test "$lt_cv_ld_force_load" = "yes"; then
9277 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\"`'
9280 whole_archive_flag_spec=''
9282 link_all_deplibs=yes
9283 allow_undefined_flag="$_lt_dar_allow_undefined"
9284 case $cc_basename in
9285 ifort*) _lt_dar_can_shared=yes ;;
9286 *) _lt_dar_can_shared=$GCC ;;
9288 if test "$_lt_dar_can_shared" = "yes"; then
9289 output_verbose_link_cmd=func_echo_all
9290 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9291 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9292 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}"
9293 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}"
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_shlibpath_var=no
9307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9308 # support. Future versions do this automatically, but an explicit c++rt0.o
9309 # does not break anything, and helps significantly (at the cost of a little
9312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9313 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_shlibpath_var=no
9318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_minus_L=yes
9323 hardcode_shlibpath_var=no
9326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9327 freebsd* | dragonfly*)
9328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_shlibpath_var=no
9335 if test "$GCC" = yes; then
9336 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'
9338 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'
9340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9341 hardcode_libdir_separator=:
9344 # hardcode_minus_L: Not really in the search PATH,
9345 # but as the default location of the library.
9346 hardcode_minus_L=yes
9347 export_dynamic_flag_spec='${wl}-E'
9351 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9352 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9356 if test "$with_gnu_ld" = no; then
9357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358 hardcode_libdir_separator=:
9360 hardcode_direct_absolute=yes
9361 export_dynamic_flag_spec='${wl}-E'
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L=yes
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9391 # Older versions of the 11.00 compiler do not understand -b yet
9392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394 $as_echo_n "checking if $CC understands -b... " >&6; }
9395 if ${lt_cv_prog_compiler__b+:} false; then :
9396 $as_echo_n "(cached) " >&6
9398 lt_cv_prog_compiler__b=no
9399 save_LDFLAGS="$LDFLAGS"
9400 LDFLAGS="$LDFLAGS -b"
9401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403 # The linker can only warn and ignore the option if not recognized
9404 # So say no if there are warnings
9405 if test -s conftest.err; then
9406 # Append any errors to the config.log.
9407 cat conftest.err 1>&5
9408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410 if diff conftest.exp conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler__b=yes
9414 lt_cv_prog_compiler__b=yes
9418 LDFLAGS="$save_LDFLAGS"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9424 if test x"$lt_cv_prog_compiler__b" = xyes; then
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9433 if test "$with_gnu_ld" = no; then
9434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435 hardcode_libdir_separator=:
9440 hardcode_shlibpath_var=no
9444 hardcode_direct_absolute=yes
9445 export_dynamic_flag_spec='${wl}-E'
9447 # hardcode_minus_L: Not really in the search PATH,
9448 # but as the default location of the library.
9449 hardcode_minus_L=yes
9455 irix5* | irix6* | nonstopux*)
9456 if test "$GCC" = yes; then
9457 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'
9458 # Try to use the -exported_symbol ld option, if it does not
9459 # work, assume that -exports_file does not work either and
9460 # implicitly export all symbols.
9461 # This should be the same for all languages, so no per-tag cache variable.
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9463 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9464 if ${lt_cv_irix_exported_symbol+:} false; then :
9465 $as_echo_n "(cached) " >&6
9467 save_LDFLAGS="$LDFLAGS"
9468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int foo (void) { return 0; }
9473 if ac_fn_c_try_link "$LINENO"; then :
9474 lt_cv_irix_exported_symbol=yes
9476 lt_cv_irix_exported_symbol=no
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 LDFLAGS="$save_LDFLAGS"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9483 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9484 if test "$lt_cv_irix_exported_symbol" = yes; then
9485 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'
9488 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'
9489 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'
9491 archive_cmds_need_lc='no'
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 hardcode_libdir_separator=:
9495 link_all_deplibs=yes
9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9502 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9504 hardcode_libdir_flag_spec='-R$libdir'
9506 hardcode_shlibpath_var=no
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 hardcode_libdir_separator=:
9514 hardcode_shlibpath_var=no
9521 if test -f /usr/libexec/ld.so; then
9523 hardcode_shlibpath_var=no
9524 hardcode_direct_absolute=yes
9525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9529 export_dynamic_flag_spec='${wl}-E'
9532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_libdir_flag_spec='-R$libdir'
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548 hardcode_libdir_flag_spec='-L$libdir'
9549 hardcode_minus_L=yes
9550 allow_undefined_flag=unsupported
9551 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'
9552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558 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'
9560 allow_undefined_flag=' -expect_unresolved \*'
9561 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'
9563 archive_cmds_need_lc='no'
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9568 osf4* | osf5*) # as osf3* with the addition of -msym flag
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 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'
9572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574 allow_undefined_flag=' -expect_unresolved \*'
9575 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'
9576 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~
9577 $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'
9579 # Both c and cxx compiler support -rpath directly
9580 hardcode_libdir_flag_spec='-rpath $libdir'
9582 archive_cmds_need_lc='no'
9583 hardcode_libdir_separator=:
9587 no_undefined_flag=' -z defs'
9588 if test "$GCC" = yes; then
9590 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592 $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'
9594 case `$CC -V 2>&1` in
9597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9603 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9609 hardcode_libdir_flag_spec='-R$libdir'
9610 hardcode_shlibpath_var=no
9612 solaris2.[0-5] | solaris2.[0-5].*) ;;
9614 # The compiler driver will combine and reorder linker options,
9615 # but understands `-z linker_flag'. GCC discards it without `$wl',
9616 # but is careful enough not to reorder.
9617 # Supported since Solaris 2.6 (maybe 2.5.1?)
9618 if test "$GCC" = yes; then
9619 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9625 link_all_deplibs=yes
9629 if test "x$host_vendor" = xsequent; then
9630 # Use $CC to link under sequent, because it throws in some extra .o
9631 # files that make .init and .fini sections work.
9632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_libdir_flag_spec='-L$libdir'
9638 hardcode_minus_L=yes
9639 hardcode_shlibpath_var=no
9643 case $host_vendor in
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_direct=yes # is this really true???
9649 ## LD is ld it makes a PLAMLIB
9650 ## CC just makes a GrossModule.
9651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9652 reload_cmds='$CC -r -o $output$reload_objs'
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9660 runpath_var='LD_RUN_PATH'
9661 hardcode_shlibpath_var=no
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_shlibpath_var=no
9667 export_dynamic_flag_spec='-Bexport'
9671 if test -d /usr/nec; then
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_shlibpath_var=no
9674 runpath_var=LD_RUN_PATH
9675 hardcode_runpath_var=yes
9680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9681 no_undefined_flag='${wl}-z,text'
9682 archive_cmds_need_lc=no
9683 hardcode_shlibpath_var=no
9684 runpath_var='LD_RUN_PATH'
9686 if test "$GCC" = yes; then
9687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 sysv5* | sco3.2v5* | sco5v6*)
9696 # Note: We can NOT use -z defs as we might desire, because we do not
9697 # link with -lc, and that would cause any symbols used from libc to
9698 # always be unresolved, which means just about no library would
9699 # ever link correctly. If we're not using GNU ld we use -z text
9700 # though, which does catch some bad symbols but isn't as heavy-handed
9702 no_undefined_flag='${wl}-z,text'
9703 allow_undefined_flag='${wl}-z,nodefs'
9704 archive_cmds_need_lc=no
9705 hardcode_shlibpath_var=no
9706 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9707 hardcode_libdir_separator=':'
9708 link_all_deplibs=yes
9709 export_dynamic_flag_spec='${wl}-Bexport'
9710 runpath_var='LD_RUN_PATH'
9712 if test "$GCC" = yes; then
9713 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_shlibpath_var=no
9732 if test x$host_vendor = xsni; then
9734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9735 export_dynamic_flag_spec='${wl}-Blargedynsym'
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9742 $as_echo "$ld_shlibs" >&6; }
9743 test "$ld_shlibs" = no && can_build_shared=no
9745 with_gnu_ld=$with_gnu_ld
9762 # Do we need to explicitly link libc?
9764 case "x$archive_cmds_need_lc" in
9766 # Assume -lc should be added
9767 archive_cmds_need_lc=yes
9769 if test "$enable_shared" = yes && test "$GCC" = yes; then
9770 case $archive_cmds in
9772 # FIXME: we may have to deal with multi-command sequences.
9775 # Test whether the compiler implicitly links with -lc since on some
9776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9777 # to ld, don't add -lc before -lgcc.
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9780 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9781 $as_echo_n "(cached) " >&6
9784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9787 (eval $ac_compile) 2>&5
9789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790 test $ac_status = 0; } 2>conftest.err; then
9793 libobjs=conftest.$ac_objext
9795 wl=$lt_prog_compiler_wl
9796 pic_flag=$lt_prog_compiler_pic
9802 lt_save_allow_undefined_flag=$allow_undefined_flag
9803 allow_undefined_flag=
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9805 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }
9810 lt_cv_archive_cmds_need_lc=no
9812 lt_cv_archive_cmds_need_lc=yes
9814 allow_undefined_flag=$lt_save_allow_undefined_flag
9816 cat conftest.err 1>&5
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9823 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9984 if test "$GCC" = yes; then
9986 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987 *) lt_awk_arg="/^libraries:/" ;;
9990 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9991 *) lt_sed_strip_eq="s,=/,/,g" ;;
9993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9994 case $lt_search_path_spec in
9996 # if the path contains ";" then we assume it to be the separator
9997 # otherwise default to the standard path separator (i.e. ":") - it is
9998 # assumed that no part of a normal pathname contains ";" but that should
9999 # okay in the real world where ";" in dirpaths is itself problematic.
10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10006 # Ok, now we have the path, separated by spaces, we can step through it
10007 # and add multilib dir if necessary.
10008 lt_tmp_lt_search_path_spec=
10009 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10010 for lt_sys_path in $lt_search_path_spec; do
10011 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10014 test -d "$lt_sys_path" && \
10015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10018 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10019 BEGIN {RS=" "; FS="/|\n";} {
10022 for (lt_i = NF; lt_i > 0; lt_i--) {
10023 if ($lt_i != "" && $lt_i != ".") {
10024 if ($lt_i == "..") {
10027 if (lt_count == 0) {
10028 lt_foo="/" $lt_i lt_foo;
10035 if (lt_foo != "") { lt_freq[lt_foo]++; }
10036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10038 # AWK program above erroneously prepends '/' to C:/dos/paths
10041 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10042 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10044 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10048 library_names_spec=
10049 libname_spec='lib$name'
10053 postuninstall_cmds=
10057 shlibpath_overrides_runpath=unknown
10059 dynamic_linker="$host_os ld.so"
10060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10061 need_lib_prefix=unknown
10062 hardcode_into_libs=no
10064 # when you set need_version to no, make sure it does not cause -set_version
10065 # flags to be left without arguments
10066 need_version=unknown
10070 version_type=linux # correct to gnu/linux during the next big refactor
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10072 shlibpath_var=LIBPATH
10074 # AIX 3 has no versioning support, so we append a major version to the name.
10075 soname_spec='${libname}${release}${shared_ext}$major'
10079 version_type=linux # correct to gnu/linux during the next big refactor
10082 hardcode_into_libs=yes
10083 if test "$host_cpu" = ia64; then
10084 # AIX 5 supports IA64
10085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10086 shlibpath_var=LD_LIBRARY_PATH
10088 # With GCC up to 2.95.x, collect2 would create an import file
10089 # for dependence libraries. The import file would start with
10090 # the line `#! .'. This would cause the generated library to
10091 # depend on `.', always an invalid library. This was fixed in
10092 # development snapshots of GCC prior to 3.0.
10094 aix4 | aix4.[01] | aix4.[01].*)
10095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10097 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10100 can_build_shared=no
10104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10105 # soname into executable. Probably we can add versioning support to
10106 # collect2, so additional links can be useful in future.
10107 if test "$aix_use_runtimelinking" = yes; then
10108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10109 # instead of lib<name>.a to let people know that these are not
10110 # typical AIX shared libraries.
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 # We preserve .a as extension for shared libraries through AIX4.2
10114 # and later when we are not doing run time linking.
10115 library_names_spec='${libname}${release}.a $libname.a'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10118 shlibpath_var=LIBPATH
10125 # Since July 2007 AmigaOS4 officially supports .so libraries.
10126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 library_names_spec='$libname.ixlibrary $libname.a'
10131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10132 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'
10138 library_names_spec='${libname}${shared_ext}'
10139 dynamic_linker="$host_os ld.so"
10140 shlibpath_var=LIBRARY_PATH
10144 version_type=linux # correct to gnu/linux during the next big refactor
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10152 # the default ld.so.conf also contains /usr/contrib/lib and
10153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10154 # libtool to hard-code these into programs
10157 cygwin* | mingw* | pw32* | cegcc*)
10158 version_type=windows
10163 case $GCC,$cc_basename in
10166 library_names_spec='$libname.dll.a'
10167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168 postinstall_cmds='base_file=`basename \${file}`~
10169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170 dldir=$destdir/`dirname \$dlpath`~
10171 test -d \$dldir || mkdir -p \$dldir~
10172 $install_prog $dir/$dlname \$dldir/$dlname~
10173 chmod a+x \$dldir/$dlname~
10174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10178 dlpath=$dir/\$dldll~
10180 shlibpath_overrides_runpath=yes
10184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10190 # MinGW DLLs use traditional 'lib' prefix
10191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10194 # pw32 DLLs use 'pw' prefix rather than 'lib'
10195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198 dynamic_linker='Win32 ld.exe'
10203 libname_spec='$name'
10204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 library_names_spec='${libname}.dll.lib'
10209 sys_lib_search_path_spec=
10212 for lt_path in $LIB
10215 # Let DOS variable expansion print the short 8.3 style file name.
10216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10220 # Convert to MSYS style.
10221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10224 # Convert to unix form, then to dos form, then back to unix form
10225 # but this time dos style (no spaces!) so that the unix form looks
10226 # like /cygdrive/c/PROGRA~1:/cygdr...
10227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10232 sys_lib_search_path_spec="$LIB"
10233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10234 # It is most probably a Windows format PATH.
10235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10239 # FIXME: find the short name or the path components, as spaces are
10240 # common. (e.g. "Program Files" -> "PROGRA~1")
10244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10245 postinstall_cmds='base_file=`basename \${file}`~
10246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10247 dldir=$destdir/`dirname \$dlpath`~
10248 test -d \$dldir || mkdir -p \$dldir~
10249 $install_prog $dir/$dlname \$dldir/$dlname'
10250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10251 dlpath=$dir/\$dldll~
10253 shlibpath_overrides_runpath=yes
10254 dynamic_linker='Win32 link.exe'
10258 # Assume MSVC wrapper
10259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260 dynamic_linker='Win32 ld.exe'
10263 # FIXME: first we should search . and the directory the executable is in
10267 darwin* | rhapsody*)
10268 dynamic_linker="$host_os dyld"
10269 version_type=darwin
10272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10273 soname_spec='${libname}${release}${major}$shared_ext'
10274 shlibpath_overrides_runpath=yes
10275 shlibpath_var=DYLD_LIBRARY_PATH
10276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10283 version_type=linux # correct to gnu/linux during the next big refactor
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10291 freebsd* | dragonfly*)
10292 # DragonFly does not have aout. When/if they implement a new
10293 # versioning mechanism, adjust this.
10294 if test -x /usr/bin/objformat; then
10295 objformat=`/usr/bin/objformat`
10298 freebsd[23].*) objformat=aout ;;
10299 *) objformat=elf ;;
10302 version_type=freebsd-$objformat
10303 case $version_type in
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10314 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10319 freebsd3.[01]* | freebsdelf3.[01]*)
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10328 *) # from 4.6 on, and DragonFly
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10336 version_type=linux # correct to gnu/linux during the next big refactor
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10347 version_type=linux # correct to gnu/linux during the next big refactor
10350 dynamic_linker="$host_os runtime_loader"
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10356 hardcode_into_libs=yes
10359 hpux9* | hpux10* | hpux11*)
10360 # Give a soname corresponding to the major version so that dld.sl refuses to
10361 # link against other versions.
10368 hardcode_into_libs=yes
10369 dynamic_linker="$host_os dld.so"
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 if test "X$HPUX_IA64_MODE" = X32; then
10375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10383 hardcode_into_libs=yes
10384 dynamic_linker="$host_os dld.sl"
10385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10394 dynamic_linker="$host_os dld.sl"
10395 shlibpath_var=SHLIB_PATH
10396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10401 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10402 postinstall_cmds='chmod 555 $lib'
10403 # or fails outright, so override atomically:
10404 install_override_mode=555
10408 version_type=linux # correct to gnu/linux during the next big refactor
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=no
10416 hardcode_into_libs=yes
10419 irix5* | irix6* | nonstopux*)
10421 nonstopux*) version_type=nonstopux ;;
10423 if test "$lt_cv_prog_gnu_ld" = yes; then
10424 version_type=linux # correct to gnu/linux during the next big refactor
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10434 irix5* | nonstopux*)
10435 libsuff= shlibsuff=
10438 case $LD in # libtool.m4 will add one of these switches to LD
10439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10440 libsuff= shlibsuff= libmagic=32-bit;;
10441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10442 libsuff=32 shlibsuff=N32 libmagic=N32;;
10443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10445 *) libsuff= shlibsuff= libmagic=never-match;;
10449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10450 shlibpath_overrides_runpath=no
10451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10453 hardcode_into_libs=yes
10456 # No shared lib support for Linux oldld, aout, or coff.
10457 linux*oldld* | linux*aout* | linux*coff*)
10461 # This must be glibc/ELF.
10462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10463 version_type=linux # correct to gnu/linux during the next big refactor
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=no
10472 # Some binutils ld are patched to set DT_RUNPATH
10473 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10474 $as_echo_n "(cached) " >&6
10476 lt_cv_shlibpath_overrides_runpath=no
10477 save_LDFLAGS=$LDFLAGS
10478 save_libdir=$libdir
10479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10494 lt_cv_shlibpath_overrides_runpath=yes
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LDFLAGS=$save_LDFLAGS
10500 libdir=$save_libdir
10504 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10506 # This implies no fast_install, which is unacceptable.
10507 # Some rework will be needed to allow for fast_install
10508 # before this can be enabled.
10509 hardcode_into_libs=yes
10511 # Append ld.so.conf contents to the search path
10512 if test -f /etc/ld.so.conf; then
10513 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' ' '`
10514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10517 # We used to test for /lib/ld.so.1 and disable shared libraries on
10518 # powerpc, because MkLinux only supported shared libraries with the
10519 # GNU dynamic linker. Since this was broken with cross compilers,
10520 # most powerpc-linux boxes support dynamic linking these days and
10521 # people can always --disable-shared, the test was removed, and we
10522 # assume the GNU/Linux dynamic linker is in use.
10523 dynamic_linker='GNU/Linux ld.so'
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533 dynamic_linker='NetBSD (a.out) ld.so'
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 dynamic_linker='NetBSD ld.elf_so'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=yes
10541 hardcode_into_libs=yes
10545 version_type=linux # correct to gnu/linux during the next big refactor
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 dynamic_linker='ldqnx.so'
10565 sys_lib_dlsearch_path_spec="/usr/lib"
10567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10569 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10570 *) need_version=no ;;
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10577 openbsd2.[89] | openbsd2.[89].*)
10578 shlibpath_overrides_runpath=no
10581 shlibpath_overrides_runpath=yes
10585 shlibpath_overrides_runpath=yes
10590 libname_spec='$name'
10593 library_names_spec='$libname${shared_ext} $libname.a'
10594 dynamic_linker='OS/2 ld.exe'
10595 shlibpath_var=LIBPATH
10598 osf3* | osf4* | osf5*)
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10614 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 shlibpath_overrides_runpath=yes
10621 hardcode_into_libs=yes
10622 # ldd complains unless libraries are executable
10623 postinstall_cmds='chmod +x $lib'
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 if test "$with_gnu_ld" = yes; then
10639 version_type=linux # correct to gnu/linux during the next big refactor
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 case $host_vendor in
10645 shlibpath_overrides_runpath=no
10647 runpath_var=LD_RUN_PATH
10655 shlibpath_overrides_runpath=no
10656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10662 if test -d /usr/nec ;then
10663 version_type=linux # correct to gnu/linux during the next big refactor
10664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10665 soname_spec='$libname${shared_ext}.$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671 version_type=freebsd-elf
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=yes
10678 hardcode_into_libs=yes
10679 if test "$with_gnu_ld" = yes; then
10680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10689 sys_lib_dlsearch_path_spec='/usr/lib'
10693 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10694 version_type=linux # correct to gnu/linux during the next big refactor
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10715 $as_echo "$dynamic_linker" >&6; }
10716 test "$dynamic_linker" = no && can_build_shared=no
10718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10719 if test "$GCC" = yes; then
10720 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10724 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10727 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10824 if test -n "$hardcode_libdir_flag_spec" ||
10825 test -n "$runpath_var" ||
10826 test "X$hardcode_automatic" = "Xyes" ; then
10828 # We can hardcode non-existent directories.
10829 if test "$hardcode_direct" != no &&
10830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10831 # have to relink, otherwise we might link with an installed library
10832 # when we should be linking with a yet-to-be-installed one
10833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10834 test "$hardcode_minus_L" != no; then
10835 # Linking always hardcodes the temporary library directory.
10836 hardcode_action=relink
10838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10839 hardcode_action=immediate
10842 # We cannot hardcode anything, or else we can only hardcode existing
10844 hardcode_action=unsupported
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10847 $as_echo "$hardcode_action" >&6; }
10849 if test "$hardcode_action" = relink ||
10850 test "$inherit_rpath" = yes; then
10851 # Fast installation is not supported
10852 enable_fast_install=no
10853 elif test "$shlibpath_overrides_runpath" = yes ||
10854 test "$enable_shared" = no; then
10855 # Fast installation is not necessary
10856 enable_fast_install=needless
10864 if test "x$enable_dlopen" != xyes; then
10865 enable_dlopen=unknown
10866 enable_dlopen_self=unknown
10867 enable_dlopen_self_static=unknown
10874 lt_cv_dlopen="load_add_on"
10876 lt_cv_dlopen_self=yes
10879 mingw* | pw32* | cegcc*)
10880 lt_cv_dlopen="LoadLibrary"
10885 lt_cv_dlopen="dlopen"
10890 # if libdl is installed we need to link against it
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10893 if ${ac_cv_lib_dl_dlopen+:} false; then :
10894 $as_echo_n "(cached) " >&6
10896 ac_check_lib_save_LIBS=$LIBS
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_dl_dlopen=yes
10919 ac_cv_lib_dl_dlopen=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10927 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931 lt_cv_dlopen="dyld"
10933 lt_cv_dlopen_self=yes
10940 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10941 if test "x$ac_cv_func_shl_load" = xyes; then :
10942 lt_cv_dlopen="shl_load"
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10946 if ${ac_cv_lib_dld_shl_load+:} false; then :
10947 $as_echo_n "(cached) " >&6
10949 ac_check_lib_save_LIBS=$LIBS
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10964 return shl_load ();
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dld_shl_load=yes
10972 ac_cv_lib_dld_shl_load=no
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10980 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10984 if test "x$ac_cv_func_dlopen" = xyes; then :
10985 lt_cv_dlopen="dlopen"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if ${ac_cv_lib_dl_dlopen+:} false; then :
10990 $as_echo_n "(cached) " >&6
10992 ac_check_lib_save_LIBS=$LIBS
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_dl_dlopen=yes
11015 ac_cv_lib_dl_dlopen=no
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if ${ac_cv_lib_svld_dlopen+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lsvld $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_svld_dlopen=yes
11054 ac_cv_lib_svld_dlopen=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11062 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11067 if ${ac_cv_lib_dld_dld_link+:} false; then :
11068 $as_echo_n "(cached) " >&6
11070 ac_check_lib_save_LIBS=$LIBS
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11085 return dld_link ();
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_dld_dld_link=yes
11093 ac_cv_lib_dld_dld_link=no
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11101 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11123 if test "x$lt_cv_dlopen" != xno; then
11129 case $lt_cv_dlopen in
11131 save_CPPFLAGS="$CPPFLAGS"
11132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11134 save_LDFLAGS="$LDFLAGS"
11135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11138 LIBS="$lt_cv_dlopen_libs $LIBS"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11142 if ${lt_cv_dlopen_self+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 if test "$cross_compiling" = yes; then :
11146 lt_cv_dlopen_self=cross
11148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149 lt_status=$lt_dlunknown
11150 cat > conftest.$ac_ext <<_LT_EOF
11151 #line $LINENO "configure"
11152 #include "confdefs.h"
11161 # define LT_DLGLOBAL RTLD_GLOBAL
11164 # define LT_DLGLOBAL DL_GLOBAL
11166 # define LT_DLGLOBAL 0
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171 find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11177 # define LT_DLLAZY_OR_NOW DL_LAZY
11180 # define LT_DLLAZY_OR_NOW RTLD_NOW
11183 # define LT_DLLAZY_OR_NOW DL_NOW
11185 # define LT_DLLAZY_OR_NOW 0
11192 /* When -fvisbility=hidden is used, assume the code has been annotated
11193 correspondingly for the symbols needed. */
11194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195 int fnord () __attribute__((visibility("default")));
11198 int fnord () { return 42; }
11201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202 int status = $lt_dlunknown;
11206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11210 else puts (dlerror ());
11212 /* dlclose (self); */
11220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221 (eval $ac_link) 2>&5
11223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11225 (./conftest; exit; ) >&5 2>/dev/null
11227 case x$lt_status in
11228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11233 # compilation failed
11234 lt_cv_dlopen_self=no
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11242 $as_echo "$lt_cv_dlopen_self" >&6; }
11244 if test "x$lt_cv_dlopen_self" = xyes; then
11245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11248 if ${lt_cv_dlopen_self_static+:} false; then :
11249 $as_echo_n "(cached) " >&6
11251 if test "$cross_compiling" = yes; then :
11252 lt_cv_dlopen_self_static=cross
11254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11255 lt_status=$lt_dlunknown
11256 cat > conftest.$ac_ext <<_LT_EOF
11257 #line $LINENO "configure"
11258 #include "confdefs.h"
11267 # define LT_DLGLOBAL RTLD_GLOBAL
11270 # define LT_DLGLOBAL DL_GLOBAL
11272 # define LT_DLGLOBAL 0
11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277 find out it does not work in some platform. */
11278 #ifndef LT_DLLAZY_OR_NOW
11280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11283 # define LT_DLLAZY_OR_NOW DL_LAZY
11286 # define LT_DLLAZY_OR_NOW RTLD_NOW
11289 # define LT_DLLAZY_OR_NOW DL_NOW
11291 # define LT_DLLAZY_OR_NOW 0
11298 /* When -fvisbility=hidden is used, assume the code has been annotated
11299 correspondingly for the symbols needed. */
11300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301 int fnord () __attribute__((visibility("default")));
11304 int fnord () { return 42; }
11307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308 int status = $lt_dlunknown;
11312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11316 else puts (dlerror ());
11318 /* dlclose (self); */
11326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327 (eval $ac_link) 2>&5
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11331 (./conftest; exit; ) >&5 2>/dev/null
11333 case x$lt_status in
11334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11336 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11339 # compilation failed
11340 lt_cv_dlopen_self_static=no
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11351 CPPFLAGS="$save_CPPFLAGS"
11352 LDFLAGS="$save_LDFLAGS"
11357 case $lt_cv_dlopen_self in
11358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11359 *) enable_dlopen_self=unknown ;;
11362 case $lt_cv_dlopen_self_static in
11363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11364 *) enable_dlopen_self_static=unknown ;;
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11388 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11394 # FIXME - insert some real tests, host_os isn't really good enough
11397 if test -n "$STRIP" ; then
11398 striplib="$STRIP -x"
11399 old_striplib="$STRIP -S"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11425 # Report which library types will actually be built
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11429 $as_echo "$can_build_shared" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11432 $as_echo_n "checking whether to build shared libraries... " >&6; }
11433 test "$can_build_shared" = "no" && enable_shared=no
11435 # On AIX, shared libraries and static libraries use the same namespace, and
11436 # are all built from PIC.
11439 test "$enable_shared" = yes && enable_static=no
11440 if test -n "$RANLIB"; then
11441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11442 postinstall_cmds='$RANLIB $lib'
11447 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11448 test "$enable_shared" = yes && enable_static=no
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11453 $as_echo "$enable_shared" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11456 $as_echo_n "checking whether to build static libraries... " >&6; }
11457 # Make sure either enable_shared or enable_static is yes.
11458 test "$enable_shared" = yes || enable_static=yes
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11460 $as_echo "$enable_static" >&6; }
11467 ac_cpp='$CPP $CPPFLAGS'
11468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11488 ac_config_commands="$ac_config_commands libtool"
11493 # Only expand once:
11499 test "X$enable_static" = Xyes && STATIC="-static"
11503 ## ---------------------------- ##
11504 ## Libraries required by mdemo. ##
11505 ## ---------------------------- ##
11508 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11509 # These system don't have libm, or don't need it
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11513 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11514 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS=$LIBS
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11528 char _mwvalidcheckl ();
11532 return _mwvalidcheckl ();
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_mw__mwvalidcheckl=yes
11540 ac_cv_lib_mw__mwvalidcheckl=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11547 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11548 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11553 $as_echo_n "checking for cos in -lm... " >&6; }
11554 if ${ac_cv_lib_m_cos+:} false; then :
11555 $as_echo_n "(cached) " >&6
11557 ac_check_lib_save_LIBS=$LIBS
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_m_cos=yes
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11587 $as_echo "$ac_cv_lib_m_cos" >&6; }
11588 if test "x$ac_cv_lib_m_cos" = xyes; then :
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11595 $as_echo_n "checking for cos in -lm... " >&6; }
11596 if ${ac_cv_lib_m_cos+:} false; then :
11597 $as_echo_n "(cached) " >&6
11599 ac_check_lib_save_LIBS=$LIBS
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_m_cos=yes
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11629 $as_echo "$ac_cv_lib_m_cos" >&6; }
11630 if test "x$ac_cv_lib_m_cos" = xyes; then :
11643 ac_config_files="$ac_config_files Makefile"
11645 cat >confcache <<\_ACEOF
11646 # This file is a shell script that caches the results of configure
11647 # tests run on this system so they can be shared between configure
11648 # scripts and configure runs, see configure's option --config-cache.
11649 # It is not useful on other systems. If it contains results you don't
11650 # want to keep, you may remove or edit it.
11652 # config.status only pays attention to the cache file if you give it
11653 # the --recheck option to rerun configure.
11655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11657 # following values.
11661 # The following way of writing the cache mishandles newlines in values,
11662 # but we know of no workaround that is simple, portable, and efficient.
11663 # So, we kill variables containing newlines.
11664 # Ultrix sh set writes to stderr and can't be redirected directly,
11665 # and sets the high bit in the cache file unless we assign to the vars.
11667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11668 eval ac_val=\$$ac_var
11672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11676 _ | IFS | as_nl) ;; #(
11677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11678 *) { eval $ac_var=; unset $ac_var;} ;;
11684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11685 *${as_nl}ac_space=\ *)
11686 # `set' does not quote correctly, so add quotes: double-quote
11687 # substitution turns \\\\ into \\, and sed turns \\ into \.
11690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11693 # `set' quotes correctly as required by POSIX, so do not add quotes.
11694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11708 if test -w "$cache_file"; then
11709 if test "x$cache_file" != "x/dev/null"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11711 $as_echo "$as_me: updating cache $cache_file" >&6;}
11712 if test ! -f "$cache_file" || test -h "$cache_file"; then
11713 cat confcache >"$cache_file"
11715 case $cache_file in #(
11717 mv -f confcache "$cache_file"$$ &&
11718 mv -f "$cache_file"$$ "$cache_file" ;; #(
11720 mv -f confcache "$cache_file" ;;
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11732 # Let make expand exec_prefix.
11733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11735 # Transform confdefs.h into DEFS.
11736 # Protect against shell expansion while executing Makefile rules.
11737 # Protect against Makefile macro expansion.
11739 # If the first sed substitution is executed (which looks for macros that
11740 # take arguments), then branch to the quote section. Otherwise,
11741 # look for a macro that doesn't take arguments.
11751 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11753 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11757 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11770 DEFS=`sed -n "$ac_script" confdefs.h`
11776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11777 # 1. Remove the extension, and $U if already installed.
11778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11779 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11781 # will be set to the directory where LIBOBJS objects are built.
11782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11785 LIBOBJS=$ac_libobjs
11787 LTLIBOBJS=$ac_ltlibobjs
11790 if test -n "$EXEEXT"; then
11792 am__EXEEXT_FALSE='#'
11794 am__EXEEXT_TRUE='#'
11798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11799 as_fn_error $? "conditional \"AMDEP\" was never defined.
11800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11807 : "${CONFIG_STATUS=./config.status}"
11809 ac_clean_files_save=$ac_clean_files
11810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11812 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11814 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11816 # Generated by $as_me.
11817 # Run this file to recreate the current configuration.
11818 # Compiler output produced by configure, useful for debugging
11819 # configure, is in config.log if it exists.
11822 ac_cs_recheck=false
11825 SHELL=\${CONFIG_SHELL-$SHELL}
11828 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11829 ## -------------------- ##
11830 ## M4sh Initialization. ##
11831 ## -------------------- ##
11833 # Be more Bourne compatible
11834 DUALCASE=1; export DUALCASE # for MKS sh
11835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11838 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11839 # is contrary to our usage. Disable this feature.
11840 alias -g '${1+"$@"}'='"$@"'
11841 setopt NO_GLOB_SUBST
11843 case `(set -o) 2>/dev/null` in #(
11855 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11856 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11859 # Prefer a ksh shell builtin over an external printf program on Solaris,
11860 # but without wasting forks for bash or zsh.
11861 if test -z "$BASH_VERSION$ZSH_VERSION" \
11862 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11863 as_echo='print -r --'
11864 as_echo_n='print -rn --'
11865 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11866 as_echo='printf %s\n'
11867 as_echo_n='printf %s'
11869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11870 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11871 as_echo_n='/usr/ucb/echo -n'
11873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11874 as_echo_n_body='eval
11878 expr "X$arg" : "X\\(.*\\)$as_nl";
11879 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11881 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11883 export as_echo_n_body
11884 as_echo_n='sh -c $as_echo_n_body as_echo'
11886 export as_echo_body
11887 as_echo='sh -c $as_echo_body as_echo'
11890 # The user is always right.
11891 if test "${PATH_SEPARATOR+set}" != set; then
11893 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11894 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11901 # We need space, tab and new line, in precisely that order. Quoting is
11902 # there to prevent editors from complaining about space-tab.
11903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11904 # splitting by setting IFS to empty value.)
11907 # Find who we are. Look in the path if we contain no directory separator.
11910 *[\\/]* ) as_myself=$0 ;;
11911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11915 test -z "$as_dir" && as_dir=.
11916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11922 # We did not find ourselves, most probably we were run as `sh COMMAND'
11923 # in which case we are not to be found in the path.
11924 if test "x$as_myself" = x; then
11927 if test ! -f "$as_myself"; then
11928 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11932 # Unset variables that we do not need and which cause bugs (e.g. in
11933 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11934 # suppresses any "Segmentation fault" message there. '((' could
11935 # trigger a bug in pdksh 5.2.14.
11936 for as_var in BASH_ENV ENV MAIL MAILPATH
11937 do eval test x\${$as_var+set} = xset \
11938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11954 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11955 # ----------------------------------------
11956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11958 # script with STATUS, using 1 if that was 0.
11961 as_status=$1; test $as_status -eq 0 && as_status=1
11963 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11964 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11966 $as_echo "$as_me: error: $2" >&2
11967 as_fn_exit $as_status
11971 # as_fn_set_status STATUS
11972 # -----------------------
11973 # Set $? to STATUS, without forking.
11974 as_fn_set_status ()
11977 } # as_fn_set_status
11979 # as_fn_exit STATUS
11980 # -----------------
11981 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11985 as_fn_set_status $1
11991 # Portably unset VAR.
11994 { eval $1=; unset $1;}
11996 as_unset=as_fn_unset
11997 # as_fn_append VAR VALUE
11998 # ----------------------
11999 # Append the text in VALUE to the end of the definition contained in VAR. Take
12000 # advantage of any shell optimizations that allow amortized linear growth over
12001 # repeated appends, instead of the typical quadratic growth present in naive
12003 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12004 eval 'as_fn_append ()
12015 # as_fn_arith ARG...
12016 # ------------------
12017 # Perform arithmetic evaluation on the ARGs, and store the result in the
12018 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12019 # must be portable across $(()) and expr.
12020 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12021 eval 'as_fn_arith ()
12028 as_val=`expr "$@" || test $? -eq 1`
12033 if expr a : '\(a\)' >/dev/null 2>&1 &&
12034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12041 as_basename=basename
12046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12052 as_me=`$as_basename -- "$0" ||
12053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12054 X"$0" : 'X\(//\)$' \| \
12055 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12057 sed '/^.*\/\([^/][^/]*\)\/*$/{
12071 # Avoid depending upon Character Ranges.
12072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12075 as_cr_digits='0123456789'
12076 as_cr_alnum=$as_cr_Letters$as_cr_digits
12078 ECHO_C= ECHO_N= ECHO_T=
12079 case `echo -n x` in #(((((
12081 case `echo 'xy\c'` in
12082 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12084 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12091 rm -f conf$$ conf$$.exe conf$$.file
12092 if test -d conf$$.dir; then
12093 rm -f conf$$.dir/conf$$.file
12096 mkdir conf$$.dir 2>/dev/null
12098 if (echo >conf$$.file) 2>/dev/null; then
12099 if ln -s conf$$.file conf$$ 2>/dev/null; then
12101 # ... but there are two gotchas:
12102 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12103 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12104 # In both cases, we have to default to `cp -p'.
12105 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12107 elif ln conf$$.file conf$$ 2>/dev/null; then
12115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12116 rmdir conf$$.dir 2>/dev/null
12121 # Create "$as_dir" as a directory, including parents if necessary.
12126 -*) as_dir=./$as_dir;;
12128 test -d "$as_dir" || eval $as_mkdir_p || {
12132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12133 *) as_qdir=$as_dir;;
12135 as_dirs="'$as_qdir' $as_dirs"
12136 as_dir=`$as_dirname -- "$as_dir" ||
12137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12138 X"$as_dir" : 'X\(//\)[^/]' \| \
12139 X"$as_dir" : 'X\(//\)$' \| \
12140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12141 $as_echo X"$as_dir" |
12142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12146 /^X\(\/\/\)[^/].*/{
12159 test -d "$as_dir" && break
12161 test -z "$as_dirs" || eval "mkdir $as_dirs"
12162 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12166 if mkdir -p . 2>/dev/null; then
12167 as_mkdir_p='mkdir -p "$as_dir"'
12169 test -d ./-p && rmdir ./-p
12173 if test -x / >/dev/null 2>&1; then
12174 as_test_x='test -x'
12176 if ls -dL / >/dev/null 2>&1; then
12183 if test -d "$1"; then
12189 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12190 ???[sx]*):;;*)false;;esac;fi
12194 as_executable_p=$as_test_x
12196 # Sed expression to map a string onto a valid CPP name.
12197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12199 # Sed expression to map a string onto a valid variable name.
12200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12204 ## ----------------------------------- ##
12205 ## Main body of $CONFIG_STATUS script. ##
12206 ## ----------------------------------- ##
12208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12211 # Save the log message, to keep $0 and so on meaningful, and to
12212 # report actual input values of CONFIG_FILES etc. instead of their
12213 # values after options handling.
12215 This file was extended by mdemo $as_me 1.0, which was
12216 generated by GNU Autoconf 2.68. Invocation command line was
12218 CONFIG_FILES = $CONFIG_FILES
12219 CONFIG_HEADERS = $CONFIG_HEADERS
12220 CONFIG_LINKS = $CONFIG_LINKS
12221 CONFIG_COMMANDS = $CONFIG_COMMANDS
12224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12229 case $ac_config_files in *"
12230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 # Files that config.status was made for.
12237 config_files="$ac_config_files"
12238 config_commands="$ac_config_commands"
12242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244 \`$as_me' instantiates files and other configuration actions
12245 from templates according to the current configuration. Unless the files
12246 and actions are specified as TAGs, all are instantiated by default.
12248 Usage: $0 [OPTION]... [TAG]...
12250 -h, --help print this help, then exit
12251 -V, --version print version number and configuration settings, then exit
12252 --config print configuration, then exit
12253 -q, --quiet, --silent
12254 do not print progress messages
12255 -d, --debug don't remove temporary files
12256 --recheck update $as_me by reconfiguring in the same conditions
12257 --file=FILE[:TEMPLATE]
12258 instantiate the configuration file FILE
12260 Configuration files:
12263 Configuration commands:
12266 Report bugs to <bug-libtool@gnu.org>."
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12272 mdemo config.status 1.0
12273 configured by $0, generated by GNU Autoconf 2.68,
12274 with options \\"\$ac_cs_config\\"
12276 Copyright (C) 2010 Free Software Foundation, Inc.
12277 This config.status script is free software; the Free Software Foundation
12278 gives unlimited permission to copy, distribute and modify it."
12285 test -n "\$AWK" || AWK=awk
12288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289 # The default lists apply if the user does not specify any file.
12295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12312 # Handling of the options.
12313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12316 $as_echo "$ac_cs_version"; exit ;;
12317 --config | --confi | --conf | --con | --co | --c )
12318 $as_echo "$ac_cs_config"; exit ;;
12319 --debug | --debu | --deb | --de | --d | -d )
12321 --file | --fil | --fi | --f )
12324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12325 '') as_fn_error $? "missing file argument" ;;
12327 as_fn_append CONFIG_FILES " '$ac_optarg'"
12328 ac_need_defaults=false;;
12329 --he | --h | --help | --hel | -h )
12330 $as_echo "$ac_cs_usage"; exit ;;
12331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12335 # This is an error.
12336 -*) as_fn_error $? "unrecognized option: \`$1'
12337 Try \`$0 --help' for more information." ;;
12339 *) as_fn_append ac_config_targets " $1"
12340 ac_need_defaults=false ;;
12346 ac_configure_extra_args=
12348 if $ac_cs_silent; then
12350 ac_configure_extra_args="$ac_configure_extra_args --silent"
12354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12355 if \$ac_cs_recheck; then
12356 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12358 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12359 CONFIG_SHELL='$SHELL'
12360 export CONFIG_SHELL
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12370 ## Running $as_me. ##
12376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12383 # The HP-UX ksh and POSIX shell print the target directory to stdout
12384 # if CDPATH is set.
12385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12387 sed_quote_subst='$sed_quote_subst'
12388 double_quote_subst='$double_quote_subst'
12389 delay_variable_subst='$delay_variable_subst'
12390 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12391 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12392 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12393 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12394 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12395 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12396 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12397 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12398 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12399 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12400 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12401 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12402 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12403 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12404 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12405 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12406 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12407 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12408 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12409 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12410 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12411 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12412 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12413 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12414 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12415 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12416 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12417 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12418 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12419 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12420 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12421 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12422 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12423 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12424 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12425 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12426 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12427 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12428 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12429 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12430 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12431 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12432 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12433 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12434 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12435 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12436 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12437 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12438 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12439 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12440 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12441 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12442 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12443 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12444 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12445 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12446 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12447 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"`'
12448 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12449 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12450 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12451 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12452 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12453 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12454 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12455 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12456 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12457 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12458 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12459 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12460 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12461 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12462 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12463 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12464 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12465 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12466 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12467 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12468 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12469 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12470 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12471 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12472 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12473 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12474 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12475 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12476 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12477 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12478 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12479 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12480 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12481 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12482 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12483 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12484 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12485 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12486 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12487 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12488 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12489 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12490 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12491 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12492 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12493 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12494 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12495 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12496 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12497 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12498 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12499 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12500 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12501 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12502 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12503 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12504 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12505 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12506 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12507 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12508 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12509 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12510 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12511 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12512 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12513 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12514 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12523 LTCFLAGS='$LTCFLAGS'
12524 compiler='$compiler_DEFAULT'
12526 # A function that is used when there is no print builtin or printf.
12527 func_fallback_echo ()
12529 eval 'cat <<_LTECHO_EOF
12534 # Quote evaled strings.
12551 deplibs_check_method \
12555 sharedlib_from_linklib_cmd \
12558 archiver_list_spec \
12564 lt_cv_sys_global_symbol_pipe \
12565 lt_cv_sys_global_symbol_to_cdecl \
12566 lt_cv_sys_global_symbol_to_c_name_address \
12567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12568 nm_file_list_spec \
12569 lt_prog_compiler_no_builtin_flag \
12570 lt_prog_compiler_pic \
12571 lt_prog_compiler_wl \
12572 lt_prog_compiler_static \
12573 lt_cv_prog_compiler_c_o \
12582 export_dynamic_flag_spec \
12583 whole_archive_flag_spec \
12584 compiler_needs_object \
12586 allow_undefined_flag \
12587 no_undefined_flag \
12588 hardcode_libdir_flag_spec \
12589 hardcode_libdir_separator \
12593 variables_saved_for_relink \
12595 library_names_spec \
12597 install_override_mode \
12601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12602 *[\\\\\\\`\\"\\\$]*)
12603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12611 # Double-quote double-evaled strings.
12612 for var in reload_cmds \
12613 old_postinstall_cmds \
12614 old_postuninstall_cmds \
12616 extract_expsyms_cmds \
12617 old_archive_from_new_cmds \
12618 old_archive_from_expsyms_cmds \
12620 archive_expsym_cmds \
12622 module_expsym_cmds \
12623 export_symbols_cmds \
12627 postuninstall_cmds \
12629 sys_lib_search_path_spec \
12630 sys_lib_dlsearch_path_spec; do
12631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12632 *[\\\\\\\`\\"\\\$]*)
12633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12641 ac_aux_dir='$ac_aux_dir'
12642 xsi_shell='$xsi_shell'
12643 lt_shell_append='$lt_shell_append'
12645 # See if we are running on zsh, and set the options which allow our
12646 # commands through without removal of \ escapes INIT.
12647 if test -n "\${ZSH_VERSION+set}" ; then
12648 setopt NO_GLOB_SUBST
12654 TIMESTAMP='$TIMESTAMP'
12663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 # Handling of arguments.
12666 for ac_config_target in $ac_config_targets
12668 case $ac_config_target in
12669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12670 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12671 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12673 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12678 # If the user did not use the arguments to specify the items to instantiate,
12679 # then the envvar interface is used. Set only those that are not.
12680 # We use the long form for the default assignment because of an extremely
12681 # bizarre bug on SunOS 4.1.3.
12682 if $ac_need_defaults; then
12683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12687 # Have a temporary directory for convenience. Make it in the build tree
12688 # simply because there is no reason against having it here, and in addition,
12689 # creating and moving files from /tmp can sometimes cause problems.
12690 # Hook for its removal unless debugging.
12691 # Note that there is a small window in which the directory will not be cleaned:
12692 # after its creation but before its name has been assigned to `$tmp'.
12696 trap 'exit_status=$?
12697 : "${ac_tmp:=$tmp}"
12698 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12700 trap 'as_fn_exit 1' 1 2 13 15
12702 # Create a (secure) tmp directory for tmp files.
12705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12709 tmp=./conf$$-$RANDOM
12710 (umask 077 && mkdir "$tmp")
12711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12714 # Set up the scripts for CONFIG_FILES section.
12715 # No need to generate them if there are no CONFIG_FILES.
12716 # This happens for instance with `./config.status config.h'.
12717 if test -n "$CONFIG_FILES"; then
12720 ac_cr=`echo X | tr X '\015'`
12721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12722 # But we know of no other shell where ac_cr would be empty at this
12723 # point, so we can use a bashism as a fallback.
12724 if test "x$ac_cr" = x; then
12725 eval ac_cr=\$\'\\r\'
12727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12731 ac_cs_awk_cr=$ac_cr
12734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12739 echo "cat >conf$$subs.awk <<_ACEOF" &&
12740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12742 } >conf$$subs.sh ||
12743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12746 for ac_last_try in false false false false false :; do
12747 . ./conf$$subs.sh ||
12748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12751 if test $ac_delim_n = $ac_delim_num; then
12753 elif $ac_last_try; then
12754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12759 rm -f conf$$subs.sh
12761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12766 s/^/S["/; s/!.*/"]=/
12776 s/\(.\{148\}\)..*/\1/
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12790 s/\(.\{148\}\)..*/\1/
12792 s/["\\]/\\&/g; s/^/"/; s/$/"/
12796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12801 ' <conf$$subs.awk | sed '
12806 ' >>$CONFIG_STATUS || ac_write_fail=1
12807 rm -f conf$$subs.awk
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12811 for (key in S) S_is_set[key] = 1
12817 nfields = split(line, field, "@")
12819 len = length(field[1])
12820 for (i = 2; i < nfields; i++) {
12822 keylen = length(key)
12823 if (S_is_set[key]) {
12825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12826 len += length(value) + length(field[++i])
12837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12843 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12848 # trailing colons and then remove the whole line if VPATH becomes empty
12849 # (actually we leave an empty line to preserve line numbers).
12850 if test "x$srcdir" = x.; then
12851 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870 fi # test -n "$CONFIG_FILES"
12873 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12878 :[FHLC]) ac_mode=$ac_tag; continue;;
12880 case $ac_mode$ac_tag in
12882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12883 :[FH]-) ac_tag=-:-;;
12884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12901 -) ac_f="$ac_tmp/stdin";;
12902 *) # Look for the file first in the build tree, then in the source tree
12903 # (if the path is not absolute). The absolute path cannot be DOS-style,
12904 # because $ac_f cannot contain `:'.
12908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12913 as_fn_append ac_file_inputs " '$ac_f'"
12916 # Let's still pretend it is `configure' which instantiates (i.e., don't
12917 # use $as_me), people would be surprised to read:
12918 # /* config.h. Generated by config.status. */
12919 configure_input='Generated from '`
12920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12922 if test x"$ac_file" != x-; then
12923 configure_input="$ac_file. $configure_input"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12925 $as_echo "$as_me: creating $ac_file" >&6;}
12927 # Neutralize special characters interpreted by sed in replacement strings.
12928 case $configure_input in #(
12929 *\&* | *\|* | *\\* )
12930 ac_sed_conf_input=`$as_echo "$configure_input" |
12931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12932 *) ac_sed_conf_input=$configure_input;;
12936 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12942 ac_dir=`$as_dirname -- "$ac_file" ||
12943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12944 X"$ac_file" : 'X\(//\)[^/]' \| \
12945 X"$ac_file" : 'X\(//\)$' \| \
12946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12947 $as_echo X"$ac_file" |
12948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12952 /^X\(\/\/\)[^/].*/{
12965 as_dir="$ac_dir"; as_fn_mkdir_p
12969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12972 # A ".." for each directory in $ac_dir_suffix.
12973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12974 case $ac_top_builddir_sub in
12975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12979 ac_abs_top_builddir=$ac_pwd
12980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12981 # for backward compatibility:
12982 ac_top_builddir=$ac_top_build_prefix
12985 .) # We are building in place.
12987 ac_top_srcdir=$ac_top_builddir_sub
12988 ac_abs_top_srcdir=$ac_pwd ;;
12989 [\\/]* | ?:[\\/]* ) # Absolute name.
12990 ac_srcdir=$srcdir$ac_dir_suffix;
12991 ac_top_srcdir=$srcdir
12992 ac_abs_top_srcdir=$srcdir ;;
12993 *) # Relative name.
12994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12995 ac_top_srcdir=$ac_top_build_prefix$srcdir
12996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13011 ac_MKDIR_P=$MKDIR_P
13013 [\\/$]* | ?:[\\/]* ) ;;
13014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019 # If the template does not know about datarootdir, expand it.
13020 # FIXME: This hack should be removed a few years after 2.60.
13021 ac_datarootdir_hack=; ac_datarootdir_seen=
13032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13033 *datarootdir*) ac_datarootdir_seen=yes;;
13034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13039 ac_datarootdir_hack='
13040 s&@datadir@&$datadir&g
13041 s&@docdir@&$docdir&g
13042 s&@infodir@&$infodir&g
13043 s&@localedir@&$localedir&g
13044 s&@mandir@&$mandir&g
13045 s&\\\${datarootdir}&$datarootdir&g' ;;
13049 # Neutralize VPATH when `$srcdir' = `.'.
13050 # Shell code in configure.ac might set extrasub.
13051 # FIXME: do we really want to maintain this feature?
13052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13053 ac_sed_extra="$ac_vpsub
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13059 s|@configure_input@|$ac_sed_conf_input|;t t
13060 s&@top_builddir@&$ac_top_builddir_sub&;t t
13061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13062 s&@srcdir@&$ac_srcdir&;t t
13063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13064 s&@top_srcdir@&$ac_top_srcdir&;t t
13065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13066 s&@builddir@&$ac_builddir&;t t
13067 s&@abs_builddir@&$ac_abs_builddir&;t t
13068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13069 s&@INSTALL@&$ac_INSTALL&;t t
13070 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13071 $ac_datarootdir_hack
13073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13074 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13077 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13079 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13081 which seems to be undefined. Please make sure it is defined" >&5
13082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13083 which seems to be undefined. Please make sure it is defined" >&2;}
13085 rm -f "$ac_tmp/stdin"
13087 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13088 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13094 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13095 $as_echo "$as_me: executing $ac_file commands" >&6;}
13100 case $ac_file$ac_mode in
13101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13102 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13103 # are listed without --file. Let's play safe and only enable the eval
13104 # if we detect the quoting.
13105 case $CONFIG_FILES in
13106 *\'*) eval set x "$CONFIG_FILES" ;;
13107 *) set x $CONFIG_FILES ;;
13112 # Strip MF so we end up with the name of the file.
13113 mf=`echo "$mf" | sed -e 's/:.*$//'`
13114 # Check whether this is an Automake generated Makefile or not.
13115 # We used to match only the files named `Makefile.in', but
13116 # some people rename them; so instead we look at the file content.
13117 # Grep'ing the first line is not enough: some people post-process
13118 # each Makefile.in and add a new line on top of each file to say so.
13119 # Grep'ing the whole file is not good either: AIX grep has a line
13120 # limit of 2048, but all sed's we know have understand at least 4000.
13121 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13122 dirpart=`$as_dirname -- "$mf" ||
13123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13124 X"$mf" : 'X\(//\)[^/]' \| \
13125 X"$mf" : 'X\(//\)$' \| \
13126 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13132 /^X\(\/\/\)[^/].*/{
13148 # Extract the definition of DEPDIR, am__include, and am__quote
13149 # from the Makefile without running `make'.
13150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13151 test -z "$DEPDIR" && continue
13152 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13153 test -z "am__include" && continue
13154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13155 # When using ansi2knr, U may be empty or an underscore; expand it
13156 U=`sed -n 's/^U = //p' < "$mf"`
13157 # Find all dependency output files, they are included files with
13158 # $(DEPDIR) in their names. We invoke sed twice because it is the
13159 # simplest approach to changing $(DEPDIR) to its actual value in the
13161 for file in `sed -n "
13162 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13163 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13164 # Make sure the directory exists.
13165 test -f "$dirpart/$file" && continue
13166 fdir=`$as_dirname -- "$file" ||
13167 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13168 X"$file" : 'X\(//\)[^/]' \| \
13169 X"$file" : 'X\(//\)$' \| \
13170 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13171 $as_echo X"$file" |
13172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13176 /^X\(\/\/\)[^/].*/{
13189 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13190 # echo "creating $dirpart/$file"
13191 echo '# dummy' > "$dirpart/$file"
13198 # See if we are running on zsh, and set the options which allow our
13199 # commands through without removal of \ escapes.
13200 if test -n "${ZSH_VERSION+set}" ; then
13201 setopt NO_GLOB_SUBST
13204 cfgfile="${ofile}T"
13205 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13208 cat <<_LT_EOF >> "$cfgfile"
13211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13217 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13219 # Written by Gordon Matzigkeit, 1996
13221 # This file is part of GNU Libtool.
13223 # GNU Libtool is free software; you can redistribute it and/or
13224 # modify it under the terms of the GNU General Public License as
13225 # published by the Free Software Foundation; either version 2 of
13226 # the License, or (at your option) any later version.
13228 # As a special exception to the GNU General Public License,
13229 # if you distribute this file as part of a program or library that
13230 # is built using GNU Libtool, you may include this file under the
13231 # same distribution terms that you use for the rest of that program.
13233 # GNU Libtool is distributed in the hope that it will be useful,
13234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13236 # GNU General Public License for more details.
13238 # You should have received a copy of the GNU General Public License
13239 # along with GNU Libtool; see the file COPYING. If not, a copy
13240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13241 # obtained by writing to the Free Software Foundation, Inc.,
13242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13245 # The names of the tagged configurations supported by this script.
13248 # ### BEGIN LIBTOOL CONFIG
13250 # Which release of libtool.m4 was used?
13251 macro_version=$macro_version
13252 macro_revision=$macro_revision
13254 # Assembler program.
13257 # DLL creation program.
13258 DLLTOOL=$lt_DLLTOOL
13260 # Object dumper program.
13261 OBJDUMP=$lt_OBJDUMP
13263 # Whether or not to build shared libraries.
13264 build_libtool_libs=$enable_shared
13266 # Whether or not to build static libraries.
13267 build_old_libs=$enable_static
13269 # What type of objects to build.
13272 # Whether or not to optimize for fast installation.
13273 fast_install=$enable_fast_install
13275 # Shell to use when invoking shell scripts.
13278 # An echo program that protects backslashes.
13281 # The PATH separator for the build system.
13282 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13285 host_alias=$host_alias
13289 # The build system.
13290 build_alias=$build_alias
13294 # A sed program that does not truncate output.
13297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13298 Xsed="\$SED -e 1s/^X//"
13300 # A grep program that handles long lines.
13306 # A literal string matcher.
13309 # A BSD- or MS-compatible name lister.
13312 # Whether we need soft or hard links.
13315 # What is the maximum length of a command?
13316 max_cmd_len=$max_cmd_len
13318 # Object file suffix (normally "o").
13321 # Executable file suffix (normally "").
13324 # whether the shell understands "unset".
13327 # turn spaces into newlines.
13330 # turn newlines into spaces.
13333 # convert \$build file names to \$host format.
13334 to_host_file_cmd=$lt_cv_to_host_file_cmd
13336 # convert \$build files to toolchain format.
13337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13339 # Method to check whether dependent libraries are shared objects.
13340 deplibs_check_method=$lt_deplibs_check_method
13342 # Command to use when deplibs_check_method = "file_magic".
13343 file_magic_cmd=$lt_file_magic_cmd
13345 # How to find potential files when deplibs_check_method = "file_magic".
13346 file_magic_glob=$lt_file_magic_glob
13348 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13349 want_nocaseglob=$lt_want_nocaseglob
13351 # Command to associate shared and link libraries.
13352 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13357 # Flags to create an archive.
13358 AR_FLAGS=$lt_AR_FLAGS
13360 # How to feed a file listing to the archiver.
13361 archiver_list_spec=$lt_archiver_list_spec
13363 # A symbol stripping program.
13366 # Commands used to install an old-style archive.
13368 old_postinstall_cmds=$lt_old_postinstall_cmds
13369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13371 # Whether to use a lock for old archive extraction.
13372 lock_old_archive_extraction=$lock_old_archive_extraction
13377 # LTCC compiler flags.
13378 LTCFLAGS=$lt_CFLAGS
13380 # Take the output of nm and produce a listing of raw symbols and C names.
13381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13383 # Transform the output of nm in a proper C declaration.
13384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13386 # Transform the output of nm in a C name address pair.
13387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13389 # Transform the output of nm in a C name address pair when lib prefix is needed.
13390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13392 # Specify filename containing input files for \$NM.
13393 nm_file_list_spec=$lt_nm_file_list_spec
13395 # The root where to search for dependent libraries,and in which our libraries should be installed.
13396 lt_sysroot=$lt_sysroot
13398 # The name of the directory that contains temporary libtool files.
13401 # Used to examine libraries when file_magic_cmd begins with "file".
13402 MAGIC_CMD=$MAGIC_CMD
13404 # Must we lock files when doing compilation?
13405 need_locks=$lt_need_locks
13408 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13411 DSYMUTIL=$lt_DSYMUTIL
13413 # Tool to change global to local symbols on Mac OS X.
13416 # Tool to manipulate fat objects and archives on Mac OS X.
13419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13423 OTOOL64=$lt_OTOOL64
13425 # Old archive suffix (normally "a").
13428 # Shared library suffix (normally ".so").
13429 shrext_cmds=$lt_shrext_cmds
13431 # The commands to extract the exported symbol list from a shared archive.
13432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13434 # Variables whose values should be saved in libtool wrapper scripts and
13435 # restored at link time.
13436 variables_saved_for_relink=$lt_variables_saved_for_relink
13438 # Do we need the "lib" prefix for modules?
13439 need_lib_prefix=$need_lib_prefix
13441 # Do we need a version for libraries?
13442 need_version=$need_version
13444 # Library versioning type.
13445 version_type=$version_type
13447 # Shared library runtime path variable.
13448 runpath_var=$runpath_var
13450 # Shared library path variable.
13451 shlibpath_var=$shlibpath_var
13453 # Is shlibpath searched before the hard-coded library search path?
13454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13456 # Format of library name prefix.
13457 libname_spec=$lt_libname_spec
13459 # List of archive names. First name is the real one, the rest are links.
13460 # The last name is the one that the linker finds with -lNAME
13461 library_names_spec=$lt_library_names_spec
13463 # The coded name of the library, if different from the real name.
13464 soname_spec=$lt_soname_spec
13466 # Permission mode override for installation of shared libraries.
13467 install_override_mode=$lt_install_override_mode
13469 # Command to use after installation of a shared archive.
13470 postinstall_cmds=$lt_postinstall_cmds
13472 # Command to use after uninstallation of a shared archive.
13473 postuninstall_cmds=$lt_postuninstall_cmds
13475 # Commands used to finish a libtool library installation in a directory.
13476 finish_cmds=$lt_finish_cmds
13478 # As "finish_cmds", except a single script fragment to be evaled but
13480 finish_eval=$lt_finish_eval
13482 # Whether we should hardcode library paths into libraries.
13483 hardcode_into_libs=$hardcode_into_libs
13485 # Compile-time system search path for libraries.
13486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13488 # Run-time system search path for libraries.
13489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13491 # Whether dlopen is supported.
13492 dlopen_support=$enable_dlopen
13494 # Whether dlopen of programs is supported.
13495 dlopen_self=$enable_dlopen_self
13497 # Whether dlopen of statically linked programs is supported.
13498 dlopen_self_static=$enable_dlopen_self_static
13500 # Commands to strip libraries.
13501 old_striplib=$lt_old_striplib
13502 striplib=$lt_striplib
13505 # The linker used to build libraries.
13508 # How to create reloadable object files.
13509 reload_flag=$lt_reload_flag
13510 reload_cmds=$lt_reload_cmds
13512 # Commands used to build an old-style archive.
13513 old_archive_cmds=$lt_old_archive_cmds
13515 # A language specific compiler.
13518 # Is the compiler the GNU compiler?
13521 # Compiler flag to turn off builtin functions.
13522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13524 # Additional compiler flags for building library objects.
13525 pic_flag=$lt_lt_prog_compiler_pic
13527 # How to pass a linker flag through the compiler.
13528 wl=$lt_lt_prog_compiler_wl
13530 # Compiler flag to prevent dynamic linking.
13531 link_static_flag=$lt_lt_prog_compiler_static
13533 # Does compiler simultaneously support -c and -o options?
13534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13536 # Whether or not to add -lc for building shared libraries.
13537 build_libtool_need_lc=$archive_cmds_need_lc
13539 # Whether or not to disallow shared libs when runtime libs are static.
13540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13542 # Compiler flag to allow reflexive dlopens.
13543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13545 # Compiler flag to generate shared objects directly from archives.
13546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13548 # Whether the compiler copes with passing no objects directly.
13549 compiler_needs_object=$lt_compiler_needs_object
13551 # Create an old-style archive from a shared archive.
13552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13554 # Create a temporary old-style archive to link instead of a shared archive.
13555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13557 # Commands used to build a shared archive.
13558 archive_cmds=$lt_archive_cmds
13559 archive_expsym_cmds=$lt_archive_expsym_cmds
13561 # Commands used to build a loadable module if different from building
13562 # a shared archive.
13563 module_cmds=$lt_module_cmds
13564 module_expsym_cmds=$lt_module_expsym_cmds
13566 # Whether we are building with GNU ld or not.
13567 with_gnu_ld=$lt_with_gnu_ld
13569 # Flag that allows shared libraries with undefined symbols to be built.
13570 allow_undefined_flag=$lt_allow_undefined_flag
13572 # Flag that enforces no undefined symbols.
13573 no_undefined_flag=$lt_no_undefined_flag
13575 # Flag to hardcode \$libdir into a binary during linking.
13576 # This must work even if \$libdir does not exist
13577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13579 # Whether we need a single "-rpath" flag with a separated argument.
13580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13583 # DIR into the resulting binary.
13584 hardcode_direct=$hardcode_direct
13586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13587 # DIR into the resulting binary and the resulting library dependency is
13588 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13589 # library is relocated.
13590 hardcode_direct_absolute=$hardcode_direct_absolute
13592 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13593 # into the resulting binary.
13594 hardcode_minus_L=$hardcode_minus_L
13596 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13597 # into the resulting binary.
13598 hardcode_shlibpath_var=$hardcode_shlibpath_var
13600 # Set to "yes" if building a shared library automatically hardcodes DIR
13601 # into the library and all subsequent libraries and executables linked
13603 hardcode_automatic=$hardcode_automatic
13605 # Set to yes if linker adds runtime paths of dependent libraries
13606 # to runtime path list.
13607 inherit_rpath=$inherit_rpath
13609 # Whether libtool must link a program against all its dependency libraries.
13610 link_all_deplibs=$link_all_deplibs
13612 # Set to "yes" if exported symbols are required.
13613 always_export_symbols=$always_export_symbols
13615 # The commands to list exported symbols.
13616 export_symbols_cmds=$lt_export_symbols_cmds
13618 # Symbols that should not be listed in the preloaded symbols.
13619 exclude_expsyms=$lt_exclude_expsyms
13621 # Symbols that must always be exported.
13622 include_expsyms=$lt_include_expsyms
13624 # Commands necessary for linking programs (against libraries) with templates.
13625 prelink_cmds=$lt_prelink_cmds
13627 # Commands necessary for finishing linking programs.
13628 postlink_cmds=$lt_postlink_cmds
13630 # Specify filename containing input files.
13631 file_list_spec=$lt_file_list_spec
13633 # How to hardcode a shared library path into an executable.
13634 hardcode_action=$hardcode_action
13636 # ### END LIBTOOL CONFIG
13642 cat <<\_LT_EOF >> "$cfgfile"
13643 # AIX sometimes has problems with the GCC collect2 program. For some
13644 # reason, if we set the COLLECT_NAMES environment variable, the problems
13645 # vanish in a puff of smoke.
13646 if test "X${COLLECT_NAMES+set}" != Xset; then
13648 export COLLECT_NAMES
13655 ltmain="$ac_aux_dir/ltmain.sh"
13658 # We use sed instead of cat because bash on DJGPP gets confused if
13659 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13660 # text mode, it properly converts lines to CR/LF. This bash problem
13661 # is reportedly fixed, but why not run on old versions too?
13662 sed '$q' "$ltmain" >> "$cfgfile" \
13663 || (rm -f "$cfgfile"; exit 1)
13665 if test x"$xsi_shell" = xyes; then
13666 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13670 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13671 \ * ) func_dirname_result="${3}" ;;\
13673 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13674 && mv -f "$cfgfile.tmp" "$cfgfile" \
13675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13676 test 0 -eq $? || _lt_function_replace_fail=:
13679 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13682 \ func_basename_result="${1##*/}"\
13683 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13684 && mv -f "$cfgfile.tmp" "$cfgfile" \
13685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13686 test 0 -eq $? || _lt_function_replace_fail=:
13689 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13690 func_dirname_and_basename ()\
13693 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13694 \ * ) func_dirname_result="${3}" ;;\
13696 \ func_basename_result="${1##*/}"\
13697 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13698 && mv -f "$cfgfile.tmp" "$cfgfile" \
13699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13700 test 0 -eq $? || _lt_function_replace_fail=:
13703 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13706 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13707 \ # positional parameters, so assign one to ordinary parameter first.\
13708 \ func_stripname_result=${3}\
13709 \ func_stripname_result=${func_stripname_result#"${1}"}\
13710 \ func_stripname_result=${func_stripname_result%"${2}"}\
13711 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13712 && mv -f "$cfgfile.tmp" "$cfgfile" \
13713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13714 test 0 -eq $? || _lt_function_replace_fail=:
13717 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13718 func_split_long_opt ()\
13720 \ func_split_long_opt_name=${1%%=*}\
13721 \ func_split_long_opt_arg=${1#*=}\
13722 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13723 && mv -f "$cfgfile.tmp" "$cfgfile" \
13724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13725 test 0 -eq $? || _lt_function_replace_fail=:
13728 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13729 func_split_short_opt ()\
13731 \ func_split_short_opt_arg=${1#??}\
13732 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13733 } # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\
13743 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13744 \ *) func_lo2o_result=${1} ;;\
13746 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13747 && mv -f "$cfgfile.tmp" "$cfgfile" \
13748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13749 test 0 -eq $? || _lt_function_replace_fail=:
13752 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13755 func_xform_result=${1%.*}.lo\
13756 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13757 && mv -f "$cfgfile.tmp" "$cfgfile" \
13758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13759 test 0 -eq $? || _lt_function_replace_fail=:
13762 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13765 func_arith_result=$(( $* ))\
13766 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13767 && mv -f "$cfgfile.tmp" "$cfgfile" \
13768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13769 test 0 -eq $? || _lt_function_replace_fail=:
13772 sed -e '/^func_len ()$/,/^} # func_len /c\
13775 func_len_result=${#1}\
13776 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13777 && mv -f "$cfgfile.tmp" "$cfgfile" \
13778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13779 test 0 -eq $? || _lt_function_replace_fail=:
13783 if test x"$lt_shell_append" = xyes; then
13784 sed -e '/^func_append ()$/,/^} # func_append /c\
13787 eval "${1}+=\\${2}"\
13788 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13789 && mv -f "$cfgfile.tmp" "$cfgfile" \
13790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13791 test 0 -eq $? || _lt_function_replace_fail=:
13794 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13795 func_append_quoted ()\
13797 \ func_quote_for_eval "${2}"\
13798 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13799 } # Extended-shell func_append_quoted implementation' "$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 # Save a `func_append' function call where possible by direct use of '+='
13806 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13807 && mv -f "$cfgfile.tmp" "$cfgfile" \
13808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13809 test 0 -eq $? || _lt_function_replace_fail=:
13811 # Save a `func_append' function call even when '+=' is not available
13812 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13813 && mv -f "$cfgfile.tmp" "$cfgfile" \
13814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13815 test 0 -eq $? || _lt_function_replace_fail=:
13818 if test x"$_lt_function_replace_fail" = x":"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13820 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13824 mv -f "$cfgfile" "$ofile" ||
13825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13836 ac_clean_files=$ac_clean_files_save
13838 test $ac_write_fail = 0 ||
13839 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13842 # configure is writing to config.log, and then calls config.status.
13843 # config.status does its own redirection, appending to config.log.
13844 # Unfortunately, on DOS this fails, as config.log is still kept open
13845 # by configure, so config.status won't be able to write to it; its
13846 # output is simply discarded. So we exec the FD to /dev/null,
13847 # effectively closing config.log, so it can be properly (re)opened and
13848 # appended to by config.status. When coming back to configure, we
13849 # need to make the FD available again.
13850 if test "$no_create" != yes; then
13852 ac_config_status_args=
13853 test "$silent" = yes &&
13854 ac_config_status_args="$ac_config_status_args --quiet"
13856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13859 # would make configure fail if this is the last instruction.
13860 $ac_cs_success || as_fn_exit 1
13862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}