2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mdemo2 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='mdemo2'
572 PACKAGE_TARNAME='mdemo2'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='mdemo2 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 ac_unique_file="main.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
675 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
731 enable_dependency_tracking
740 ac_precious_vars='build_alias
751 # Initialize some variables set by options.
753 ac_init_version=false
754 ac_unrecognized_opts=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name=s,x,x,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
811 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
840 cache_file=config.cache ;;
842 -datadir | --datadir | --datadi | --datad)
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
909 -help | --help | --hel | --he | -h)
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 # Obsolete; use --without-fp.
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1058 -site=* | --site=* | --sit=*)
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1098 eval with_$ac_useropt=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval with_$ac_useropt=no ;;
1117 # Obsolete; use --with-x.
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $? "missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1185 # Be sure to have absolute directory names.
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used" >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $? "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures mdemo2 1.0 to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/mdemo2]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of mdemo2 1.0:";;
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --disable-dependency-tracking speeds up one-time build
1370 --enable-dependency-tracking do not reject slow dependency extractors
1371 --enable-shared[=PKGS] build shared libraries [default=yes]
1372 --enable-static[=PKGS] build static libraries [default=yes]
1373 --enable-fast-install[=PKGS]
1374 optimize for fast installation [default=yes]
1375 --disable-libtool-lock avoid locking (might break parallel builds)
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1382 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1383 --with-sysroot=DIR Search for dependent libraries within DIR
1384 (or the compiler's sysroot if not specified).
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1399 Report bugs to <bug-libtool@gnu.org>.
1404 if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" ||
1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1429 .) # We are building in place.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1462 mdemo2 configure 1.0
1463 generated by GNU Autoconf 2.68
1465 Copyright (C) 2010 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 rm -f conftest.$ac_objext
1483 if { { ac_try="$ac_compile"
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_compile") 2>conftest.err
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && {
1499 test -z "$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 } && test -s conftest.$ac_objext; then :
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1512 } # ac_fn_c_try_compile
1514 # ac_fn_c_try_link LINENO
1515 # -----------------------
1516 # Try to link conftest.$ac_ext, and return whether this succeeded.
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext conftest$ac_exeext
1521 if { { ac_try="$ac_link"
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>conftest.err
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest$ac_exeext && {
1540 test "$cross_compiling" = yes ||
1541 $as_test_x conftest$ac_exeext
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1550 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1551 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1552 # interfere with the next link command; also delete a directory that is
1553 # left behind by Apple's compiler. We do this before executing the actions.
1554 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_link
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if eval \${$3+:} false; then :
1570 $as_echo_n "(cached) " >&6
1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h. */
1577 if ac_fn_c_try_compile "$LINENO"; then :
1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 } # ac_fn_c_check_header_compile
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631 # that executables *can* be run.
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_link"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>&5
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646 { { case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_try") 2>&5
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; }; }; then :
1658 $as_echo "$as_me: program exited with status $ac_status" >&5
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 ac_retval=$ac_status
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1670 # ac_fn_c_check_func LINENO FUNC VAR
1671 # ----------------------------------
1672 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1673 ac_fn_c_check_func ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1685 #define $2 innocuous_$2
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $2 (); below.
1689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1690 <limits.h> exists even on freestanding compilers. */
1693 # include <limits.h>
1695 # include <assert.h>
1700 /* Override any GCC internal prototype to avoid an error.
1701 Use char because int might match the return type of a GCC
1702 builtin and then its argument prototype would still apply. */
1707 /* The GNU C library defines this for functions which it implements
1708 to always fail with ENOSYS. Some functions are actually named
1709 something starting with __ and the normal name is an alias. */
1710 #if defined __stub_$2 || defined __stub___$2
1722 if ac_fn_c_try_link "$LINENO"; then :
1727 rm -f core conftest.err conftest.$ac_objext \
1728 conftest$ac_exeext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_func
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1740 It was created by mdemo2 $as_me 1.0, which was
1741 generated by GNU Autoconf 2.68. Invocation command line was
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir=.
1777 $as_echo "PATH: $as_dir"
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_must_keep_next=false
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1817 as_fn_append ac_configure_args1 " '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
1819 ac_must_keep_next=false # Got value, back to normal.
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 -* ) ac_must_keep_next=true ;;
1833 as_fn_append ac_configure_args " '$ac_arg'"
1838 { ac_configure_args0=; unset ac_configure_args0;}
1839 { ac_configure_args1=; unset ac_configure_args1;}
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1851 $as_echo "## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##"
1855 # The following way of writing the cache mishandles newlines in values,
1857 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858 eval ac_val=\$$ac_var
1862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866 _ | IFS | as_nl) ;; #(
1867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868 *) { eval $ac_var=; unset $ac_var;} ;;
1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874 *${as_nl}ac_space=\ *)
1876 "s/'\''/'\''\\\\'\'''\''/g;
1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 $as_echo "## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##"
1891 for ac_var in $ac_subst_vars
1893 eval ac_val=\$$ac_var
1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 $as_echo "$ac_var='\''$ac_val'\''"
1901 if test -n "$ac_subst_files"; then
1902 $as_echo "## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##"
1906 for ac_var in $ac_subst_files
1908 eval ac_val=\$$ac_var
1910 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 $as_echo "$ac_var='\''$ac_val'\''"
1917 if test -s confdefs.h; then
1918 $as_echo "## ----------- ##
1925 test "$ac_signal" != 0 &&
1926 $as_echo "$as_me: caught signal $ac_signal"
1927 $as_echo "$as_me: exit $exit_status"
1929 rm -f core *.core core.conftest.* &&
1930 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1933 for ac_signal in 1 2 13 15; do
1934 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1941 $as_echo "/* confdefs.h */" > confdefs.h
1943 # Predefined preprocessor variables.
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_URL "$PACKAGE_URL"
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1974 if test -n "$CONFIG_SITE"; then
1975 # We do not want a PATH search for config.site.
1976 case $CONFIG_SITE in #((
1977 -*) ac_site_file1=./$CONFIG_SITE;;
1978 */*) ac_site_file1=$CONFIG_SITE;;
1979 *) ac_site_file1=./$CONFIG_SITE;;
1981 elif test "x$prefix" != xNONE; then
1982 ac_site_file1=$prefix/share/config.site
1983 ac_site_file2=$prefix/etc/config.site
1985 ac_site_file1=$ac_default_prefix/share/config.site
1986 ac_site_file2=$ac_default_prefix/etc/config.site
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990 test "x$ac_site_file" = xNONE && continue
1991 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994 sed 's/^/| /' "$ac_site_file" >&5
1996 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See \`config.log' for more details" "$LINENO" 5; }
2003 if test -r "$cache_file"; then
2004 # Some versions of bash will fail to source /dev/null (special files
2005 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 $as_echo "$as_me: loading cache $cache_file" >&6;}
2010 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011 *) . "./$cache_file";;
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 $as_echo "$as_me: creating cache $cache_file" >&6;}
2020 # Check that the precious variables saved in the cache have kept the same
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025 eval ac_new_set=\$ac_env_${ac_var}_set
2026 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027 eval ac_new_val=\$ac_env_${ac_var}_value
2028 case $ac_old_set,$ac_new_set in
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032 ac_cache_corrupted=: ;;
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2039 if test "x$ac_old_val" != "x$ac_new_val"; then
2040 # differences in whitespace do not lead to failure.
2041 ac_old_val_w=`echo x $ac_old_val`
2042 ac_new_val_w=`echo x $ac_new_val`
2043 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046 ac_cache_corrupted=:
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050 eval $ac_var=\$ac_old_val
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2053 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2055 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2058 # Pass precious variables to config.status.
2059 if test "$ac_new_set" = set; then
2061 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 *) ac_arg=$ac_var=$ac_new_val ;;
2064 case " $ac_configure_args " in
2065 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2066 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070 if $ac_cache_corrupted; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2077 ## -------------------- ##
2078 ## Main body of script. ##
2079 ## -------------------- ##
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2091 if test -f "$ac_dir/install-sh"; then
2093 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 elif test -f "$ac_dir/install.sh"; then
2097 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 elif test -f "$ac_dir/shtool"; then
2101 ac_install_sh="$ac_aux_dir/shtool install -c"
2105 if test -z "$ac_aux_dir"; then
2106 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2109 # These three variables are undocumented and unsupported,
2110 # and are intended to be withdrawn in a future Autoconf release.
2111 # They can cause serious problems if a builder's source tree is in a directory
2112 # whose full name contains unusual characters.
2113 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2114 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2115 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2120 ## ------------------------ ##
2121 ## Automake Initialisation. ##
2122 ## ------------------------ ##
2123 am__api_version='1.11'
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 # Reject install programs that cannot install multiple files.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2141 if test -z "$INSTALL"; then
2142 if ${ac_cv_path_install+:} false; then :
2143 $as_echo_n "(cached) " >&6
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in #((
2152 ./ | .// | /[cC]/* | \
2153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2157 # OSF1 and SCO ODT 3.0 have their own names for install.
2158 # Don't use installbsd from OSF since it installs stuff as root
2160 for ac_prog in ginstall scoinst install; do
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163 if test $ac_prog = install &&
2164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # AIX install. It has an incompatible calling convention.
2167 elif test $ac_prog = install &&
2168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # program-specific install script used by HP pwplus--don't use.
2172 rm -rf conftest.one conftest.two conftest.dir
2173 echo one > conftest.one
2174 echo two > conftest.two
2176 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177 test -s conftest.one && test -s conftest.two &&
2178 test -s conftest.dir/conftest.one &&
2179 test -s conftest.dir/conftest.two
2181 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2194 rm -rf conftest.one conftest.two conftest.dir
2197 if test "${ac_cv_path_install+set}" = set; then
2198 INSTALL=$ac_cv_path_install
2200 # As a last resort, use the slow shell script. Don't cache a
2201 # value for INSTALL within a source directory, because that will
2202 # break other packages using the cache if that directory is
2203 # removed, or if the value is a relative name.
2204 INSTALL=$ac_install_sh
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208 $as_echo "$INSTALL" >&6; }
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219 $as_echo_n "checking whether build environment is sane... " >&6; }
2222 echo timestamp > conftest.file
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name. Accept space and tab only in the latter.
2228 *[\\\"\#\$\&\'\`$am_lf]*)
2229 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2232 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2233 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments. Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243 if test "$*" = "X"; then
2245 set X `ls -t "$srcdir/configure" conftest.file`
2248 if test "$*" != "X $srcdir/configure conftest.file" \
2249 && test "$*" != "X conftest.file $srcdir/configure"; then
2251 # If neither matched, then we have a broken ls. This can happen
2252 # if, for instance, CONFIG_SHELL is bash and it inherits a
2253 # broken ls alias from the environment. This has actually
2254 # happened. Such a system could not be considered "sane".
2255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2256 alias in your environment" "$LINENO" 5
2259 test "$2" = conftest.file
2265 as_fn_error $? "newly created file is older than distributed files!
2266 Check your system clock" "$LINENO" 5
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269 $as_echo "yes" >&6; }
2270 test "$program_prefix" != NONE &&
2271 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272 # Use a double $ so make ignores it.
2273 test "$program_suffix" != NONE &&
2274 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275 # Double any \ or $.
2276 # By default was `s,x,x', remove it if useless.
2277 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2283 if test x"${MISSING+set}" != xset; then
2286 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2288 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293 am_missing_run="$MISSING --run "
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2300 if test x"${install_sh}" != xset; then
2303 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2305 install_sh="\${SHELL} $am_aux_dir/install-sh"
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'. However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_STRIP+:} false; then :
2320 $as_echo_n "(cached) " >&6
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345 $as_echo "$STRIP" >&6; }
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2353 if test -z "$ac_cv_prog_STRIP"; then
2355 # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360 $as_echo_n "(cached) " >&6
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385 $as_echo "$ac_ct_STRIP" >&6; }
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2391 if test "x$ac_ct_STRIP" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2403 STRIP="$ac_cv_prog_STRIP"
2407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411 if test -z "$MKDIR_P"; then
2412 if ${ac_cv_path_mkdir+:} false; then :
2413 $as_echo_n "(cached) " >&6
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2419 test -z "$as_dir" && as_dir=.
2420 for ac_prog in mkdir gmkdir; do
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424 'mkdir (GNU coreutils) '* | \
2425 'mkdir (coreutils) '* | \
2426 'mkdir (fileutils) '4.1*)
2427 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 test -d ./--version && rmdir ./--version
2438 if test "${ac_cv_path_mkdir+set}" = set; then
2439 MKDIR_P="$ac_cv_path_mkdir -p"
2441 # As a last resort, use the slow shell script. Don't cache a
2442 # value for MKDIR_P within a source directory, because that will
2443 # break other packages using the cache if that directory is
2444 # removed, or if the value is a relative name.
2445 MKDIR_P="$ac_install_sh -d"
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449 $as_echo "$MKDIR_P" >&6; }
2453 [\\/$]* | ?:[\\/]*) ;;
2454 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2457 for ac_prog in gawk mawk nawk awk
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_AWK+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 if test -n "$AWK"; then
2467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_AWK="$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$AWK"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489 $as_echo "$AWK" >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2496 test -n "$AWK" && break
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504 $as_echo_n "(cached) " >&6
2506 cat >conftest.make <<\_ACEOF
2509 @echo '@@@%%%=$(MAKE)=@@@%%%'
2511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2514 eval ac_cv_prog_make_${ac_make}_set=yes;;
2516 eval ac_cv_prog_make_${ac_make}_set=no;;
2520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527 SET_MAKE="MAKE=${MAKE-make}"
2530 rm -rf .tst 2>/dev/null
2531 mkdir .tst 2>/dev/null
2532 if test -d .tst; then
2537 rmdir .tst 2>/dev/null
2539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541 # is not polluted with repeated "-I."
2542 am__isrc=' -I$(srcdir)'
2543 # test to see if srcdir already configured
2544 if test -f $srcdir/config.status; then
2545 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2549 # test whether we have cygpath
2550 if test -z "$CYGPATH_W"; then
2551 if (cygpath --version) >/dev/null 2>/dev/null; then
2552 CYGPATH_W='cygpath -w'
2559 # Define the identity of the package.
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE "$PACKAGE"
2569 cat >>confdefs.h <<_ACEOF
2570 #define VERSION "$VERSION"
2573 # Some tools Automake needs.
2575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2589 # We need awk for the "check" target. The system "awk" is bad on
2591 # Always define AMTAR for backward compatibility.
2593 AMTAR=${AMTAR-"${am_missing_run}tar"}
2595 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2603 ## ------------------ ##
2604 ## C compiler checks. ##
2605 ## ------------------ ##
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 if test -n "$ac_tool_prefix"; then
2612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2650 if test -z "$ac_cv_prog_CC"; then
2652 # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_ac_ct_CC="gcc"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682 $as_echo "$ac_ct_CC" >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2688 if test "x$ac_ct_CC" = x; then
2691 case $cross_compiling:$ac_tool_warned in
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="${ac_tool_prefix}cc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2744 if test -z "$CC"; then
2745 # Extract the first word of "cc", so it can be a program name with args.
2746 set dummy cc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_CC+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764 ac_prog_rejected=yes
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test $ac_prog_rejected = yes; then
2776 # We found a bogon in the path, so make sure we never use it.
2777 set dummy $ac_cv_prog_CC
2779 if test $# != 0; then
2780 # We chose a different compiler from the bogus one.
2781 # However, it has the same basename, so the bogon will be chosen
2782 # first if we set CC to just the basename; use the full file name.
2784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2800 if test -z "$CC"; then
2801 if test -n "$ac_tool_prefix"; then
2802 for ac_prog in cl.exe
2804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2841 test -n "$CC" && break
2844 if test -z "$CC"; then
2846 for ac_prog in cl.exe
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_CC="$ac_prog"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878 $as_echo "$ac_ct_CC" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2885 test -n "$ac_ct_CC" && break
2888 if test "x$ac_ct_CC" = x; then
2891 case $cross_compiling:$ac_tool_warned in
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "no acceptable C compiler found in \$PATH
2907 See \`config.log' for more details" "$LINENO" 5; }
2909 # Provide some information about the compiler.
2910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2913 for ac_option in --version -v -V -qversion; do
2914 { { ac_try="$ac_compiler $ac_option >&5"
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2923 if test -s conftest.err; then
2925 ... rest of stderr output deleted ...
2926 10q' conftest.err >conftest.er1
2927 cat conftest.er1 >&5
2929 rm -f conftest.er1 conftest.err
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2945 ac_clean_files_save=$ac_clean_files
2946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2947 # Try to create an executable without -o first, disregard a.out.
2948 # It will help us diagnose broken compilers, and finding out an intuition
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2951 $as_echo_n "checking whether the C compiler works... " >&6; }
2952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2954 # The possible output files:
2955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2958 for ac_file in $ac_files
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967 if { { ac_try="$ac_link_default"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link_default") 2>&5
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; then :
2978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2981 # so that the user can short-circuit this test for compilers unknown to
2983 for ac_file in $ac_files ''
2985 test -f "$ac_file" || continue
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2990 # We found the default executable, but exeext='' is most
2994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 # We set ac_cv_exeext here because the later test for it is not
2999 # safe: cross compilers may not add the suffix if given an `-o'
3000 # argument, so we may need to know it at that point already.
3001 # Even if this section looks crufty: it has the advantage of
3008 test "$ac_cv_exeext" = no && ac_cv_exeext=
3013 if test -z "$ac_file"; then :
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 $as_echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error 77 "C compiler cannot create executables
3022 See \`config.log' for more details" "$LINENO" 5; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3028 $as_echo_n "checking for C compiler default output file name... " >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3030 $as_echo "$ac_file" >&6; }
3031 ac_exeext=$ac_cv_exeext
3033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3034 ac_clean_files=$ac_clean_files_save
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3036 $as_echo_n "checking for suffix of executables... " >&6; }
3037 if { { ac_try="$ac_link"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link") 2>&5
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3049 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3050 # work properly (i.e., refer to `conftest.exe'), while it won't with
3052 for ac_file in conftest.exe conftest conftest.*; do
3053 test -f "$ac_file" || continue
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3056 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details" "$LINENO" 5; }
3067 rm -f conftest conftest$ac_cv_exeext
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3069 $as_echo "$ac_cv_exeext" >&6; }
3071 rm -f conftest.$ac_ext
3072 EXEEXT=$ac_cv_exeext
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3080 FILE *f = fopen ("conftest.out", "w");
3081 return ferror (f) || fclose (f) != 0;
3087 ac_clean_files="$ac_clean_files conftest.out"
3088 # Check that the compiler produces executables we can run. If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 if test "$cross_compiling" != yes; then
3093 { { ac_try="$ac_link"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link") 2>&5
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 if { ac_try='./conftest$ac_cv_exeext'
3105 { { case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_try") 2>&5
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; }; then
3117 if test "$cross_compiling" = maybe; then
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details" "$LINENO" 5; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129 $as_echo "$cross_compiling" >&6; }
3131 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3132 ac_clean_files=$ac_clean_files_save
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3134 $as_echo_n "checking for suffix of object files... " >&6; }
3135 if ${ac_cv_objext+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3149 rm -f conftest.o conftest.obj
3150 if { { ac_try="$ac_compile"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compile") 2>&5
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; then :
3161 for ac_file in conftest.o conftest.obj conftest.*; do
3162 test -f "$ac_file" || continue;
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "cannot compute suffix of object files: cannot compile
3176 See \`config.log' for more details" "$LINENO" 5; }
3178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3181 $as_echo "$ac_cv_objext" >&6; }
3182 OBJEXT=$ac_cv_objext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3186 if ${ac_cv_c_compiler_gnu+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3203 if ac_fn_c_try_compile "$LINENO"; then :
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3223 if ${ac_cv_prog_cc_g+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 ac_save_c_werror_flag=$ac_c_werror_flag
3227 ac_c_werror_flag=yes
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 if ac_fn_c_try_compile "$LINENO"; then :
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3256 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3272 if ac_fn_c_try_compile "$LINENO"; then :
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_c_werror_flag=$ac_save_c_werror_flag
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3283 $as_echo "$ac_cv_prog_cc_g" >&6; }
3284 if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287 if test "$GCC" = yes; then
3293 if test "$GCC" = yes; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3301 if ${ac_cv_prog_cc_c89+:} false; then :
3302 $as_echo_n "(cached) " >&6
3304 ac_cv_prog_cc_c89=no
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3310 #include <sys/types.h>
3311 #include <sys/stat.h>
3312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3313 struct buf { int x; };
3314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3315 static char *e (p, i)
3321 static char *f (char * (*g) (char **, int), char **p, ...)
3326 s = g (p, va_arg (v,int));
3331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3332 function prototypes and stuff, but not '\xHH' hex character constants.
3333 These don't provoke an error unfortunately, instead are silently treated
3334 as 'x'. The following induces an error, until -std is added to get
3335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3336 array size at least. It's necessary to write '\x00'==0 to get something
3337 that's true only with -std. */
3338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3341 inside strings and character constants. */
3343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345 int test (int i, double x);
3346 struct s1 {int (*f) (int a);};
3347 struct s2 {int (*f) (double a);};
3348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 CC="$ac_save_CC $ac_arg"
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364 ac_cv_prog_cc_c89=$ac_arg
3366 rm -f core conftest.err conftest.$ac_objext
3367 test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 rm -f conftest.$ac_ext
3374 case "x$ac_cv_prog_cc_c89" in
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3377 $as_echo "none needed" >&6; } ;;
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3380 $as_echo "unsupported" >&6; } ;;
3382 CC="$CC $ac_cv_prog_cc_c89"
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386 if test "x$ac_cv_prog_cc_c89" != xno; then :
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 DEPDIR="${am__leading_dot}deps"
3397 ac_config_commands="$ac_config_commands depfiles"
3400 am_make=${MAKE-make}
3401 cat > confinc << 'END'
3403 @echo this is the am__doit target
3406 # If we don't find an include directive, just comment out the code.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3408 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3412 # First try GNU make style include.
3413 echo "include confinc" > confmf
3414 # Ignore all kinds of additional output from `make'.
3415 case `$am_make -s -f confmf 2> /dev/null` in #(
3416 *the\ am__doit\ target*)
3422 # Now try BSD make style include.
3423 if test "$am__include" = "#"; then
3424 echo '.include "confinc"' > confmf
3425 case `$am_make -s -f confmf 2> /dev/null` in #(
3426 *the\ am__doit\ target*)
3427 am__include=.include
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3436 $as_echo "$_am_result" >&6; }
3437 rm -f confinc confmf
3439 # Check whether --enable-dependency-tracking was given.
3440 if test "${enable_dependency_tracking+set}" = set; then :
3441 enableval=$enable_dependency_tracking;
3444 if test "x$enable_dependency_tracking" != xno; then
3445 am_depcomp="$ac_aux_dir/depcomp"
3448 if test "x$enable_dependency_tracking" != xno; then
3458 depcc="$CC" am_compiler_list=
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3461 $as_echo_n "checking dependency style of $depcc... " >&6; }
3462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3466 # We make a subdir and do the tests there. Otherwise we can end up
3467 # making bogus files that we don't know about and never remove. For
3468 # instance it was reported that on HP-UX the gcc test will end up
3469 # making a dummy file named `D' -- because `-MD' means `put the output
3472 # Copy depcomp to subdir because otherwise we won't find it if we're
3473 # using a relative directory.
3474 cp "$am_depcomp" conftest.dir
3476 # We will build objects and dependencies in a subdirectory because
3477 # it helps to detect inapplicable dependency modes. For instance
3478 # both Tru64's cc and ICC support -MD to output dependencies as a
3479 # side effect of compilation, but ICC will put the dependencies in
3480 # the current directory while Tru64 will put them in the object
3484 am_cv_CC_dependencies_compiler_type=none
3485 if test "$am_compiler_list" = ""; then
3486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3489 case " $depcc " in #(
3490 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3493 for depmode in $am_compiler_list; do
3494 # Setup a source with many dependencies, because some compilers
3495 # like to wrap large dependency lists on column 80 (with \), and
3496 # we should not choose a depcomp mode which is confused by this.
3498 # We need to recreate these files for each test, as the compiler may
3499 # overwrite some of them when testing with obscure command lines.
3500 # This happens at least with the AIX C compiler.
3502 for i in 1 2 3 4 5 6; do
3503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3504 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3505 # Solaris 8's {/usr,}/bin/sh.
3506 touch sub/conftst$i.h
3508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3510 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3511 # mode. It turns out that the SunPro C++ compiler does not properly
3512 # handle `-M -o', and we need to detect this. Also, some Intel
3513 # versions had trouble with output in subdirs
3514 am__obj=sub/conftest.${OBJEXT-o}
3515 am__minus_obj="-o $am__obj"
3518 # This depmode causes a compiler race in universal mode.
3519 test "$am__universal" = false || continue
3522 # after this tag, mechanisms are not by side-effect, so they'll
3523 # only be used when explicitly requested
3524 if test "x$enable_dependency_tracking" = xyes; then
3530 msvisualcpp | msvcmsys)
3531 # This compiler won't grok `-c -o', but also, the minuso test has
3532 # not run yet. These depmodes are late enough in the game, and
3533 # so weak that their functioning should not be impacted.
3534 am__obj=conftest.${OBJEXT-o}
3539 if depmode=$depmode \
3540 source=sub/conftest.c object=$am__obj \
3541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3543 >/dev/null 2>conftest.err &&
3544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548 # icc doesn't choke on unknown options, it will just issue warnings
3549 # or remarks (even with -Werror). So we grep stderr for any message
3550 # that says an option was ignored or not supported.
3551 # When given -MP, icc 7.0 and 7.1 complain thusly:
3552 # icc: Command line warning: ignoring option '-M'; no argument required
3553 # The diagnosis changed in icc 8.0:
3554 # icc: Command line remark: option '-MP' not supported
3555 if (grep 'ignoring option' conftest.err ||
3556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557 am_cv_CC_dependencies_compiler_type=$depmode
3566 am_cv_CC_dependencies_compiler_type=none
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3571 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3575 test "x$enable_dependency_tracking" != xno \
3576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3578 am__fastdepCC_FALSE='#'
3580 am__fastdepCC_TRUE='#'
3581 am__fastdepCC_FALSE=
3587 ## ----------------------- ##
3588 ## Libtool initialisation. ##
3589 ## ----------------------- ##
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3593 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3598 macro_version='2.4.2'
3599 macro_revision='1.3337'
3613 ltmain="$ac_aux_dir/ltmain.sh"
3615 # Make sure we can run config.sub.
3616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3617 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3620 $as_echo_n "checking build system type... " >&6; }
3621 if ${ac_cv_build+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 ac_build_alias=$build_alias
3625 test "x$ac_build_alias" = x &&
3626 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3627 test "x$ac_build_alias" = x &&
3628 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3634 $as_echo "$ac_cv_build" >&6; }
3635 case $ac_cv_build in
3637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3640 ac_save_IFS=$IFS; IFS='-'
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3654 $as_echo_n "checking host system type... " >&6; }
3655 if ${ac_cv_host+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 if test "x$host_alias" = x; then
3659 ac_cv_host=$ac_cv_build
3661 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667 $as_echo "$ac_cv_host" >&6; }
3670 *) as_fn_error $? "invalid value of canonical host" "$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 $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3686 # Backslashify metacharacters that are still active within
3687 # double-quoted strings.
3688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3690 # Same as above, but do not quote variable references.
3691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3693 # Sed substitution to delay expansion of an escaped shell variable in a
3694 # double_quote_subst'ed string.
3695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3697 # Sed substitution to delay expansion of an escaped single quote.
3698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3700 # Sed substitution to avoid accidental globbing in evaled expressions
3701 no_glob_subst='s/\*/\\\*/g'
3703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3708 $as_echo_n "checking how to print strings... " >&6; }
3709 # Test print first, because it will be a builtin if present.
3710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3711 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3716 # Use this function as a fallback that always works.
3717 func_fallback_echo ()
3719 eval 'cat <<_LTECHO_EOF
3723 ECHO='func_fallback_echo'
3726 # func_echo_all arg...
3727 # Invoke $ECHO with all args, space-separated.
3734 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3735 $as_echo "printf" >&6; } ;;
3736 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3737 $as_echo "print -r" >&6; } ;;
3738 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3739 $as_echo "cat" >&6; } ;;
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3757 if ${ac_cv_path_SED+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3761 for ac_i in 1 2 3 4 5 6 7; do
3762 ac_script="$ac_script$as_nl$ac_script"
3764 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3765 { ac_script=; unset ac_script;}
3766 if test -z "$SED"; then
3767 ac_path_SED_found=false
3768 # Loop through the user's path and test for each of PROGNAME-LIST
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_prog in sed gsed; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3777 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3778 # Check for GNU ac_path_SED and select it if it is found.
3779 # Check for GNU $ac_path_SED
3780 case `"$ac_path_SED" --version 2>&1` in
3782 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3785 $as_echo_n 0123456789 >"conftest.in"
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 $as_echo '' >> "conftest.nl"
3792 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 as_fn_arith $ac_count + 1 && ac_count=$as_val
3795 if test $ac_count -gt ${ac_path_SED_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_SED="$ac_path_SED"
3798 ac_path_SED_max=$ac_count
3800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 $ac_path_SED_found && break 3
3811 if test -z "$ac_cv_path_SED"; then
3812 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3820 $as_echo "$ac_cv_path_SED" >&6; }
3821 SED="$ac_cv_path_SED"
3824 test -z "$SED" && SED=sed
3825 Xsed="$SED -e 1s/^X//"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839 if ${ac_cv_path_GREP+:} false; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -z "$GREP"; then
3843 ac_path_GREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in grep ggrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855 # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3861 $as_echo_n 0123456789 >"conftest.in"
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 $as_echo 'GREP' >> "conftest.nl"
3868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 as_fn_arith $ac_count + 1 && ac_count=$as_val
3871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_GREP="$ac_path_GREP"
3874 ac_path_GREP_max=$ac_count
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3882 $ac_path_GREP_found && break 3
3887 if test -z "$ac_cv_path_GREP"; then
3888 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3891 ac_cv_path_GREP=$GREP
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896 $as_echo "$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901 $as_echo_n "checking for egrep... " >&6; }
3902 if ${ac_cv_path_EGREP+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3908 if test -z "$EGREP"; then
3909 ac_path_EGREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in egrep; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921 # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3927 $as_echo_n 0123456789 >"conftest.in"
3930 cat "conftest.in" "conftest.in" >"conftest.tmp"
3931 mv "conftest.tmp" "conftest.in"
3932 cp "conftest.in" "conftest.nl"
3933 $as_echo 'EGREP' >> "conftest.nl"
3934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936 as_fn_arith $ac_count + 1 && ac_count=$as_val
3937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938 # Best one so far, save it but keep looking for a better one
3939 ac_cv_path_EGREP="$ac_path_EGREP"
3940 ac_path_EGREP_max=$ac_count
3942 # 10*(2^10) chars as input seems more than enough
3943 test $ac_count -gt 10 && break
3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948 $ac_path_EGREP_found && break 3
3953 if test -z "$ac_cv_path_EGREP"; then
3954 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3957 ac_cv_path_EGREP=$EGREP
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963 $as_echo "$ac_cv_path_EGREP" >&6; }
3964 EGREP="$ac_cv_path_EGREP"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3968 $as_echo_n "checking for fgrep... " >&6; }
3969 if ${ac_cv_path_FGREP+:} false; then :
3970 $as_echo_n "(cached) " >&6
3972 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3973 then ac_cv_path_FGREP="$GREP -F"
3975 if test -z "$FGREP"; then
3976 ac_path_FGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in fgrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3987 # Check for GNU ac_path_FGREP and select it if it is found.
3988 # Check for GNU $ac_path_FGREP
3989 case `"$ac_path_FGREP" --version 2>&1` in
3991 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3994 $as_echo_n 0123456789 >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'FGREP' >> "conftest.nl"
4001 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 as_fn_arith $ac_count + 1 && ac_count=$as_val
4004 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_FGREP="$ac_path_FGREP"
4007 ac_path_FGREP_max=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 $ac_path_FGREP_found && break 3
4020 if test -z "$ac_cv_path_FGREP"; then
4021 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 ac_cv_path_FGREP=$FGREP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4030 $as_echo "$ac_cv_path_FGREP" >&6; }
4031 FGREP="$ac_cv_path_FGREP"
4034 test -z "$GREP" && GREP=grep
4054 # Check whether --with-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then :
4056 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4062 if test "$GCC" = yes; then
4063 # Check if gcc -print-prog-name=ld gives a path.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4065 $as_echo_n "checking for ld used by $CC... " >&6; }
4068 # gcc leaves a trailing carriage return which upsets mingw
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4074 # Accept absolute paths.
4076 re_direlt='/[^/][^/]*/\.\./'
4077 # Canonicalize the pathname of ld
4078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4082 test -z "$LD" && LD="$ac_prog"
4085 # If it fails, then pretend we aren't using GCC.
4089 # If it is relative, then search for the first ld in PATH.
4093 elif test "$with_gnu_ld" = yes; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4095 $as_echo_n "checking for GNU ld... " >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4098 $as_echo_n "checking for non-GNU ld... " >&6; }
4100 if ${lt_cv_path_LD+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if test -z "$LD"; then
4104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105 for ac_dir in $PATH; do
4107 test -z "$ac_dir" && ac_dir=.
4108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109 lt_cv_path_LD="$ac_dir/$ac_prog"
4110 # Check to see if the program is GNU ld. I'd rather use --version,
4111 # but apparently some variants of GNU ld only accept -v.
4112 # Break only if it was the GNU/non-GNU ld that we prefer.
4113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114 *GNU* | *'with BFD'*)
4115 test "$with_gnu_ld" != no && break
4118 test "$with_gnu_ld" != yes && break
4125 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4130 if test -n "$LD"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4132 $as_echo "$LD" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4140 if ${lt_cv_prog_gnu_ld+:} false; then :
4141 $as_echo_n "(cached) " >&6
4143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4144 case `$LD -v 2>&1 </dev/null` in
4145 *GNU* | *'with BFD'*)
4146 lt_cv_prog_gnu_ld=yes
4149 lt_cv_prog_gnu_ld=no
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4155 with_gnu_ld=$lt_cv_prog_gnu_ld
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4167 if ${lt_cv_path_NM+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -n "$NM"; then
4171 # Let the user override the test.
4174 lt_nm_to_check="${ac_tool_prefix}nm"
4175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4176 lt_nm_to_check="$lt_nm_to_check nm"
4178 for lt_tmp_nm in $lt_nm_to_check; do
4179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4182 test -z "$ac_dir" && ac_dir=.
4183 tmp_nm="$ac_dir/$lt_tmp_nm"
4184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4185 # Check to see if the nm accepts a BSD-compat flag.
4186 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4187 # nm: unknown option "B" ignored
4188 # Tru64's nm complains that /dev/null is an invalid object file
4189 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4190 */dev/null* | *'Invalid file or object type'*)
4191 lt_cv_path_NM="$tmp_nm -B"
4195 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4197 lt_cv_path_NM="$tmp_nm -p"
4201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202 continue # so that we can try to find one that supports BSD flags
4211 : ${lt_cv_path_NM=no}
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4215 $as_echo "$lt_cv_path_NM" >&6; }
4216 if test "$lt_cv_path_NM" != "no"; then
4219 # Didn't find any BSD compatible name lister, look for dumpbin.
4220 if test -n "$DUMPBIN"; then :
4221 # Let the user override the test.
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in dumpbin "link -dump"
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_DUMPBIN+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$DUMPBIN"; then
4234 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 DUMPBIN=$ac_cv_prog_DUMPBIN
4254 if test -n "$DUMPBIN"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4256 $as_echo "$DUMPBIN" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$DUMPBIN" && break
4266 if test -z "$DUMPBIN"; then
4267 ac_ct_DUMPBIN=$DUMPBIN
4268 for ac_prog in dumpbin "link -dump"
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$ac_ct_DUMPBIN"; then
4278 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4298 if test -n "$ac_ct_DUMPBIN"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4300 $as_echo "$ac_ct_DUMPBIN" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$ac_ct_DUMPBIN" && break
4310 if test "x$ac_ct_DUMPBIN" = x; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4319 DUMPBIN=$ac_ct_DUMPBIN
4323 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4325 DUMPBIN="$DUMPBIN -symbols"
4333 if test "$DUMPBIN" != ":"; then
4337 test -z "$NM" && NM=nm
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4345 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4346 if ${lt_cv_nm_interface+:} false; then :
4347 $as_echo_n "(cached) " >&6
4349 lt_cv_nm_interface="BSD nm"
4350 echo "int some_variable = 0;" > conftest.$ac_ext
4351 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4352 (eval "$ac_compile" 2>conftest.err)
4353 cat conftest.err >&5
4354 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4355 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4356 cat conftest.err >&5
4357 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4358 cat conftest.out >&5
4359 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4360 lt_cv_nm_interface="MS dumpbin"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4365 $as_echo "$lt_cv_nm_interface" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4368 $as_echo_n "checking whether ln -s works... " >&6; }
4370 if test "$LN_S" = "ln -s"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4375 $as_echo "no, using $LN_S" >&6; }
4378 # find the maximum length of command line arguments
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4380 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4381 if ${lt_cv_sys_max_cmd_len+:} false; then :
4382 $as_echo_n "(cached) " >&6
4389 # On DJGPP, this test can blow up pretty badly due to problems in libc
4390 # (any single argument exceeding 2000 bytes causes a buffer overrun
4391 # during glob expansion). Even if it were fixed, the result of this
4392 # check would be larger than it should be.
4393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4397 # Under GNU Hurd, this test is not required because there is
4398 # no limit to the length of command line arguments.
4399 # Libtool will interpret -1 as no limit whatsoever
4400 lt_cv_sys_max_cmd_len=-1;
4403 cygwin* | mingw* | cegcc*)
4404 # On Win9x/ME, this test blows up -- it succeeds, but takes
4405 # about 5 minutes as the teststring grows exponentially.
4406 # Worse, since 9x/ME are not pre-emptively multitasking,
4407 # you end up with a "frozen" computer, even though with patience
4408 # the test eventually succeeds (with a max line length of 256k).
4409 # Instead, let's just punt: use the minimum linelength reported by
4410 # all of the supported platforms: 8192 (on NT/2K/XP).
4411 lt_cv_sys_max_cmd_len=8192;
4415 # On MiNT this can take a long time and run out of memory.
4416 lt_cv_sys_max_cmd_len=8192;
4420 # On AmigaOS with pdksh, this test takes hours, literally.
4421 # So we just punt and use a minimum line length of 8192.
4422 lt_cv_sys_max_cmd_len=8192;
4425 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4426 # This has been around since 386BSD, at least. Likely further.
4427 if test -x /sbin/sysctl; then
4428 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4429 elif test -x /usr/sbin/sysctl; then
4430 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4432 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4434 # And add a safety zone
4435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4440 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4441 lt_cv_sys_max_cmd_len=196608
4445 # The test takes a long time on OS/2.
4446 lt_cv_sys_max_cmd_len=8192
4450 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4451 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4452 # nice to cause kernel panics so lets avoid the loop below.
4453 # First set a reasonable default.
4454 lt_cv_sys_max_cmd_len=16384
4456 if test -x /sbin/sysconfig; then
4457 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4458 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4463 lt_cv_sys_max_cmd_len=102400
4465 sysv5* | sco5v6* | sysv4.2uw2*)
4466 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4467 if test -n "$kargmax"; then
4468 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4470 lt_cv_sys_max_cmd_len=32768
4474 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4475 if test -n "$lt_cv_sys_max_cmd_len"; then
4476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4479 # Make teststring a little bigger before we do anything with it.
4480 # a 1K string should be a reasonable start.
4481 for i in 1 2 3 4 5 6 7 8 ; do
4482 teststring=$teststring$teststring
4484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4485 # If test is not a shell built-in, we'll probably end up computing a
4486 # maximum length that is only half of the actual maximum length, but
4488 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4489 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4490 test $i != 17 # 1/2 MB should be enough
4493 teststring=$teststring$teststring
4495 # Only check the string length outside the loop.
4496 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4498 # Add a significant safety factor because C++ compilers can tack on
4499 # massive amounts of additional arguments before passing them to the
4500 # linker. It appears as though 1/2 is a usable value.
4501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4508 if test -n $lt_cv_sys_max_cmd_len ; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4510 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4513 $as_echo "none" >&6; }
4515 max_cmd_len=$lt_cv_sys_max_cmd_len
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4527 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4528 # Try some XSI features
4531 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4533 && eval 'test $(( 1 + 1 )) -eq 2 \
4534 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4537 $as_echo "$xsi_shell" >&6; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4541 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4543 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4545 && lt_shell_append=yes
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4547 $as_echo "$lt_shell_append" >&6; }
4550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4560 # test EBCDIC or ASCII
4561 case `echo X|tr X '\101'` in
4562 A) # ASCII based system
4563 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4564 lt_SP2NL='tr \040 \012'
4565 lt_NL2SP='tr \015\012 \040\040'
4567 *) # EBCDIC based system
4568 lt_SP2NL='tr \100 \n'
4569 lt_NL2SP='tr \r\n \100\100'
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4582 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4583 if ${lt_cv_to_host_file_cmd+:} false; then :
4584 $as_echo_n "(cached) " >&6
4589 *-*-mingw* ) # actually msys
4590 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4593 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4595 * ) # otherwise, assume *nix
4596 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4602 *-*-mingw* ) # actually msys
4603 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4606 lt_cv_to_host_file_cmd=func_convert_file_noop
4608 * ) # otherwise, assume *nix
4609 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4613 * ) # unhandled hosts (and "normal" native builds)
4614 lt_cv_to_host_file_cmd=func_convert_file_noop
4620 to_host_file_cmd=$lt_cv_to_host_file_cmd
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4622 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4629 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4630 if ${lt_cv_to_tool_file_cmd+:} false; then :
4631 $as_echo_n "(cached) " >&6
4633 #assume ordinary cross tools, or native build.
4634 lt_cv_to_tool_file_cmd=func_convert_file_noop
4638 *-*-mingw* ) # actually msys
4639 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4649 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4657 if ${lt_cv_ld_reload_flag+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 lt_cv_ld_reload_flag='-r'
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4664 reload_flag=$lt_cv_ld_reload_flag
4665 case $reload_flag in
4667 *) reload_flag=" $reload_flag" ;;
4669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4671 cygwin* | mingw* | pw32* | cegcc*)
4672 if test "$GCC" != yes; then
4677 if test "$GCC" = yes; then
4678 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_prog_OBJDUMP+:} false; then :
4699 $as_echo_n "(cached) " >&6
4701 if test -n "$OBJDUMP"; then
4702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 OBJDUMP=$ac_cv_prog_OBJDUMP
4722 if test -n "$OBJDUMP"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4724 $as_echo "$OBJDUMP" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4732 if test -z "$ac_cv_prog_OBJDUMP"; then
4733 ac_ct_OBJDUMP=$OBJDUMP
4734 # Extract the first word of "objdump", so it can be a program name with args.
4735 set dummy objdump; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$ac_ct_OBJDUMP"; then
4742 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4762 if test -n "$ac_ct_OBJDUMP"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4764 $as_echo "$ac_ct_OBJDUMP" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4770 if test "x$ac_ct_OBJDUMP" = x; then
4773 case $cross_compiling:$ac_tool_warned in
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4779 OBJDUMP=$ac_ct_OBJDUMP
4782 OBJDUMP="$ac_cv_prog_OBJDUMP"
4785 test -z "$OBJDUMP" && OBJDUMP=objdump
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4796 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4797 if ${lt_cv_deplibs_check_method+:} false; then :
4798 $as_echo_n "(cached) " >&6
4800 lt_cv_file_magic_cmd='$MAGIC_CMD'
4801 lt_cv_file_magic_test_file=
4802 lt_cv_deplibs_check_method='unknown'
4803 # Need to set the preceding variable on all platforms that support
4804 # interlibrary dependencies.
4805 # 'none' -- dependencies not supported.
4806 # `unknown' -- same as none, but documents that we really don't know.
4807 # 'pass_all' -- all dependencies passed with no checks.
4808 # 'test_compile' -- check by making test program.
4809 # 'file_magic [[regex]]' -- check by looking for files in library path
4810 # which responds to the $file_magic_cmd with a given extended regex.
4811 # If you have `file' or equivalent on your system and you're not sure
4812 # whether `pass_all' will *always* work, you probably want this one.
4816 lt_cv_deplibs_check_method=pass_all
4820 lt_cv_deplibs_check_method=pass_all
4824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4825 lt_cv_file_magic_cmd='/usr/bin/file -L'
4826 lt_cv_file_magic_test_file=/shlib/libc.so
4830 # func_win32_libid is a shell function defined in ltmain.sh
4831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4832 lt_cv_file_magic_cmd='func_win32_libid'
4836 # Base MSYS/MinGW do not provide the 'file' command needed by
4837 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4838 # unless we find 'file', for example because we are cross-compiling.
4839 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4840 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842 lt_cv_file_magic_cmd='func_win32_libid'
4844 # Keep this pattern in sync with the one in func_win32_libid.
4845 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4846 lt_cv_file_magic_cmd='$OBJDUMP -f'
4851 # use the weaker test based on 'objdump'. See mingw*.
4852 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4853 lt_cv_file_magic_cmd='$OBJDUMP -f'
4856 darwin* | rhapsody*)
4857 lt_cv_deplibs_check_method=pass_all
4860 freebsd* | dragonfly*)
4861 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4864 # Not sure whether the presence of OpenBSD here was a mistake.
4865 # Let's accept both of them until this is cleared up.
4866 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4867 lt_cv_file_magic_cmd=/usr/bin/file
4868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4872 lt_cv_deplibs_check_method=pass_all
4877 lt_cv_deplibs_check_method=pass_all
4881 lt_cv_deplibs_check_method=pass_all
4884 hpux10.20* | hpux11*)
4885 lt_cv_file_magic_cmd=/usr/bin/file
4888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4892 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]'
4893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4903 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4907 irix5* | irix6* | nonstopux*)
4909 *-32|*"-32 ") libmagic=32-bit;;
4910 *-n32|*"-n32 ") libmagic=N32;;
4911 *-64|*"-64 ") libmagic=64-bit;;
4912 *) libmagic=never-match;;
4914 lt_cv_deplibs_check_method=pass_all
4917 # This must be glibc/ELF.
4918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4919 lt_cv_deplibs_check_method=pass_all
4923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4932 lt_cv_file_magic_cmd=/usr/bin/file
4933 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4937 lt_cv_deplibs_check_method=pass_all
4941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948 osf3* | osf4* | osf5*)
4949 lt_cv_deplibs_check_method=pass_all
4953 lt_cv_deplibs_check_method=pass_all
4957 lt_cv_deplibs_check_method=pass_all
4960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4961 lt_cv_deplibs_check_method=pass_all
4965 case $host_vendor in
4967 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]'
4968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4971 lt_cv_deplibs_check_method=pass_all
4974 lt_cv_file_magic_cmd='/bin/file'
4975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4978 lt_cv_file_magic_cmd='/bin/file'
4979 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4980 lt_cv_file_magic_test_file=/lib/libc.so
4983 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method=pass_all
4992 lt_cv_deplibs_check_method=pass_all
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5002 if test "$build" = "$host"; then
5005 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5008 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5014 file_magic_cmd=$lt_cv_file_magic_cmd
5015 deplibs_check_method=$lt_cv_deplibs_check_method
5016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_DLLTOOL+:} false; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$DLLTOOL"; then
5048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 DLLTOOL=$ac_cv_prog_DLLTOOL
5068 if test -n "$DLLTOOL"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5070 $as_echo "$DLLTOOL" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5078 if test -z "$ac_cv_prog_DLLTOOL"; then
5079 ac_ct_DLLTOOL=$DLLTOOL
5080 # Extract the first word of "dlltool", so it can be a program name with args.
5081 set dummy dlltool; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$ac_ct_DLLTOOL"; then
5088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5108 if test -n "$ac_ct_DLLTOOL"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5110 $as_echo "$ac_ct_DLLTOOL" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5116 if test "x$ac_ct_DLLTOOL" = x; then
5119 case $cross_compiling:$ac_tool_warned in
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5125 DLLTOOL=$ac_ct_DLLTOOL
5128 DLLTOOL="$ac_cv_prog_DLLTOOL"
5131 test -z "$DLLTOOL" && DLLTOOL=dlltool
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 lt_cv_sharedlib_from_linklib_cmd='unknown'
5150 cygwin* | mingw* | pw32* | cegcc*)
5151 # two different shell functions defined in ltmain.sh
5152 # decide which to use based on capabilities of $DLLTOOL
5153 case `$DLLTOOL --help 2>&1` in
5154 *--identify-strict*)
5155 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5163 # fallback: assume linklib IS sharedlib
5164 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5181 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_AR+:} false; then :
5189 $as_echo_n "(cached) " >&6
5191 if test -n "$AR"; then
5192 ac_cv_prog_AR="$AR" # Let the user override the test.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 if test -n "$AR"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5214 $as_echo "$AR" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 test -n "$AR" && break
5224 if test -z "$AR"; then
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 if test -n "$ac_ct_AR"; then
5236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_ac_ct_AR="$ac_prog"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5256 if test -n "$ac_ct_AR"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5258 $as_echo "$ac_ct_AR" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 test -n "$ac_ct_AR" && break
5268 if test "x$ac_ct_AR" = x; then
5271 case $cross_compiling:$ac_tool_warned in
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5295 $as_echo_n "checking for archiver @FILE support... " >&6; }
5296 if ${lt_cv_ar_at_file+:} false; then :
5297 $as_echo_n "(cached) " >&6
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 echo conftest.$ac_objext > conftest.lst
5313 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5315 (eval $lt_ar_try) 2>&5
5317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318 test $ac_status = 0; }
5319 if test "$ac_status" -eq 0; then
5320 # Ensure the archiver fails upon bogus file names.
5321 rm -f conftest.$ac_objext libconftest.a
5322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5323 (eval $lt_ar_try) 2>&5
5325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }
5327 if test "$ac_status" -ne 0; then
5331 rm -f conftest.* libconftest.a
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5338 $as_echo "$lt_cv_ar_at_file" >&6; }
5340 if test "x$lt_cv_ar_at_file" = xno; then
5343 archiver_list_spec=$lt_cv_ar_at_file
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}strip; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_STRIP+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$STRIP"; then
5361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 STRIP=$ac_cv_prog_STRIP
5381 if test -n "$STRIP"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5383 $as_echo "$STRIP" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5391 if test -z "$ac_cv_prog_STRIP"; then
5393 # Extract the first word of "strip", so it can be a program name with args.
5394 set dummy strip; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 if test -n "$ac_ct_STRIP"; then
5401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_STRIP="strip"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5421 if test -n "$ac_ct_STRIP"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5423 $as_echo "$ac_ct_STRIP" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5429 if test "x$ac_ct_STRIP" = x; then
5432 case $cross_compiling:$ac_tool_warned in
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5441 STRIP="$ac_cv_prog_STRIP"
5444 test -z "$STRIP" && STRIP=:
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_RANLIB+:} false; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$RANLIB"; then
5460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 RANLIB=$ac_cv_prog_RANLIB
5480 if test -n "$RANLIB"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5482 $as_echo "$RANLIB" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5490 if test -z "$ac_cv_prog_RANLIB"; then
5491 ac_ct_RANLIB=$RANLIB
5492 # Extract the first word of "ranlib", so it can be a program name with args.
5493 set dummy ranlib; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$ac_ct_RANLIB"; then
5500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_ac_ct_RANLIB="ranlib"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520 if test -n "$ac_ct_RANLIB"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5522 $as_echo "$ac_ct_RANLIB" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5528 if test "x$ac_ct_RANLIB" = x; then
5531 case $cross_compiling:$ac_tool_warned in
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5537 RANLIB=$ac_ct_RANLIB
5540 RANLIB="$ac_cv_prog_RANLIB"
5543 test -z "$RANLIB" && RANLIB=:
5550 # Determine commands to create old-style static archives.
5551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5552 old_postinstall_cmds='chmod 644 $oldlib'
5553 old_postuninstall_cmds=
5555 if test -n "$RANLIB"; then
5558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5561 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5564 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5569 lock_old_archive_extraction=yes ;;
5571 lock_old_archive_extraction=no ;;
5612 # If no C compiler was specified, use CC.
5615 # If no C compiler flags were specified, use CFLAGS.
5616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5618 # Allow CC to be a program name with arguments.
5622 # Check for command to grab the raw symbol name followed by C symbol from nm.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5625 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5626 $as_echo_n "(cached) " >&6
5629 # These are sane defaults that work on at least a few old systems.
5630 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5632 # Character class describing NM global symbol codes.
5633 symcode='[BCDEGRST]'
5635 # Regexp to match symbols that can be accessed directly from C.
5636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5638 # Define system-specific variables.
5643 cygwin* | mingw* | pw32* | cegcc*)
5644 symcode='[ABCDGISTW]'
5647 if test "$host_cpu" = ia64; then
5648 symcode='[ABCDEGRST]'
5652 symcode='[BCDEGRST]'
5655 symcode='[BCDEGQRST]'
5666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5674 # If we're using GNU nm, then use its standard symbol codes.
5675 case `$NM -V 2>&1` in
5676 *GNU* | *'with BFD'*)
5677 symcode='[ABCDGIRSTW]' ;;
5680 # Transform an extracted symbol line into a proper C declaration.
5681 # Some systems (esp. on ia64) link data and code symbols differently,
5682 # so use this general approach.
5683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5685 # Transform an extracted symbol line into symbol name and symbol address
5686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5687 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'"
5689 # Handle CRLF in mingw tool chain
5693 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5697 # Try without a prefix underscore, then with it.
5698 for ac_symprfx in "" "_"; do
5700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5701 symxfrm="\\1 $ac_symprfx\\2 \\2"
5703 # Write the raw and C identifiers.
5704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5705 # Fake it for dumpbin and say T for any non-static function
5706 # and D for any global variable.
5707 # Also find C++ and __fastcall symbols from MSVC++,
5708 # which start with @ or ?.
5709 lt_cv_sys_global_symbol_pipe="$AWK '"\
5710 " {last_section=section; section=\$ 3};"\
5711 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5712 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5713 " \$ 0!~/External *\|/{next};"\
5714 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5715 " {if(hide[section]) next};"\
5716 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5717 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5718 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5719 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5720 " ' prfx=^$ac_symprfx"
5722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5724 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5726 # Check to see that the pipe works correctly.
5730 cat > conftest.$ac_ext <<_LT_EOF
5735 void nm_test_func(void);
5736 void nm_test_func(void){}
5740 int main(){nm_test_var='a';nm_test_func();return(0);}
5743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5744 (eval $ac_compile) 2>&5
5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747 test $ac_status = 0; }; then
5748 # Now try to grab the symbols.
5750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5751 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754 test $ac_status = 0; } && test -s "$nlist"; then
5755 # Try sorting and uniquifying the output.
5756 if sort "$nlist" | uniq > "$nlist"T; then
5757 mv -f "$nlist"T "$nlist"
5762 # Make sure that we snagged all the symbols we need.
5763 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5764 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5765 cat <<_LT_EOF > conftest.$ac_ext
5766 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5767 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5768 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5769 relocations are performed -- see ld's documentation on pseudo-relocs. */
5770 # define LT_DLSYM_CONST
5771 #elif defined(__osf__)
5772 /* This system does not cope well with relocations in const data. */
5773 # define LT_DLSYM_CONST
5775 # define LT_DLSYM_CONST const
5783 # Now generate the symbol file.
5784 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5786 cat <<_LT_EOF >> conftest.$ac_ext
5788 /* The mapping between symbol names and symbols. */
5789 LT_DLSYM_CONST struct {
5793 lt__PROGRAM__LTX_preloaded_symbols[] =
5795 { "@PROGRAM@", (void *) 0 },
5797 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5798 cat <<\_LT_EOF >> conftest.$ac_ext
5802 /* This works around a problem in FreeBSD linker */
5803 #ifdef FREEBSD_WORKAROUND
5804 static const void *lt_preloaded_setup() {
5805 return lt__PROGRAM__LTX_preloaded_symbols;
5813 # Now try linking the two files.
5814 mv conftest.$ac_objext conftstm.$ac_objext
5815 lt_globsym_save_LIBS=$LIBS
5816 lt_globsym_save_CFLAGS=$CFLAGS
5817 LIBS="conftstm.$ac_objext"
5818 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5820 (eval $ac_link) 2>&5
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5826 LIBS=$lt_globsym_save_LIBS
5827 CFLAGS=$lt_globsym_save_CFLAGS
5829 echo "cannot find nm_test_func in $nlist" >&5
5832 echo "cannot find nm_test_var in $nlist" >&5
5835 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5838 echo "$progname: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 rm -rf conftest* conftst*
5843 # Do not use the global_symbol_pipe unless it works.
5844 if test "$pipe_works" = yes; then
5847 lt_cv_sys_global_symbol_pipe=
5853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5854 lt_cv_sys_global_symbol_to_cdecl=
5856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5858 $as_echo "failed" >&6; }
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5861 $as_echo "ok" >&6; }
5864 # Response file support.
5865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5866 nm_file_list_spec='@'
5867 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5868 nm_file_list_spec='@'
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5898 $as_echo_n "checking for sysroot... " >&6; }
5900 # Check whether --with-sysroot was given.
5901 if test "${with_sysroot+set}" = set; then :
5902 withval=$with_sysroot;
5909 case ${with_sysroot} in #(
5911 if test "$GCC" = yes; then
5912 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5916 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5922 $as_echo "${with_sysroot}" >&6; }
5923 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5928 $as_echo "${lt_sysroot:-no}" >&6; }
5934 # Check whether --enable-libtool-lock was given.
5935 if test "${enable_libtool_lock+set}" = set; then :
5936 enableval=$enable_libtool_lock;
5939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5941 # Some flags need to be propagated to the compiler or linker for good
5945 # Find out which ABI we are using.
5946 echo 'int i;' > conftest.$ac_ext
5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5948 (eval $ac_compile) 2>&5
5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951 test $ac_status = 0; }; then
5952 case `/usr/bin/file conftest.$ac_objext` in
5964 # Find out which ABI we are using.
5965 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5967 (eval $ac_compile) 2>&5
5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970 test $ac_status = 0; }; then
5971 if test "$lt_cv_prog_gnu_ld" = yes; then
5972 case `/usr/bin/file conftest.$ac_objext` in
5974 LD="${LD-ld} -melf32bsmip"
5977 LD="${LD-ld} -melf32bmipn32"
5980 LD="${LD-ld} -melf64bmip"
5984 case `/usr/bin/file conftest.$ac_objext` in
6000 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6001 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6002 # Find out which ABI we are using.
6003 echo 'int i;' > conftest.$ac_ext
6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005 (eval $ac_compile) 2>&5
6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008 test $ac_status = 0; }; then
6009 case `/usr/bin/file conftest.o` in
6012 x86_64-*kfreebsd*-gnu)
6013 LD="${LD-ld} -m elf_i386_fbsd"
6016 LD="${LD-ld} -m elf_i386"
6018 ppc64-*linux*|powerpc64-*linux*)
6019 LD="${LD-ld} -m elf32ppclinux"
6022 LD="${LD-ld} -m elf_s390"
6025 LD="${LD-ld} -m elf32_sparc"
6031 x86_64-*kfreebsd*-gnu)
6032 LD="${LD-ld} -m elf_x86_64_fbsd"
6035 LD="${LD-ld} -m elf_x86_64"
6037 ppc*-*linux*|powerpc*-*linux*)
6038 LD="${LD-ld} -m elf64ppc"
6040 s390*-*linux*|s390*-*tpf*)
6041 LD="${LD-ld} -m elf64_s390"
6044 LD="${LD-ld} -m elf64_sparc"
6054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6055 SAVE_CFLAGS="$CFLAGS"
6056 CFLAGS="$CFLAGS -belf"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6059 if ${lt_cv_cc_needs_belf+:} false; then :
6060 $as_echo_n "(cached) " >&6
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 lt_cv_cc_needs_belf=yes
6082 lt_cv_cc_needs_belf=no
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6097 CFLAGS="$SAVE_CFLAGS"
6101 # Find out which ABI we are using.
6102 echo 'int i;' > conftest.$ac_ext
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104 (eval $ac_compile) 2>&5
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; }; then
6108 case `/usr/bin/file conftest.o` in
6110 case $lt_cv_prog_gnu_ld in
6114 LD="${LD-ld} -m elf_x86_64"
6117 LD="${LD-ld} -m elf64_sparc"
6120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6138 need_locks="$enable_libtool_lock"
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}mt; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$MANIFEST_TOOL"; then
6149 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6169 if test -n "$MANIFEST_TOOL"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6171 $as_echo "$MANIFEST_TOOL" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6180 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6181 # Extract the first word of "mt", so it can be a program name with args.
6182 set dummy mt; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_MANIFEST_TOOL"; then
6189 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6209 if test -n "$ac_ct_MANIFEST_TOOL"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6235 if ${lt_cv_path_mainfest_tool+:} false; then :
6236 $as_echo_n "(cached) " >&6
6238 lt_cv_path_mainfest_tool=no
6239 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6240 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6241 cat conftest.err >&5
6242 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6243 lt_cv_path_mainfest_tool=yes
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6249 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6259 rhapsody* | darwin*)
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -n "$DSYMUTIL"; then
6269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6289 if test -n "$DSYMUTIL"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6291 $as_echo "$DSYMUTIL" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6299 if test -z "$ac_cv_prog_DSYMUTIL"; then
6300 ac_ct_DSYMUTIL=$DSYMUTIL
6301 # Extract the first word of "dsymutil", so it can be a program name with args.
6302 set dummy dsymutil; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$ac_ct_DSYMUTIL"; then
6309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6329 if test -n "$ac_ct_DSYMUTIL"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6337 if test "x$ac_ct_DSYMUTIL" = x; then
6340 case $cross_compiling:$ac_tool_warned in
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6346 DSYMUTIL=$ac_ct_DSYMUTIL
6349 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_NMEDIT+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$NMEDIT"; then
6361 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 NMEDIT=$ac_cv_prog_NMEDIT
6381 if test -n "$NMEDIT"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6383 $as_echo "$NMEDIT" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6391 if test -z "$ac_cv_prog_NMEDIT"; then
6392 ac_ct_NMEDIT=$NMEDIT
6393 # Extract the first word of "nmedit", so it can be a program name with args.
6394 set dummy nmedit; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$ac_ct_NMEDIT"; then
6401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6421 if test -n "$ac_ct_NMEDIT"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6423 $as_echo "$ac_ct_NMEDIT" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6429 if test "x$ac_ct_NMEDIT" = x; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6438 NMEDIT=$ac_ct_NMEDIT
6441 NMEDIT="$ac_cv_prog_NMEDIT"
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_LIPO+:} false; then :
6450 $as_echo_n "(cached) " >&6
6452 if test -n "$LIPO"; then
6453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 LIPO=$ac_cv_prog_LIPO
6473 if test -n "$LIPO"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6475 $as_echo "$LIPO" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_LIPO"; then
6485 # Extract the first word of "lipo", so it can be a program name with args.
6486 set dummy lipo; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 if test -n "$ac_ct_LIPO"; then
6493 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_LIPO="lipo"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6513 if test -n "$ac_ct_LIPO"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6515 $as_echo "$ac_ct_LIPO" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_LIPO" = x; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6533 LIPO="$ac_cv_prog_LIPO"
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}otool; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_OTOOL+:} false; then :
6542 $as_echo_n "(cached) " >&6
6544 if test -n "$OTOOL"; then
6545 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 OTOOL=$ac_cv_prog_OTOOL
6565 if test -n "$OTOOL"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6567 $as_echo "$OTOOL" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6575 if test -z "$ac_cv_prog_OTOOL"; then
6577 # Extract the first word of "otool", so it can be a program name with args.
6578 set dummy otool; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$ac_ct_OTOOL"; then
6585 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_OTOOL="otool"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6605 if test -n "$ac_ct_OTOOL"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6607 $as_echo "$ac_ct_OTOOL" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6613 if test "x$ac_ct_OTOOL" = x; then
6616 case $cross_compiling:$ac_tool_warned in
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6625 OTOOL="$ac_cv_prog_OTOOL"
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_OTOOL64+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -n "$OTOOL64"; then
6637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 OTOOL64=$ac_cv_prog_OTOOL64
6657 if test -n "$OTOOL64"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6659 $as_echo "$OTOOL64" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6667 if test -z "$ac_cv_prog_OTOOL64"; then
6668 ac_ct_OTOOL64=$OTOOL64
6669 # Extract the first word of "otool64", so it can be a program name with args.
6670 set dummy otool64; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$ac_ct_OTOOL64"; then
6677 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_OTOOL64="otool64"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6697 if test -n "$ac_ct_OTOOL64"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6699 $as_echo "$ac_ct_OTOOL64" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 if test "x$ac_ct_OTOOL64" = x; then
6708 case $cross_compiling:$ac_tool_warned in
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6714 OTOOL64=$ac_ct_OTOOL64
6717 OTOOL64="$ac_cv_prog_OTOOL64"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6747 $as_echo_n "checking for -single_module linker flag... " >&6; }
6748 if ${lt_cv_apple_cc_single_mod+:} false; then :
6749 $as_echo_n "(cached) " >&6
6751 lt_cv_apple_cc_single_mod=no
6752 if test -z "${LT_MULTI_MODULE}"; then
6753 # By default we will add the -single_module flag. You can override
6754 # by either setting the environment variable LT_MULTI_MODULE
6755 # non-empty at configure time, or by adding -multi_module to the
6757 rm -rf libconftest.dylib*
6758 echo "int foo(void){return 1;}" > conftest.c
6759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c" >&5
6761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6764 # If there is a non-empty error log, and "single_module"
6765 # appears in it, assume the flag caused a linker warning
6766 if test -s conftest.err && $GREP single_module conftest.err; then
6767 cat conftest.err >&5
6768 # Otherwise, if the output was created with a 0 exit code from
6769 # the compiler, it worked.
6770 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6771 lt_cv_apple_cc_single_mod=yes
6773 cat conftest.err >&5
6775 rm -rf libconftest.dylib*
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 lt_cv_ld_exported_symbols_list=no
6788 save_LDFLAGS=$LDFLAGS
6789 echo "_main" > conftest.sym
6790 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6802 if ac_fn_c_try_link "$LINENO"; then :
6803 lt_cv_ld_exported_symbols_list=yes
6805 lt_cv_ld_exported_symbols_list=no
6807 rm -f core conftest.err conftest.$ac_objext \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LDFLAGS="$save_LDFLAGS"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6816 $as_echo_n "checking for -force_load linker flag... " >&6; }
6817 if ${lt_cv_ld_force_load+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 lt_cv_ld_force_load=no
6821 cat > conftest.c << _LT_EOF
6822 int forced_loaded() { return 2;}
6824 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6825 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6826 echo "$AR cru libconftest.a conftest.o" >&5
6827 $AR cru libconftest.a conftest.o 2>&5
6828 echo "$RANLIB libconftest.a" >&5
6829 $RANLIB libconftest.a 2>&5
6830 cat > conftest.c << _LT_EOF
6831 int main() { return 0;}
6833 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6834 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6836 if test -s conftest.err && $GREP force_load conftest.err; then
6837 cat conftest.err >&5
6838 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6839 lt_cv_ld_force_load=yes
6841 cat conftest.err >&5
6843 rm -f conftest.err libconftest.a conftest conftest.c
6844 rm -rf conftest.dSYM
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6848 $as_echo "$lt_cv_ld_force_load" >&6; }
6850 rhapsody* | darwin1.[012])
6851 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6853 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6854 darwin*) # darwin 5.x on
6855 # if running on 10.5 or later, the deployment target defaults
6856 # to the OS version, if on x86, and 10.4, the deployment
6857 # target defaults to 10.4. Don't you love it?
6858 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6859 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6860 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6862 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6864 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6868 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6869 _lt_dar_single_mod='$single_module'
6871 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6872 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6874 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6876 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6877 _lt_dsymutil='~$DSYMUTIL $lib || :'
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6890 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6891 # On Suns, sometimes $CPP names a directory.
6892 if test -n "$CPP" && test -d "$CPP"; then
6895 if test -z "$CPP"; then
6896 if ${ac_cv_prog_CPP+:} false; then :
6897 $as_echo_n "(cached) " >&6
6899 # Double quotes because CPP needs to be expanded
6900 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6903 for ac_c_preproc_warn_flag in '' yes
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 # include <limits.h>
6916 # include <assert.h>
6920 if ac_fn_c_try_cpp "$LINENO"; then :
6923 # Broken: fails on valid input.
6926 rm -f conftest.err conftest.i conftest.$ac_ext
6928 # OK, works on sane cases. Now check whether nonexistent headers
6929 # can be detected and how.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #include <ac_nonexistent.h>
6934 if ac_fn_c_try_cpp "$LINENO"; then :
6935 # Broken: success on invalid input.
6938 # Passes both tests.
6942 rm -f conftest.err conftest.i conftest.$ac_ext
6945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946 rm -f conftest.i conftest.err conftest.$ac_ext
6947 if $ac_preproc_ok; then :
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6960 $as_echo "$CPP" >&6; }
6962 for ac_c_preproc_warn_flag in '' yes
6964 # Use a header file that comes with gcc, so configuring glibc
6965 # with a fresh cross-compiler works.
6966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 # <limits.h> exists even on freestanding compilers.
6968 # On the NeXT, cc -E runs the code through the compiler's parser,
6969 # not just through cpp. "Syntax error" is here to catch this case.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6973 # include <limits.h>
6975 # include <assert.h>
6979 if ac_fn_c_try_cpp "$LINENO"; then :
6982 # Broken: fails on valid input.
6985 rm -f conftest.err conftest.i conftest.$ac_ext
6987 # OK, works on sane cases. Now check whether nonexistent headers
6988 # can be detected and how.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #include <ac_nonexistent.h>
6993 if ac_fn_c_try_cpp "$LINENO"; then :
6994 # Broken: success on invalid input.
6997 # Passes both tests.
7001 rm -f conftest.err conftest.i conftest.$ac_ext
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.i conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then :
7009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7012 See \`config.log' for more details" "$LINENO" 5; }
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7023 $as_echo_n "checking for ANSI C header files... " >&6; }
7024 if ${ac_cv_header_stdc+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 ac_cv_header_stdc=yes
7045 ac_cv_header_stdc=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 if test $ac_cv_header_stdc = yes; then
7050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "memchr" >/dev/null 2>&1; then :
7060 ac_cv_header_stdc=no
7066 if test $ac_cv_header_stdc = yes; then
7067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074 $EGREP "free" >/dev/null 2>&1; then :
7077 ac_cv_header_stdc=no
7083 if test $ac_cv_header_stdc = yes; then
7084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7085 if test "$cross_compiling" = yes; then :
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7092 #if ((' ' & 0x0FF) == 0x020)
7093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7096 # define ISLOWER(c) \
7097 (('a' <= (c) && (c) <= 'i') \
7098 || ('j' <= (c) && (c) <= 'r') \
7099 || ('s' <= (c) && (c) <= 'z'))
7100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7108 for (i = 0; i < 256; i++)
7109 if (XOR (islower (i), ISLOWER (i))
7110 || toupper (i) != TOUPPER (i))
7115 if ac_fn_c_try_run "$LINENO"; then :
7118 ac_cv_header_stdc=no
7120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7121 conftest.$ac_objext conftest.beam conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7127 $as_echo "$ac_cv_header_stdc" >&6; }
7128 if test $ac_cv_header_stdc = yes; then
7130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7136 inttypes.h stdint.h unistd.h
7138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7142 cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7151 for ac_header in dlfcn.h
7153 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7155 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_DLFCN_H 1
7177 # Check whether --enable-shared was given.
7178 if test "${enable_shared+set}" = set; then :
7179 enableval=$enable_shared; p=${PACKAGE-default}
7181 yes) enable_shared=yes ;;
7182 no) enable_shared=no ;;
7185 # Look at the argument we got. We use all the common list separators.
7186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7187 for pkg in $enableval; do
7189 if test "X$pkg" = "X$p"; then
7208 # Check whether --enable-static was given.
7209 if test "${enable_static+set}" = set; then :
7210 enableval=$enable_static; p=${PACKAGE-default}
7212 yes) enable_static=yes ;;
7213 no) enable_static=no ;;
7216 # Look at the argument we got. We use all the common list separators.
7217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7218 for pkg in $enableval; do
7220 if test "X$pkg" = "X$p"; then
7240 # Check whether --with-pic was given.
7241 if test "${with_pic+set}" = set; then :
7242 withval=$with_pic; lt_p=${PACKAGE-default}
7244 yes|no) pic_mode=$withval ;;
7247 # Look at the argument we got. We use all the common list separators.
7248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7249 for lt_pkg in $withval; do
7251 if test "X$lt_pkg" = "X$lt_p"; then
7263 test -z "$pic_mode" && pic_mode=default
7271 # Check whether --enable-fast-install was given.
7272 if test "${enable_fast_install+set}" = set; then :
7273 enableval=$enable_fast_install; p=${PACKAGE-default}
7275 yes) enable_fast_install=yes ;;
7276 no) enable_fast_install=no ;;
7278 enable_fast_install=no
7279 # Look at the argument we got. We use all the common list separators.
7280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7281 for pkg in $enableval; do
7283 if test "X$pkg" = "X$p"; then
7284 enable_fast_install=yes
7291 enable_fast_install=yes
7304 # This can be used to rebuild libtool when needed
7305 LIBTOOL_DEPS="$ltmain"
7307 # Always use our own libtool.
7308 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7339 test -z "$LN_S" && LN_S="ln -s"
7354 if test -n "${ZSH_VERSION+set}" ; then
7355 setopt NO_GLOB_SUBST
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7359 $as_echo_n "checking for objdir... " >&6; }
7360 if ${lt_cv_objdir+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 rm -f .libs 2>/dev/null
7364 mkdir .libs 2>/dev/null
7365 if test -d .libs; then
7368 # MS-DOS does not allow filenames that begin with a dot.
7371 rmdir .libs 2>/dev/null
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7374 $as_echo "$lt_cv_objdir" >&6; }
7375 objdir=$lt_cv_objdir
7381 cat >>confdefs.h <<_ACEOF
7382 #define LT_OBJDIR "$lt_cv_objdir/"
7390 # AIX sometimes has problems with the GCC collect2 program. For some
7391 # reason, if we set the COLLECT_NAMES environment variable, the problems
7392 # vanish in a puff of smoke.
7393 if test "X${COLLECT_NAMES+set}" != Xset; then
7395 export COLLECT_NAMES
7402 can_build_shared=yes
7404 # All known linkers require a `.a' archive for static linking (except MSVC,
7405 # which needs '.lib').
7408 with_gnu_ld="$lt_cv_prog_gnu_ld"
7411 old_CFLAGS="$CFLAGS"
7413 # Set sane defaults for various variables
7414 test -z "$CC" && CC=cc
7415 test -z "$LTCC" && LTCC=$CC
7416 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7417 test -z "$LD" && LD=ld
7418 test -z "$ac_objext" && ac_objext=o
7420 for cc_temp in $compiler""; do
7422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7428 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7431 # Only perform the check for file, if the check method requires it
7432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7433 case $deplibs_check_method in
7435 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7437 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7438 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7439 $as_echo_n "(cached) " >&6
7443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7446 lt_save_MAGIC_CMD="$MAGIC_CMD"
7447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449 for ac_dir in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/${ac_tool_prefix}file; then
7453 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7454 if test -n "$file_magic_test_file"; then
7455 case $deplibs_check_method in
7457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460 $EGREP "$file_magic_regex" > /dev/null; then
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such. This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem. Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7482 MAGIC_CMD="$lt_save_MAGIC_CMD"
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7490 $as_echo "$MAGIC_CMD" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7500 if test -z "$lt_cv_path_MAGIC_CMD"; then
7501 if test -n "$ac_tool_prefix"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7503 $as_echo_n "checking for file... " >&6; }
7504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7505 $as_echo_n "(cached) " >&6
7509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7512 lt_save_MAGIC_CMD="$MAGIC_CMD"
7513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7515 for ac_dir in $ac_dummy; do
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f $ac_dir/file; then
7519 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7520 if test -n "$file_magic_test_file"; then
7521 case $deplibs_check_method in
7523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7526 $EGREP "$file_magic_regex" > /dev/null; then
7531 *** Warning: the command libtool uses to detect shared libraries,
7532 *** $file_magic_cmd, produces output that libtool cannot recognize.
7533 *** The result is that libtool may fail to recognize shared libraries
7534 *** as such. This will affect the creation of libtool libraries that
7535 *** depend on shared libraries, but programs linked with such libtool
7536 *** libraries will work regardless of this problem. Nevertheless, you
7537 *** may want to report the problem to your system manager and/or to
7538 *** bug-libtool@gnu.org
7548 MAGIC_CMD="$lt_save_MAGIC_CMD"
7553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554 if test -n "$MAGIC_CMD"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7556 $as_echo "$MAGIC_CMD" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7572 # Use C for the default configuration in the libtool script
7576 ac_cpp='$CPP $CPPFLAGS'
7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582 # Source file extension for C test sources.
7585 # Object file extension for compiled C test sources.
7589 # Code to be used in simple compile tests
7590 lt_simple_compile_test_code="int some_variable = 0;"
7592 # Code to be used in simple link tests
7593 lt_simple_link_test_code='int main(){return(0);}'
7601 # If no C compiler was specified, use CC.
7604 # If no C compiler flags were specified, use CFLAGS.
7605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7607 # Allow CC to be a program name with arguments.
7610 # Save the default compiler, since it gets overwritten when the other
7611 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7612 compiler_DEFAULT=$CC
7614 # save warnings/boilerplate of simple test code
7615 ac_outfile=conftest.$ac_objext
7616 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618 _lt_compiler_boilerplate=`cat conftest.err`
7621 ac_outfile=conftest.$ac_objext
7622 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7624 _lt_linker_boilerplate=`cat conftest.err`
7629 ## There is no encapsulation within the following macros, do not change
7630 ## the running order or otherwise move them around unless you know exactly
7631 ## what you are doing...
7632 if test -n "$compiler"; then
7634 lt_prog_compiler_no_builtin_flag=
7636 if test "$GCC" = yes; then
7637 case $cc_basename in
7639 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7641 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7646 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7647 $as_echo_n "(cached) " >&6
7649 lt_cv_prog_compiler_rtti_exceptions=no
7650 ac_outfile=conftest.$ac_objext
7651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7652 lt_compiler_flag="-fno-rtti -fno-exceptions"
7653 # Insert the option either (1) after the last *FLAGS variable, or
7654 # (2) before a word containing "conftest.", or (3) at the end.
7655 # Note that $ac_compile itself does not contain backslashes and begins
7656 # with a dollar sign (not a hyphen), so the echo should work correctly.
7657 # The option is referenced via a variable to avoid confusing sed.
7658 lt_compile=`echo "$ac_compile" | $SED \
7659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7661 -e 's:$: $lt_compiler_flag:'`
7662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7663 (eval "$lt_compile" 2>conftest.err)
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 if (exit $ac_status) && test -s "$ac_outfile"; then
7668 # The compiler can only warn and ignore the option if not recognized
7669 # So say no if there are warnings other than the usual output.
7670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7673 lt_cv_prog_compiler_rtti_exceptions=yes
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7695 lt_prog_compiler_wl=
7696 lt_prog_compiler_pic=
7697 lt_prog_compiler_static=
7700 if test "$GCC" = yes; then
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_static='-static'
7706 # All AIX code is PIC.
7707 if test "$host_cpu" = ia64; then
7708 # AIX 5 now supports IA64 processor
7709 lt_prog_compiler_static='-Bstatic'
7716 # see comment about AmigaOS4 .so support
7717 lt_prog_compiler_pic='-fPIC'
7720 # FIXME: we need at least 68020 code to build shared libraries, but
7721 # adding the `-m68020' flag to GCC prevents building anything better,
7723 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7728 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7729 # PIC is the default for these OSes.
7732 mingw* | cygwin* | pw32* | os2* | cegcc*)
7733 # This hack is so that the source file can tell whether it is being
7734 # built for inclusion in a dll (and should export symbols for example).
7735 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7736 # (--disable-auto-import) libraries
7737 lt_prog_compiler_pic='-DDLL_EXPORT'
7740 darwin* | rhapsody*)
7741 # PIC is the default on this platform
7742 # Common symbols not allowed in MH_DYLIB files
7743 lt_prog_compiler_pic='-fno-common'
7747 # PIC is the default for Haiku.
7748 # The "-static" flag exists, but is broken.
7749 lt_prog_compiler_static=
7753 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7754 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7755 # sets the default TLS model and affects inlining.
7761 lt_prog_compiler_pic='-fPIC'
7767 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7768 # Instead, we relocate shared libraries at runtime.
7772 # Just because we use GCC doesn't mean we suddenly get shared libraries
7773 # on systems that don't support them.
7774 lt_prog_compiler_can_build_shared=no
7779 # QNX uses GNU C++, but need to define -shared option too, otherwise
7781 lt_prog_compiler_pic='-fPIC -shared'
7785 if test -d /usr/nec; then
7786 lt_prog_compiler_pic=-Kconform_pic
7791 lt_prog_compiler_pic='-fPIC'
7795 case $cc_basename in
7796 nvcc*) # Cuda Compiler Driver 2.2
7797 lt_prog_compiler_wl='-Xlinker '
7798 if test -n "$lt_prog_compiler_pic"; then
7799 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7804 # PORTME Check for flag to pass linker flags through the system compiler.
7807 lt_prog_compiler_wl='-Wl,'
7808 if test "$host_cpu" = ia64; then
7809 # AIX 5 now supports IA64 processor
7810 lt_prog_compiler_static='-Bstatic'
7812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7816 mingw* | cygwin* | pw32* | os2* | cegcc*)
7817 # This hack is so that the source file can tell whether it is being
7818 # built for inclusion in a dll (and should export symbols for example).
7819 lt_prog_compiler_pic='-DDLL_EXPORT'
7822 hpux9* | hpux10* | hpux11*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7831 lt_prog_compiler_pic='+Z'
7834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7835 lt_prog_compiler_static='${wl}-a ${wl}archive'
7838 irix5* | irix6* | nonstopux*)
7839 lt_prog_compiler_wl='-Wl,'
7840 # PIC (with -KPIC) is the default.
7841 lt_prog_compiler_static='-non_shared'
7844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7845 case $cc_basename in
7846 # old Intel for x86_64 which still supported -KPIC.
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-static'
7852 # icc used to be incompatible with GCC.
7853 # ICC 10 doesn't accept -KPIC any more.
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-fPIC'
7857 lt_prog_compiler_static='-static'
7859 # Lahey Fortran 8.1.
7861 lt_prog_compiler_wl='-Wl,'
7862 lt_prog_compiler_pic='--shared'
7863 lt_prog_compiler_static='--static'
7866 # NAG Fortran compiler
7867 lt_prog_compiler_wl='-Wl,-Wl,,'
7868 lt_prog_compiler_pic='-PIC'
7869 lt_prog_compiler_static='-Bstatic'
7871 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7872 # Portland Group compilers (*not* the Pentium gcc compiler,
7873 # which looks to be a dead project)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-fpic'
7876 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl='-Wl,'
7880 # All Alpha code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7883 xl* | bgxl* | bgf* | mpixl*)
7884 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-qpic'
7887 lt_prog_compiler_static='-qstaticlink'
7890 case `$CC -V 2>&1 | sed 5q` in
7891 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7892 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl=''
7897 *Sun\ F* | *Sun*Fortran*)
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_wl='-Qoption ld '
7904 lt_prog_compiler_pic='-KPIC'
7905 lt_prog_compiler_static='-Bstatic'
7906 lt_prog_compiler_wl='-Wl,'
7908 *Intel*\ [CF]*Compiler*)
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-fPIC'
7911 lt_prog_compiler_static='-static'
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-fpic'
7916 lt_prog_compiler_static='-Bstatic'
7924 lt_prog_compiler_pic='-KPIC'
7925 lt_prog_compiler_static='-Bstatic'
7929 # QNX uses GNU C++, but need to define -shared option too, otherwise
7931 lt_prog_compiler_pic='-fPIC -shared'
7934 osf3* | osf4* | osf5*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # All OSF/1 code is PIC.
7937 lt_prog_compiler_static='-non_shared'
7941 lt_prog_compiler_static='-non_shared'
7945 lt_prog_compiler_pic='-KPIC'
7946 lt_prog_compiler_static='-Bstatic'
7947 case $cc_basename in
7948 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7949 lt_prog_compiler_wl='-Qoption ld ';;
7951 lt_prog_compiler_wl='-Wl,';;
7956 lt_prog_compiler_wl='-Qoption ld '
7957 lt_prog_compiler_pic='-PIC'
7958 lt_prog_compiler_static='-Bstatic'
7961 sysv4 | sysv4.2uw2* | sysv4.3*)
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-KPIC'
7964 lt_prog_compiler_static='-Bstatic'
7968 if test -d /usr/nec ;then
7969 lt_prog_compiler_pic='-Kconform_pic'
7970 lt_prog_compiler_static='-Bstatic'
7974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-KPIC'
7977 lt_prog_compiler_static='-Bstatic'
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_can_build_shared=no
7986 lt_prog_compiler_pic='-pic'
7987 lt_prog_compiler_static='-Bstatic'
7991 lt_prog_compiler_can_build_shared=no
7997 # For platforms which do not support PIC, -DPIC is meaningless:
7999 lt_prog_compiler_pic=
8002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8007 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8008 if ${lt_cv_prog_compiler_pic+:} false; then :
8009 $as_echo_n "(cached) " >&6
8011 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8014 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8015 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8018 # Check to make sure the PIC flag actually works.
8020 if test -n "$lt_prog_compiler_pic"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8022 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8023 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 lt_cv_prog_compiler_pic_works=no
8027 ac_outfile=conftest.$ac_objext
8028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8030 # Insert the option either (1) after the last *FLAGS variable, or
8031 # (2) before a word containing "conftest.", or (3) at the end.
8032 # Note that $ac_compile itself does not contain backslashes and begins
8033 # with a dollar sign (not a hyphen), so the echo should work correctly.
8034 # The option is referenced via a variable to avoid confusing sed.
8035 lt_compile=`echo "$ac_compile" | $SED \
8036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038 -e 's:$: $lt_compiler_flag:'`
8039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8040 (eval "$lt_compile" 2>conftest.err)
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 if (exit $ac_status) && test -s "$ac_outfile"; then
8045 # The compiler can only warn and ignore the option if not recognized
8046 # So say no if there are warnings other than the usual output.
8047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8050 lt_cv_prog_compiler_pic_works=yes
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8057 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8059 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8060 case $lt_prog_compiler_pic in
8062 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8065 lt_prog_compiler_pic=
8066 lt_prog_compiler_can_build_shared=no
8082 # Check to make sure the static flag actually works.
8084 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8086 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8087 if ${lt_cv_prog_compiler_static_works+:} false; then :
8088 $as_echo_n "(cached) " >&6
8090 lt_cv_prog_compiler_static_works=no
8091 save_LDFLAGS="$LDFLAGS"
8092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8093 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8095 # The linker can only warn and ignore the option if not recognized
8096 # So say no if there are warnings
8097 if test -s conftest.err; then
8098 # Append any errors to the config.log.
8099 cat conftest.err 1>&5
8100 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102 if diff conftest.exp conftest.er2 >/dev/null; then
8103 lt_cv_prog_compiler_static_works=yes
8106 lt_cv_prog_compiler_static_works=yes
8110 LDFLAGS="$save_LDFLAGS"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8114 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8116 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8119 lt_prog_compiler_static=
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8129 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8130 if ${lt_cv_prog_compiler_c_o+:} false; then :
8131 $as_echo_n "(cached) " >&6
8133 lt_cv_prog_compiler_c_o=no
8134 $RM -r conftest 2>/dev/null
8138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140 lt_compiler_flag="-o out/conftest2.$ac_objext"
8141 # Insert the option either (1) after the last *FLAGS variable, or
8142 # (2) before a word containing "conftest.", or (3) at the end.
8143 # Note that $ac_compile itself does not contain backslashes and begins
8144 # with a dollar sign (not a hyphen), so the echo should work correctly.
8145 lt_compile=`echo "$ac_compile" | $SED \
8146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148 -e 's:$: $lt_compiler_flag:'`
8149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150 (eval "$lt_compile" 2>out/conftest.err)
8152 cat out/conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8156 # The compiler can only warn and ignore the option if not recognized
8157 # So say no if there are warnings
8158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8161 lt_cv_prog_compiler_c_o=yes
8166 # SGI C++ compiler will create directory out/ii_files/ for
8167 # template instantiation
8168 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8169 $RM out/* && rmdir out
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8176 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8185 if ${lt_cv_prog_compiler_c_o+:} false; then :
8186 $as_echo_n "(cached) " >&6
8188 lt_cv_prog_compiler_c_o=no
8189 $RM -r conftest 2>/dev/null
8193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195 lt_compiler_flag="-o out/conftest2.$ac_objext"
8196 # Insert the option either (1) after the last *FLAGS variable, or
8197 # (2) before a word containing "conftest.", or (3) at the end.
8198 # Note that $ac_compile itself does not contain backslashes and begins
8199 # with a dollar sign (not a hyphen), so the echo should work correctly.
8200 lt_compile=`echo "$ac_compile" | $SED \
8201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8203 -e 's:$: $lt_compiler_flag:'`
8204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8205 (eval "$lt_compile" 2>out/conftest.err)
8207 cat out/conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8211 # The compiler can only warn and ignore the option if not recognized
8212 # So say no if there are warnings
8213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8216 lt_cv_prog_compiler_c_o=yes
8221 # SGI C++ compiler will create directory out/ii_files/ for
8222 # template instantiation
8223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8224 $RM out/* && rmdir out
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8236 hard_links="nottested"
8237 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238 # do not overwrite the value of need_locks provided by the user
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8240 $as_echo_n "checking if we can lock with hard links... " >&6; }
8243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8245 ln conftest.a conftest.b 2>&5 || hard_links=no
8246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8248 $as_echo "$hard_links" >&6; }
8249 if test "$hard_links" = no; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8264 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8267 allow_undefined_flag=
8268 always_export_symbols=no
8270 archive_expsym_cmds=
8271 compiler_needs_object=no
8272 enable_shared_with_static_runtimes=no
8273 export_dynamic_flag_spec=
8274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8275 hardcode_automatic=no
8277 hardcode_direct_absolute=no
8278 hardcode_libdir_flag_spec=
8279 hardcode_libdir_separator=
8281 hardcode_shlibpath_var=unsupported
8283 link_all_deplibs=unknown
8286 old_archive_from_new_cmds=
8287 old_archive_from_expsyms_cmds=
8288 thread_safe_flag_spec=
8289 whole_archive_flag_spec=
8290 # include_expsyms should be a list of space-separated symbols to be *always*
8291 # included in the symbol list
8293 # exclude_expsyms can be an extended regexp of symbols to exclude
8294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8296 # as well as any symbol that contains `d'.
8297 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8299 # platforms (ab)use it in PIC code, but their linkers get confused if
8300 # the symbol is explicitly referenced. Since portable code cannot
8301 # rely on this symbol name, it's probably fine to never include it in
8302 # preloaded symbol tables.
8303 # Exclude shared library initialization/finalization symbols.
8304 extract_expsyms_cmds=
8307 cygwin* | mingw* | pw32* | cegcc*)
8308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8309 # When not using gcc, we currently assume that we are using
8310 # Microsoft Visual C++.
8311 if test "$GCC" != yes; then
8316 # we just hope/assume this is gcc and not c89 (= MSVC++)
8326 # On some targets, GNU ld is compatible enough with the native linker
8327 # that we're better off using the native interface for both.
8328 lt_use_gnu_ld_interface=no
8329 if test "$with_gnu_ld" = yes; then
8332 # The AIX port of GNU ld has always aspired to compatibility
8333 # with the native linker. However, as the warning in the GNU ld
8334 # block says, versions before 2.19.5* couldn't really create working
8335 # shared libraries, regardless of the interface used.
8336 case `$LD -v 2>&1` in
8337 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8338 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8339 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8341 lt_use_gnu_ld_interface=yes
8346 lt_use_gnu_ld_interface=yes
8351 if test "$lt_use_gnu_ld_interface" = yes; then
8352 # If archive_cmds runs LD, not CC, wlarc should be empty
8355 # Set some defaults for GNU ld with shared library support. These
8356 # are reset later if shared libraries are not supported. Putting them
8357 # here allows them to be overridden if necessary.
8358 runpath_var=LD_RUN_PATH
8359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360 export_dynamic_flag_spec='${wl}--export-dynamic'
8361 # ancient GNU ld didn't support --whole-archive et. al.
8362 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8363 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8365 whole_archive_flag_spec=
8367 supports_anon_versioning=no
8368 case `$LD -v 2>&1` in
8369 *GNU\ gold*) supports_anon_versioning=yes ;;
8370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8373 *\ 2.11.*) ;; # other 2.11 versions
8374 *) supports_anon_versioning=yes ;;
8377 # See if GNU ld supports shared libraries.
8380 # On AIX/PPC, the GNU linker is very broken
8381 if test "$host_cpu" != ia64; then
8385 *** Warning: the GNU linker, at least up to release 2.19, is reported
8386 *** to be unable to reliably create shared libraries on AIX.
8387 *** Therefore, libtool is disabling shared libraries support. If you
8388 *** really care for shared libraries, you may want to install binutils
8389 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8390 *** You will then need to restart the configuration process.
8399 # see comment about AmigaOS4 .so support
8400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401 archive_expsym_cmds=''
8404 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)'
8405 hardcode_libdir_flag_spec='-L$libdir'
8406 hardcode_minus_L=yes
8412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8413 allow_undefined_flag=unsupported
8414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8415 # support --undefined. This deserves some investigation. FIXME
8416 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 cygwin* | mingw* | pw32* | cegcc*)
8423 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8424 # as there is no search path for DLLs.
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 export_dynamic_flag_spec='${wl}--export-all-symbols'
8427 allow_undefined_flag=unsupported
8428 always_export_symbols=no
8429 enable_shared_with_static_runtimes=yes
8430 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'
8431 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8433 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8435 # If the export-symbols file already is a .def file (1st line
8436 # is EXPORTS), use it as is; otherwise, prepend...
8437 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8438 cp $export_symbols $output_objdir/$soname.def;
8440 echo EXPORTS > $output_objdir/$soname.def;
8441 cat $export_symbols >> $output_objdir/$soname.def;
8443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 link_all_deplibs=yes
8456 hardcode_shlibpath_var=no
8457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8458 export_dynamic_flag_spec='${wl}-E'
8459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8460 # Instead, shared libraries are loaded at an image base (0x10000000 by
8461 # default) and relocated if they conflict, which is a slow very memory
8462 # consuming and fragmenting process. To avoid this, we pick a random,
8463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8466 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'
8469 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8471 if test "$host_os" = linux-dietlibc; then
8472 case $cc_basename in
8473 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8476 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8477 && test "$tmp_diet" = no
8479 tmp_addflag=' $pic_flag'
8480 tmp_sharedflag='-shared'
8481 case $cc_basename,$host_cpu in
8482 pgcc*) # Portland Group C compiler
8483 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'
8484 tmp_addflag=' $pic_flag'
8486 pgf77* | pgf90* | pgf95* | pgfortran*)
8487 # Portland Group f77 and f90 compilers
8488 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'
8489 tmp_addflag=' $pic_flag -Mnomain' ;;
8490 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8491 tmp_addflag=' -i_dynamic' ;;
8492 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8493 tmp_addflag=' -i_dynamic -nofor_main' ;;
8494 ifc* | ifort*) # Intel Fortran compiler
8495 tmp_addflag=' -nofor_main' ;;
8496 lf95*) # Lahey Fortran 8.1
8497 whole_archive_flag_spec=
8498 tmp_sharedflag='--shared' ;;
8499 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8500 tmp_sharedflag='-qmkshrobj'
8502 nvcc*) # Cuda Compiler Driver 2.2
8503 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'
8504 compiler_needs_object=yes
8507 case `$CC -V 2>&1 | sed 5q` in
8508 *Sun\ C*) # Sun C 5.9
8509 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'
8510 compiler_needs_object=yes
8511 tmp_sharedflag='-G' ;;
8512 *Sun\ F*) # Sun Fortran 8.3
8513 tmp_sharedflag='-G' ;;
8515 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 if test "x$supports_anon_versioning" = xyes; then
8518 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8520 echo "local: *; };" >> $output_objdir/$libname.ver~
8521 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8524 case $cc_basename in
8525 xlf* | bgf* | bgxlf* | mpixlf*)
8526 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8527 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8530 if test "x$supports_anon_versioning" = xyes; then
8531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8533 echo "local: *; };" >> $output_objdir/$libname.ver~
8534 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8545 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8554 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8559 *** create shared libraries on Solaris systems. Therefore, libtool
8560 *** is disabling shared libraries support. We urge you to upgrade GNU
8561 *** binutils to release 2.9.1 or newer. Another option is to modify
8562 *** your PATH or compiler configuration so that the native linker is
8563 *** used, and then restart.
8566 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8575 case `$LD -v 2>&1` in
8576 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8580 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8581 *** reliably create shared libraries on SCO systems. Therefore, libtool
8582 *** is disabling shared libraries support. We urge you to upgrade GNU
8583 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8584 *** your PATH or compiler configuration so that the native linker is
8585 *** used, and then restart.
8590 # For security reasons, it is highly recommended that you always
8591 # use absolute paths for naming shared libraries, and exclude the
8592 # DT_RUNPATH tag from executables and libraries. But doing so
8593 # requires that you compile everything twice, which is a pain.
8594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609 hardcode_shlibpath_var=no
8613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 if test "$ld_shlibs" = no; then
8624 hardcode_libdir_flag_spec=
8625 export_dynamic_flag_spec=
8626 whole_archive_flag_spec=
8629 # PORTME fill in a description of your system's linker (not GNU ld)
8632 allow_undefined_flag=unsupported
8633 always_export_symbols=yes
8634 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8635 # Note: this linker hardcodes the directories in LIBPATH if there
8636 # are no directories specified by -L.
8637 hardcode_minus_L=yes
8638 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8639 # Neither direct hardcoding nor static linking is supported with a
8641 hardcode_direct=unsupported
8646 if test "$host_cpu" = ia64; then
8647 # On IA64, the linker does run time linking by default, so we don't
8648 # have to do anything special.
8649 aix_use_runtimelinking=no
8650 exp_sym_flag='-Bexport'
8653 # If we're using GNU nm, then we don't want the "-C" option.
8654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8655 # Also, AIX nm treats weak defined symbols like other global
8656 # defined symbols, whereas GNU nm marks them as "W".
8657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8658 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'
8660 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'
8662 aix_use_runtimelinking=no
8664 # Test if we are trying to use run time linking or normal
8665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8666 # need to do runtime linking.
8667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8668 for ld_flag in $LDFLAGS; do
8669 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8670 aix_use_runtimelinking=yes
8677 exp_sym_flag='-bexport'
8678 no_entry_flag='-bnoentry'
8681 # When large executables or shared objects are built, AIX ld can
8682 # have problems creating the table of contents. If linking a library
8683 # or program results in "error TOC overflow" add -mminimal-toc to
8684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8689 hardcode_direct_absolute=yes
8690 hardcode_libdir_separator=':'
8691 link_all_deplibs=yes
8692 file_list_spec='${wl}-f,'
8694 if test "$GCC" = yes; then
8695 case $host_os in aix4.[012]|aix4.[012].*)
8696 # We only want to do this on AIX 4.2 and lower, the check
8697 # below for broken collect2 doesn't work under 4.3+
8698 collect2name=`${CC} -print-prog-name=collect2`
8699 if test -f "$collect2name" &&
8700 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8702 # We have reworked collect2
8705 # We have old collect2
8706 hardcode_direct=unsupported
8707 # It fails to find uninstalled libraries when the uninstalled
8708 # path is not listed in the libpath. Setting hardcode_minus_L
8709 # to unsupported forces relinking
8710 hardcode_minus_L=yes
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 hardcode_libdir_separator=
8716 shared_flag='-shared'
8717 if test "$aix_use_runtimelinking" = yes; then
8718 shared_flag="$shared_flag "'${wl}-G'
8722 if test "$host_cpu" = ia64; then
8723 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8724 # chokes on -Wl,-G. The following line is correct:
8727 if test "$aix_use_runtimelinking" = yes; then
8728 shared_flag='${wl}-G'
8730 shared_flag='${wl}-bM:SRE'
8735 export_dynamic_flag_spec='${wl}-bexpall'
8736 # It seems that -bexpall does not export symbols beginning with
8737 # underscore (_), so it is better to generate a list of symbols to export.
8738 always_export_symbols=yes
8739 if test "$aix_use_runtimelinking" = yes; then
8740 # Warning - without using the other runtime loading flags (-brtl),
8741 # -berok will link without error, but may produce a broken library.
8742 allow_undefined_flag='-berok'
8743 # Determine the default libpath from the value encoded in an
8745 if test "${lt_cv_aix_libpath+set}" = set; then
8746 aix_libpath=$lt_cv_aix_libpath
8748 if ${lt_cv_aix_libpath_+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8762 if ac_fn_c_try_link "$LINENO"; then :
8764 lt_aix_libpath_sed='
8765 /Import File Strings/,/^$/ {
8767 s/^0 *\([^ ]*\) *$/\1/
8771 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772 # Check for a 64-bit object if we didn't find anything.
8773 if test -z "$lt_cv_aix_libpath_"; then
8774 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 if test -z "$lt_cv_aix_libpath_"; then
8780 lt_cv_aix_libpath_="/usr/lib:/lib"
8785 aix_libpath=$lt_cv_aix_libpath_
8788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8789 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"
8791 if test "$host_cpu" = ia64; then
8792 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793 allow_undefined_flag="-z nodefs"
8794 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"
8796 # Determine the default libpath from the value encoded in an
8798 if test "${lt_cv_aix_libpath+set}" = set; then
8799 aix_libpath=$lt_cv_aix_libpath
8801 if ${lt_cv_aix_libpath_+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_c_try_link "$LINENO"; then :
8817 lt_aix_libpath_sed='
8818 /Import File Strings/,/^$/ {
8820 s/^0 *\([^ ]*\) *$/\1/
8824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825 # Check for a 64-bit object if we didn't find anything.
8826 if test -z "$lt_cv_aix_libpath_"; then
8827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_="/usr/lib:/lib"
8838 aix_libpath=$lt_cv_aix_libpath_
8841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842 # Warning - without using the other run time loading flags,
8843 # -berok will link without error, but may produce a broken library.
8844 no_undefined_flag=' ${wl}-bernotok'
8845 allow_undefined_flag=' ${wl}-berok'
8846 if test "$with_gnu_ld" = yes; then
8847 # We only use this code for GNU lds that support --whole-archive.
8848 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8850 # Exported symbols can be pulled into shared objects from archives
8851 whole_archive_flag_spec='$convenience'
8853 archive_cmds_need_lc=yes
8854 # This is similar to how AIX traditionally builds its shared libraries.
8855 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'
8863 # see comment about AmigaOS4 .so support
8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 archive_expsym_cmds=''
8868 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)'
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_minus_L=yes
8876 export_dynamic_flag_spec=-rdynamic
8879 cygwin* | mingw* | pw32* | cegcc*)
8880 # When not using gcc, we currently assume that we are using
8881 # Microsoft Visual C++.
8882 # hardcode_libdir_flag_spec is actually meaningless, as there is
8883 # no search path for DLLs.
8884 case $cc_basename in
8887 hardcode_libdir_flag_spec=' '
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=yes
8891 # Tell ltmain to make .lib files, not .a files.
8893 # Tell ltmain to make .dll files, not .so files.
8895 # FIXME: Setting linknames here is a bad hack.
8896 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8900 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8902 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8904 # The linker will not automatically build a static lib if we build a DLL.
8905 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8906 enable_shared_with_static_runtimes=yes
8907 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8910 old_postinstall_cmds='chmod 644 $oldlib'
8911 postlink_cmds='lt_outputfile="@OUTPUT@"~
8912 lt_tool_outputfile="@TOOL_OUTPUT@"~
8913 case $lt_outputfile in
8916 lt_outputfile="$lt_outputfile.exe"
8917 lt_tool_outputfile="$lt_tool_outputfile.exe"
8920 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8921 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8922 $RM "$lt_outputfile.manifest";
8926 # Assume MSVC wrapper
8927 hardcode_libdir_flag_spec=' '
8928 allow_undefined_flag=unsupported
8929 # Tell ltmain to make .lib files, not .a files.
8931 # Tell ltmain to make .dll files, not .so files.
8933 # FIXME: Setting linknames here is a bad hack.
8934 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8935 # The linker will automatically build a .lib file if we build a DLL.
8936 old_archive_from_new_cmds='true'
8937 # FIXME: Should let the user specify the lib program.
8938 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8939 enable_shared_with_static_runtimes=yes
8944 darwin* | rhapsody*)
8947 archive_cmds_need_lc=no
8949 hardcode_automatic=yes
8950 hardcode_shlibpath_var=unsupported
8951 if test "$lt_cv_ld_force_load" = "yes"; then
8952 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\"`'
8955 whole_archive_flag_spec=''
8957 link_all_deplibs=yes
8958 allow_undefined_flag="$_lt_dar_allow_undefined"
8959 case $cc_basename in
8960 ifort*) _lt_dar_can_shared=yes ;;
8961 *) _lt_dar_can_shared=$GCC ;;
8963 if test "$_lt_dar_can_shared" = "yes"; then
8964 output_verbose_link_cmd=func_echo_all
8965 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8966 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8967 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}"
8968 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}"
8977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_shlibpath_var=no
8982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983 # support. Future versions do this automatically, but an explicit c++rt0.o
8984 # does not break anything, and helps significantly (at the cost of a little
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988 hardcode_libdir_flag_spec='-R$libdir'
8990 hardcode_shlibpath_var=no
8993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_minus_L=yes
8998 hardcode_shlibpath_var=no
9001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002 freebsd* | dragonfly*)
9003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004 hardcode_libdir_flag_spec='-R$libdir'
9006 hardcode_shlibpath_var=no
9010 if test "$GCC" = yes; then
9011 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'
9013 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'
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_separator=:
9019 # hardcode_minus_L: Not really in the search PATH,
9020 # but as the default location of the library.
9021 hardcode_minus_L=yes
9022 export_dynamic_flag_spec='${wl}-E'
9026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9027 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9031 if test "$with_gnu_ld" = no; then
9032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033 hardcode_libdir_separator=:
9035 hardcode_direct_absolute=yes
9036 export_dynamic_flag_spec='${wl}-E'
9037 # hardcode_minus_L: Not really in the search PATH,
9038 # but as the default location of the library.
9039 hardcode_minus_L=yes
9044 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9047 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066 # Older versions of the 11.00 compiler do not understand -b yet
9067 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9069 $as_echo_n "checking if $CC understands -b... " >&6; }
9070 if ${lt_cv_prog_compiler__b+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 lt_cv_prog_compiler__b=no
9074 save_LDFLAGS="$LDFLAGS"
9075 LDFLAGS="$LDFLAGS -b"
9076 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078 # The linker can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 if test -s conftest.err; then
9081 # Append any errors to the config.log.
9082 cat conftest.err 1>&5
9083 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler__b=yes
9089 lt_cv_prog_compiler__b=yes
9093 LDFLAGS="$save_LDFLAGS"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9097 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9099 if test x"$lt_cv_prog_compiler__b" = xyes; then
9100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9115 hardcode_shlibpath_var=no
9119 hardcode_direct_absolute=yes
9120 export_dynamic_flag_spec='${wl}-E'
9122 # hardcode_minus_L: Not really in the search PATH,
9123 # but as the default location of the library.
9124 hardcode_minus_L=yes
9130 irix5* | irix6* | nonstopux*)
9131 if test "$GCC" = yes; then
9132 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'
9133 # Try to use the -exported_symbol ld option, if it does not
9134 # work, assume that -exports_file does not work either and
9135 # implicitly export all symbols.
9136 # This should be the same for all languages, so no per-tag cache variable.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9138 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9139 if ${lt_cv_irix_exported_symbol+:} false; then :
9140 $as_echo_n "(cached) " >&6
9142 save_LDFLAGS="$LDFLAGS"
9143 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int foo (void) { return 0; }
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 lt_cv_irix_exported_symbol=yes
9151 lt_cv_irix_exported_symbol=no
9153 rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LDFLAGS="$save_LDFLAGS"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9158 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9159 if test "$lt_cv_irix_exported_symbol" = yes; then
9160 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'
9163 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'
9164 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'
9166 archive_cmds_need_lc='no'
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 hardcode_libdir_separator=:
9170 link_all_deplibs=yes
9174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9179 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 hardcode_libdir_separator=:
9189 hardcode_shlibpath_var=no
9196 if test -f /usr/libexec/ld.so; then
9198 hardcode_shlibpath_var=no
9199 hardcode_direct_absolute=yes
9200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204 export_dynamic_flag_spec='${wl}-E'
9207 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_libdir_flag_spec='-R$libdir'
9212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223 hardcode_libdir_flag_spec='-L$libdir'
9224 hardcode_minus_L=yes
9225 allow_undefined_flag=unsupported
9226 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'
9227 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 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'
9235 allow_undefined_flag=' -expect_unresolved \*'
9236 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'
9238 archive_cmds_need_lc='no'
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 hardcode_libdir_separator=:
9243 osf4* | osf5*) # as osf3* with the addition of -msym flag
9244 if test "$GCC" = yes; then
9245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9246 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'
9247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 allow_undefined_flag=' -expect_unresolved \*'
9250 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'
9251 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~
9252 $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'
9254 # Both c and cxx compiler support -rpath directly
9255 hardcode_libdir_flag_spec='-rpath $libdir'
9257 archive_cmds_need_lc='no'
9258 hardcode_libdir_separator=:
9262 no_undefined_flag=' -z defs'
9263 if test "$GCC" = yes; then
9265 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $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'
9269 case `$CC -V 2>&1` in
9272 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9280 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_shlibpath_var=no
9287 solaris2.[0-5] | solaris2.[0-5].*) ;;
9289 # The compiler driver will combine and reorder linker options,
9290 # but understands `-z linker_flag'. GCC discards it without `$wl',
9291 # but is careful enough not to reorder.
9292 # Supported since Solaris 2.6 (maybe 2.5.1?)
9293 if test "$GCC" = yes; then
9294 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300 link_all_deplibs=yes
9304 if test "x$host_vendor" = xsequent; then
9305 # Use $CC to link under sequent, because it throws in some extra .o
9306 # files that make .init and .fini sections work.
9307 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_minus_L=yes
9314 hardcode_shlibpath_var=no
9318 case $host_vendor in
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=yes # is this really true???
9324 ## LD is ld it makes a PLAMLIB
9325 ## CC just makes a GrossModule.
9326 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9327 reload_cmds='$CC -r -o $output$reload_objs'
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9335 runpath_var='LD_RUN_PATH'
9336 hardcode_shlibpath_var=no
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_shlibpath_var=no
9342 export_dynamic_flag_spec='-Bexport'
9346 if test -d /usr/nec; then
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_shlibpath_var=no
9349 runpath_var=LD_RUN_PATH
9350 hardcode_runpath_var=yes
9355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9356 no_undefined_flag='${wl}-z,text'
9357 archive_cmds_need_lc=no
9358 hardcode_shlibpath_var=no
9359 runpath_var='LD_RUN_PATH'
9361 if test "$GCC" = yes; then
9362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 sysv5* | sco3.2v5* | sco5v6*)
9371 # Note: We can NOT use -z defs as we might desire, because we do not
9372 # link with -lc, and that would cause any symbols used from libc to
9373 # always be unresolved, which means just about no library would
9374 # ever link correctly. If we're not using GNU ld we use -z text
9375 # though, which does catch some bad symbols but isn't as heavy-handed
9377 no_undefined_flag='${wl}-z,text'
9378 allow_undefined_flag='${wl}-z,nodefs'
9379 archive_cmds_need_lc=no
9380 hardcode_shlibpath_var=no
9381 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9382 hardcode_libdir_separator=':'
9383 link_all_deplibs=yes
9384 export_dynamic_flag_spec='${wl}-Bexport'
9385 runpath_var='LD_RUN_PATH'
9387 if test "$GCC" = yes; then
9388 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_libdir_flag_spec='-L$libdir'
9399 hardcode_shlibpath_var=no
9407 if test x$host_vendor = xsni; then
9409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9410 export_dynamic_flag_spec='${wl}-Blargedynsym'
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9417 $as_echo "$ld_shlibs" >&6; }
9418 test "$ld_shlibs" = no && can_build_shared=no
9420 with_gnu_ld=$with_gnu_ld
9437 # Do we need to explicitly link libc?
9439 case "x$archive_cmds_need_lc" in
9441 # Assume -lc should be added
9442 archive_cmds_need_lc=yes
9444 if test "$enable_shared" = yes && test "$GCC" = yes; then
9445 case $archive_cmds in
9447 # FIXME: we may have to deal with multi-command sequences.
9450 # Test whether the compiler implicitly links with -lc since on some
9451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9452 # to ld, don't add -lc before -lgcc.
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9455 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9456 $as_echo_n "(cached) " >&6
9459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9462 (eval $ac_compile) 2>&5
9464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465 test $ac_status = 0; } 2>conftest.err; then
9468 libobjs=conftest.$ac_objext
9470 wl=$lt_prog_compiler_wl
9471 pic_flag=$lt_prog_compiler_pic
9477 lt_save_allow_undefined_flag=$allow_undefined_flag
9478 allow_undefined_flag=
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9480 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; }
9485 lt_cv_archive_cmds_need_lc=no
9487 lt_cv_archive_cmds_need_lc=yes
9489 allow_undefined_flag=$lt_save_allow_undefined_flag
9491 cat conftest.err 1>&5
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9497 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9498 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9659 if test "$GCC" = yes; then
9661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9662 *) lt_awk_arg="/^libraries:/" ;;
9665 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9666 *) lt_sed_strip_eq="s,=/,/,g" ;;
9668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669 case $lt_search_path_spec in
9671 # if the path contains ";" then we assume it to be the separator
9672 # otherwise default to the standard path separator (i.e. ":") - it is
9673 # assumed that no part of a normal pathname contains ";" but that should
9674 # okay in the real world where ";" in dirpaths is itself problematic.
9675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9681 # Ok, now we have the path, separated by spaces, we can step through it
9682 # and add multilib dir if necessary.
9683 lt_tmp_lt_search_path_spec=
9684 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685 for lt_sys_path in $lt_search_path_spec; do
9686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9689 test -d "$lt_sys_path" && \
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9697 for (lt_i = NF; lt_i > 0; lt_i--) {
9698 if ($lt_i != "" && $lt_i != ".") {
9699 if ($lt_i == "..") {
9702 if (lt_count == 0) {
9703 lt_foo="/" $lt_i lt_foo;
9710 if (lt_foo != "") { lt_freq[lt_foo]++; }
9711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 # AWK program above erroneously prepends '/' to C:/dos/paths
9716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724 libname_spec='lib$name'
9732 shlibpath_overrides_runpath=unknown
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9745 version_type=linux # correct to gnu/linux during the next big refactor
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747 shlibpath_var=LIBPATH
9749 # AIX 3 has no versioning support, so we append a major version to the name.
9750 soname_spec='${libname}${release}${shared_ext}$major'
9754 version_type=linux # correct to gnu/linux during the next big refactor
9757 hardcode_into_libs=yes
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 supports IA64
9760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761 shlibpath_var=LD_LIBRARY_PATH
9763 # With GCC up to 2.95.x, collect2 would create an import file
9764 # for dependence libraries. The import file would start with
9765 # the line `#! .'. This would cause the generated library to
9766 # depend on `.', always an invalid library. This was fixed in
9767 # development snapshots of GCC prior to 3.0.
9769 aix4 | aix4.[01] | aix4.[01].*)
9770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780 # soname into executable. Probably we can add versioning support to
9781 # collect2, so additional links can be useful in future.
9782 if test "$aix_use_runtimelinking" = yes; then
9783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784 # instead of lib<name>.a to let people know that these are not
9785 # typical AIX shared libraries.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 # We preserve .a as extension for shared libraries through AIX4.2
9789 # and later when we are not doing run time linking.
9790 library_names_spec='${libname}${release}.a $libname.a'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LIBPATH
9800 # Since July 2007 AmigaOS4 officially supports .so libraries.
9801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 library_names_spec='$libname.ixlibrary $libname.a'
9806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807 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'
9813 library_names_spec='${libname}${shared_ext}'
9814 dynamic_linker="$host_os ld.so"
9815 shlibpath_var=LIBRARY_PATH
9819 version_type=linux # correct to gnu/linux during the next big refactor
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827 # the default ld.so.conf also contains /usr/contrib/lib and
9828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829 # libtool to hard-code these into programs
9832 cygwin* | mingw* | pw32* | cegcc*)
9833 version_type=windows
9838 case $GCC,$cc_basename in
9841 library_names_spec='$libname.dll.a'
9842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9843 postinstall_cmds='base_file=`basename \${file}`~
9844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9845 dldir=$destdir/`dirname \$dlpath`~
9846 test -d \$dldir || mkdir -p \$dldir~
9847 $install_prog $dir/$dlname \$dldir/$dlname~
9848 chmod a+x \$dldir/$dlname~
9849 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9850 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9853 dlpath=$dir/\$dldll~
9855 shlibpath_overrides_runpath=yes
9859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9865 # MinGW DLLs use traditional 'lib' prefix
9866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 # pw32 DLLs use 'pw' prefix rather than 'lib'
9870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 dynamic_linker='Win32 ld.exe'
9878 libname_spec='$name'
9879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880 library_names_spec='${libname}.dll.lib'
9884 sys_lib_search_path_spec=
9890 # Let DOS variable expansion print the short 8.3 style file name.
9891 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9892 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9895 # Convert to MSYS style.
9896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9899 # Convert to unix form, then to dos form, then back to unix form
9900 # but this time dos style (no spaces!) so that the unix form looks
9901 # like /cygdrive/c/PROGRA~1:/cygdr...
9902 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9903 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9904 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9907 sys_lib_search_path_spec="$LIB"
9908 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9909 # It is most probably a Windows format PATH.
9910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9914 # FIXME: find the short name or the path components, as spaces are
9915 # common. (e.g. "Program Files" -> "PROGRA~1")
9919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9920 postinstall_cmds='base_file=`basename \${file}`~
9921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9922 dldir=$destdir/`dirname \$dlpath`~
9923 test -d \$dldir || mkdir -p \$dldir~
9924 $install_prog $dir/$dlname \$dldir/$dlname'
9925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9926 dlpath=$dir/\$dldll~
9928 shlibpath_overrides_runpath=yes
9929 dynamic_linker='Win32 link.exe'
9933 # Assume MSVC wrapper
9934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935 dynamic_linker='Win32 ld.exe'
9938 # FIXME: first we should search . and the directory the executable is in
9942 darwin* | rhapsody*)
9943 dynamic_linker="$host_os dyld"
9947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948 soname_spec='${libname}${release}${major}$shared_ext'
9949 shlibpath_overrides_runpath=yes
9950 shlibpath_var=DYLD_LIBRARY_PATH
9951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9958 version_type=linux # correct to gnu/linux during the next big refactor
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9966 freebsd* | dragonfly*)
9967 # DragonFly does not have aout. When/if they implement a new
9968 # versioning mechanism, adjust this.
9969 if test -x /usr/bin/objformat; then
9970 objformat=`/usr/bin/objformat`
9973 freebsd[23].*) objformat=aout ;;
9977 version_type=freebsd-$objformat
9978 case $version_type in
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=yes
9994 freebsd3.[01]* | freebsdelf3.[01]*)
9995 shlibpath_overrides_runpath=yes
9996 hardcode_into_libs=yes
9998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000 shlibpath_overrides_runpath=no
10001 hardcode_into_libs=yes
10003 *) # from 4.6 on, and DragonFly
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10011 version_type=linux # correct to gnu/linux during the next big refactor
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=no
10018 hardcode_into_libs=yes
10022 version_type=linux # correct to gnu/linux during the next big refactor
10025 dynamic_linker="$host_os runtime_loader"
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10030 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10031 hardcode_into_libs=yes
10034 hpux9* | hpux10* | hpux11*)
10035 # Give a soname corresponding to the major version so that dld.sl refuses to
10036 # link against other versions.
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.so"
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 if test "X$HPUX_IA64_MODE" = X32; then
10050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058 hardcode_into_libs=yes
10059 dynamic_linker="$host_os dld.sl"
10060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069 dynamic_linker="$host_os dld.sl"
10070 shlibpath_var=SHLIB_PATH
10071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10076 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10077 postinstall_cmds='chmod 555 $lib'
10078 # or fails outright, so override atomically:
10079 install_override_mode=555
10083 version_type=linux # correct to gnu/linux during the next big refactor
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10094 irix5* | irix6* | nonstopux*)
10096 nonstopux*) version_type=nonstopux ;;
10098 if test "$lt_cv_prog_gnu_ld" = yes; then
10099 version_type=linux # correct to gnu/linux during the next big refactor
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10109 irix5* | nonstopux*)
10110 libsuff= shlibsuff=
10113 case $LD in # libtool.m4 will add one of these switches to LD
10114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115 libsuff= shlibsuff= libmagic=32-bit;;
10116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117 libsuff=32 shlibsuff=N32 libmagic=N32;;
10118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120 *) libsuff= shlibsuff= libmagic=never-match;;
10124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125 shlibpath_overrides_runpath=no
10126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128 hardcode_into_libs=yes
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10136 # This must be glibc/ELF.
10137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10138 version_type=linux # correct to gnu/linux during the next big refactor
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10147 # Some binutils ld are patched to set DT_RUNPATH
10148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_shlibpath_overrides_runpath=no
10152 save_LDFLAGS=$LDFLAGS
10153 save_libdir=$libdir
10154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10167 if ac_fn_c_try_link "$LINENO"; then :
10168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10169 lt_cv_shlibpath_overrides_runpath=yes
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LDFLAGS=$save_LDFLAGS
10175 libdir=$save_libdir
10179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10181 # This implies no fast_install, which is unacceptable.
10182 # Some rework will be needed to allow for fast_install
10183 # before this can be enabled.
10184 hardcode_into_libs=yes
10186 # Append ld.so.conf contents to the search path
10187 if test -f /etc/ld.so.conf; then
10188 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' ' '`
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10192 # We used to test for /lib/ld.so.1 and disable shared libraries on
10193 # powerpc, because MkLinux only supported shared libraries with the
10194 # GNU dynamic linker. Since this was broken with cross compilers,
10195 # most powerpc-linux boxes support dynamic linking these days and
10196 # people can always --disable-shared, the test was removed, and we
10197 # assume the GNU/Linux dynamic linker is in use.
10198 dynamic_linker='GNU/Linux ld.so'
10205 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10208 dynamic_linker='NetBSD (a.out) ld.so'
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 dynamic_linker='NetBSD ld.elf_so'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10220 version_type=linux # correct to gnu/linux during the next big refactor
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=yes
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234 hardcode_into_libs=yes
10235 dynamic_linker='ldqnx.so'
10240 sys_lib_dlsearch_path_spec="/usr/lib"
10242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10245 *) need_version=no ;;
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10252 openbsd2.[89] | openbsd2.[89].*)
10253 shlibpath_overrides_runpath=no
10256 shlibpath_overrides_runpath=yes
10260 shlibpath_overrides_runpath=yes
10265 libname_spec='$name'
10268 library_names_spec='$libname${shared_ext} $libname.a'
10269 dynamic_linker='OS/2 ld.exe'
10270 shlibpath_var=LIBPATH
10273 osf3* | osf4* | osf5*)
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10289 version_type=linux # correct to gnu/linux during the next big refactor
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10297 # ldd complains unless libraries are executable
10298 postinstall_cmds='chmod +x $lib'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 if test "$with_gnu_ld" = yes; then
10314 version_type=linux # correct to gnu/linux during the next big refactor
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 case $host_vendor in
10320 shlibpath_overrides_runpath=no
10322 runpath_var=LD_RUN_PATH
10330 shlibpath_overrides_runpath=no
10331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10337 if test -d /usr/nec ;then
10338 version_type=linux # correct to gnu/linux during the next big refactor
10339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10340 soname_spec='$libname${shared_ext}.$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10346 version_type=freebsd-elf
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 if test "$with_gnu_ld" = yes; then
10355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10364 sys_lib_dlsearch_path_spec='/usr/lib'
10368 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10369 version_type=linux # correct to gnu/linux during the next big refactor
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=no
10375 hardcode_into_libs=yes
10379 version_type=linux # correct to gnu/linux during the next big refactor
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10390 $as_echo "$dynamic_linker" >&6; }
10391 test "$dynamic_linker" = no && can_build_shared=no
10393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10394 if test "$GCC" = yes; then
10395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10398 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10399 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10401 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10402 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10499 if test -n "$hardcode_libdir_flag_spec" ||
10500 test -n "$runpath_var" ||
10501 test "X$hardcode_automatic" = "Xyes" ; then
10503 # We can hardcode non-existent directories.
10504 if test "$hardcode_direct" != no &&
10505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10506 # have to relink, otherwise we might link with an installed library
10507 # when we should be linking with a yet-to-be-installed one
10508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10509 test "$hardcode_minus_L" != no; then
10510 # Linking always hardcodes the temporary library directory.
10511 hardcode_action=relink
10513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10514 hardcode_action=immediate
10517 # We cannot hardcode anything, or else we can only hardcode existing
10519 hardcode_action=unsupported
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10522 $as_echo "$hardcode_action" >&6; }
10524 if test "$hardcode_action" = relink ||
10525 test "$inherit_rpath" = yes; then
10526 # Fast installation is not supported
10527 enable_fast_install=no
10528 elif test "$shlibpath_overrides_runpath" = yes ||
10529 test "$enable_shared" = no; then
10530 # Fast installation is not necessary
10531 enable_fast_install=needless
10539 if test "x$enable_dlopen" != xyes; then
10540 enable_dlopen=unknown
10541 enable_dlopen_self=unknown
10542 enable_dlopen_self_static=unknown
10549 lt_cv_dlopen="load_add_on"
10551 lt_cv_dlopen_self=yes
10554 mingw* | pw32* | cegcc*)
10555 lt_cv_dlopen="LoadLibrary"
10560 lt_cv_dlopen="dlopen"
10565 # if libdl is installed we need to link against it
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10568 if ${ac_cv_lib_dl_dlopen+:} false; then :
10569 $as_echo_n "(cached) " >&6
10571 ac_check_lib_save_LIBS=$LIBS
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 /* Override any GCC internal prototype to avoid an error.
10577 Use char because int might match the return type of a GCC
10578 builtin and then its argument prototype would still apply. */
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 ac_cv_lib_dl_dlopen=yes
10594 ac_cv_lib_dl_dlopen=no
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10606 lt_cv_dlopen="dyld"
10608 lt_cv_dlopen_self=yes
10615 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10616 if test "x$ac_cv_func_shl_load" = xyes; then :
10617 lt_cv_dlopen="shl_load"
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10620 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10621 if ${ac_cv_lib_dld_shl_load+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 ac_check_lib_save_LIBS=$LIBS
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10639 return shl_load ();
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_lib_dld_shl_load=yes
10647 ac_cv_lib_dld_shl_load=no
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10654 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10655 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10656 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10658 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10659 if test "x$ac_cv_func_dlopen" = xyes; then :
10660 lt_cv_dlopen="dlopen"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10664 if ${ac_cv_lib_dl_dlopen+:} false; then :
10665 $as_echo_n "(cached) " >&6
10667 ac_check_lib_save_LIBS=$LIBS
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_dl_dlopen=yes
10690 ac_cv_lib_dl_dlopen=no
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10698 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10703 if ${ac_cv_lib_svld_dlopen+:} false; then :
10704 $as_echo_n "(cached) " >&6
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lsvld $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_svld_dlopen=yes
10729 ac_cv_lib_svld_dlopen=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10736 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10737 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10741 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10742 if ${ac_cv_lib_dld_dld_link+:} false; then :
10743 $as_echo_n "(cached) " >&6
10745 ac_check_lib_save_LIBS=$LIBS
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10760 return dld_link ();
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_dld_dld_link=yes
10768 ac_cv_lib_dld_dld_link=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10775 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10776 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10798 if test "x$lt_cv_dlopen" != xno; then
10804 case $lt_cv_dlopen in
10806 save_CPPFLAGS="$CPPFLAGS"
10807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10809 save_LDFLAGS="$LDFLAGS"
10810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10813 LIBS="$lt_cv_dlopen_libs $LIBS"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10816 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10817 if ${lt_cv_dlopen_self+:} false; then :
10818 $as_echo_n "(cached) " >&6
10820 if test "$cross_compiling" = yes; then :
10821 lt_cv_dlopen_self=cross
10823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10824 lt_status=$lt_dlunknown
10825 cat > conftest.$ac_ext <<_LT_EOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10836 # define LT_DLGLOBAL RTLD_GLOBAL
10839 # define LT_DLGLOBAL DL_GLOBAL
10841 # define LT_DLGLOBAL 0
10845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10846 find out it does not work in some platform. */
10847 #ifndef LT_DLLAZY_OR_NOW
10849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10852 # define LT_DLLAZY_OR_NOW DL_LAZY
10855 # define LT_DLLAZY_OR_NOW RTLD_NOW
10858 # define LT_DLLAZY_OR_NOW DL_NOW
10860 # define LT_DLLAZY_OR_NOW 0
10867 /* When -fvisbility=hidden is used, assume the code has been annotated
10868 correspondingly for the symbols needed. */
10869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10870 int fnord () __attribute__((visibility("default")));
10873 int fnord () { return 42; }
10876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10877 int status = $lt_dlunknown;
10881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10885 else puts (dlerror ());
10887 /* dlclose (self); */
10895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10896 (eval $ac_link) 2>&5
10898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10900 (./conftest; exit; ) >&5 2>/dev/null
10902 case x$lt_status in
10903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10908 # compilation failed
10909 lt_cv_dlopen_self=no
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10917 $as_echo "$lt_cv_dlopen_self" >&6; }
10919 if test "x$lt_cv_dlopen_self" = xyes; then
10920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10922 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10923 if ${lt_cv_dlopen_self_static+:} false; then :
10924 $as_echo_n "(cached) " >&6
10926 if test "$cross_compiling" = yes; then :
10927 lt_cv_dlopen_self_static=cross
10929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930 lt_status=$lt_dlunknown
10931 cat > conftest.$ac_ext <<_LT_EOF
10932 #line $LINENO "configure"
10933 #include "confdefs.h"
10942 # define LT_DLGLOBAL RTLD_GLOBAL
10945 # define LT_DLGLOBAL DL_GLOBAL
10947 # define LT_DLGLOBAL 0
10951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952 find out it does not work in some platform. */
10953 #ifndef LT_DLLAZY_OR_NOW
10955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10958 # define LT_DLLAZY_OR_NOW DL_LAZY
10961 # define LT_DLLAZY_OR_NOW RTLD_NOW
10964 # define LT_DLLAZY_OR_NOW DL_NOW
10966 # define LT_DLLAZY_OR_NOW 0
10973 /* When -fvisbility=hidden is used, assume the code has been annotated
10974 correspondingly for the symbols needed. */
10975 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10976 int fnord () __attribute__((visibility("default")));
10979 int fnord () { return 42; }
10982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10983 int status = $lt_dlunknown;
10987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10991 else puts (dlerror ());
10993 /* dlclose (self); */
11001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11002 (eval $ac_link) 2>&5
11004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11006 (./conftest; exit; ) >&5 2>/dev/null
11008 case x$lt_status in
11009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11014 # compilation failed
11015 lt_cv_dlopen_self_static=no
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11026 CPPFLAGS="$save_CPPFLAGS"
11027 LDFLAGS="$save_LDFLAGS"
11032 case $lt_cv_dlopen_self in
11033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11034 *) enable_dlopen_self=unknown ;;
11037 case $lt_cv_dlopen_self_static in
11038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11039 *) enable_dlopen_self_static=unknown ;;
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11062 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11063 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; }
11069 # FIXME - insert some real tests, host_os isn't really good enough
11072 if test -n "$STRIP" ; then
11073 striplib="$STRIP -x"
11074 old_striplib="$STRIP -S"
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11100 # Report which library types will actually be built
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11102 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11104 $as_echo "$can_build_shared" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11107 $as_echo_n "checking whether to build shared libraries... " >&6; }
11108 test "$can_build_shared" = "no" && enable_shared=no
11110 # On AIX, shared libraries and static libraries use the same namespace, and
11111 # are all built from PIC.
11114 test "$enable_shared" = yes && enable_static=no
11115 if test -n "$RANLIB"; then
11116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11117 postinstall_cmds='$RANLIB $lib'
11122 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11123 test "$enable_shared" = yes && enable_static=no
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11128 $as_echo "$enable_shared" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11131 $as_echo_n "checking whether to build static libraries... " >&6; }
11132 # Make sure either enable_shared or enable_static is yes.
11133 test "$enable_shared" = yes || enable_static=yes
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11135 $as_echo "$enable_static" >&6; }
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11163 ac_config_commands="$ac_config_commands libtool"
11168 # Only expand once:
11174 test "X$enable_static" = Xyes && STATIC="-static"
11181 ac_config_files="$ac_config_files Makefile"
11183 cat >confcache <<\_ACEOF
11184 # This file is a shell script that caches the results of configure
11185 # tests run on this system so they can be shared between configure
11186 # scripts and configure runs, see configure's option --config-cache.
11187 # It is not useful on other systems. If it contains results you don't
11188 # want to keep, you may remove or edit it.
11190 # config.status only pays attention to the cache file if you give it
11191 # the --recheck option to rerun configure.
11193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11195 # following values.
11199 # The following way of writing the cache mishandles newlines in values,
11200 # but we know of no workaround that is simple, portable, and efficient.
11201 # So, we kill variables containing newlines.
11202 # Ultrix sh set writes to stderr and can't be redirected directly,
11203 # and sets the high bit in the cache file unless we assign to the vars.
11205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11206 eval ac_val=\$$ac_var
11210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11214 _ | IFS | as_nl) ;; #(
11215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11216 *) { eval $ac_var=; unset $ac_var;} ;;
11222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11223 *${as_nl}ac_space=\ *)
11224 # `set' does not quote correctly, so add quotes: double-quote
11225 # substitution turns \\\\ into \\, and sed turns \\ into \.
11228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11231 # `set' quotes correctly as required by POSIX, so do not add quotes.
11232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11246 if test -w "$cache_file"; then
11247 if test "x$cache_file" != "x/dev/null"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11249 $as_echo "$as_me: updating cache $cache_file" >&6;}
11250 if test ! -f "$cache_file" || test -h "$cache_file"; then
11251 cat confcache >"$cache_file"
11253 case $cache_file in #(
11255 mv -f confcache "$cache_file"$$ &&
11256 mv -f "$cache_file"$$ "$cache_file" ;; #(
11258 mv -f confcache "$cache_file" ;;
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11270 # Let make expand exec_prefix.
11271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11273 # Transform confdefs.h into DEFS.
11274 # Protect against shell expansion while executing Makefile rules.
11275 # Protect against Makefile macro expansion.
11277 # If the first sed substitution is executed (which looks for macros that
11278 # take arguments), then branch to the quote section. Otherwise,
11279 # look for a macro that doesn't take arguments.
11289 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11291 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11295 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11308 DEFS=`sed -n "$ac_script" confdefs.h`
11314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11315 # 1. Remove the extension, and $U if already installed.
11316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11319 # will be set to the directory where LIBOBJS objects are built.
11320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11323 LIBOBJS=$ac_libobjs
11325 LTLIBOBJS=$ac_ltlibobjs
11328 if test -n "$EXEEXT"; then
11330 am__EXEEXT_FALSE='#'
11332 am__EXEEXT_TRUE='#'
11336 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11337 as_fn_error $? "conditional \"AMDEP\" was never defined.
11338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11341 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11345 : "${CONFIG_STATUS=./config.status}"
11347 ac_clean_files_save=$ac_clean_files
11348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11354 # Generated by $as_me.
11355 # Run this file to recreate the current configuration.
11356 # Compiler output produced by configure, useful for debugging
11357 # configure, is in config.log if it exists.
11360 ac_cs_recheck=false
11363 SHELL=\${CONFIG_SHELL-$SHELL}
11366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11367 ## -------------------- ##
11368 ## M4sh Initialization. ##
11369 ## -------------------- ##
11371 # Be more Bourne compatible
11372 DUALCASE=1; export DUALCASE # for MKS sh
11373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11377 # is contrary to our usage. Disable this feature.
11378 alias -g '${1+"$@"}'='"$@"'
11379 setopt NO_GLOB_SUBST
11381 case `(set -o) 2>/dev/null` in #(
11393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11397 # Prefer a ksh shell builtin over an external printf program on Solaris,
11398 # but without wasting forks for bash or zsh.
11399 if test -z "$BASH_VERSION$ZSH_VERSION" \
11400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11401 as_echo='print -r --'
11402 as_echo_n='print -rn --'
11403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11404 as_echo='printf %s\n'
11405 as_echo_n='printf %s'
11407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11409 as_echo_n='/usr/ucb/echo -n'
11411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11412 as_echo_n_body='eval
11416 expr "X$arg" : "X\\(.*\\)$as_nl";
11417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11421 export as_echo_n_body
11422 as_echo_n='sh -c $as_echo_n_body as_echo'
11424 export as_echo_body
11425 as_echo='sh -c $as_echo_body as_echo'
11428 # The user is always right.
11429 if test "${PATH_SEPARATOR+set}" != set; then
11431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11439 # We need space, tab and new line, in precisely that order. Quoting is
11440 # there to prevent editors from complaining about space-tab.
11441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11442 # splitting by setting IFS to empty value.)
11445 # Find who we are. Look in the path if we contain no directory separator.
11448 *[\\/]* ) as_myself=$0 ;;
11449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11453 test -z "$as_dir" && as_dir=.
11454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11460 # We did not find ourselves, most probably we were run as `sh COMMAND'
11461 # in which case we are not to be found in the path.
11462 if test "x$as_myself" = x; then
11465 if test ! -f "$as_myself"; then
11466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11470 # Unset variables that we do not need and which cause bugs (e.g. in
11471 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11472 # suppresses any "Segmentation fault" message there. '((' could
11473 # trigger a bug in pdksh 5.2.14.
11474 for as_var in BASH_ENV ENV MAIL MAILPATH
11475 do eval test x\${$as_var+set} = xset \
11476 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11493 # ----------------------------------------
11494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11496 # script with STATUS, using 1 if that was 0.
11499 as_status=$1; test $as_status -eq 0 && as_status=1
11501 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11502 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11504 $as_echo "$as_me: error: $2" >&2
11505 as_fn_exit $as_status
11509 # as_fn_set_status STATUS
11510 # -----------------------
11511 # Set $? to STATUS, without forking.
11512 as_fn_set_status ()
11515 } # as_fn_set_status
11517 # as_fn_exit STATUS
11518 # -----------------
11519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11523 as_fn_set_status $1
11529 # Portably unset VAR.
11532 { eval $1=; unset $1;}
11534 as_unset=as_fn_unset
11535 # as_fn_append VAR VALUE
11536 # ----------------------
11537 # Append the text in VALUE to the end of the definition contained in VAR. Take
11538 # advantage of any shell optimizations that allow amortized linear growth over
11539 # repeated appends, instead of the typical quadratic growth present in naive
11541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11542 eval 'as_fn_append ()
11553 # as_fn_arith ARG...
11554 # ------------------
11555 # Perform arithmetic evaluation on the ARGs, and store the result in the
11556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11557 # must be portable across $(()) and expr.
11558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11559 eval 'as_fn_arith ()
11566 as_val=`expr "$@" || test $? -eq 1`
11571 if expr a : '\(a\)' >/dev/null 2>&1 &&
11572 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11579 as_basename=basename
11584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11590 as_me=`$as_basename -- "$0" ||
11591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11592 X"$0" : 'X\(//\)$' \| \
11593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11595 sed '/^.*\/\([^/][^/]*\)\/*$/{
11609 # Avoid depending upon Character Ranges.
11610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11613 as_cr_digits='0123456789'
11614 as_cr_alnum=$as_cr_Letters$as_cr_digits
11616 ECHO_C= ECHO_N= ECHO_T=
11617 case `echo -n x` in #(((((
11619 case `echo 'xy\c'` in
11620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11622 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11629 rm -f conf$$ conf$$.exe conf$$.file
11630 if test -d conf$$.dir; then
11631 rm -f conf$$.dir/conf$$.file
11634 mkdir conf$$.dir 2>/dev/null
11636 if (echo >conf$$.file) 2>/dev/null; then
11637 if ln -s conf$$.file conf$$ 2>/dev/null; then
11639 # ... but there are two gotchas:
11640 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11641 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11642 # In both cases, we have to default to `cp -p'.
11643 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11645 elif ln conf$$.file conf$$ 2>/dev/null; then
11653 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11654 rmdir conf$$.dir 2>/dev/null
11659 # Create "$as_dir" as a directory, including parents if necessary.
11664 -*) as_dir=./$as_dir;;
11666 test -d "$as_dir" || eval $as_mkdir_p || {
11670 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11671 *) as_qdir=$as_dir;;
11673 as_dirs="'$as_qdir' $as_dirs"
11674 as_dir=`$as_dirname -- "$as_dir" ||
11675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11676 X"$as_dir" : 'X\(//\)[^/]' \| \
11677 X"$as_dir" : 'X\(//\)$' \| \
11678 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11679 $as_echo X"$as_dir" |
11680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11684 /^X\(\/\/\)[^/].*/{
11697 test -d "$as_dir" && break
11699 test -z "$as_dirs" || eval "mkdir $as_dirs"
11700 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11704 if mkdir -p . 2>/dev/null; then
11705 as_mkdir_p='mkdir -p "$as_dir"'
11707 test -d ./-p && rmdir ./-p
11711 if test -x / >/dev/null 2>&1; then
11712 as_test_x='test -x'
11714 if ls -dL / >/dev/null 2>&1; then
11721 if test -d "$1"; then
11727 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11728 ???[sx]*):;;*)false;;esac;fi
11732 as_executable_p=$as_test_x
11734 # Sed expression to map a string onto a valid CPP name.
11735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11737 # Sed expression to map a string onto a valid variable name.
11738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11742 ## ----------------------------------- ##
11743 ## Main body of $CONFIG_STATUS script. ##
11744 ## ----------------------------------- ##
11746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 # Save the log message, to keep $0 and so on meaningful, and to
11750 # report actual input values of CONFIG_FILES etc. instead of their
11751 # values after options handling.
11753 This file was extended by mdemo2 $as_me 1.0, which was
11754 generated by GNU Autoconf 2.68. Invocation command line was
11756 CONFIG_FILES = $CONFIG_FILES
11757 CONFIG_HEADERS = $CONFIG_HEADERS
11758 CONFIG_LINKS = $CONFIG_LINKS
11759 CONFIG_COMMANDS = $CONFIG_COMMANDS
11762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11767 case $ac_config_files in *"
11768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11774 # Files that config.status was made for.
11775 config_files="$ac_config_files"
11776 config_commands="$ac_config_commands"
11780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11782 \`$as_me' instantiates files and other configuration actions
11783 from templates according to the current configuration. Unless the files
11784 and actions are specified as TAGs, all are instantiated by default.
11786 Usage: $0 [OPTION]... [TAG]...
11788 -h, --help print this help, then exit
11789 -V, --version print version number and configuration settings, then exit
11790 --config print configuration, then exit
11791 -q, --quiet, --silent
11792 do not print progress messages
11793 -d, --debug don't remove temporary files
11794 --recheck update $as_me by reconfiguring in the same conditions
11795 --file=FILE[:TEMPLATE]
11796 instantiate the configuration file FILE
11798 Configuration files:
11801 Configuration commands:
11804 Report bugs to <bug-libtool@gnu.org>."
11807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11810 mdemo2 config.status 1.0
11811 configured by $0, generated by GNU Autoconf 2.68,
11812 with options \\"\$ac_cs_config\\"
11814 Copyright (C) 2010 Free Software Foundation, Inc.
11815 This config.status script is free software; the Free Software Foundation
11816 gives unlimited permission to copy, distribute and modify it."
11823 test -n "\$AWK" || AWK=awk
11826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11827 # The default lists apply if the user does not specify any file.
11833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11850 # Handling of the options.
11851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11854 $as_echo "$ac_cs_version"; exit ;;
11855 --config | --confi | --conf | --con | --co | --c )
11856 $as_echo "$ac_cs_config"; exit ;;
11857 --debug | --debu | --deb | --de | --d | -d )
11859 --file | --fil | --fi | --f )
11862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11863 '') as_fn_error $? "missing file argument" ;;
11865 as_fn_append CONFIG_FILES " '$ac_optarg'"
11866 ac_need_defaults=false;;
11867 --he | --h | --help | --hel | -h )
11868 $as_echo "$ac_cs_usage"; exit ;;
11869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11873 # This is an error.
11874 -*) as_fn_error $? "unrecognized option: \`$1'
11875 Try \`$0 --help' for more information." ;;
11877 *) as_fn_append ac_config_targets " $1"
11878 ac_need_defaults=false ;;
11884 ac_configure_extra_args=
11886 if $ac_cs_silent; then
11888 ac_configure_extra_args="$ac_configure_extra_args --silent"
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893 if \$ac_cs_recheck; then
11894 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11896 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11897 CONFIG_SHELL='$SHELL'
11898 export CONFIG_SHELL
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11908 ## Running $as_me. ##
11914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11918 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11921 # The HP-UX ksh and POSIX shell print the target directory to stdout
11922 # if CDPATH is set.
11923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11925 sed_quote_subst='$sed_quote_subst'
11926 double_quote_subst='$double_quote_subst'
11927 delay_variable_subst='$delay_variable_subst'
11928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11931 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11936 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
11937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
11958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
11959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
11965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
11966 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11967 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11968 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11969 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11970 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
11971 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11972 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11973 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11974 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11975 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11976 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11977 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11978 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11979 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11980 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11981 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11982 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11983 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11984 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"`'
11985 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
11986 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
11987 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11988 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11989 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11990 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11991 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11992 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11993 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11994 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11995 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
11996 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11997 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11998 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11999 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12000 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12001 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12002 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12003 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12004 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12005 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12006 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12007 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12008 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12009 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12010 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12011 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12012 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12013 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12014 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12015 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12016 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12017 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12018 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12019 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12020 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12021 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12022 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12023 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12024 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12025 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12026 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12027 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12028 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12029 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12030 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12031 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12032 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12033 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12034 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12035 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12036 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12037 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12038 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12039 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12040 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12041 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12042 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12043 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12044 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12045 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12046 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12047 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12048 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12049 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12050 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12051 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12060 LTCFLAGS='$LTCFLAGS'
12061 compiler='$compiler_DEFAULT'
12063 # A function that is used when there is no print builtin or printf.
12064 func_fallback_echo ()
12066 eval 'cat <<_LTECHO_EOF
12071 # Quote evaled strings.
12086 deplibs_check_method \
12091 sharedlib_from_linklib_cmd \
12094 archiver_list_spec \
12100 lt_cv_sys_global_symbol_pipe \
12101 lt_cv_sys_global_symbol_to_cdecl \
12102 lt_cv_sys_global_symbol_to_c_name_address \
12103 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12104 nm_file_list_spec \
12105 lt_prog_compiler_no_builtin_flag \
12106 lt_prog_compiler_pic \
12107 lt_prog_compiler_wl \
12108 lt_prog_compiler_static \
12109 lt_cv_prog_compiler_c_o \
12118 export_dynamic_flag_spec \
12119 whole_archive_flag_spec \
12120 compiler_needs_object \
12122 allow_undefined_flag \
12123 no_undefined_flag \
12124 hardcode_libdir_flag_spec \
12125 hardcode_libdir_separator \
12129 variables_saved_for_relink \
12131 library_names_spec \
12133 install_override_mode \
12137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12138 *[\\\\\\\`\\"\\\$]*)
12139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12147 # Double-quote double-evaled strings.
12148 for var in reload_cmds \
12149 old_postinstall_cmds \
12150 old_postuninstall_cmds \
12152 extract_expsyms_cmds \
12153 old_archive_from_new_cmds \
12154 old_archive_from_expsyms_cmds \
12156 archive_expsym_cmds \
12158 module_expsym_cmds \
12159 export_symbols_cmds \
12163 postuninstall_cmds \
12165 sys_lib_search_path_spec \
12166 sys_lib_dlsearch_path_spec; do
12167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12168 *[\\\\\\\`\\"\\\$]*)
12169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12177 ac_aux_dir='$ac_aux_dir'
12178 xsi_shell='$xsi_shell'
12179 lt_shell_append='$lt_shell_append'
12181 # See if we are running on zsh, and set the options which allow our
12182 # commands through without removal of \ escapes INIT.
12183 if test -n "\${ZSH_VERSION+set}" ; then
12184 setopt NO_GLOB_SUBST
12190 TIMESTAMP='$TIMESTAMP'
12199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201 # Handling of arguments.
12202 for ac_config_target in $ac_config_targets
12204 case $ac_config_target in
12205 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12206 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12214 # If the user did not use the arguments to specify the items to instantiate,
12215 # then the envvar interface is used. Set only those that are not.
12216 # We use the long form for the default assignment because of an extremely
12217 # bizarre bug on SunOS 4.1.3.
12218 if $ac_need_defaults; then
12219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12223 # Have a temporary directory for convenience. Make it in the build tree
12224 # simply because there is no reason against having it here, and in addition,
12225 # creating and moving files from /tmp can sometimes cause problems.
12226 # Hook for its removal unless debugging.
12227 # Note that there is a small window in which the directory will not be cleaned:
12228 # after its creation but before its name has been assigned to `$tmp'.
12232 trap 'exit_status=$?
12233 : "${ac_tmp:=$tmp}"
12234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12236 trap 'as_fn_exit 1' 1 2 13 15
12238 # Create a (secure) tmp directory for tmp files.
12241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12245 tmp=./conf$$-$RANDOM
12246 (umask 077 && mkdir "$tmp")
12247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12250 # Set up the scripts for CONFIG_FILES section.
12251 # No need to generate them if there are no CONFIG_FILES.
12252 # This happens for instance with `./config.status config.h'.
12253 if test -n "$CONFIG_FILES"; then
12256 ac_cr=`echo X | tr X '\015'`
12257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12258 # But we know of no other shell where ac_cr would be empty at this
12259 # point, so we can use a bashism as a fallback.
12260 if test "x$ac_cr" = x; then
12261 eval ac_cr=\$\'\\r\'
12263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12267 ac_cs_awk_cr=$ac_cr
12270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12275 echo "cat >conf$$subs.awk <<_ACEOF" &&
12276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12278 } >conf$$subs.sh ||
12279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12282 for ac_last_try in false false false false false :; do
12283 . ./conf$$subs.sh ||
12284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12287 if test $ac_delim_n = $ac_delim_num; then
12289 elif $ac_last_try; then
12290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12295 rm -f conf$$subs.sh
12297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12302 s/^/S["/; s/!.*/"]=/
12312 s/\(.\{148\}\)..*/\1/
12314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12326 s/\(.\{148\}\)..*/\1/
12328 s/["\\]/\\&/g; s/^/"/; s/$/"/
12332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12337 ' <conf$$subs.awk | sed '
12342 ' >>$CONFIG_STATUS || ac_write_fail=1
12343 rm -f conf$$subs.awk
12344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12347 for (key in S) S_is_set[key] = 1
12353 nfields = split(line, field, "@")
12355 len = length(field[1])
12356 for (i = 2; i < nfields; i++) {
12358 keylen = length(key)
12359 if (S_is_set[key]) {
12361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12362 len += length(value) + length(field[++i])
12373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12384 # trailing colons and then remove the whole line if VPATH becomes empty
12385 # (actually we leave an empty line to preserve line numbers).
12386 if test "x$srcdir" = x.; then
12387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12406 fi # test -n "$CONFIG_FILES"
12409 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12414 :[FHLC]) ac_mode=$ac_tag; continue;;
12416 case $ac_mode$ac_tag in
12418 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12419 :[FH]-) ac_tag=-:-;;
12420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12437 -) ac_f="$ac_tmp/stdin";;
12438 *) # Look for the file first in the build tree, then in the source tree
12439 # (if the path is not absolute). The absolute path cannot be DOS-style,
12440 # because $ac_f cannot contain `:'.
12444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12446 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12449 as_fn_append ac_file_inputs " '$ac_f'"
12452 # Let's still pretend it is `configure' which instantiates (i.e., don't
12453 # use $as_me), people would be surprised to read:
12454 # /* config.h. Generated by config.status. */
12455 configure_input='Generated from '`
12456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12458 if test x"$ac_file" != x-; then
12459 configure_input="$ac_file. $configure_input"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12461 $as_echo "$as_me: creating $ac_file" >&6;}
12463 # Neutralize special characters interpreted by sed in replacement strings.
12464 case $configure_input in #(
12465 *\&* | *\|* | *\\* )
12466 ac_sed_conf_input=`$as_echo "$configure_input" |
12467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12468 *) ac_sed_conf_input=$configure_input;;
12472 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12478 ac_dir=`$as_dirname -- "$ac_file" ||
12479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12480 X"$ac_file" : 'X\(//\)[^/]' \| \
12481 X"$ac_file" : 'X\(//\)$' \| \
12482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12483 $as_echo X"$ac_file" |
12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12488 /^X\(\/\/\)[^/].*/{
12501 as_dir="$ac_dir"; as_fn_mkdir_p
12505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12508 # A ".." for each directory in $ac_dir_suffix.
12509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12510 case $ac_top_builddir_sub in
12511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12515 ac_abs_top_builddir=$ac_pwd
12516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12517 # for backward compatibility:
12518 ac_top_builddir=$ac_top_build_prefix
12521 .) # We are building in place.
12523 ac_top_srcdir=$ac_top_builddir_sub
12524 ac_abs_top_srcdir=$ac_pwd ;;
12525 [\\/]* | ?:[\\/]* ) # Absolute name.
12526 ac_srcdir=$srcdir$ac_dir_suffix;
12527 ac_top_srcdir=$srcdir
12528 ac_abs_top_srcdir=$srcdir ;;
12529 *) # Relative name.
12530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12531 ac_top_srcdir=$ac_top_build_prefix$srcdir
12532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12547 ac_MKDIR_P=$MKDIR_P
12549 [\\/$]* | ?:[\\/]* ) ;;
12550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12555 # If the template does not know about datarootdir, expand it.
12556 # FIXME: This hack should be removed a few years after 2.60.
12557 ac_datarootdir_hack=; ac_datarootdir_seen=
12568 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12569 *datarootdir*) ac_datarootdir_seen=yes;;
12570 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12572 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12575 ac_datarootdir_hack='
12576 s&@datadir@&$datadir&g
12577 s&@docdir@&$docdir&g
12578 s&@infodir@&$infodir&g
12579 s&@localedir@&$localedir&g
12580 s&@mandir@&$mandir&g
12581 s&\\\${datarootdir}&$datarootdir&g' ;;
12585 # Neutralize VPATH when `$srcdir' = `.'.
12586 # Shell code in configure.ac might set extrasub.
12587 # FIXME: do we really want to maintain this feature?
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 ac_sed_extra="$ac_vpsub
12592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12595 s|@configure_input@|$ac_sed_conf_input|;t t
12596 s&@top_builddir@&$ac_top_builddir_sub&;t t
12597 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12598 s&@srcdir@&$ac_srcdir&;t t
12599 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12600 s&@top_srcdir@&$ac_top_srcdir&;t t
12601 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12602 s&@builddir@&$ac_builddir&;t t
12603 s&@abs_builddir@&$ac_abs_builddir&;t t
12604 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12605 s&@INSTALL@&$ac_INSTALL&;t t
12606 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12607 $ac_datarootdir_hack
12609 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12610 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12615 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12617 which seems to be undefined. Please make sure it is defined" >&5
12618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12619 which seems to be undefined. Please make sure it is defined" >&2;}
12621 rm -f "$ac_tmp/stdin"
12623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12631 $as_echo "$as_me: executing $ac_file commands" >&6;}
12636 case $ac_file$ac_mode in
12637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12638 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12639 # are listed without --file. Let's play safe and only enable the eval
12640 # if we detect the quoting.
12641 case $CONFIG_FILES in
12642 *\'*) eval set x "$CONFIG_FILES" ;;
12643 *) set x $CONFIG_FILES ;;
12648 # Strip MF so we end up with the name of the file.
12649 mf=`echo "$mf" | sed -e 's/:.*$//'`
12650 # Check whether this is an Automake generated Makefile or not.
12651 # We used to match only the files named `Makefile.in', but
12652 # some people rename them; so instead we look at the file content.
12653 # Grep'ing the first line is not enough: some people post-process
12654 # each Makefile.in and add a new line on top of each file to say so.
12655 # Grep'ing the whole file is not good either: AIX grep has a line
12656 # limit of 2048, but all sed's we know have understand at least 4000.
12657 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12658 dirpart=`$as_dirname -- "$mf" ||
12659 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12660 X"$mf" : 'X\(//\)[^/]' \| \
12661 X"$mf" : 'X\(//\)$' \| \
12662 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12668 /^X\(\/\/\)[^/].*/{
12684 # Extract the definition of DEPDIR, am__include, and am__quote
12685 # from the Makefile without running `make'.
12686 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12687 test -z "$DEPDIR" && continue
12688 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12689 test -z "am__include" && continue
12690 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12691 # When using ansi2knr, U may be empty or an underscore; expand it
12692 U=`sed -n 's/^U = //p' < "$mf"`
12693 # Find all dependency output files, they are included files with
12694 # $(DEPDIR) in their names. We invoke sed twice because it is the
12695 # simplest approach to changing $(DEPDIR) to its actual value in the
12697 for file in `sed -n "
12698 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12699 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12700 # Make sure the directory exists.
12701 test -f "$dirpart/$file" && continue
12702 fdir=`$as_dirname -- "$file" ||
12703 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12704 X"$file" : 'X\(//\)[^/]' \| \
12705 X"$file" : 'X\(//\)$' \| \
12706 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12707 $as_echo X"$file" |
12708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12712 /^X\(\/\/\)[^/].*/{
12725 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12726 # echo "creating $dirpart/$file"
12727 echo '# dummy' > "$dirpart/$file"
12734 # See if we are running on zsh, and set the options which allow our
12735 # commands through without removal of \ escapes.
12736 if test -n "${ZSH_VERSION+set}" ; then
12737 setopt NO_GLOB_SUBST
12740 cfgfile="${ofile}T"
12741 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12744 cat <<_LT_EOF >> "$cfgfile"
12747 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12748 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12752 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12753 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12755 # Written by Gordon Matzigkeit, 1996
12757 # This file is part of GNU Libtool.
12759 # GNU Libtool is free software; you can redistribute it and/or
12760 # modify it under the terms of the GNU General Public License as
12761 # published by the Free Software Foundation; either version 2 of
12762 # the License, or (at your option) any later version.
12764 # As a special exception to the GNU General Public License,
12765 # if you distribute this file as part of a program or library that
12766 # is built using GNU Libtool, you may include this file under the
12767 # same distribution terms that you use for the rest of that program.
12769 # GNU Libtool is distributed in the hope that it will be useful,
12770 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12771 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12772 # GNU General Public License for more details.
12774 # You should have received a copy of the GNU General Public License
12775 # along with GNU Libtool; see the file COPYING. If not, a copy
12776 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12777 # obtained by writing to the Free Software Foundation, Inc.,
12778 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12781 # The names of the tagged configurations supported by this script.
12784 # ### BEGIN LIBTOOL CONFIG
12786 # Which release of libtool.m4 was used?
12787 macro_version=$macro_version
12788 macro_revision=$macro_revision
12790 # Whether or not to build shared libraries.
12791 build_libtool_libs=$enable_shared
12793 # Whether or not to build static libraries.
12794 build_old_libs=$enable_static
12796 # What type of objects to build.
12799 # Whether or not to optimize for fast installation.
12800 fast_install=$enable_fast_install
12802 # Shell to use when invoking shell scripts.
12805 # An echo program that protects backslashes.
12808 # The PATH separator for the build system.
12809 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12812 host_alias=$host_alias
12816 # The build system.
12817 build_alias=$build_alias
12821 # A sed program that does not truncate output.
12824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12825 Xsed="\$SED -e 1s/^X//"
12827 # A grep program that handles long lines.
12833 # A literal string matcher.
12836 # A BSD- or MS-compatible name lister.
12839 # Whether we need soft or hard links.
12842 # What is the maximum length of a command?
12843 max_cmd_len=$max_cmd_len
12845 # Object file suffix (normally "o").
12848 # Executable file suffix (normally "").
12851 # whether the shell understands "unset".
12854 # turn spaces into newlines.
12857 # turn newlines into spaces.
12860 # convert \$build file names to \$host format.
12861 to_host_file_cmd=$lt_cv_to_host_file_cmd
12863 # convert \$build files to toolchain format.
12864 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12866 # An object symbol dumper.
12867 OBJDUMP=$lt_OBJDUMP
12869 # Method to check whether dependent libraries are shared objects.
12870 deplibs_check_method=$lt_deplibs_check_method
12872 # Command to use when deplibs_check_method = "file_magic".
12873 file_magic_cmd=$lt_file_magic_cmd
12875 # How to find potential files when deplibs_check_method = "file_magic".
12876 file_magic_glob=$lt_file_magic_glob
12878 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
12879 want_nocaseglob=$lt_want_nocaseglob
12881 # DLL creation program.
12882 DLLTOOL=$lt_DLLTOOL
12884 # Command to associate shared and link libraries.
12885 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12890 # Flags to create an archive.
12891 AR_FLAGS=$lt_AR_FLAGS
12893 # How to feed a file listing to the archiver.
12894 archiver_list_spec=$lt_archiver_list_spec
12896 # A symbol stripping program.
12899 # Commands used to install an old-style archive.
12901 old_postinstall_cmds=$lt_old_postinstall_cmds
12902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12904 # Whether to use a lock for old archive extraction.
12905 lock_old_archive_extraction=$lock_old_archive_extraction
12910 # LTCC compiler flags.
12911 LTCFLAGS=$lt_CFLAGS
12913 # Take the output of nm and produce a listing of raw symbols and C names.
12914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12916 # Transform the output of nm in a proper C declaration.
12917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12919 # Transform the output of nm in a C name address pair.
12920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12922 # Transform the output of nm in a C name address pair when lib prefix is needed.
12923 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12925 # Specify filename containing input files for \$NM.
12926 nm_file_list_spec=$lt_nm_file_list_spec
12928 # The root where to search for dependent libraries,and in which our libraries should be installed.
12929 lt_sysroot=$lt_sysroot
12931 # The name of the directory that contains temporary libtool files.
12934 # Used to examine libraries when file_magic_cmd begins with "file".
12935 MAGIC_CMD=$MAGIC_CMD
12937 # Must we lock files when doing compilation?
12938 need_locks=$lt_need_locks
12941 MANIFEST_TOOL=$lt_MANIFEST_TOOL
12943 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12944 DSYMUTIL=$lt_DSYMUTIL
12946 # Tool to change global to local symbols on Mac OS X.
12949 # Tool to manipulate fat objects and archives on Mac OS X.
12952 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12955 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12956 OTOOL64=$lt_OTOOL64
12958 # Old archive suffix (normally "a").
12961 # Shared library suffix (normally ".so").
12962 shrext_cmds=$lt_shrext_cmds
12964 # The commands to extract the exported symbol list from a shared archive.
12965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12967 # Variables whose values should be saved in libtool wrapper scripts and
12968 # restored at link time.
12969 variables_saved_for_relink=$lt_variables_saved_for_relink
12971 # Do we need the "lib" prefix for modules?
12972 need_lib_prefix=$need_lib_prefix
12974 # Do we need a version for libraries?
12975 need_version=$need_version
12977 # Library versioning type.
12978 version_type=$version_type
12980 # Shared library runtime path variable.
12981 runpath_var=$runpath_var
12983 # Shared library path variable.
12984 shlibpath_var=$shlibpath_var
12986 # Is shlibpath searched before the hard-coded library search path?
12987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12989 # Format of library name prefix.
12990 libname_spec=$lt_libname_spec
12992 # List of archive names. First name is the real one, the rest are links.
12993 # The last name is the one that the linker finds with -lNAME
12994 library_names_spec=$lt_library_names_spec
12996 # The coded name of the library, if different from the real name.
12997 soname_spec=$lt_soname_spec
12999 # Permission mode override for installation of shared libraries.
13000 install_override_mode=$lt_install_override_mode
13002 # Command to use after installation of a shared archive.
13003 postinstall_cmds=$lt_postinstall_cmds
13005 # Command to use after uninstallation of a shared archive.
13006 postuninstall_cmds=$lt_postuninstall_cmds
13008 # Commands used to finish a libtool library installation in a directory.
13009 finish_cmds=$lt_finish_cmds
13011 # As "finish_cmds", except a single script fragment to be evaled but
13013 finish_eval=$lt_finish_eval
13015 # Whether we should hardcode library paths into libraries.
13016 hardcode_into_libs=$hardcode_into_libs
13018 # Compile-time system search path for libraries.
13019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13021 # Run-time system search path for libraries.
13022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13024 # Whether dlopen is supported.
13025 dlopen_support=$enable_dlopen
13027 # Whether dlopen of programs is supported.
13028 dlopen_self=$enable_dlopen_self
13030 # Whether dlopen of statically linked programs is supported.
13031 dlopen_self_static=$enable_dlopen_self_static
13033 # Commands to strip libraries.
13034 old_striplib=$lt_old_striplib
13035 striplib=$lt_striplib
13038 # The linker used to build libraries.
13041 # How to create reloadable object files.
13042 reload_flag=$lt_reload_flag
13043 reload_cmds=$lt_reload_cmds
13045 # Commands used to build an old-style archive.
13046 old_archive_cmds=$lt_old_archive_cmds
13048 # A language specific compiler.
13051 # Is the compiler the GNU compiler?
13054 # Compiler flag to turn off builtin functions.
13055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13057 # Additional compiler flags for building library objects.
13058 pic_flag=$lt_lt_prog_compiler_pic
13060 # How to pass a linker flag through the compiler.
13061 wl=$lt_lt_prog_compiler_wl
13063 # Compiler flag to prevent dynamic linking.
13064 link_static_flag=$lt_lt_prog_compiler_static
13066 # Does compiler simultaneously support -c and -o options?
13067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13069 # Whether or not to add -lc for building shared libraries.
13070 build_libtool_need_lc=$archive_cmds_need_lc
13072 # Whether or not to disallow shared libs when runtime libs are static.
13073 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13075 # Compiler flag to allow reflexive dlopens.
13076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13078 # Compiler flag to generate shared objects directly from archives.
13079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13081 # Whether the compiler copes with passing no objects directly.
13082 compiler_needs_object=$lt_compiler_needs_object
13084 # Create an old-style archive from a shared archive.
13085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13087 # Create a temporary old-style archive to link instead of a shared archive.
13088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13090 # Commands used to build a shared archive.
13091 archive_cmds=$lt_archive_cmds
13092 archive_expsym_cmds=$lt_archive_expsym_cmds
13094 # Commands used to build a loadable module if different from building
13095 # a shared archive.
13096 module_cmds=$lt_module_cmds
13097 module_expsym_cmds=$lt_module_expsym_cmds
13099 # Whether we are building with GNU ld or not.
13100 with_gnu_ld=$lt_with_gnu_ld
13102 # Flag that allows shared libraries with undefined symbols to be built.
13103 allow_undefined_flag=$lt_allow_undefined_flag
13105 # Flag that enforces no undefined symbols.
13106 no_undefined_flag=$lt_no_undefined_flag
13108 # Flag to hardcode \$libdir into a binary during linking.
13109 # This must work even if \$libdir does not exist
13110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13112 # Whether we need a single "-rpath" flag with a separated argument.
13113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13116 # DIR into the resulting binary.
13117 hardcode_direct=$hardcode_direct
13119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13120 # DIR into the resulting binary and the resulting library dependency is
13121 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13122 # library is relocated.
13123 hardcode_direct_absolute=$hardcode_direct_absolute
13125 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13126 # into the resulting binary.
13127 hardcode_minus_L=$hardcode_minus_L
13129 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13130 # into the resulting binary.
13131 hardcode_shlibpath_var=$hardcode_shlibpath_var
13133 # Set to "yes" if building a shared library automatically hardcodes DIR
13134 # into the library and all subsequent libraries and executables linked
13136 hardcode_automatic=$hardcode_automatic
13138 # Set to yes if linker adds runtime paths of dependent libraries
13139 # to runtime path list.
13140 inherit_rpath=$inherit_rpath
13142 # Whether libtool must link a program against all its dependency libraries.
13143 link_all_deplibs=$link_all_deplibs
13145 # Set to "yes" if exported symbols are required.
13146 always_export_symbols=$always_export_symbols
13148 # The commands to list exported symbols.
13149 export_symbols_cmds=$lt_export_symbols_cmds
13151 # Symbols that should not be listed in the preloaded symbols.
13152 exclude_expsyms=$lt_exclude_expsyms
13154 # Symbols that must always be exported.
13155 include_expsyms=$lt_include_expsyms
13157 # Commands necessary for linking programs (against libraries) with templates.
13158 prelink_cmds=$lt_prelink_cmds
13160 # Commands necessary for finishing linking programs.
13161 postlink_cmds=$lt_postlink_cmds
13163 # Specify filename containing input files.
13164 file_list_spec=$lt_file_list_spec
13166 # How to hardcode a shared library path into an executable.
13167 hardcode_action=$hardcode_action
13169 # ### END LIBTOOL CONFIG
13175 cat <<\_LT_EOF >> "$cfgfile"
13176 # AIX sometimes has problems with the GCC collect2 program. For some
13177 # reason, if we set the COLLECT_NAMES environment variable, the problems
13178 # vanish in a puff of smoke.
13179 if test "X${COLLECT_NAMES+set}" != Xset; then
13181 export COLLECT_NAMES
13188 ltmain="$ac_aux_dir/ltmain.sh"
13191 # We use sed instead of cat because bash on DJGPP gets confused if
13192 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13193 # text mode, it properly converts lines to CR/LF. This bash problem
13194 # is reportedly fixed, but why not run on old versions too?
13195 sed '$q' "$ltmain" >> "$cfgfile" \
13196 || (rm -f "$cfgfile"; exit 1)
13198 if test x"$xsi_shell" = xyes; then
13199 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13203 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13204 \ * ) func_dirname_result="${3}" ;;\
13206 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13207 && mv -f "$cfgfile.tmp" "$cfgfile" \
13208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13209 test 0 -eq $? || _lt_function_replace_fail=:
13212 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13215 \ func_basename_result="${1##*/}"\
13216 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13217 && mv -f "$cfgfile.tmp" "$cfgfile" \
13218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13219 test 0 -eq $? || _lt_function_replace_fail=:
13222 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13223 func_dirname_and_basename ()\
13226 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13227 \ * ) func_dirname_result="${3}" ;;\
13229 \ func_basename_result="${1##*/}"\
13230 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13231 && mv -f "$cfgfile.tmp" "$cfgfile" \
13232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13233 test 0 -eq $? || _lt_function_replace_fail=:
13236 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13239 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13240 \ # positional parameters, so assign one to ordinary parameter first.\
13241 \ func_stripname_result=${3}\
13242 \ func_stripname_result=${func_stripname_result#"${1}"}\
13243 \ func_stripname_result=${func_stripname_result%"${2}"}\
13244 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13245 && mv -f "$cfgfile.tmp" "$cfgfile" \
13246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13247 test 0 -eq $? || _lt_function_replace_fail=:
13250 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13251 func_split_long_opt ()\
13253 \ func_split_long_opt_name=${1%%=*}\
13254 \ func_split_long_opt_arg=${1#*=}\
13255 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13256 && mv -f "$cfgfile.tmp" "$cfgfile" \
13257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13258 test 0 -eq $? || _lt_function_replace_fail=:
13261 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13262 func_split_short_opt ()\
13264 \ func_split_short_opt_arg=${1#??}\
13265 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13266 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13267 && mv -f "$cfgfile.tmp" "$cfgfile" \
13268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13269 test 0 -eq $? || _lt_function_replace_fail=:
13272 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13276 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13277 \ *) func_lo2o_result=${1} ;;\
13279 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13280 && mv -f "$cfgfile.tmp" "$cfgfile" \
13281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13282 test 0 -eq $? || _lt_function_replace_fail=:
13285 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13288 func_xform_result=${1%.*}.lo\
13289 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13290 && mv -f "$cfgfile.tmp" "$cfgfile" \
13291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13292 test 0 -eq $? || _lt_function_replace_fail=:
13295 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13298 func_arith_result=$(( $* ))\
13299 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13300 && mv -f "$cfgfile.tmp" "$cfgfile" \
13301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13302 test 0 -eq $? || _lt_function_replace_fail=:
13305 sed -e '/^func_len ()$/,/^} # func_len /c\
13308 func_len_result=${#1}\
13309 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13310 && mv -f "$cfgfile.tmp" "$cfgfile" \
13311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13312 test 0 -eq $? || _lt_function_replace_fail=:
13316 if test x"$lt_shell_append" = xyes; then
13317 sed -e '/^func_append ()$/,/^} # func_append /c\
13320 eval "${1}+=\\${2}"\
13321 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13322 && mv -f "$cfgfile.tmp" "$cfgfile" \
13323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13324 test 0 -eq $? || _lt_function_replace_fail=:
13327 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13328 func_append_quoted ()\
13330 \ func_quote_for_eval "${2}"\
13331 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13332 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13333 && mv -f "$cfgfile.tmp" "$cfgfile" \
13334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13335 test 0 -eq $? || _lt_function_replace_fail=:
13338 # Save a `func_append' function call where possible by direct use of '+='
13339 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13340 && mv -f "$cfgfile.tmp" "$cfgfile" \
13341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13342 test 0 -eq $? || _lt_function_replace_fail=:
13344 # Save a `func_append' function call even when '+=' is not available
13345 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13346 && mv -f "$cfgfile.tmp" "$cfgfile" \
13347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13348 test 0 -eq $? || _lt_function_replace_fail=:
13351 if test x"$_lt_function_replace_fail" = x":"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13353 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13357 mv -f "$cfgfile" "$ofile" ||
13358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13369 ac_clean_files=$ac_clean_files_save
13371 test $ac_write_fail = 0 ||
13372 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13375 # configure is writing to config.log, and then calls config.status.
13376 # config.status does its own redirection, appending to config.log.
13377 # Unfortunately, on DOS this fails, as config.log is still kept open
13378 # by configure, so config.status won't be able to write to it; its
13379 # output is simply discarded. So we exec the FD to /dev/null,
13380 # effectively closing config.log, so it can be properly (re)opened and
13381 # appended to by config.status. When coming back to configure, we
13382 # need to make the FD available again.
13383 if test "$no_create" != yes; then
13385 ac_config_status_args=
13386 test "$silent" = yes &&
13387 ac_config_status_args="$ac_config_status_args --quiet"
13389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13392 # would make configure fail if this is the last instruction.
13393 $ac_cs_success || as_fn_exit 1
13395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}