2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for cdemo 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='cdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='cdemo 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 cdemo 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/cdemo]
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 cdemo 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
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 cdemo $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
7178 # Check whether --enable-shared was given.
7179 if test "${enable_shared+set}" = set; then :
7180 enableval=$enable_shared; p=${PACKAGE-default}
7182 yes) enable_shared=yes ;;
7183 no) enable_shared=no ;;
7186 # Look at the argument we got. We use all the common list separators.
7187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7188 for pkg in $enableval; do
7190 if test "X$pkg" = "X$p"; then
7209 # Check whether --enable-static was given.
7210 if test "${enable_static+set}" = set; then :
7211 enableval=$enable_static; p=${PACKAGE-default}
7213 yes) enable_static=yes ;;
7214 no) enable_static=no ;;
7217 # Look at the argument we got. We use all the common list separators.
7218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7219 for pkg in $enableval; do
7221 if test "X$pkg" = "X$p"; then
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then :
7243 withval=$with_pic; lt_p=${PACKAGE-default}
7245 yes|no) pic_mode=$withval ;;
7248 # Look at the argument we got. We use all the common list separators.
7249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7250 for lt_pkg in $withval; do
7252 if test "X$lt_pkg" = "X$lt_p"; then
7264 test -z "$pic_mode" && pic_mode=default
7272 # Check whether --enable-fast-install was given.
7273 if test "${enable_fast_install+set}" = set; then :
7274 enableval=$enable_fast_install; p=${PACKAGE-default}
7276 yes) enable_fast_install=yes ;;
7277 no) enable_fast_install=no ;;
7279 enable_fast_install=no
7280 # Look at the argument we got. We use all the common list separators.
7281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7282 for pkg in $enableval; do
7284 if test "X$pkg" = "X$p"; then
7285 enable_fast_install=yes
7292 enable_fast_install=yes
7305 # This can be used to rebuild libtool when needed
7306 LIBTOOL_DEPS="$ltmain"
7308 # Always use our own libtool.
7309 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7340 test -z "$LN_S" && LN_S="ln -s"
7355 if test -n "${ZSH_VERSION+set}" ; then
7356 setopt NO_GLOB_SUBST
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7360 $as_echo_n "checking for objdir... " >&6; }
7361 if ${lt_cv_objdir+:} false; then :
7362 $as_echo_n "(cached) " >&6
7364 rm -f .libs 2>/dev/null
7365 mkdir .libs 2>/dev/null
7366 if test -d .libs; then
7369 # MS-DOS does not allow filenames that begin with a dot.
7372 rmdir .libs 2>/dev/null
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7375 $as_echo "$lt_cv_objdir" >&6; }
7376 objdir=$lt_cv_objdir
7382 cat >>confdefs.h <<_ACEOF
7383 #define LT_OBJDIR "$lt_cv_objdir/"
7391 # AIX sometimes has problems with the GCC collect2 program. For some
7392 # reason, if we set the COLLECT_NAMES environment variable, the problems
7393 # vanish in a puff of smoke.
7394 if test "X${COLLECT_NAMES+set}" != Xset; then
7396 export COLLECT_NAMES
7403 can_build_shared=yes
7405 # All known linkers require a `.a' archive for static linking (except MSVC,
7406 # which needs '.lib').
7409 with_gnu_ld="$lt_cv_prog_gnu_ld"
7412 old_CFLAGS="$CFLAGS"
7414 # Set sane defaults for various variables
7415 test -z "$CC" && CC=cc
7416 test -z "$LTCC" && LTCC=$CC
7417 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7418 test -z "$LD" && LD=ld
7419 test -z "$ac_objext" && ac_objext=o
7421 for cc_temp in $compiler""; do
7423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7432 # Only perform the check for file, if the check method requires it
7433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7434 case $deplibs_check_method in
7436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7438 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7440 $as_echo_n "(cached) " >&6
7444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7447 lt_save_MAGIC_CMD="$MAGIC_CMD"
7448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450 for ac_dir in $ac_dummy; do
7452 test -z "$ac_dir" && ac_dir=.
7453 if test -f $ac_dir/${ac_tool_prefix}file; then
7454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7455 if test -n "$file_magic_test_file"; then
7456 case $deplibs_check_method in
7458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461 $EGREP "$file_magic_regex" > /dev/null; then
7466 *** Warning: the command libtool uses to detect shared libraries,
7467 *** $file_magic_cmd, produces output that libtool cannot recognize.
7468 *** The result is that libtool may fail to recognize shared libraries
7469 *** as such. This will affect the creation of libtool libraries that
7470 *** depend on shared libraries, but programs linked with such libtool
7471 *** libraries will work regardless of this problem. Nevertheless, you
7472 *** may want to report the problem to your system manager and/or to
7473 *** bug-libtool@gnu.org
7483 MAGIC_CMD="$lt_save_MAGIC_CMD"
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if test -n "$MAGIC_CMD"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7491 $as_echo "$MAGIC_CMD" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7501 if test -z "$lt_cv_path_MAGIC_CMD"; then
7502 if test -n "$ac_tool_prefix"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7504 $as_echo_n "checking for file... " >&6; }
7505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506 $as_echo_n "(cached) " >&6
7510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7513 lt_save_MAGIC_CMD="$MAGIC_CMD"
7514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516 for ac_dir in $ac_dummy; do
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f $ac_dir/file; then
7520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7521 if test -n "$file_magic_test_file"; then
7522 case $deplibs_check_method in
7524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527 $EGREP "$file_magic_regex" > /dev/null; then
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such. This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem. Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7549 MAGIC_CMD="$lt_save_MAGIC_CMD"
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557 $as_echo "$MAGIC_CMD" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7573 # Use C for the default configuration in the libtool script
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583 # Source file extension for C test sources.
7586 # Object file extension for compiled C test sources.
7590 # Code to be used in simple compile tests
7591 lt_simple_compile_test_code="int some_variable = 0;"
7593 # Code to be used in simple link tests
7594 lt_simple_link_test_code='int main(){return(0);}'
7602 # If no C compiler was specified, use CC.
7605 # If no C compiler flags were specified, use CFLAGS.
7606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7608 # Allow CC to be a program name with arguments.
7611 # Save the default compiler, since it gets overwritten when the other
7612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7613 compiler_DEFAULT=$CC
7615 # save warnings/boilerplate of simple test code
7616 ac_outfile=conftest.$ac_objext
7617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7619 _lt_compiler_boilerplate=`cat conftest.err`
7622 ac_outfile=conftest.$ac_objext
7623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7625 _lt_linker_boilerplate=`cat conftest.err`
7630 ## There is no encapsulation within the following macros, do not change
7631 ## the running order or otherwise move them around unless you know exactly
7632 ## what you are doing...
7633 if test -n "$compiler"; then
7635 lt_prog_compiler_no_builtin_flag=
7637 if test "$GCC" = yes; then
7638 case $cc_basename in
7640 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7646 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7647 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7648 $as_echo_n "(cached) " >&6
7650 lt_cv_prog_compiler_rtti_exceptions=no
7651 ac_outfile=conftest.$ac_objext
7652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7653 lt_compiler_flag="-fno-rtti -fno-exceptions"
7654 # Insert the option either (1) after the last *FLAGS variable, or
7655 # (2) before a word containing "conftest.", or (3) at the end.
7656 # Note that $ac_compile itself does not contain backslashes and begins
7657 # with a dollar sign (not a hyphen), so the echo should work correctly.
7658 # The option is referenced via a variable to avoid confusing sed.
7659 lt_compile=`echo "$ac_compile" | $SED \
7660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7662 -e 's:$: $lt_compiler_flag:'`
7663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7664 (eval "$lt_compile" 2>conftest.err)
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 if (exit $ac_status) && test -s "$ac_outfile"; then
7669 # The compiler can only warn and ignore the option if not recognized
7670 # So say no if there are warnings other than the usual output.
7671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7674 lt_cv_prog_compiler_rtti_exceptions=yes
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7681 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7696 lt_prog_compiler_wl=
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_static=
7701 if test "$GCC" = yes; then
7702 lt_prog_compiler_wl='-Wl,'
7703 lt_prog_compiler_static='-static'
7707 # All AIX code is PIC.
7708 if test "$host_cpu" = ia64; then
7709 # AIX 5 now supports IA64 processor
7710 lt_prog_compiler_static='-Bstatic'
7717 # see comment about AmigaOS4 .so support
7718 lt_prog_compiler_pic='-fPIC'
7721 # FIXME: we need at least 68020 code to build shared libraries, but
7722 # adding the `-m68020' flag to GCC prevents building anything better,
7724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7730 # PIC is the default for these OSes.
7733 mingw* | cygwin* | pw32* | os2* | cegcc*)
7734 # This hack is so that the source file can tell whether it is being
7735 # built for inclusion in a dll (and should export symbols for example).
7736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7737 # (--disable-auto-import) libraries
7738 lt_prog_compiler_pic='-DDLL_EXPORT'
7741 darwin* | rhapsody*)
7742 # PIC is the default on this platform
7743 # Common symbols not allowed in MH_DYLIB files
7744 lt_prog_compiler_pic='-fno-common'
7748 # PIC is the default for Haiku.
7749 # The "-static" flag exists, but is broken.
7750 lt_prog_compiler_static=
7754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7756 # sets the default TLS model and affects inlining.
7762 lt_prog_compiler_pic='-fPIC'
7768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7769 # Instead, we relocate shared libraries at runtime.
7773 # Just because we use GCC doesn't mean we suddenly get shared libraries
7774 # on systems that don't support them.
7775 lt_prog_compiler_can_build_shared=no
7780 # QNX uses GNU C++, but need to define -shared option too, otherwise
7782 lt_prog_compiler_pic='-fPIC -shared'
7786 if test -d /usr/nec; then
7787 lt_prog_compiler_pic=-Kconform_pic
7792 lt_prog_compiler_pic='-fPIC'
7796 case $cc_basename in
7797 nvcc*) # Cuda Compiler Driver 2.2
7798 lt_prog_compiler_wl='-Xlinker '
7799 if test -n "$lt_prog_compiler_pic"; then
7800 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7805 # PORTME Check for flag to pass linker flags through the system compiler.
7808 lt_prog_compiler_wl='-Wl,'
7809 if test "$host_cpu" = ia64; then
7810 # AIX 5 now supports IA64 processor
7811 lt_prog_compiler_static='-Bstatic'
7813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7817 mingw* | cygwin* | pw32* | os2* | cegcc*)
7818 # This hack is so that the source file can tell whether it is being
7819 # built for inclusion in a dll (and should export symbols for example).
7820 lt_prog_compiler_pic='-DDLL_EXPORT'
7823 hpux9* | hpux10* | hpux11*)
7824 lt_prog_compiler_wl='-Wl,'
7825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7832 lt_prog_compiler_pic='+Z'
7835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7836 lt_prog_compiler_static='${wl}-a ${wl}archive'
7839 irix5* | irix6* | nonstopux*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # PIC (with -KPIC) is the default.
7842 lt_prog_compiler_static='-non_shared'
7845 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7846 case $cc_basename in
7847 # old Intel for x86_64 which still supported -KPIC.
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-static'
7853 # icc used to be incompatible with GCC.
7854 # ICC 10 doesn't accept -KPIC any more.
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-fPIC'
7858 lt_prog_compiler_static='-static'
7860 # Lahey Fortran 8.1.
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='--shared'
7864 lt_prog_compiler_static='--static'
7867 # NAG Fortran compiler
7868 lt_prog_compiler_wl='-Wl,-Wl,,'
7869 lt_prog_compiler_pic='-PIC'
7870 lt_prog_compiler_static='-Bstatic'
7872 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7873 # Portland Group compilers (*not* the Pentium gcc compiler,
7874 # which looks to be a dead project)
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_pic='-fpic'
7877 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_wl='-Wl,'
7881 # All Alpha code is PIC.
7882 lt_prog_compiler_static='-non_shared'
7884 xl* | bgxl* | bgf* | mpixl*)
7885 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_pic='-qpic'
7888 lt_prog_compiler_static='-qstaticlink'
7891 case `$CC -V 2>&1 | sed 5q` in
7892 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894 lt_prog_compiler_pic='-KPIC'
7895 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_wl=''
7898 *Sun\ F* | *Sun*Fortran*)
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_wl='-Qoption ld '
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-Bstatic'
7907 lt_prog_compiler_wl='-Wl,'
7909 *Intel*\ [CF]*Compiler*)
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-fPIC'
7912 lt_prog_compiler_static='-static'
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-fpic'
7917 lt_prog_compiler_static='-Bstatic'
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7930 # QNX uses GNU C++, but need to define -shared option too, otherwise
7932 lt_prog_compiler_pic='-fPIC -shared'
7935 osf3* | osf4* | osf5*)
7936 lt_prog_compiler_wl='-Wl,'
7937 # All OSF/1 code is PIC.
7938 lt_prog_compiler_static='-non_shared'
7942 lt_prog_compiler_static='-non_shared'
7946 lt_prog_compiler_pic='-KPIC'
7947 lt_prog_compiler_static='-Bstatic'
7948 case $cc_basename in
7949 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7950 lt_prog_compiler_wl='-Qoption ld ';;
7952 lt_prog_compiler_wl='-Wl,';;
7957 lt_prog_compiler_wl='-Qoption ld '
7958 lt_prog_compiler_pic='-PIC'
7959 lt_prog_compiler_static='-Bstatic'
7962 sysv4 | sysv4.2uw2* | sysv4.3*)
7963 lt_prog_compiler_wl='-Wl,'
7964 lt_prog_compiler_pic='-KPIC'
7965 lt_prog_compiler_static='-Bstatic'
7969 if test -d /usr/nec ;then
7970 lt_prog_compiler_pic='-Kconform_pic'
7971 lt_prog_compiler_static='-Bstatic'
7975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7976 lt_prog_compiler_wl='-Wl,'
7977 lt_prog_compiler_pic='-KPIC'
7978 lt_prog_compiler_static='-Bstatic'
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_can_build_shared=no
7987 lt_prog_compiler_pic='-pic'
7988 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_can_build_shared=no
7998 # For platforms which do not support PIC, -DPIC is meaningless:
8000 lt_prog_compiler_pic=
8003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8008 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8009 if ${lt_cv_prog_compiler_pic+:} false; then :
8010 $as_echo_n "(cached) " >&6
8012 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8015 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8016 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8019 # Check to make sure the PIC flag actually works.
8021 if test -n "$lt_prog_compiler_pic"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8023 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8024 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8025 $as_echo_n "(cached) " >&6
8027 lt_cv_prog_compiler_pic_works=no
8028 ac_outfile=conftest.$ac_objext
8029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8030 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8031 # Insert the option either (1) after the last *FLAGS variable, or
8032 # (2) before a word containing "conftest.", or (3) at the end.
8033 # Note that $ac_compile itself does not contain backslashes and begins
8034 # with a dollar sign (not a hyphen), so the echo should work correctly.
8035 # The option is referenced via a variable to avoid confusing sed.
8036 lt_compile=`echo "$ac_compile" | $SED \
8037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8039 -e 's:$: $lt_compiler_flag:'`
8040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8041 (eval "$lt_compile" 2>conftest.err)
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 if (exit $ac_status) && test -s "$ac_outfile"; then
8046 # The compiler can only warn and ignore the option if not recognized
8047 # So say no if there are warnings other than the usual output.
8048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8051 lt_cv_prog_compiler_pic_works=yes
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8058 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8060 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8061 case $lt_prog_compiler_pic in
8063 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8066 lt_prog_compiler_pic=
8067 lt_prog_compiler_can_build_shared=no
8083 # Check to make sure the static flag actually works.
8085 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8087 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8088 if ${lt_cv_prog_compiler_static_works+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 lt_cv_prog_compiler_static_works=no
8092 save_LDFLAGS="$LDFLAGS"
8093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8096 # The linker can only warn and ignore the option if not recognized
8097 # So say no if there are warnings
8098 if test -s conftest.err; then
8099 # Append any errors to the config.log.
8100 cat conftest.err 1>&5
8101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103 if diff conftest.exp conftest.er2 >/dev/null; then
8104 lt_cv_prog_compiler_static_works=yes
8107 lt_cv_prog_compiler_static_works=yes
8111 LDFLAGS="$save_LDFLAGS"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8115 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8117 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8120 lt_prog_compiler_static=
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8131 if ${lt_cv_prog_compiler_c_o+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 lt_cv_prog_compiler_c_o=no
8135 $RM -r conftest 2>/dev/null
8139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141 lt_compiler_flag="-o out/conftest2.$ac_objext"
8142 # Insert the option either (1) after the last *FLAGS variable, or
8143 # (2) before a word containing "conftest.", or (3) at the end.
8144 # Note that $ac_compile itself does not contain backslashes and begins
8145 # with a dollar sign (not a hyphen), so the echo should work correctly.
8146 lt_compile=`echo "$ac_compile" | $SED \
8147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149 -e 's:$: $lt_compiler_flag:'`
8150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151 (eval "$lt_compile" 2>out/conftest.err)
8153 cat out/conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8157 # The compiler can only warn and ignore the option if not recognized
8158 # So say no if there are warnings
8159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8162 lt_cv_prog_compiler_c_o=yes
8167 # SGI C++ compiler will create directory out/ii_files/ for
8168 # template instantiation
8169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8170 $RM out/* && rmdir out
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8186 if ${lt_cv_prog_compiler_c_o+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 lt_cv_prog_compiler_c_o=no
8190 $RM -r conftest 2>/dev/null
8194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8196 lt_compiler_flag="-o out/conftest2.$ac_objext"
8197 # Insert the option either (1) after the last *FLAGS variable, or
8198 # (2) before a word containing "conftest.", or (3) at the end.
8199 # Note that $ac_compile itself does not contain backslashes and begins
8200 # with a dollar sign (not a hyphen), so the echo should work correctly.
8201 lt_compile=`echo "$ac_compile" | $SED \
8202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204 -e 's:$: $lt_compiler_flag:'`
8205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8206 (eval "$lt_compile" 2>out/conftest.err)
8208 cat out/conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8212 # The compiler can only warn and ignore the option if not recognized
8213 # So say no if there are warnings
8214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8217 lt_cv_prog_compiler_c_o=yes
8222 # SGI C++ compiler will create directory out/ii_files/ for
8223 # template instantiation
8224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8225 $RM out/* && rmdir out
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8237 hard_links="nottested"
8238 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8239 # do not overwrite the value of need_locks provided by the user
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8241 $as_echo_n "checking if we can lock with hard links... " >&6; }
8244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8246 ln conftest.a conftest.b 2>&5 || hard_links=no
8247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8249 $as_echo "$hard_links" >&6; }
8250 if test "$hard_links" = no; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8252 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8265 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8268 allow_undefined_flag=
8269 always_export_symbols=no
8271 archive_expsym_cmds=
8272 compiler_needs_object=no
8273 enable_shared_with_static_runtimes=no
8274 export_dynamic_flag_spec=
8275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8276 hardcode_automatic=no
8278 hardcode_direct_absolute=no
8279 hardcode_libdir_flag_spec=
8280 hardcode_libdir_separator=
8282 hardcode_shlibpath_var=unsupported
8284 link_all_deplibs=unknown
8287 old_archive_from_new_cmds=
8288 old_archive_from_expsyms_cmds=
8289 thread_safe_flag_spec=
8290 whole_archive_flag_spec=
8291 # include_expsyms should be a list of space-separated symbols to be *always*
8292 # included in the symbol list
8294 # exclude_expsyms can be an extended regexp of symbols to exclude
8295 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8296 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8297 # as well as any symbol that contains `d'.
8298 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8299 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8300 # platforms (ab)use it in PIC code, but their linkers get confused if
8301 # the symbol is explicitly referenced. Since portable code cannot
8302 # rely on this symbol name, it's probably fine to never include it in
8303 # preloaded symbol tables.
8304 # Exclude shared library initialization/finalization symbols.
8305 extract_expsyms_cmds=
8308 cygwin* | mingw* | pw32* | cegcc*)
8309 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8310 # When not using gcc, we currently assume that we are using
8311 # Microsoft Visual C++.
8312 if test "$GCC" != yes; then
8317 # we just hope/assume this is gcc and not c89 (= MSVC++)
8327 # On some targets, GNU ld is compatible enough with the native linker
8328 # that we're better off using the native interface for both.
8329 lt_use_gnu_ld_interface=no
8330 if test "$with_gnu_ld" = yes; then
8333 # The AIX port of GNU ld has always aspired to compatibility
8334 # with the native linker. However, as the warning in the GNU ld
8335 # block says, versions before 2.19.5* couldn't really create working
8336 # shared libraries, regardless of the interface used.
8337 case `$LD -v 2>&1` in
8338 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8339 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8340 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8342 lt_use_gnu_ld_interface=yes
8347 lt_use_gnu_ld_interface=yes
8352 if test "$lt_use_gnu_ld_interface" = yes; then
8353 # If archive_cmds runs LD, not CC, wlarc should be empty
8356 # Set some defaults for GNU ld with shared library support. These
8357 # are reset later if shared libraries are not supported. Putting them
8358 # here allows them to be overridden if necessary.
8359 runpath_var=LD_RUN_PATH
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 export_dynamic_flag_spec='${wl}--export-dynamic'
8362 # ancient GNU ld didn't support --whole-archive et. al.
8363 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8366 whole_archive_flag_spec=
8368 supports_anon_versioning=no
8369 case `$LD -v 2>&1` in
8370 *GNU\ gold*) supports_anon_versioning=yes ;;
8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8374 *\ 2.11.*) ;; # other 2.11 versions
8375 *) supports_anon_versioning=yes ;;
8378 # See if GNU ld supports shared libraries.
8381 # On AIX/PPC, the GNU linker is very broken
8382 if test "$host_cpu" != ia64; then
8386 *** Warning: the GNU linker, at least up to release 2.19, is reported
8387 *** to be unable to reliably create shared libraries on AIX.
8388 *** Therefore, libtool is disabling shared libraries support. If you
8389 *** really care for shared libraries, you may want to install binutils
8390 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8391 *** You will then need to restart the configuration process.
8400 # see comment about AmigaOS4 .so support
8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 archive_expsym_cmds=''
8405 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)'
8406 hardcode_libdir_flag_spec='-L$libdir'
8407 hardcode_minus_L=yes
8413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8414 allow_undefined_flag=unsupported
8415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8416 # support --undefined. This deserves some investigation. FIXME
8417 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 cygwin* | mingw* | pw32* | cegcc*)
8424 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8425 # as there is no search path for DLLs.
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 export_dynamic_flag_spec='${wl}--export-all-symbols'
8428 allow_undefined_flag=unsupported
8429 always_export_symbols=no
8430 enable_shared_with_static_runtimes=yes
8431 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'
8432 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8434 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8436 # If the export-symbols file already is a .def file (1st line
8437 # is EXPORTS), use it as is; otherwise, prepend...
8438 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8439 cp $export_symbols $output_objdir/$soname.def;
8441 echo EXPORTS > $output_objdir/$soname.def;
8442 cat $export_symbols >> $output_objdir/$soname.def;
8444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 link_all_deplibs=yes
8457 hardcode_shlibpath_var=no
8458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8459 export_dynamic_flag_spec='${wl}-E'
8460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8461 # Instead, shared libraries are loaded at an image base (0x10000000 by
8462 # default) and relocated if they conflict, which is a slow very memory
8463 # consuming and fragmenting process. To avoid this, we pick a random,
8464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8467 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'
8470 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8472 if test "$host_os" = linux-dietlibc; then
8473 case $cc_basename in
8474 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8477 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8478 && test "$tmp_diet" = no
8480 tmp_addflag=' $pic_flag'
8481 tmp_sharedflag='-shared'
8482 case $cc_basename,$host_cpu in
8483 pgcc*) # Portland Group C compiler
8484 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'
8485 tmp_addflag=' $pic_flag'
8487 pgf77* | pgf90* | pgf95* | pgfortran*)
8488 # Portland Group f77 and f90 compilers
8489 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'
8490 tmp_addflag=' $pic_flag -Mnomain' ;;
8491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8492 tmp_addflag=' -i_dynamic' ;;
8493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8494 tmp_addflag=' -i_dynamic -nofor_main' ;;
8495 ifc* | ifort*) # Intel Fortran compiler
8496 tmp_addflag=' -nofor_main' ;;
8497 lf95*) # Lahey Fortran 8.1
8498 whole_archive_flag_spec=
8499 tmp_sharedflag='--shared' ;;
8500 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8501 tmp_sharedflag='-qmkshrobj'
8503 nvcc*) # Cuda Compiler Driver 2.2
8504 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'
8505 compiler_needs_object=yes
8508 case `$CC -V 2>&1 | sed 5q` in
8509 *Sun\ C*) # Sun C 5.9
8510 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'
8511 compiler_needs_object=yes
8512 tmp_sharedflag='-G' ;;
8513 *Sun\ F*) # Sun Fortran 8.3
8514 tmp_sharedflag='-G' ;;
8516 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518 if test "x$supports_anon_versioning" = xyes; then
8519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8521 echo "local: *; };" >> $output_objdir/$libname.ver~
8522 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8525 case $cc_basename in
8526 xlf* | bgf* | bgxlf* | mpixlf*)
8527 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8528 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8531 if test "x$supports_anon_versioning" = xyes; then
8532 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8534 echo "local: *; };" >> $output_objdir/$libname.ver~
8535 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8546 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8549 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8555 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8559 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8560 *** create shared libraries on Solaris systems. Therefore, libtool
8561 *** is disabling shared libraries support. We urge you to upgrade GNU
8562 *** binutils to release 2.9.1 or newer. Another option is to modify
8563 *** your PATH or compiler configuration so that the native linker is
8564 *** used, and then restart.
8567 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8569 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8576 case `$LD -v 2>&1` in
8577 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8581 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8582 *** reliably create shared libraries on SCO systems. Therefore, libtool
8583 *** is disabling shared libraries support. We urge you to upgrade GNU
8584 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8585 *** your PATH or compiler configuration so that the native linker is
8586 *** used, and then restart.
8591 # For security reasons, it is highly recommended that you always
8592 # use absolute paths for naming shared libraries, and exclude the
8593 # DT_RUNPATH tag from executables and libraries. But doing so
8594 # requires that you compile everything twice, which is a pain.
8595 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8607 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_shlibpath_var=no
8614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8623 if test "$ld_shlibs" = no; then
8625 hardcode_libdir_flag_spec=
8626 export_dynamic_flag_spec=
8627 whole_archive_flag_spec=
8630 # PORTME fill in a description of your system's linker (not GNU ld)
8633 allow_undefined_flag=unsupported
8634 always_export_symbols=yes
8635 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'
8636 # Note: this linker hardcodes the directories in LIBPATH if there
8637 # are no directories specified by -L.
8638 hardcode_minus_L=yes
8639 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8640 # Neither direct hardcoding nor static linking is supported with a
8642 hardcode_direct=unsupported
8647 if test "$host_cpu" = ia64; then
8648 # On IA64, the linker does run time linking by default, so we don't
8649 # have to do anything special.
8650 aix_use_runtimelinking=no
8651 exp_sym_flag='-Bexport'
8654 # If we're using GNU nm, then we don't want the "-C" option.
8655 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8656 # Also, AIX nm treats weak defined symbols like other global
8657 # defined symbols, whereas GNU nm marks them as "W".
8658 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8659 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'
8661 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'
8663 aix_use_runtimelinking=no
8665 # Test if we are trying to use run time linking or normal
8666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8667 # need to do runtime linking.
8668 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8669 for ld_flag in $LDFLAGS; do
8670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8671 aix_use_runtimelinking=yes
8678 exp_sym_flag='-bexport'
8679 no_entry_flag='-bnoentry'
8682 # When large executables or shared objects are built, AIX ld can
8683 # have problems creating the table of contents. If linking a library
8684 # or program results in "error TOC overflow" add -mminimal-toc to
8685 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8686 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8690 hardcode_direct_absolute=yes
8691 hardcode_libdir_separator=':'
8692 link_all_deplibs=yes
8693 file_list_spec='${wl}-f,'
8695 if test "$GCC" = yes; then
8696 case $host_os in aix4.[012]|aix4.[012].*)
8697 # We only want to do this on AIX 4.2 and lower, the check
8698 # below for broken collect2 doesn't work under 4.3+
8699 collect2name=`${CC} -print-prog-name=collect2`
8700 if test -f "$collect2name" &&
8701 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8703 # We have reworked collect2
8706 # We have old collect2
8707 hardcode_direct=unsupported
8708 # It fails to find uninstalled libraries when the uninstalled
8709 # path is not listed in the libpath. Setting hardcode_minus_L
8710 # to unsupported forces relinking
8711 hardcode_minus_L=yes
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_libdir_separator=
8717 shared_flag='-shared'
8718 if test "$aix_use_runtimelinking" = yes; then
8719 shared_flag="$shared_flag "'${wl}-G'
8723 if test "$host_cpu" = ia64; then
8724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8725 # chokes on -Wl,-G. The following line is correct:
8728 if test "$aix_use_runtimelinking" = yes; then
8729 shared_flag='${wl}-G'
8731 shared_flag='${wl}-bM:SRE'
8736 export_dynamic_flag_spec='${wl}-bexpall'
8737 # It seems that -bexpall does not export symbols beginning with
8738 # underscore (_), so it is better to generate a list of symbols to export.
8739 always_export_symbols=yes
8740 if test "$aix_use_runtimelinking" = yes; then
8741 # Warning - without using the other runtime loading flags (-brtl),
8742 # -berok will link without error, but may produce a broken library.
8743 allow_undefined_flag='-berok'
8744 # Determine the default libpath from the value encoded in an
8746 if test "${lt_cv_aix_libpath+set}" = set; then
8747 aix_libpath=$lt_cv_aix_libpath
8749 if ${lt_cv_aix_libpath_+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8763 if ac_fn_c_try_link "$LINENO"; then :
8765 lt_aix_libpath_sed='
8766 /Import File Strings/,/^$/ {
8768 s/^0 *\([^ ]*\) *$/\1/
8772 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8773 # Check for a 64-bit object if we didn't find anything.
8774 if test -z "$lt_cv_aix_libpath_"; then
8775 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778 rm -f core conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 if test -z "$lt_cv_aix_libpath_"; then
8781 lt_cv_aix_libpath_="/usr/lib:/lib"
8786 aix_libpath=$lt_cv_aix_libpath_
8789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8790 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"
8792 if test "$host_cpu" = ia64; then
8793 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8794 allow_undefined_flag="-z nodefs"
8795 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"
8797 # Determine the default libpath from the value encoded in an
8799 if test "${lt_cv_aix_libpath+set}" = set; then
8800 aix_libpath=$lt_cv_aix_libpath
8802 if ${lt_cv_aix_libpath_+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8816 if ac_fn_c_try_link "$LINENO"; then :
8818 lt_aix_libpath_sed='
8819 /Import File Strings/,/^$/ {
8821 s/^0 *\([^ ]*\) *$/\1/
8825 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826 # Check for a 64-bit object if we didn't find anything.
8827 if test -z "$lt_cv_aix_libpath_"; then
8828 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831 rm -f core conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8833 if test -z "$lt_cv_aix_libpath_"; then
8834 lt_cv_aix_libpath_="/usr/lib:/lib"
8839 aix_libpath=$lt_cv_aix_libpath_
8842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8843 # Warning - without using the other run time loading flags,
8844 # -berok will link without error, but may produce a broken library.
8845 no_undefined_flag=' ${wl}-bernotok'
8846 allow_undefined_flag=' ${wl}-berok'
8847 if test "$with_gnu_ld" = yes; then
8848 # We only use this code for GNU lds that support --whole-archive.
8849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8851 # Exported symbols can be pulled into shared objects from archives
8852 whole_archive_flag_spec='$convenience'
8854 archive_cmds_need_lc=yes
8855 # This is similar to how AIX traditionally builds its shared libraries.
8856 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'
8864 # see comment about AmigaOS4 .so support
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 archive_expsym_cmds=''
8869 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)'
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_minus_L=yes
8877 export_dynamic_flag_spec=-rdynamic
8880 cygwin* | mingw* | pw32* | cegcc*)
8881 # When not using gcc, we currently assume that we are using
8882 # Microsoft Visual C++.
8883 # hardcode_libdir_flag_spec is actually meaningless, as there is
8884 # no search path for DLLs.
8885 case $cc_basename in
8888 hardcode_libdir_flag_spec=' '
8889 allow_undefined_flag=unsupported
8890 always_export_symbols=yes
8892 # Tell ltmain to make .lib files, not .a files.
8894 # Tell ltmain to make .dll files, not .so files.
8896 # FIXME: Setting linknames here is a bad hack.
8897 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8898 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8899 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8901 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8903 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8905 # The linker will not automatically build a static lib if we build a DLL.
8906 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8907 enable_shared_with_static_runtimes=yes
8908 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8909 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8911 old_postinstall_cmds='chmod 644 $oldlib'
8912 postlink_cmds='lt_outputfile="@OUTPUT@"~
8913 lt_tool_outputfile="@TOOL_OUTPUT@"~
8914 case $lt_outputfile in
8917 lt_outputfile="$lt_outputfile.exe"
8918 lt_tool_outputfile="$lt_tool_outputfile.exe"
8921 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8922 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8923 $RM "$lt_outputfile.manifest";
8927 # Assume MSVC wrapper
8928 hardcode_libdir_flag_spec=' '
8929 allow_undefined_flag=unsupported
8930 # Tell ltmain to make .lib files, not .a files.
8932 # Tell ltmain to make .dll files, not .so files.
8934 # FIXME: Setting linknames here is a bad hack.
8935 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8936 # The linker will automatically build a .lib file if we build a DLL.
8937 old_archive_from_new_cmds='true'
8938 # FIXME: Should let the user specify the lib program.
8939 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8940 enable_shared_with_static_runtimes=yes
8945 darwin* | rhapsody*)
8948 archive_cmds_need_lc=no
8950 hardcode_automatic=yes
8951 hardcode_shlibpath_var=unsupported
8952 if test "$lt_cv_ld_force_load" = "yes"; then
8953 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\"`'
8956 whole_archive_flag_spec=''
8958 link_all_deplibs=yes
8959 allow_undefined_flag="$_lt_dar_allow_undefined"
8960 case $cc_basename in
8961 ifort*) _lt_dar_can_shared=yes ;;
8962 *) _lt_dar_can_shared=$GCC ;;
8964 if test "$_lt_dar_can_shared" = "yes"; then
8965 output_verbose_link_cmd=func_echo_all
8966 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8967 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8968 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}"
8969 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}"
8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 hardcode_shlibpath_var=no
8983 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8984 # support. Future versions do this automatically, but an explicit c++rt0.o
8985 # does not break anything, and helps significantly (at the cost of a little
8988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8989 hardcode_libdir_flag_spec='-R$libdir'
8991 hardcode_shlibpath_var=no
8994 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_minus_L=yes
8999 hardcode_shlibpath_var=no
9002 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9003 freebsd* | dragonfly*)
9004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9005 hardcode_libdir_flag_spec='-R$libdir'
9007 hardcode_shlibpath_var=no
9011 if test "$GCC" = yes; then
9012 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'
9014 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'
9016 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9017 hardcode_libdir_separator=:
9020 # hardcode_minus_L: Not really in the search PATH,
9021 # but as the default location of the library.
9022 hardcode_minus_L=yes
9023 export_dynamic_flag_spec='${wl}-E'
9027 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9028 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9032 if test "$with_gnu_ld" = no; then
9033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9034 hardcode_libdir_separator=:
9036 hardcode_direct_absolute=yes
9037 export_dynamic_flag_spec='${wl}-E'
9038 # hardcode_minus_L: Not really in the search PATH,
9039 # but as the default location of the library.
9040 hardcode_minus_L=yes
9045 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9054 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9067 # Older versions of the 11.00 compiler do not understand -b yet
9068 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9070 $as_echo_n "checking if $CC understands -b... " >&6; }
9071 if ${lt_cv_prog_compiler__b+:} false; then :
9072 $as_echo_n "(cached) " >&6
9074 lt_cv_prog_compiler__b=no
9075 save_LDFLAGS="$LDFLAGS"
9076 LDFLAGS="$LDFLAGS -b"
9077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9079 # The linker can only warn and ignore the option if not recognized
9080 # So say no if there are warnings
9081 if test -s conftest.err; then
9082 # Append any errors to the config.log.
9083 cat conftest.err 1>&5
9084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler__b=yes
9090 lt_cv_prog_compiler__b=yes
9094 LDFLAGS="$save_LDFLAGS"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9098 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9100 if test x"$lt_cv_prog_compiler__b" = xyes; then
9101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9109 if test "$with_gnu_ld" = no; then
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_separator=:
9116 hardcode_shlibpath_var=no
9120 hardcode_direct_absolute=yes
9121 export_dynamic_flag_spec='${wl}-E'
9123 # hardcode_minus_L: Not really in the search PATH,
9124 # but as the default location of the library.
9125 hardcode_minus_L=yes
9131 irix5* | irix6* | nonstopux*)
9132 if test "$GCC" = yes; then
9133 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'
9134 # Try to use the -exported_symbol ld option, if it does not
9135 # work, assume that -exports_file does not work either and
9136 # implicitly export all symbols.
9137 # This should be the same for all languages, so no per-tag cache variable.
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9139 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9140 if ${lt_cv_irix_exported_symbol+:} false; then :
9141 $as_echo_n "(cached) " >&6
9143 save_LDFLAGS="$LDFLAGS"
9144 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 int foo (void) { return 0; }
9149 if ac_fn_c_try_link "$LINENO"; then :
9150 lt_cv_irix_exported_symbol=yes
9152 lt_cv_irix_exported_symbol=no
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LDFLAGS="$save_LDFLAGS"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9159 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9160 if test "$lt_cv_irix_exported_symbol" = yes; then
9161 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'
9164 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'
9165 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'
9167 archive_cmds_need_lc='no'
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 hardcode_libdir_separator=:
9171 link_all_deplibs=yes
9175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9180 hardcode_libdir_flag_spec='-R$libdir'
9182 hardcode_shlibpath_var=no
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_shlibpath_var=no
9197 if test -f /usr/libexec/ld.so; then
9199 hardcode_shlibpath_var=no
9200 hardcode_direct_absolute=yes
9201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 export_dynamic_flag_spec='${wl}-E'
9208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-R$libdir'
9213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9226 allow_undefined_flag=unsupported
9227 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'
9228 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9239 archive_cmds_need_lc='no'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9244 osf4* | osf5*) # as osf3* with the addition of -msym flag
9245 if test "$GCC" = yes; then
9246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 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'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 allow_undefined_flag=' -expect_unresolved \*'
9251 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'
9252 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~
9253 $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'
9255 # Both c and cxx compiler support -rpath directly
9256 hardcode_libdir_flag_spec='-rpath $libdir'
9258 archive_cmds_need_lc='no'
9259 hardcode_libdir_separator=:
9263 no_undefined_flag=' -z defs'
9264 if test "$GCC" = yes; then
9266 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $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'
9270 case `$CC -V 2>&1` in
9273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9279 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9288 solaris2.[0-5] | solaris2.[0-5].*) ;;
9290 # The compiler driver will combine and reorder linker options,
9291 # but understands `-z linker_flag'. GCC discards it without `$wl',
9292 # but is careful enough not to reorder.
9293 # Supported since Solaris 2.6 (maybe 2.5.1?)
9294 if test "$GCC" = yes; then
9295 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9301 link_all_deplibs=yes
9305 if test "x$host_vendor" = xsequent; then
9306 # Use $CC to link under sequent, because it throws in some extra .o
9307 # files that make .init and .fini sections work.
9308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 hardcode_shlibpath_var=no
9319 case $host_vendor in
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes # is this really true???
9325 ## LD is ld it makes a PLAMLIB
9326 ## CC just makes a GrossModule.
9327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328 reload_cmds='$CC -r -o $output$reload_objs'
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9336 runpath_var='LD_RUN_PATH'
9337 hardcode_shlibpath_var=no
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_shlibpath_var=no
9343 export_dynamic_flag_spec='-Bexport'
9347 if test -d /usr/nec; then
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_shlibpath_var=no
9350 runpath_var=LD_RUN_PATH
9351 hardcode_runpath_var=yes
9356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357 no_undefined_flag='${wl}-z,text'
9358 archive_cmds_need_lc=no
9359 hardcode_shlibpath_var=no
9360 runpath_var='LD_RUN_PATH'
9362 if test "$GCC" = yes; then
9363 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 sysv5* | sco3.2v5* | sco5v6*)
9372 # Note: We can NOT use -z defs as we might desire, because we do not
9373 # link with -lc, and that would cause any symbols used from libc to
9374 # always be unresolved, which means just about no library would
9375 # ever link correctly. If we're not using GNU ld we use -z text
9376 # though, which does catch some bad symbols but isn't as heavy-handed
9378 no_undefined_flag='${wl}-z,text'
9379 allow_undefined_flag='${wl}-z,nodefs'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 export_dynamic_flag_spec='${wl}-Bexport'
9386 runpath_var='LD_RUN_PATH'
9388 if test "$GCC" = yes; then
9389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_shlibpath_var=no
9408 if test x$host_vendor = xsni; then
9410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418 $as_echo "$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9421 with_gnu_ld=$with_gnu_ld
9438 # Do we need to explicitly link libc?
9440 case "x$archive_cmds_need_lc" in
9442 # Assume -lc should be added
9443 archive_cmds_need_lc=yes
9445 if test "$enable_shared" = yes && test "$GCC" = yes; then
9446 case $archive_cmds in
9448 # FIXME: we may have to deal with multi-command sequences.
9451 # Test whether the compiler implicitly links with -lc since on some
9452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453 # to ld, don't add -lc before -lgcc.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9456 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9457 $as_echo_n "(cached) " >&6
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463 (eval $ac_compile) 2>&5
9465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; } 2>conftest.err; then
9469 libobjs=conftest.$ac_objext
9471 wl=$lt_prog_compiler_wl
9472 pic_flag=$lt_prog_compiler_pic
9478 lt_save_allow_undefined_flag=$allow_undefined_flag
9479 allow_undefined_flag=
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }
9486 lt_cv_archive_cmds_need_lc=no
9488 lt_cv_archive_cmds_need_lc=yes
9490 allow_undefined_flag=$lt_save_allow_undefined_flag
9492 cat conftest.err 1>&5
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9660 if test "$GCC" = yes; then
9662 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9663 *) lt_awk_arg="/^libraries:/" ;;
9666 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9667 *) lt_sed_strip_eq="s,=/,/,g" ;;
9669 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9670 case $lt_search_path_spec in
9672 # if the path contains ";" then we assume it to be the separator
9673 # otherwise default to the standard path separator (i.e. ":") - it is
9674 # assumed that no part of a normal pathname contains ";" but that should
9675 # okay in the real world where ";" in dirpaths is itself problematic.
9676 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9679 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9682 # Ok, now we have the path, separated by spaces, we can step through it
9683 # and add multilib dir if necessary.
9684 lt_tmp_lt_search_path_spec=
9685 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9686 for lt_sys_path in $lt_search_path_spec; do
9687 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9690 test -d "$lt_sys_path" && \
9691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9694 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9695 BEGIN {RS=" "; FS="/|\n";} {
9698 for (lt_i = NF; lt_i > 0; lt_i--) {
9699 if ($lt_i != "" && $lt_i != ".") {
9700 if ($lt_i == "..") {
9703 if (lt_count == 0) {
9704 lt_foo="/" $lt_i lt_foo;
9711 if (lt_foo != "") { lt_freq[lt_foo]++; }
9712 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9714 # AWK program above erroneously prepends '/' to C:/dos/paths
9717 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9718 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9720 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9725 libname_spec='lib$name'
9733 shlibpath_overrides_runpath=unknown
9735 dynamic_linker="$host_os ld.so"
9736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9737 need_lib_prefix=unknown
9738 hardcode_into_libs=no
9740 # when you set need_version to no, make sure it does not cause -set_version
9741 # flags to be left without arguments
9742 need_version=unknown
9746 version_type=linux # correct to gnu/linux during the next big refactor
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9748 shlibpath_var=LIBPATH
9750 # AIX 3 has no versioning support, so we append a major version to the name.
9751 soname_spec='${libname}${release}${shared_ext}$major'
9755 version_type=linux # correct to gnu/linux during the next big refactor
9758 hardcode_into_libs=yes
9759 if test "$host_cpu" = ia64; then
9760 # AIX 5 supports IA64
9761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9762 shlibpath_var=LD_LIBRARY_PATH
9764 # With GCC up to 2.95.x, collect2 would create an import file
9765 # for dependence libraries. The import file would start with
9766 # the line `#! .'. This would cause the generated library to
9767 # depend on `.', always an invalid library. This was fixed in
9768 # development snapshots of GCC prior to 3.0.
9770 aix4 | aix4.[01] | aix4.[01].*)
9771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9773 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9781 # soname into executable. Probably we can add versioning support to
9782 # collect2, so additional links can be useful in future.
9783 if test "$aix_use_runtimelinking" = yes; then
9784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9785 # instead of lib<name>.a to let people know that these are not
9786 # typical AIX shared libraries.
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 # We preserve .a as extension for shared libraries through AIX4.2
9790 # and later when we are not doing run time linking.
9791 library_names_spec='${libname}${release}.a $libname.a'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9794 shlibpath_var=LIBPATH
9801 # Since July 2007 AmigaOS4 officially supports .so libraries.
9802 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 library_names_spec='$libname.ixlibrary $libname.a'
9807 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9808 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'
9814 library_names_spec='${libname}${shared_ext}'
9815 dynamic_linker="$host_os ld.so"
9816 shlibpath_var=LIBRARY_PATH
9820 version_type=linux # correct to gnu/linux during the next big refactor
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9827 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9828 # the default ld.so.conf also contains /usr/contrib/lib and
9829 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9830 # libtool to hard-code these into programs
9833 cygwin* | mingw* | pw32* | cegcc*)
9834 version_type=windows
9839 case $GCC,$cc_basename in
9842 library_names_spec='$libname.dll.a'
9843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9844 postinstall_cmds='base_file=`basename \${file}`~
9845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9846 dldir=$destdir/`dirname \$dlpath`~
9847 test -d \$dldir || mkdir -p \$dldir~
9848 $install_prog $dir/$dlname \$dldir/$dlname~
9849 chmod a+x \$dldir/$dlname~
9850 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9851 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9854 dlpath=$dir/\$dldll~
9856 shlibpath_overrides_runpath=yes
9860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9866 # MinGW DLLs use traditional 'lib' prefix
9867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870 # pw32 DLLs use 'pw' prefix rather than 'lib'
9871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 dynamic_linker='Win32 ld.exe'
9879 libname_spec='$name'
9880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881 library_names_spec='${libname}.dll.lib'
9885 sys_lib_search_path_spec=
9891 # Let DOS variable expansion print the short 8.3 style file name.
9892 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9893 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9896 # Convert to MSYS style.
9897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9900 # Convert to unix form, then to dos form, then back to unix form
9901 # but this time dos style (no spaces!) so that the unix form looks
9902 # like /cygdrive/c/PROGRA~1:/cygdr...
9903 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9904 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9905 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9908 sys_lib_search_path_spec="$LIB"
9909 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9910 # It is most probably a Windows format PATH.
9911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9915 # FIXME: find the short name or the path components, as spaces are
9916 # common. (e.g. "Program Files" -> "PROGRA~1")
9920 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9921 postinstall_cmds='base_file=`basename \${file}`~
9922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9923 dldir=$destdir/`dirname \$dlpath`~
9924 test -d \$dldir || mkdir -p \$dldir~
9925 $install_prog $dir/$dlname \$dldir/$dlname'
9926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9927 dlpath=$dir/\$dldll~
9929 shlibpath_overrides_runpath=yes
9930 dynamic_linker='Win32 link.exe'
9934 # Assume MSVC wrapper
9935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9936 dynamic_linker='Win32 ld.exe'
9939 # FIXME: first we should search . and the directory the executable is in
9943 darwin* | rhapsody*)
9944 dynamic_linker="$host_os dyld"
9948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9949 soname_spec='${libname}${release}${major}$shared_ext'
9950 shlibpath_overrides_runpath=yes
9951 shlibpath_var=DYLD_LIBRARY_PATH
9952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9954 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9959 version_type=linux # correct to gnu/linux during the next big refactor
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LD_LIBRARY_PATH
9967 freebsd* | dragonfly*)
9968 # DragonFly does not have aout. When/if they implement a new
9969 # versioning mechanism, adjust this.
9970 if test -x /usr/bin/objformat; then
9971 objformat=`/usr/bin/objformat`
9974 freebsd[23].*) objformat=aout ;;
9978 version_type=freebsd-$objformat
9979 case $version_type in
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9990 shlibpath_var=LD_LIBRARY_PATH
9993 shlibpath_overrides_runpath=yes
9995 freebsd3.[01]* | freebsdelf3.[01]*)
9996 shlibpath_overrides_runpath=yes
9997 hardcode_into_libs=yes
9999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10001 shlibpath_overrides_runpath=no
10002 hardcode_into_libs=yes
10004 *) # from 4.6 on, and DragonFly
10005 shlibpath_overrides_runpath=yes
10006 hardcode_into_libs=yes
10012 version_type=linux # correct to gnu/linux during the next big refactor
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019 hardcode_into_libs=yes
10023 version_type=linux # correct to gnu/linux during the next big refactor
10026 dynamic_linker="$host_os runtime_loader"
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes
10031 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10032 hardcode_into_libs=yes
10035 hpux9* | hpux10* | hpux11*)
10036 # Give a soname corresponding to the major version so that dld.sl refuses to
10037 # link against other versions.
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.so"
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 if test "X$HPUX_IA64_MODE" = X32; then
10051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10059 hardcode_into_libs=yes
10060 dynamic_linker="$host_os dld.sl"
10061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=SHLIB_PATH
10072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10077 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10078 postinstall_cmds='chmod 555 $lib'
10079 # or fails outright, so override atomically:
10080 install_override_mode=555
10084 version_type=linux # correct to gnu/linux during the next big refactor
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10095 irix5* | irix6* | nonstopux*)
10097 nonstopux*) version_type=nonstopux ;;
10099 if test "$lt_cv_prog_gnu_ld" = yes; then
10100 version_type=linux # correct to gnu/linux during the next big refactor
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10110 irix5* | nonstopux*)
10111 libsuff= shlibsuff=
10114 case $LD in # libtool.m4 will add one of these switches to LD
10115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10116 libsuff= shlibsuff= libmagic=32-bit;;
10117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10118 libsuff=32 shlibsuff=N32 libmagic=N32;;
10119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10121 *) libsuff= shlibsuff= libmagic=never-match;;
10125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10126 shlibpath_overrides_runpath=no
10127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10129 hardcode_into_libs=yes
10132 # No shared lib support for Linux oldld, aout, or coff.
10133 linux*oldld* | linux*aout* | linux*coff*)
10137 # This must be glibc/ELF.
10138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10139 version_type=linux # correct to gnu/linux during the next big refactor
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=no
10148 # Some binutils ld are patched to set DT_RUNPATH
10149 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10150 $as_echo_n "(cached) " >&6
10152 lt_cv_shlibpath_overrides_runpath=no
10153 save_LDFLAGS=$LDFLAGS
10154 save_libdir=$libdir
10155 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10156 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10168 if ac_fn_c_try_link "$LINENO"; then :
10169 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10170 lt_cv_shlibpath_overrides_runpath=yes
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LDFLAGS=$save_LDFLAGS
10176 libdir=$save_libdir
10180 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10182 # This implies no fast_install, which is unacceptable.
10183 # Some rework will be needed to allow for fast_install
10184 # before this can be enabled.
10185 hardcode_into_libs=yes
10187 # Append ld.so.conf contents to the search path
10188 if test -f /etc/ld.so.conf; then
10189 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' ' '`
10190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10193 # We used to test for /lib/ld.so.1 and disable shared libraries on
10194 # powerpc, because MkLinux only supported shared libraries with the
10195 # GNU dynamic linker. Since this was broken with cross compilers,
10196 # most powerpc-linux boxes support dynamic linking these days and
10197 # people can always --disable-shared, the test was removed, and we
10198 # assume the GNU/Linux dynamic linker is in use.
10199 dynamic_linker='GNU/Linux ld.so'
10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10209 dynamic_linker='NetBSD (a.out) ld.so'
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 dynamic_linker='NetBSD ld.elf_so'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=yes
10217 hardcode_into_libs=yes
10221 version_type=linux # correct to gnu/linux during the next big refactor
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=yes
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
10235 hardcode_into_libs=yes
10236 dynamic_linker='ldqnx.so'
10241 sys_lib_dlsearch_path_spec="/usr/lib"
10243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10246 *) need_version=no ;;
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10253 openbsd2.[89] | openbsd2.[89].*)
10254 shlibpath_overrides_runpath=no
10257 shlibpath_overrides_runpath=yes
10261 shlibpath_overrides_runpath=yes
10266 libname_spec='$name'
10269 library_names_spec='$libname${shared_ext} $libname.a'
10270 dynamic_linker='OS/2 ld.exe'
10271 shlibpath_var=LIBPATH
10274 osf3* | osf4* | osf5*)
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10290 version_type=linux # correct to gnu/linux during the next big refactor
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 # ldd complains unless libraries are executable
10299 postinstall_cmds='chmod +x $lib'
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 if test "$with_gnu_ld" = yes; then
10315 version_type=linux # correct to gnu/linux during the next big refactor
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 case $host_vendor in
10321 shlibpath_overrides_runpath=no
10323 runpath_var=LD_RUN_PATH
10331 shlibpath_overrides_runpath=no
10332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10338 if test -d /usr/nec ;then
10339 version_type=linux # correct to gnu/linux during the next big refactor
10340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10341 soname_spec='$libname${shared_ext}.$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10347 version_type=freebsd-elf
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10354 hardcode_into_libs=yes
10355 if test "$with_gnu_ld" = yes; then
10356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10365 sys_lib_dlsearch_path_spec='/usr/lib'
10369 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10370 version_type=linux # correct to gnu/linux during the next big refactor
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=no
10376 hardcode_into_libs=yes
10380 version_type=linux # correct to gnu/linux during the next big refactor
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10391 $as_echo "$dynamic_linker" >&6; }
10392 test "$dynamic_linker" = no && can_build_shared=no
10394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10395 if test "$GCC" = yes; then
10396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10399 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10400 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10402 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10403 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10498 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10500 if test -n "$hardcode_libdir_flag_spec" ||
10501 test -n "$runpath_var" ||
10502 test "X$hardcode_automatic" = "Xyes" ; then
10504 # We can hardcode non-existent directories.
10505 if test "$hardcode_direct" != no &&
10506 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10507 # have to relink, otherwise we might link with an installed library
10508 # when we should be linking with a yet-to-be-installed one
10509 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10510 test "$hardcode_minus_L" != no; then
10511 # Linking always hardcodes the temporary library directory.
10512 hardcode_action=relink
10514 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10515 hardcode_action=immediate
10518 # We cannot hardcode anything, or else we can only hardcode existing
10520 hardcode_action=unsupported
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10523 $as_echo "$hardcode_action" >&6; }
10525 if test "$hardcode_action" = relink ||
10526 test "$inherit_rpath" = yes; then
10527 # Fast installation is not supported
10528 enable_fast_install=no
10529 elif test "$shlibpath_overrides_runpath" = yes ||
10530 test "$enable_shared" = no; then
10531 # Fast installation is not necessary
10532 enable_fast_install=needless
10540 if test "x$enable_dlopen" != xyes; then
10541 enable_dlopen=unknown
10542 enable_dlopen_self=unknown
10543 enable_dlopen_self_static=unknown
10550 lt_cv_dlopen="load_add_on"
10552 lt_cv_dlopen_self=yes
10555 mingw* | pw32* | cegcc*)
10556 lt_cv_dlopen="LoadLibrary"
10561 lt_cv_dlopen="dlopen"
10566 # if libdl is installed we need to link against it
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10569 if ${ac_cv_lib_dl_dlopen+:} false; then :
10570 $as_echo_n "(cached) " >&6
10572 ac_check_lib_save_LIBS=$LIBS
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10592 if ac_fn_c_try_link "$LINENO"; then :
10593 ac_cv_lib_dl_dlopen=yes
10595 ac_cv_lib_dl_dlopen=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10603 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10607 lt_cv_dlopen="dyld"
10609 lt_cv_dlopen_self=yes
10616 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10617 if test "x$ac_cv_func_shl_load" = xyes; then :
10618 lt_cv_dlopen="shl_load"
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10621 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10622 if ${ac_cv_lib_dld_shl_load+:} false; then :
10623 $as_echo_n "(cached) " >&6
10625 ac_check_lib_save_LIBS=$LIBS
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10640 return shl_load ();
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_lib_dld_shl_load=yes
10648 ac_cv_lib_dld_shl_load=no
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10655 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10656 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10657 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10659 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10660 if test "x$ac_cv_func_dlopen" = xyes; then :
10661 lt_cv_dlopen="dlopen"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10664 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10665 if ${ac_cv_lib_dl_dlopen+:} false; then :
10666 $as_echo_n "(cached) " >&6
10668 ac_check_lib_save_LIBS=$LIBS
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dl_dlopen=yes
10691 ac_cv_lib_dl_dlopen=no
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if ${ac_cv_lib_svld_dlopen+:} false; then :
10705 $as_echo_n "(cached) " >&6
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_svld_dlopen=yes
10730 ac_cv_lib_svld_dlopen=no
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10737 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10738 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10742 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10743 if ${ac_cv_lib_dld_dld_link+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 ac_check_lib_save_LIBS=$LIBS
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10761 return dld_link ();
10766 if ac_fn_c_try_link "$LINENO"; then :
10767 ac_cv_lib_dld_dld_link=yes
10769 ac_cv_lib_dld_dld_link=no
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10776 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10777 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10778 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10799 if test "x$lt_cv_dlopen" != xno; then
10805 case $lt_cv_dlopen in
10807 save_CPPFLAGS="$CPPFLAGS"
10808 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10810 save_LDFLAGS="$LDFLAGS"
10811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10814 LIBS="$lt_cv_dlopen_libs $LIBS"
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10817 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10818 if ${lt_cv_dlopen_self+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 if test "$cross_compiling" = yes; then :
10822 lt_cv_dlopen_self=cross
10824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10825 lt_status=$lt_dlunknown
10826 cat > conftest.$ac_ext <<_LT_EOF
10827 #line $LINENO "configure"
10828 #include "confdefs.h"
10837 # define LT_DLGLOBAL RTLD_GLOBAL
10840 # define LT_DLGLOBAL DL_GLOBAL
10842 # define LT_DLGLOBAL 0
10846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10847 find out it does not work in some platform. */
10848 #ifndef LT_DLLAZY_OR_NOW
10850 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10853 # define LT_DLLAZY_OR_NOW DL_LAZY
10856 # define LT_DLLAZY_OR_NOW RTLD_NOW
10859 # define LT_DLLAZY_OR_NOW DL_NOW
10861 # define LT_DLLAZY_OR_NOW 0
10868 /* When -fvisbility=hidden is used, assume the code has been annotated
10869 correspondingly for the symbols needed. */
10870 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10871 int fnord () __attribute__((visibility("default")));
10874 int fnord () { return 42; }
10877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10878 int status = $lt_dlunknown;
10882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10885 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10886 else puts (dlerror ());
10888 /* dlclose (self); */
10896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10897 (eval $ac_link) 2>&5
10899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10901 (./conftest; exit; ) >&5 2>/dev/null
10903 case x$lt_status in
10904 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10905 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10906 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10909 # compilation failed
10910 lt_cv_dlopen_self=no
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10918 $as_echo "$lt_cv_dlopen_self" >&6; }
10920 if test "x$lt_cv_dlopen_self" = xyes; then
10921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10923 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10924 if ${lt_cv_dlopen_self_static+:} false; then :
10925 $as_echo_n "(cached) " >&6
10927 if test "$cross_compiling" = yes; then :
10928 lt_cv_dlopen_self_static=cross
10930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10931 lt_status=$lt_dlunknown
10932 cat > conftest.$ac_ext <<_LT_EOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10943 # define LT_DLGLOBAL RTLD_GLOBAL
10946 # define LT_DLGLOBAL DL_GLOBAL
10948 # define LT_DLGLOBAL 0
10952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10953 find out it does not work in some platform. */
10954 #ifndef LT_DLLAZY_OR_NOW
10956 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10959 # define LT_DLLAZY_OR_NOW DL_LAZY
10962 # define LT_DLLAZY_OR_NOW RTLD_NOW
10965 # define LT_DLLAZY_OR_NOW DL_NOW
10967 # define LT_DLLAZY_OR_NOW 0
10974 /* When -fvisbility=hidden is used, assume the code has been annotated
10975 correspondingly for the symbols needed. */
10976 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10977 int fnord () __attribute__((visibility("default")));
10980 int fnord () { return 42; }
10983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10984 int status = $lt_dlunknown;
10988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10991 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10992 else puts (dlerror ());
10994 /* dlclose (self); */
11002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11003 (eval $ac_link) 2>&5
11005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11006 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11007 (./conftest; exit; ) >&5 2>/dev/null
11009 case x$lt_status in
11010 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11011 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11012 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11015 # compilation failed
11016 lt_cv_dlopen_self_static=no
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11024 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11027 CPPFLAGS="$save_CPPFLAGS"
11028 LDFLAGS="$save_LDFLAGS"
11033 case $lt_cv_dlopen_self in
11034 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11035 *) enable_dlopen_self=unknown ;;
11038 case $lt_cv_dlopen_self_static in
11039 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11040 *) enable_dlopen_self_static=unknown ;;
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11063 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11064 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11065 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11066 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11070 # FIXME - insert some real tests, host_os isn't really good enough
11073 if test -n "$STRIP" ; then
11074 striplib="$STRIP -x"
11075 old_striplib="$STRIP -S"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11101 # Report which library types will actually be built
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11103 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11105 $as_echo "$can_build_shared" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11108 $as_echo_n "checking whether to build shared libraries... " >&6; }
11109 test "$can_build_shared" = "no" && enable_shared=no
11111 # On AIX, shared libraries and static libraries use the same namespace, and
11112 # are all built from PIC.
11115 test "$enable_shared" = yes && enable_static=no
11116 if test -n "$RANLIB"; then
11117 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11118 postinstall_cmds='$RANLIB $lib'
11123 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11124 test "$enable_shared" = yes && enable_static=no
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11129 $as_echo "$enable_shared" >&6; }
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11132 $as_echo_n "checking whether to build static libraries... " >&6; }
11133 # Make sure either enable_shared or enable_static is yes.
11134 test "$enable_shared" = yes || enable_static=yes
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11136 $as_echo "$enable_static" >&6; }
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11164 ac_config_commands="$ac_config_commands libtool"
11169 # Only expand once:
11175 ## ---------------------------- ##
11176 ## Libraries required by cdemo. ##
11177 ## ---------------------------- ##
11180 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11181 # These system don't have libm, or don't need it
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11185 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11186 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11187 $as_echo_n "(cached) " >&6
11189 ac_check_lib_save_LIBS=$LIBS
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11200 char _mwvalidcheckl ();
11204 return _mwvalidcheckl ();
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_mw__mwvalidcheckl=yes
11212 ac_cv_lib_mw__mwvalidcheckl=no
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11219 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11220 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11225 $as_echo_n "checking for cos in -lm... " >&6; }
11226 if ${ac_cv_lib_m_cos+:} false; then :
11227 $as_echo_n "(cached) " >&6
11229 ac_check_lib_save_LIBS=$LIBS
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 ac_cv_lib_m_cos=yes
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11259 $as_echo "$ac_cv_lib_m_cos" >&6; }
11260 if test "x$ac_cv_lib_m_cos" = xyes; then :
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11267 $as_echo_n "checking for cos in -lm... " >&6; }
11268 if ${ac_cv_lib_m_cos+:} false; then :
11269 $as_echo_n "(cached) " >&6
11271 ac_check_lib_save_LIBS=$LIBS
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11276 /* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_lib_m_cos=yes
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11301 $as_echo "$ac_cv_lib_m_cos" >&6; }
11302 if test "x$ac_cv_lib_m_cos" = xyes; then :
11315 ac_config_files="$ac_config_files Makefile"
11317 cat >confcache <<\_ACEOF
11318 # This file is a shell script that caches the results of configure
11319 # tests run on this system so they can be shared between configure
11320 # scripts and configure runs, see configure's option --config-cache.
11321 # It is not useful on other systems. If it contains results you don't
11322 # want to keep, you may remove or edit it.
11324 # config.status only pays attention to the cache file if you give it
11325 # the --recheck option to rerun configure.
11327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11329 # following values.
11333 # The following way of writing the cache mishandles newlines in values,
11334 # but we know of no workaround that is simple, portable, and efficient.
11335 # So, we kill variables containing newlines.
11336 # Ultrix sh set writes to stderr and can't be redirected directly,
11337 # and sets the high bit in the cache file unless we assign to the vars.
11339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11340 eval ac_val=\$$ac_var
11344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11348 _ | IFS | as_nl) ;; #(
11349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11350 *) { eval $ac_var=; unset $ac_var;} ;;
11356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11357 *${as_nl}ac_space=\ *)
11358 # `set' does not quote correctly, so add quotes: double-quote
11359 # substitution turns \\\\ into \\, and sed turns \\ into \.
11362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11365 # `set' quotes correctly as required by POSIX, so do not add quotes.
11366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11380 if test -w "$cache_file"; then
11381 if test "x$cache_file" != "x/dev/null"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11383 $as_echo "$as_me: updating cache $cache_file" >&6;}
11384 if test ! -f "$cache_file" || test -h "$cache_file"; then
11385 cat confcache >"$cache_file"
11387 case $cache_file in #(
11389 mv -f confcache "$cache_file"$$ &&
11390 mv -f "$cache_file"$$ "$cache_file" ;; #(
11392 mv -f confcache "$cache_file" ;;
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11398 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11404 # Let make expand exec_prefix.
11405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11407 # Transform confdefs.h into DEFS.
11408 # Protect against shell expansion while executing Makefile rules.
11409 # Protect against Makefile macro expansion.
11411 # If the first sed substitution is executed (which looks for macros that
11412 # take arguments), then branch to the quote section. Otherwise,
11413 # look for a macro that doesn't take arguments.
11423 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11425 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11429 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11442 DEFS=`sed -n "$ac_script" confdefs.h`
11448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11449 # 1. Remove the extension, and $U if already installed.
11450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11453 # will be set to the directory where LIBOBJS objects are built.
11454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11457 LIBOBJS=$ac_libobjs
11459 LTLIBOBJS=$ac_ltlibobjs
11462 if test -n "$EXEEXT"; then
11464 am__EXEEXT_FALSE='#'
11466 am__EXEEXT_TRUE='#'
11470 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11471 as_fn_error $? "conditional \"AMDEP\" was never defined.
11472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11474 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11475 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11479 : "${CONFIG_STATUS=./config.status}"
11481 ac_clean_files_save=$ac_clean_files
11482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11488 # Generated by $as_me.
11489 # Run this file to recreate the current configuration.
11490 # Compiler output produced by configure, useful for debugging
11491 # configure, is in config.log if it exists.
11494 ac_cs_recheck=false
11497 SHELL=\${CONFIG_SHELL-$SHELL}
11500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11501 ## -------------------- ##
11502 ## M4sh Initialization. ##
11503 ## -------------------- ##
11505 # Be more Bourne compatible
11506 DUALCASE=1; export DUALCASE # for MKS sh
11507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11510 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11511 # is contrary to our usage. Disable this feature.
11512 alias -g '${1+"$@"}'='"$@"'
11513 setopt NO_GLOB_SUBST
11515 case `(set -o) 2>/dev/null` in #(
11527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11531 # Prefer a ksh shell builtin over an external printf program on Solaris,
11532 # but without wasting forks for bash or zsh.
11533 if test -z "$BASH_VERSION$ZSH_VERSION" \
11534 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11535 as_echo='print -r --'
11536 as_echo_n='print -rn --'
11537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11538 as_echo='printf %s\n'
11539 as_echo_n='printf %s'
11541 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11542 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11543 as_echo_n='/usr/ucb/echo -n'
11545 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11546 as_echo_n_body='eval
11550 expr "X$arg" : "X\\(.*\\)$as_nl";
11551 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11553 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11555 export as_echo_n_body
11556 as_echo_n='sh -c $as_echo_n_body as_echo'
11558 export as_echo_body
11559 as_echo='sh -c $as_echo_body as_echo'
11562 # The user is always right.
11563 if test "${PATH_SEPARATOR+set}" != set; then
11565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11566 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11573 # We need space, tab and new line, in precisely that order. Quoting is
11574 # there to prevent editors from complaining about space-tab.
11575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11576 # splitting by setting IFS to empty value.)
11579 # Find who we are. Look in the path if we contain no directory separator.
11582 *[\\/]* ) as_myself=$0 ;;
11583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11594 # We did not find ourselves, most probably we were run as `sh COMMAND'
11595 # in which case we are not to be found in the path.
11596 if test "x$as_myself" = x; then
11599 if test ! -f "$as_myself"; then
11600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11604 # Unset variables that we do not need and which cause bugs (e.g. in
11605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11606 # suppresses any "Segmentation fault" message there. '((' could
11607 # trigger a bug in pdksh 5.2.14.
11608 for as_var in BASH_ENV ENV MAIL MAILPATH
11609 do eval test x\${$as_var+set} = xset \
11610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11627 # ----------------------------------------
11628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11630 # script with STATUS, using 1 if that was 0.
11633 as_status=$1; test $as_status -eq 0 && as_status=1
11635 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11638 $as_echo "$as_me: error: $2" >&2
11639 as_fn_exit $as_status
11643 # as_fn_set_status STATUS
11644 # -----------------------
11645 # Set $? to STATUS, without forking.
11646 as_fn_set_status ()
11649 } # as_fn_set_status
11651 # as_fn_exit STATUS
11652 # -----------------
11653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11657 as_fn_set_status $1
11663 # Portably unset VAR.
11666 { eval $1=; unset $1;}
11668 as_unset=as_fn_unset
11669 # as_fn_append VAR VALUE
11670 # ----------------------
11671 # Append the text in VALUE to the end of the definition contained in VAR. Take
11672 # advantage of any shell optimizations that allow amortized linear growth over
11673 # repeated appends, instead of the typical quadratic growth present in naive
11675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11676 eval 'as_fn_append ()
11687 # as_fn_arith ARG...
11688 # ------------------
11689 # Perform arithmetic evaluation on the ARGs, and store the result in the
11690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11691 # must be portable across $(()) and expr.
11692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11693 eval 'as_fn_arith ()
11700 as_val=`expr "$@" || test $? -eq 1`
11705 if expr a : '\(a\)' >/dev/null 2>&1 &&
11706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11713 as_basename=basename
11718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11724 as_me=`$as_basename -- "$0" ||
11725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11726 X"$0" : 'X\(//\)$' \| \
11727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11729 sed '/^.*\/\([^/][^/]*\)\/*$/{
11743 # Avoid depending upon Character Ranges.
11744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11747 as_cr_digits='0123456789'
11748 as_cr_alnum=$as_cr_Letters$as_cr_digits
11750 ECHO_C= ECHO_N= ECHO_T=
11751 case `echo -n x` in #(((((
11753 case `echo 'xy\c'` in
11754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11763 rm -f conf$$ conf$$.exe conf$$.file
11764 if test -d conf$$.dir; then
11765 rm -f conf$$.dir/conf$$.file
11768 mkdir conf$$.dir 2>/dev/null
11770 if (echo >conf$$.file) 2>/dev/null; then
11771 if ln -s conf$$.file conf$$ 2>/dev/null; then
11773 # ... but there are two gotchas:
11774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11776 # In both cases, we have to default to `cp -p'.
11777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11779 elif ln conf$$.file conf$$ 2>/dev/null; then
11787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11788 rmdir conf$$.dir 2>/dev/null
11793 # Create "$as_dir" as a directory, including parents if necessary.
11798 -*) as_dir=./$as_dir;;
11800 test -d "$as_dir" || eval $as_mkdir_p || {
11804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11805 *) as_qdir=$as_dir;;
11807 as_dirs="'$as_qdir' $as_dirs"
11808 as_dir=`$as_dirname -- "$as_dir" ||
11809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11810 X"$as_dir" : 'X\(//\)[^/]' \| \
11811 X"$as_dir" : 'X\(//\)$' \| \
11812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11813 $as_echo X"$as_dir" |
11814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11818 /^X\(\/\/\)[^/].*/{
11831 test -d "$as_dir" && break
11833 test -z "$as_dirs" || eval "mkdir $as_dirs"
11834 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11838 if mkdir -p . 2>/dev/null; then
11839 as_mkdir_p='mkdir -p "$as_dir"'
11841 test -d ./-p && rmdir ./-p
11845 if test -x / >/dev/null 2>&1; then
11846 as_test_x='test -x'
11848 if ls -dL / >/dev/null 2>&1; then
11855 if test -d "$1"; then
11861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11862 ???[sx]*):;;*)false;;esac;fi
11866 as_executable_p=$as_test_x
11868 # Sed expression to map a string onto a valid CPP name.
11869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11871 # Sed expression to map a string onto a valid variable name.
11872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11876 ## ----------------------------------- ##
11877 ## Main body of $CONFIG_STATUS script. ##
11878 ## ----------------------------------- ##
11880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 # Save the log message, to keep $0 and so on meaningful, and to
11884 # report actual input values of CONFIG_FILES etc. instead of their
11885 # values after options handling.
11887 This file was extended by cdemo $as_me 1.0, which was
11888 generated by GNU Autoconf 2.68. Invocation command line was
11890 CONFIG_FILES = $CONFIG_FILES
11891 CONFIG_HEADERS = $CONFIG_HEADERS
11892 CONFIG_LINKS = $CONFIG_LINKS
11893 CONFIG_COMMANDS = $CONFIG_COMMANDS
11896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11901 case $ac_config_files in *"
11902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11908 # Files that config.status was made for.
11909 config_files="$ac_config_files"
11910 config_commands="$ac_config_commands"
11914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11916 \`$as_me' instantiates files and other configuration actions
11917 from templates according to the current configuration. Unless the files
11918 and actions are specified as TAGs, all are instantiated by default.
11920 Usage: $0 [OPTION]... [TAG]...
11922 -h, --help print this help, then exit
11923 -V, --version print version number and configuration settings, then exit
11924 --config print configuration, then exit
11925 -q, --quiet, --silent
11926 do not print progress messages
11927 -d, --debug don't remove temporary files
11928 --recheck update $as_me by reconfiguring in the same conditions
11929 --file=FILE[:TEMPLATE]
11930 instantiate the configuration file FILE
11932 Configuration files:
11935 Configuration commands:
11938 Report bugs to <bug-libtool@gnu.org>."
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11944 cdemo config.status 1.0
11945 configured by $0, generated by GNU Autoconf 2.68,
11946 with options \\"\$ac_cs_config\\"
11948 Copyright (C) 2010 Free Software Foundation, Inc.
11949 This config.status script is free software; the Free Software Foundation
11950 gives unlimited permission to copy, distribute and modify it."
11957 test -n "\$AWK" || AWK=awk
11960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961 # The default lists apply if the user does not specify any file.
11967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11984 # Handling of the options.
11985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11988 $as_echo "$ac_cs_version"; exit ;;
11989 --config | --confi | --conf | --con | --co | --c )
11990 $as_echo "$ac_cs_config"; exit ;;
11991 --debug | --debu | --deb | --de | --d | -d )
11993 --file | --fil | --fi | --f )
11996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11997 '') as_fn_error $? "missing file argument" ;;
11999 as_fn_append CONFIG_FILES " '$ac_optarg'"
12000 ac_need_defaults=false;;
12001 --he | --h | --help | --hel | -h )
12002 $as_echo "$ac_cs_usage"; exit ;;
12003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12007 # This is an error.
12008 -*) as_fn_error $? "unrecognized option: \`$1'
12009 Try \`$0 --help' for more information." ;;
12011 *) as_fn_append ac_config_targets " $1"
12012 ac_need_defaults=false ;;
12018 ac_configure_extra_args=
12020 if $ac_cs_silent; then
12022 ac_configure_extra_args="$ac_configure_extra_args --silent"
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 if \$ac_cs_recheck; then
12028 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12030 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12031 CONFIG_SHELL='$SHELL'
12032 export CONFIG_SHELL
12037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12042 ## Running $as_me. ##
12048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12055 # The HP-UX ksh and POSIX shell print the target directory to stdout
12056 # if CDPATH is set.
12057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12059 sed_quote_subst='$sed_quote_subst'
12060 double_quote_subst='$double_quote_subst'
12061 delay_variable_subst='$delay_variable_subst'
12062 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12063 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12064 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12065 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12066 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12067 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12068 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12069 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12070 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12071 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12072 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12073 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12074 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12075 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12076 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12077 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12078 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12079 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12080 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12081 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12082 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12083 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12084 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12085 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12086 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12087 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12088 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12089 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12090 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12091 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12092 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12098 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12099 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12100 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12101 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12102 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12103 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12104 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12117 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12118 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"`'
12119 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12120 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12121 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12122 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12123 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12125 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12126 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12127 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12128 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12129 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12130 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12131 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12132 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12133 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12134 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12135 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12136 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12137 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12138 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12139 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12140 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12141 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12142 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12143 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12144 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12145 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12146 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12147 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12148 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12149 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12150 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12151 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12152 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12153 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12154 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12155 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12156 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12157 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12158 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12159 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12160 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12161 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12162 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12163 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12164 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12165 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12166 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12167 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12168 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12169 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12170 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12171 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12172 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12173 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12174 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12175 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12176 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12177 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12178 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12179 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12180 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12181 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12182 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12183 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12184 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12185 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12186 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12187 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12188 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12189 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12190 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12191 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12194 LTCFLAGS='$LTCFLAGS'
12195 compiler='$compiler_DEFAULT'
12197 # A function that is used when there is no print builtin or printf.
12198 func_fallback_echo ()
12200 eval 'cat <<_LTECHO_EOF
12205 # Quote evaled strings.
12220 deplibs_check_method \
12225 sharedlib_from_linklib_cmd \
12228 archiver_list_spec \
12234 lt_cv_sys_global_symbol_pipe \
12235 lt_cv_sys_global_symbol_to_cdecl \
12236 lt_cv_sys_global_symbol_to_c_name_address \
12237 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12238 nm_file_list_spec \
12239 lt_prog_compiler_no_builtin_flag \
12240 lt_prog_compiler_pic \
12241 lt_prog_compiler_wl \
12242 lt_prog_compiler_static \
12243 lt_cv_prog_compiler_c_o \
12252 export_dynamic_flag_spec \
12253 whole_archive_flag_spec \
12254 compiler_needs_object \
12256 allow_undefined_flag \
12257 no_undefined_flag \
12258 hardcode_libdir_flag_spec \
12259 hardcode_libdir_separator \
12263 variables_saved_for_relink \
12265 library_names_spec \
12267 install_override_mode \
12271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12272 *[\\\\\\\`\\"\\\$]*)
12273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12281 # Double-quote double-evaled strings.
12282 for var in reload_cmds \
12283 old_postinstall_cmds \
12284 old_postuninstall_cmds \
12286 extract_expsyms_cmds \
12287 old_archive_from_new_cmds \
12288 old_archive_from_expsyms_cmds \
12290 archive_expsym_cmds \
12292 module_expsym_cmds \
12293 export_symbols_cmds \
12297 postuninstall_cmds \
12299 sys_lib_search_path_spec \
12300 sys_lib_dlsearch_path_spec; do
12301 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12302 *[\\\\\\\`\\"\\\$]*)
12303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12311 ac_aux_dir='$ac_aux_dir'
12312 xsi_shell='$xsi_shell'
12313 lt_shell_append='$lt_shell_append'
12315 # See if we are running on zsh, and set the options which allow our
12316 # commands through without removal of \ escapes INIT.
12317 if test -n "\${ZSH_VERSION+set}" ; then
12318 setopt NO_GLOB_SUBST
12324 TIMESTAMP='$TIMESTAMP'
12333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12335 # Handling of arguments.
12336 for ac_config_target in $ac_config_targets
12338 case $ac_config_target in
12339 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12340 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12343 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12348 # If the user did not use the arguments to specify the items to instantiate,
12349 # then the envvar interface is used. Set only those that are not.
12350 # We use the long form for the default assignment because of an extremely
12351 # bizarre bug on SunOS 4.1.3.
12352 if $ac_need_defaults; then
12353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12357 # Have a temporary directory for convenience. Make it in the build tree
12358 # simply because there is no reason against having it here, and in addition,
12359 # creating and moving files from /tmp can sometimes cause problems.
12360 # Hook for its removal unless debugging.
12361 # Note that there is a small window in which the directory will not be cleaned:
12362 # after its creation but before its name has been assigned to `$tmp'.
12366 trap 'exit_status=$?
12367 : "${ac_tmp:=$tmp}"
12368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12370 trap 'as_fn_exit 1' 1 2 13 15
12372 # Create a (secure) tmp directory for tmp files.
12375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12379 tmp=./conf$$-$RANDOM
12380 (umask 077 && mkdir "$tmp")
12381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12384 # Set up the scripts for CONFIG_FILES section.
12385 # No need to generate them if there are no CONFIG_FILES.
12386 # This happens for instance with `./config.status config.h'.
12387 if test -n "$CONFIG_FILES"; then
12390 ac_cr=`echo X | tr X '\015'`
12391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12392 # But we know of no other shell where ac_cr would be empty at this
12393 # point, so we can use a bashism as a fallback.
12394 if test "x$ac_cr" = x; then
12395 eval ac_cr=\$\'\\r\'
12397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12401 ac_cs_awk_cr=$ac_cr
12404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12409 echo "cat >conf$$subs.awk <<_ACEOF" &&
12410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12412 } >conf$$subs.sh ||
12413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12416 for ac_last_try in false false false false false :; do
12417 . ./conf$$subs.sh ||
12418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12421 if test $ac_delim_n = $ac_delim_num; then
12423 elif $ac_last_try; then
12424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12429 rm -f conf$$subs.sh
12431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12436 s/^/S["/; s/!.*/"]=/
12446 s/\(.\{148\}\)..*/\1/
12448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12460 s/\(.\{148\}\)..*/\1/
12462 s/["\\]/\\&/g; s/^/"/; s/$/"/
12466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12471 ' <conf$$subs.awk | sed '
12476 ' >>$CONFIG_STATUS || ac_write_fail=1
12477 rm -f conf$$subs.awk
12478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12481 for (key in S) S_is_set[key] = 1
12487 nfields = split(line, field, "@")
12489 len = length(field[1])
12490 for (i = 2; i < nfields; i++) {
12492 keylen = length(key)
12493 if (S_is_set[key]) {
12495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12496 len += length(value) + length(field[++i])
12507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12518 # trailing colons and then remove the whole line if VPATH becomes empty
12519 # (actually we leave an empty line to preserve line numbers).
12520 if test "x$srcdir" = x.; then
12521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12540 fi # test -n "$CONFIG_FILES"
12543 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12548 :[FHLC]) ac_mode=$ac_tag; continue;;
12550 case $ac_mode$ac_tag in
12552 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12553 :[FH]-) ac_tag=-:-;;
12554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12571 -) ac_f="$ac_tmp/stdin";;
12572 *) # Look for the file first in the build tree, then in the source tree
12573 # (if the path is not absolute). The absolute path cannot be DOS-style,
12574 # because $ac_f cannot contain `:'.
12578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12580 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12583 as_fn_append ac_file_inputs " '$ac_f'"
12586 # Let's still pretend it is `configure' which instantiates (i.e., don't
12587 # use $as_me), people would be surprised to read:
12588 # /* config.h. Generated by config.status. */
12589 configure_input='Generated from '`
12590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12592 if test x"$ac_file" != x-; then
12593 configure_input="$ac_file. $configure_input"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12595 $as_echo "$as_me: creating $ac_file" >&6;}
12597 # Neutralize special characters interpreted by sed in replacement strings.
12598 case $configure_input in #(
12599 *\&* | *\|* | *\\* )
12600 ac_sed_conf_input=`$as_echo "$configure_input" |
12601 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12602 *) ac_sed_conf_input=$configure_input;;
12606 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12612 ac_dir=`$as_dirname -- "$ac_file" ||
12613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12614 X"$ac_file" : 'X\(//\)[^/]' \| \
12615 X"$ac_file" : 'X\(//\)$' \| \
12616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12617 $as_echo X"$ac_file" |
12618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12622 /^X\(\/\/\)[^/].*/{
12635 as_dir="$ac_dir"; as_fn_mkdir_p
12639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12642 # A ".." for each directory in $ac_dir_suffix.
12643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12644 case $ac_top_builddir_sub in
12645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12649 ac_abs_top_builddir=$ac_pwd
12650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12651 # for backward compatibility:
12652 ac_top_builddir=$ac_top_build_prefix
12655 .) # We are building in place.
12657 ac_top_srcdir=$ac_top_builddir_sub
12658 ac_abs_top_srcdir=$ac_pwd ;;
12659 [\\/]* | ?:[\\/]* ) # Absolute name.
12660 ac_srcdir=$srcdir$ac_dir_suffix;
12661 ac_top_srcdir=$srcdir
12662 ac_abs_top_srcdir=$srcdir ;;
12663 *) # Relative name.
12664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12665 ac_top_srcdir=$ac_top_build_prefix$srcdir
12666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12681 ac_MKDIR_P=$MKDIR_P
12683 [\\/$]* | ?:[\\/]* ) ;;
12684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12689 # If the template does not know about datarootdir, expand it.
12690 # FIXME: This hack should be removed a few years after 2.60.
12691 ac_datarootdir_hack=; ac_datarootdir_seen=
12702 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12703 *datarootdir*) ac_datarootdir_seen=yes;;
12704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12706 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12709 ac_datarootdir_hack='
12710 s&@datadir@&$datadir&g
12711 s&@docdir@&$docdir&g
12712 s&@infodir@&$infodir&g
12713 s&@localedir@&$localedir&g
12714 s&@mandir@&$mandir&g
12715 s&\\\${datarootdir}&$datarootdir&g' ;;
12719 # Neutralize VPATH when `$srcdir' = `.'.
12720 # Shell code in configure.ac might set extrasub.
12721 # FIXME: do we really want to maintain this feature?
12722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12723 ac_sed_extra="$ac_vpsub
12726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12729 s|@configure_input@|$ac_sed_conf_input|;t t
12730 s&@top_builddir@&$ac_top_builddir_sub&;t t
12731 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12732 s&@srcdir@&$ac_srcdir&;t t
12733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12734 s&@top_srcdir@&$ac_top_srcdir&;t t
12735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12736 s&@builddir@&$ac_builddir&;t t
12737 s&@abs_builddir@&$ac_abs_builddir&;t t
12738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12739 s&@INSTALL@&$ac_INSTALL&;t t
12740 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12741 $ac_datarootdir_hack
12743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12744 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12747 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12749 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12751 which seems to be undefined. Please make sure it is defined" >&5
12752 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12753 which seems to be undefined. Please make sure it is defined" >&2;}
12755 rm -f "$ac_tmp/stdin"
12757 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12758 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12764 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12765 $as_echo "$as_me: executing $ac_file commands" >&6;}
12770 case $ac_file$ac_mode in
12771 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12772 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12773 # are listed without --file. Let's play safe and only enable the eval
12774 # if we detect the quoting.
12775 case $CONFIG_FILES in
12776 *\'*) eval set x "$CONFIG_FILES" ;;
12777 *) set x $CONFIG_FILES ;;
12782 # Strip MF so we end up with the name of the file.
12783 mf=`echo "$mf" | sed -e 's/:.*$//'`
12784 # Check whether this is an Automake generated Makefile or not.
12785 # We used to match only the files named `Makefile.in', but
12786 # some people rename them; so instead we look at the file content.
12787 # Grep'ing the first line is not enough: some people post-process
12788 # each Makefile.in and add a new line on top of each file to say so.
12789 # Grep'ing the whole file is not good either: AIX grep has a line
12790 # limit of 2048, but all sed's we know have understand at least 4000.
12791 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12792 dirpart=`$as_dirname -- "$mf" ||
12793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794 X"$mf" : 'X\(//\)[^/]' \| \
12795 X"$mf" : 'X\(//\)$' \| \
12796 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12802 /^X\(\/\/\)[^/].*/{
12818 # Extract the definition of DEPDIR, am__include, and am__quote
12819 # from the Makefile without running `make'.
12820 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12821 test -z "$DEPDIR" && continue
12822 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12823 test -z "am__include" && continue
12824 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12825 # When using ansi2knr, U may be empty or an underscore; expand it
12826 U=`sed -n 's/^U = //p' < "$mf"`
12827 # Find all dependency output files, they are included files with
12828 # $(DEPDIR) in their names. We invoke sed twice because it is the
12829 # simplest approach to changing $(DEPDIR) to its actual value in the
12831 for file in `sed -n "
12832 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12833 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12834 # Make sure the directory exists.
12835 test -f "$dirpart/$file" && continue
12836 fdir=`$as_dirname -- "$file" ||
12837 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838 X"$file" : 'X\(//\)[^/]' \| \
12839 X"$file" : 'X\(//\)$' \| \
12840 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12841 $as_echo X"$file" |
12842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12846 /^X\(\/\/\)[^/].*/{
12859 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12860 # echo "creating $dirpart/$file"
12861 echo '# dummy' > "$dirpart/$file"
12868 # See if we are running on zsh, and set the options which allow our
12869 # commands through without removal of \ escapes.
12870 if test -n "${ZSH_VERSION+set}" ; then
12871 setopt NO_GLOB_SUBST
12874 cfgfile="${ofile}T"
12875 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12878 cat <<_LT_EOF >> "$cfgfile"
12881 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12882 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12884 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12886 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12887 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12889 # Written by Gordon Matzigkeit, 1996
12891 # This file is part of GNU Libtool.
12893 # GNU Libtool is free software; you can redistribute it and/or
12894 # modify it under the terms of the GNU General Public License as
12895 # published by the Free Software Foundation; either version 2 of
12896 # the License, or (at your option) any later version.
12898 # As a special exception to the GNU General Public License,
12899 # if you distribute this file as part of a program or library that
12900 # is built using GNU Libtool, you may include this file under the
12901 # same distribution terms that you use for the rest of that program.
12903 # GNU Libtool is distributed in the hope that it will be useful,
12904 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12906 # GNU General Public License for more details.
12908 # You should have received a copy of the GNU General Public License
12909 # along with GNU Libtool; see the file COPYING. If not, a copy
12910 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12911 # obtained by writing to the Free Software Foundation, Inc.,
12912 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12915 # The names of the tagged configurations supported by this script.
12918 # ### BEGIN LIBTOOL CONFIG
12920 # Which release of libtool.m4 was used?
12921 macro_version=$macro_version
12922 macro_revision=$macro_revision
12924 # Whether or not to build shared libraries.
12925 build_libtool_libs=$enable_shared
12927 # Whether or not to build static libraries.
12928 build_old_libs=$enable_static
12930 # What type of objects to build.
12933 # Whether or not to optimize for fast installation.
12934 fast_install=$enable_fast_install
12936 # Shell to use when invoking shell scripts.
12939 # An echo program that protects backslashes.
12942 # The PATH separator for the build system.
12943 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12946 host_alias=$host_alias
12950 # The build system.
12951 build_alias=$build_alias
12955 # A sed program that does not truncate output.
12958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12959 Xsed="\$SED -e 1s/^X//"
12961 # A grep program that handles long lines.
12967 # A literal string matcher.
12970 # A BSD- or MS-compatible name lister.
12973 # Whether we need soft or hard links.
12976 # What is the maximum length of a command?
12977 max_cmd_len=$max_cmd_len
12979 # Object file suffix (normally "o").
12982 # Executable file suffix (normally "").
12985 # whether the shell understands "unset".
12988 # turn spaces into newlines.
12991 # turn newlines into spaces.
12994 # convert \$build file names to \$host format.
12995 to_host_file_cmd=$lt_cv_to_host_file_cmd
12997 # convert \$build files to toolchain format.
12998 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13000 # An object symbol dumper.
13001 OBJDUMP=$lt_OBJDUMP
13003 # Method to check whether dependent libraries are shared objects.
13004 deplibs_check_method=$lt_deplibs_check_method
13006 # Command to use when deplibs_check_method = "file_magic".
13007 file_magic_cmd=$lt_file_magic_cmd
13009 # How to find potential files when deplibs_check_method = "file_magic".
13010 file_magic_glob=$lt_file_magic_glob
13012 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13013 want_nocaseglob=$lt_want_nocaseglob
13015 # DLL creation program.
13016 DLLTOOL=$lt_DLLTOOL
13018 # Command to associate shared and link libraries.
13019 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13024 # Flags to create an archive.
13025 AR_FLAGS=$lt_AR_FLAGS
13027 # How to feed a file listing to the archiver.
13028 archiver_list_spec=$lt_archiver_list_spec
13030 # A symbol stripping program.
13033 # Commands used to install an old-style archive.
13035 old_postinstall_cmds=$lt_old_postinstall_cmds
13036 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13038 # Whether to use a lock for old archive extraction.
13039 lock_old_archive_extraction=$lock_old_archive_extraction
13044 # LTCC compiler flags.
13045 LTCFLAGS=$lt_CFLAGS
13047 # Take the output of nm and produce a listing of raw symbols and C names.
13048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13050 # Transform the output of nm in a proper C declaration.
13051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13053 # Transform the output of nm in a C name address pair.
13054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13056 # Transform the output of nm in a C name address pair when lib prefix is needed.
13057 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13059 # Specify filename containing input files for \$NM.
13060 nm_file_list_spec=$lt_nm_file_list_spec
13062 # The root where to search for dependent libraries,and in which our libraries should be installed.
13063 lt_sysroot=$lt_sysroot
13065 # The name of the directory that contains temporary libtool files.
13068 # Used to examine libraries when file_magic_cmd begins with "file".
13069 MAGIC_CMD=$MAGIC_CMD
13071 # Must we lock files when doing compilation?
13072 need_locks=$lt_need_locks
13075 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13077 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13078 DSYMUTIL=$lt_DSYMUTIL
13080 # Tool to change global to local symbols on Mac OS X.
13083 # Tool to manipulate fat objects and archives on Mac OS X.
13086 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13089 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13090 OTOOL64=$lt_OTOOL64
13092 # Old archive suffix (normally "a").
13095 # Shared library suffix (normally ".so").
13096 shrext_cmds=$lt_shrext_cmds
13098 # The commands to extract the exported symbol list from a shared archive.
13099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13101 # Variables whose values should be saved in libtool wrapper scripts and
13102 # restored at link time.
13103 variables_saved_for_relink=$lt_variables_saved_for_relink
13105 # Do we need the "lib" prefix for modules?
13106 need_lib_prefix=$need_lib_prefix
13108 # Do we need a version for libraries?
13109 need_version=$need_version
13111 # Library versioning type.
13112 version_type=$version_type
13114 # Shared library runtime path variable.
13115 runpath_var=$runpath_var
13117 # Shared library path variable.
13118 shlibpath_var=$shlibpath_var
13120 # Is shlibpath searched before the hard-coded library search path?
13121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13123 # Format of library name prefix.
13124 libname_spec=$lt_libname_spec
13126 # List of archive names. First name is the real one, the rest are links.
13127 # The last name is the one that the linker finds with -lNAME
13128 library_names_spec=$lt_library_names_spec
13130 # The coded name of the library, if different from the real name.
13131 soname_spec=$lt_soname_spec
13133 # Permission mode override for installation of shared libraries.
13134 install_override_mode=$lt_install_override_mode
13136 # Command to use after installation of a shared archive.
13137 postinstall_cmds=$lt_postinstall_cmds
13139 # Command to use after uninstallation of a shared archive.
13140 postuninstall_cmds=$lt_postuninstall_cmds
13142 # Commands used to finish a libtool library installation in a directory.
13143 finish_cmds=$lt_finish_cmds
13145 # As "finish_cmds", except a single script fragment to be evaled but
13147 finish_eval=$lt_finish_eval
13149 # Whether we should hardcode library paths into libraries.
13150 hardcode_into_libs=$hardcode_into_libs
13152 # Compile-time system search path for libraries.
13153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13155 # Run-time system search path for libraries.
13156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13158 # Whether dlopen is supported.
13159 dlopen_support=$enable_dlopen
13161 # Whether dlopen of programs is supported.
13162 dlopen_self=$enable_dlopen_self
13164 # Whether dlopen of statically linked programs is supported.
13165 dlopen_self_static=$enable_dlopen_self_static
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13172 # The linker used to build libraries.
13175 # How to create reloadable object files.
13176 reload_flag=$lt_reload_flag
13177 reload_cmds=$lt_reload_cmds
13179 # Commands used to build an old-style archive.
13180 old_archive_cmds=$lt_old_archive_cmds
13182 # A language specific compiler.
13185 # Is the compiler the GNU compiler?
13188 # Compiler flag to turn off builtin functions.
13189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13191 # Additional compiler flags for building library objects.
13192 pic_flag=$lt_lt_prog_compiler_pic
13194 # How to pass a linker flag through the compiler.
13195 wl=$lt_lt_prog_compiler_wl
13197 # Compiler flag to prevent dynamic linking.
13198 link_static_flag=$lt_lt_prog_compiler_static
13200 # Does compiler simultaneously support -c and -o options?
13201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13203 # Whether or not to add -lc for building shared libraries.
13204 build_libtool_need_lc=$archive_cmds_need_lc
13206 # Whether or not to disallow shared libs when runtime libs are static.
13207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13209 # Compiler flag to allow reflexive dlopens.
13210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13212 # Compiler flag to generate shared objects directly from archives.
13213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13215 # Whether the compiler copes with passing no objects directly.
13216 compiler_needs_object=$lt_compiler_needs_object
13218 # Create an old-style archive from a shared archive.
13219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13221 # Create a temporary old-style archive to link instead of a shared archive.
13222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13224 # Commands used to build a shared archive.
13225 archive_cmds=$lt_archive_cmds
13226 archive_expsym_cmds=$lt_archive_expsym_cmds
13228 # Commands used to build a loadable module if different from building
13229 # a shared archive.
13230 module_cmds=$lt_module_cmds
13231 module_expsym_cmds=$lt_module_expsym_cmds
13233 # Whether we are building with GNU ld or not.
13234 with_gnu_ld=$lt_with_gnu_ld
13236 # Flag that allows shared libraries with undefined symbols to be built.
13237 allow_undefined_flag=$lt_allow_undefined_flag
13239 # Flag that enforces no undefined symbols.
13240 no_undefined_flag=$lt_no_undefined_flag
13242 # Flag to hardcode \$libdir into a binary during linking.
13243 # This must work even if \$libdir does not exist
13244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13246 # Whether we need a single "-rpath" flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13249 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13250 # DIR into the resulting binary.
13251 hardcode_direct=$hardcode_direct
13253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13254 # DIR into the resulting binary and the resulting library dependency is
13255 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13256 # library is relocated.
13257 hardcode_direct_absolute=$hardcode_direct_absolute
13259 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13260 # into the resulting binary.
13261 hardcode_minus_L=$hardcode_minus_L
13263 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13264 # into the resulting binary.
13265 hardcode_shlibpath_var=$hardcode_shlibpath_var
13267 # Set to "yes" if building a shared library automatically hardcodes DIR
13268 # into the library and all subsequent libraries and executables linked
13270 hardcode_automatic=$hardcode_automatic
13272 # Set to yes if linker adds runtime paths of dependent libraries
13273 # to runtime path list.
13274 inherit_rpath=$inherit_rpath
13276 # Whether libtool must link a program against all its dependency libraries.
13277 link_all_deplibs=$link_all_deplibs
13279 # Set to "yes" if exported symbols are required.
13280 always_export_symbols=$always_export_symbols
13282 # The commands to list exported symbols.
13283 export_symbols_cmds=$lt_export_symbols_cmds
13285 # Symbols that should not be listed in the preloaded symbols.
13286 exclude_expsyms=$lt_exclude_expsyms
13288 # Symbols that must always be exported.
13289 include_expsyms=$lt_include_expsyms
13291 # Commands necessary for linking programs (against libraries) with templates.
13292 prelink_cmds=$lt_prelink_cmds
13294 # Commands necessary for finishing linking programs.
13295 postlink_cmds=$lt_postlink_cmds
13297 # Specify filename containing input files.
13298 file_list_spec=$lt_file_list_spec
13300 # How to hardcode a shared library path into an executable.
13301 hardcode_action=$hardcode_action
13303 # ### END LIBTOOL CONFIG
13309 cat <<\_LT_EOF >> "$cfgfile"
13310 # AIX sometimes has problems with the GCC collect2 program. For some
13311 # reason, if we set the COLLECT_NAMES environment variable, the problems
13312 # vanish in a puff of smoke.
13313 if test "X${COLLECT_NAMES+set}" != Xset; then
13315 export COLLECT_NAMES
13322 ltmain="$ac_aux_dir/ltmain.sh"
13325 # We use sed instead of cat because bash on DJGPP gets confused if
13326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13327 # text mode, it properly converts lines to CR/LF. This bash problem
13328 # is reportedly fixed, but why not run on old versions too?
13329 sed '$q' "$ltmain" >> "$cfgfile" \
13330 || (rm -f "$cfgfile"; exit 1)
13332 if test x"$xsi_shell" = xyes; then
13333 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13337 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13338 \ * ) func_dirname_result="${3}" ;;\
13340 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13341 && mv -f "$cfgfile.tmp" "$cfgfile" \
13342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13343 test 0 -eq $? || _lt_function_replace_fail=:
13346 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13349 \ func_basename_result="${1##*/}"\
13350 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13351 && mv -f "$cfgfile.tmp" "$cfgfile" \
13352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13353 test 0 -eq $? || _lt_function_replace_fail=:
13356 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13357 func_dirname_and_basename ()\
13360 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13361 \ * ) func_dirname_result="${3}" ;;\
13363 \ func_basename_result="${1##*/}"\
13364 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13365 && mv -f "$cfgfile.tmp" "$cfgfile" \
13366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13367 test 0 -eq $? || _lt_function_replace_fail=:
13370 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13373 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13374 \ # positional parameters, so assign one to ordinary parameter first.\
13375 \ func_stripname_result=${3}\
13376 \ func_stripname_result=${func_stripname_result#"${1}"}\
13377 \ func_stripname_result=${func_stripname_result%"${2}"}\
13378 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13379 && mv -f "$cfgfile.tmp" "$cfgfile" \
13380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13381 test 0 -eq $? || _lt_function_replace_fail=:
13384 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13385 func_split_long_opt ()\
13387 \ func_split_long_opt_name=${1%%=*}\
13388 \ func_split_long_opt_arg=${1#*=}\
13389 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13390 && mv -f "$cfgfile.tmp" "$cfgfile" \
13391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13392 test 0 -eq $? || _lt_function_replace_fail=:
13395 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13396 func_split_short_opt ()\
13398 \ func_split_short_opt_arg=${1#??}\
13399 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13400 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13401 && mv -f "$cfgfile.tmp" "$cfgfile" \
13402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13403 test 0 -eq $? || _lt_function_replace_fail=:
13406 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13410 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13411 \ *) func_lo2o_result=${1} ;;\
13413 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13414 && mv -f "$cfgfile.tmp" "$cfgfile" \
13415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13416 test 0 -eq $? || _lt_function_replace_fail=:
13419 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13422 func_xform_result=${1%.*}.lo\
13423 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13424 && mv -f "$cfgfile.tmp" "$cfgfile" \
13425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13426 test 0 -eq $? || _lt_function_replace_fail=:
13429 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13432 func_arith_result=$(( $* ))\
13433 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13434 && mv -f "$cfgfile.tmp" "$cfgfile" \
13435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13436 test 0 -eq $? || _lt_function_replace_fail=:
13439 sed -e '/^func_len ()$/,/^} # func_len /c\
13442 func_len_result=${#1}\
13443 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13444 && mv -f "$cfgfile.tmp" "$cfgfile" \
13445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13446 test 0 -eq $? || _lt_function_replace_fail=:
13450 if test x"$lt_shell_append" = xyes; then
13451 sed -e '/^func_append ()$/,/^} # func_append /c\
13454 eval "${1}+=\\${2}"\
13455 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13456 && mv -f "$cfgfile.tmp" "$cfgfile" \
13457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13458 test 0 -eq $? || _lt_function_replace_fail=:
13461 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13462 func_append_quoted ()\
13464 \ func_quote_for_eval "${2}"\
13465 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13466 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13467 && mv -f "$cfgfile.tmp" "$cfgfile" \
13468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13469 test 0 -eq $? || _lt_function_replace_fail=:
13472 # Save a `func_append' function call where possible by direct use of '+='
13473 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13474 && mv -f "$cfgfile.tmp" "$cfgfile" \
13475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13476 test 0 -eq $? || _lt_function_replace_fail=:
13478 # Save a `func_append' function call even when '+=' is not available
13479 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13480 && mv -f "$cfgfile.tmp" "$cfgfile" \
13481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13482 test 0 -eq $? || _lt_function_replace_fail=:
13485 if test x"$_lt_function_replace_fail" = x":"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13487 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13491 mv -f "$cfgfile" "$ofile" ||
13492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13503 ac_clean_files=$ac_clean_files_save
13505 test $ac_write_fail = 0 ||
13506 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13509 # configure is writing to config.log, and then calls config.status.
13510 # config.status does its own redirection, appending to config.log.
13511 # Unfortunately, on DOS this fails, as config.log is still kept open
13512 # by configure, so config.status won't be able to write to it; its
13513 # output is simply discarded. So we exec the FD to /dev/null,
13514 # effectively closing config.log, so it can be properly (re)opened and
13515 # appended to by config.status. When coming back to configure, we
13516 # need to make the FD available again.
13517 if test "$no_create" != yes; then
13519 ac_config_status_args=
13520 test "$silent" = yes &&
13521 ac_config_status_args="$ac_config_status_args --quiet"
13523 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13525 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13526 # would make configure fail if this is the last instruction.
13527 $ac_cs_success || as_fn_exit 1
13529 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13531 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}